@babel/helper-create-regexp-features-plugin
Advanced tools
Comparing version 7.8.3 to 7.8.6
@@ -20,2 +20,4 @@ "use strict"; | ||
var _helperAnnotateAsPure = _interopRequireDefault(require("@babel/helper-annotate-as-pure")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -94,3 +96,6 @@ | ||
if (regexpuOptions.namedGroup && Object.keys(namedCaptureGroups).length > 0 && runtime && !isRegExpTest(path)) { | ||
path.replaceWith(_core.types.callExpression(this.addHelper("wrapRegExp"), [node, _core.types.valueToNode(namedCaptureGroups)])); | ||
const call = _core.types.callExpression(this.addHelper("wrapRegExp"), [node, _core.types.valueToNode(namedCaptureGroups)]); | ||
(0, _helperAnnotateAsPure.default)(call); | ||
path.replaceWith(call); | ||
} | ||
@@ -97,0 +102,0 @@ |
{ | ||
"name": "@babel/helper-create-regexp-features-plugin", | ||
"version": "7.8.3", | ||
"version": "7.8.6", | ||
"author": "The Babel Team (https://babeljs.io/team)", | ||
@@ -21,2 +21,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/helper-annotate-as-pure": "^7.8.3", | ||
"@babel/helper-regex": "^7.8.3", | ||
@@ -29,6 +30,6 @@ "regexpu-core": "^4.6.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.8.3", | ||
"@babel/core": "^7.8.6", | ||
"@babel/helper-plugin-test-runner": "^7.8.3" | ||
}, | ||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017" | ||
"gitHead": "750d3dde3bd2d390819820fd22c05441da78751b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7833
157
4
+ Added@babel/helper-annotate-as-pure@7.24.7(transitive)