@babel/helper-optimise-call-expression
Advanced tools
Comparing version 7.18.6 to 7.21.4-esm
@@ -7,5 +7,3 @@ "use strict"; | ||
exports.default = optimiseCallExpression; | ||
var _t = require("@babel/types"); | ||
const { | ||
@@ -20,3 +18,2 @@ callExpression, | ||
} = _t; | ||
function optimiseCallExpression(callee, thisNode, args, optional) { | ||
@@ -29,3 +26,2 @@ if (args.length === 1 && isSpreadElement(args[0]) && isIdentifier(args[0].argument, { | ||
} | ||
return callExpression(memberExpression(callee, identifier("apply")), [thisNode, args[0].argument]); | ||
@@ -36,5 +32,6 @@ } else { | ||
} | ||
return callExpression(memberExpression(callee, identifier("call")), [thisNode, ...args]); | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/helper-optimise-call-expression", | ||
"version": "7.18.6", | ||
"version": "7.21.4-esm", | ||
"description": "Helper function to optimise call expression", | ||
@@ -17,7 +17,7 @@ "repository": { | ||
"dependencies": { | ||
"@babel/types": "^7.18.6" | ||
"@babel/types": "^7.21.4-esm" | ||
}, | ||
"devDependencies": { | ||
"@babel/generator": "^7.18.6", | ||
"@babel/parser": "^7.18.6" | ||
"@babel/generator": "^7.21.4-esm", | ||
"@babel/parser": "^7.21.4-esm" | ||
}, | ||
@@ -24,0 +24,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
6695
6
31
1
Updated@babel/types@^7.21.4-esm