@babel/plugin-transform-spread
Advanced tools
Comparing version 7.10.4 to 7.11.0
@@ -10,2 +10,4 @@ "use strict"; | ||
var _helperSkipTransparentExpressionWrappers = require("@babel/helper-skip-transparent-expression-wrappers"); | ||
var _core = require("@babel/core"); | ||
@@ -97,3 +99,3 @@ | ||
if (!hasSpread(args)) return; | ||
const calleePath = path.get("callee"); | ||
const calleePath = (0, _helperSkipTransparentExpressionWrappers.skipTransparentExprWrappers)(path.get("callee")); | ||
if (calleePath.isSuper()) return; | ||
@@ -118,3 +120,3 @@ let contextLiteral = scope.buildUndefinedNode(); | ||
const callee = node.callee; | ||
const callee = calleePath.node; | ||
@@ -130,8 +132,6 @@ if (calleePath.isMemberExpression()) { | ||
} | ||
_core.types.appendToMemberExpression(callee, _core.types.identifier("apply")); | ||
} else { | ||
node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("apply")); | ||
} | ||
node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("apply")); | ||
if (_core.types.isSuper(contextLiteral)) { | ||
@@ -138,0 +138,0 @@ contextLiteral = _core.types.thisExpression(); |
{ | ||
"name": "@babel/plugin-transform-spread", | ||
"version": "7.10.4", | ||
"version": "7.11.0", | ||
"description": "Compile ES2015 spread to ES5", | ||
@@ -19,3 +19,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.10.4" | ||
"@babel/helper-plugin-utils": "^7.10.4", | ||
"@babel/helper-skip-transparent-expression-wrappers": "^7.11.0" | ||
}, | ||
@@ -26,6 +27,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.10.4", | ||
"@babel/core": "^7.11.0", | ||
"@babel/helper-plugin-test-runner": "^7.10.4" | ||
}, | ||
"gitHead": "7fd40d86a0d03ff0e9c3ea16b29689945433d4df" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6538
0
3
131