summaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-transform-sticky-regex
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/plugin-transform-sticky-regex')
-rw-r--r--node_modules/@babel/plugin-transform-sticky-regex/README.md2
-rw-r--r--node_modules/@babel/plugin-transform-sticky-regex/lib/index.js3
-rw-r--r--node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map2
-rw-r--r--node_modules/@babel/plugin-transform-sticky-regex/package.json4
4 files changed, 5 insertions, 6 deletions
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/README.md b/node_modules/@babel/plugin-transform-sticky-regex/README.md
index d0a46296..16c9fe29 100644
--- a/node_modules/@babel/plugin-transform-sticky-regex/README.md
+++ b/node_modules/@babel/plugin-transform-sticky-regex/README.md
@@ -2,7 +2,7 @@
> Compile ES2015 sticky regex to an ES5 RegExp constructor
-See our website [@babel/plugin-transform-sticky-regex](https://babeljs.io/docs/en/babel-plugin-transform-sticky-regex) for more information.
+See our website [@babel/plugin-transform-sticky-regex](https://babeljs.io/docs/babel-plugin-transform-sticky-regex) for more information.
## Install
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js
index 8ac9d510..c5b72348 100644
--- a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js
+++ b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _core = require("@babel/core");
-var _default = (0, _helperPluginUtils.declare)(api => {
+var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
return {
name: "transform-sticky-regex",
@@ -21,6 +21,5 @@ var _default = (0, _helperPluginUtils.declare)(api => {
}
};
});
-exports.default = _default;
//# sourceMappingURL=index.js.map
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map
index e3b2289d..d5c3420e 100644
--- a/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map
+++ b/node_modules/@babel/plugin-transform-sticky-regex/lib/index.js.map
@@ -1 +1 @@
-{"version":3,"names":["_helperPluginUtils","require","_core","_default","declare","api","assertVersion","name","visitor","RegExpLiteral","path","node","flags","includes","replaceWith","t","newExpression","identifier","stringLiteral","pattern","exports","default"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(7);\n\n return {\n name: \"transform-sticky-regex\",\n\n visitor: {\n RegExpLiteral(path) {\n const { node } = path;\n if (!node.flags.includes(\"y\")) return;\n\n path.replaceWith(\n t.newExpression(t.identifier(\"RegExp\"), [\n t.stringLiteral(node.pattern),\n t.stringLiteral(node.flags),\n ]),\n );\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAC,CAAC,CAAC;EAEpB,OAAO;IACLC,IAAI,EAAE,wBAAwB;IAE9BC,OAAO,EAAE;MACPC,aAAaA,CAACC,IAAI,EAAE;QAClB,MAAM;UAAEC;QAAK,CAAC,GAAGD,IAAI;QACrB,IAAI,CAACC,IAAI,CAACC,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAE/BH,IAAI,CAACI,WAAW,CACdC,WAAC,CAACC,aAAa,CAACD,WAAC,CAACE,UAAU,CAAC,QAAQ,CAAC,EAAE,CACtCF,WAAC,CAACG,aAAa,CAACP,IAAI,CAACQ,OAAO,CAAC,EAC7BJ,WAAC,CAACG,aAAa,CAACP,IAAI,CAACC,KAAK,CAAC,CAC5B,CACH,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC,CAAC;AAAAQ,OAAA,CAAAC,OAAA,GAAAlB,QAAA"} \ No newline at end of file
+{"version":3,"names":["_helperPluginUtils","require","_core","_default","exports","default","declare","api","assertVersion","name","visitor","RegExpLiteral","path","node","flags","includes","replaceWith","t","newExpression","identifier","stringLiteral","pattern"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(\n process.env.BABEL_8_BREAKING && process.env.IS_PUBLISH\n ? PACKAGE_JSON.version\n : 7,\n );\n\n return {\n name: \"transform-sticky-regex\",\n\n visitor: {\n RegExpLiteral(path) {\n const { node } = path;\n if (!node.flags.includes(\"y\")) return;\n\n path.replaceWith(\n t.newExpression(t.identifier(\"RegExp\"), [\n t.stringLiteral(node.pattern),\n t.stringLiteral(node.flags),\n ]),\n );\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAGX,CACN,CAAC;EAED,OAAO;IACLC,IAAI,EAAE,wBAAwB;IAE9BC,OAAO,EAAE;MACPC,aAAaA,CAACC,IAAI,EAAE;QAClB,MAAM;UAAEC;QAAK,CAAC,GAAGD,IAAI;QACrB,IAAI,CAACC,IAAI,CAACC,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAE/BH,IAAI,CAACI,WAAW,CACdC,WAAC,CAACC,aAAa,CAACD,WAAC,CAACE,UAAU,CAAC,QAAQ,CAAC,EAAE,CACtCF,WAAC,CAACG,aAAa,CAACP,IAAI,CAACQ,OAAO,CAAC,EAC7BJ,WAAC,CAACG,aAAa,CAACP,IAAI,CAACC,KAAK,CAAC,CAC5B,CACH,CAAC;MACH;IACF;EACF,CAAC;AACH,CAAC,CAAC"} \ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-sticky-regex/package.json b/node_modules/@babel/plugin-transform-sticky-regex/package.json
index 007cb777..102052b4 100644
--- a/node_modules/@babel/plugin-transform-sticky-regex/package.json
+++ b/node_modules/@babel/plugin-transform-sticky-regex/package.json
@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-sticky-regex",
- "version": "7.22.5",
+ "version": "7.23.3",
"description": "Compile ES2015 sticky regex to an ES5 RegExp constructor",
"repository": {
"type": "git",
@@ -22,7 +22,7 @@
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
- "@babel/core": "^7.22.5",
+ "@babel/core": "^7.23.3",
"@babel/helper-plugin-test-runner": "^7.22.5"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-sticky-regex",