diff options
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.js | 8 |
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: { |
