summaryrefslogtreecommitdiff
path: root/node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-08-30 17:21:18 +0800
commitefbc2ffe6a1ee5ec38a4396305561d6515d0943e (patch)
tree2b4c94f18f2c792dfda813050755d5c0273fae22 /node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js
parent43acceb75957c880a5ba5a31aae221394a36d5f6 (diff)
node fixes, updates
Diffstat (limited to 'node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js')
-rw-r--r--node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js b/node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js
index f07e22b3..568b0731 100644
--- a/node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js
+++ b/node_modules/@babel/helper-create-regexp-features-plugin/lib/index.js
@@ -39,7 +39,7 @@ function createRegExpFeaturePlugin({
}
if (runtime !== undefined) {
if (file.has(_features.runtimeKey) && file.get(_features.runtimeKey) !== runtime && (0, _features.hasFeature)(newFeatures, _features.FEATURES.duplicateNamedCaptureGroups)) {
- throw new Error(`The 'runtime' option must be the same for ` + `'@babel/plugin-transform-named-capturing-groups-regex' and ` + `'@babel/plugin-proposal-duplicate-named-capturing-groups-regex'.`);
+ throw new Error(`The 'runtime' option must be the same for ` + `'@babel/plugin-transform-named-capturing-groups-regex' and ` + `'@babel/plugin-transform-duplicate-named-capturing-groups-regex'.`);
}
if (feature === "namedCaptureGroups") {
if (!runtime || !file.has(_features.runtimeKey)) file.set(_features.runtimeKey, runtime);
@@ -49,12 +49,12 @@ function createRegExpFeaturePlugin({
}
{
if (typeof file.get(versionKey) === "number") {
- file.set(versionKey, "7.22.15");
+ file.set(versionKey, "7.25.2");
return;
}
}
- if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.22.15")) {
- file.set(versionKey, "7.22.15");
+ if (!file.get(versionKey) || _semver.lt(file.get(versionKey), "7.25.2")) {
+ file.set(versionKey, "7.25.2");
}
},
visitor: {