Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/helper-optimise-call-expression

Package Overview
Dependencies
Maintainers
5
Versions
74
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.8.3 to 7.10.0

6

lib/index.js

@@ -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]);
}
}

6

package.json
{
"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"
}
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