@babel/helper-optimise-call-expression
Advanced tools
Comparing version 7.8.3 to 7.10.0
@@ -14,3 +14,3 @@ "use strict"; | ||
function _default(callee, thisNode, args) { | ||
function _default(callee, thisNode, args, optional) { | ||
if (args.length === 1 && t.isSpreadElement(args[0]) && t.isIdentifier(args[0].argument, { | ||
@@ -21,4 +21,8 @@ name: "arguments" | ||
} else { | ||
if (optional) { | ||
return t.optionalCallExpression(t.optionalMemberExpression(callee, t.identifier("call"), false, true), [thisNode, ...args], false); | ||
} | ||
return t.callExpression(t.memberExpression(callee, t.identifier("call")), [thisNode, ...args]); | ||
} | ||
} |
{ | ||
"name": "@babel/helper-optimise-call-expression", | ||
"version": "7.8.3", | ||
"version": "7.10.0", | ||
"description": "Helper function to optimise call expression", | ||
@@ -12,5 +12,5 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-optimise-call-expression", | ||
"dependencies": { | ||
"@babel/types": "^7.8.3" | ||
"@babel/types": "^7.10.0" | ||
}, | ||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017" | ||
"gitHead": "5da2440adff6f25579fb6e9a018062291c89416f" | ||
} |
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
3654
21
Updated@babel/types@^7.10.0