Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-spread

Package Overview
Dependencies
Maintainers
6
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-spread - npm Package Compare versions

Comparing version 7.10.4 to 7.11.0

12

lib/index.js

@@ -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"
}
}
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