@babel/plugin-transform-new-target
Advanced tools
Comparing version 7.16.7 to 7.17.12
@@ -53,8 +53,8 @@ "use strict"; | ||
if (_core.types.isMethod(node)) { | ||
path.replaceWith(scope.buildUndefinedNode()); | ||
return; | ||
} | ||
if (!node.id) { | ||
if (func.isMethod()) { | ||
path.replaceWith(scope.buildUndefinedNode()); | ||
return; | ||
} | ||
node.id = scope.generateUidIdentifier("target"); | ||
@@ -61,0 +61,0 @@ } |
{ | ||
"name": "@babel/plugin-transform-new-target", | ||
"version": "7.16.7", | ||
"version": "7.17.12", | ||
"description": "Transforms new.target meta property", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.16.7" | ||
"@babel/helper-plugin-utils": "^7.17.12" | ||
}, | ||
@@ -27,6 +27,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.16.7", | ||
"@babel/core": "^7.17.12", | ||
"@babel/helper-plugin-test-runner": "^7.16.7", | ||
"@babel/plugin-proposal-class-properties": "^7.16.7", | ||
"@babel/plugin-transform-arrow-functions": "^7.16.7" | ||
"@babel/plugin-proposal-class-properties": "^7.17.12", | ||
"@babel/plugin-transform-arrow-functions": "^7.17.12" | ||
}, | ||
@@ -33,0 +33,0 @@ "engines": { |
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
4427
75
0
0
0
13