Socket
Socket
Sign inDemoInstall

@babel/helper-optimise-call-expression

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-optimise-call-expression - npm Package Compare versions

Comparing version 7.18.6 to 7.21.4-esm

lib/index.js.map

9

lib/index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc