Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-spread

Package Overview
Dependencies
Maintainers
4
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.20.7 to 7.21.4-esm

lib/package.json

6

lib/index.js

@@ -70,3 +70,2 @@ "use strict";

let first = nodes[0];
if (nodes.length === 1 && first !== elements[0].argument) {

@@ -76,3 +75,2 @@ path.replaceWith(first);

}
if (!_core.types.isArrayExpression(first)) {

@@ -116,4 +114,3 @@ first = _core.types.arrayExpression([]);

if (temp) {
callee.object = _core.types.assignmentExpression("=", temp,
callee.object);
callee.object = _core.types.assignmentExpression("=", temp, callee.object);
contextLiteral = temp;

@@ -124,3 +121,2 @@ } else {

}
node.callee = _core.types.memberExpression(node.callee, _core.types.identifier("apply"));

@@ -127,0 +123,0 @@ if (_core.types.isSuper(contextLiteral)) {

{
"name": "@babel/plugin-transform-spread",
"version": "7.20.7",
"version": "7.21.4-esm",
"description": "Compile ES2015 spread to ES5",

@@ -19,11 +19,11 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.20.2",
"@babel/helper-skip-transparent-expression-wrappers": "^7.20.0"
"@babel/helper-plugin-utils": "^7.21.4-esm",
"@babel/helper-skip-transparent-expression-wrappers": "^7.21.4-esm"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
"@babel/core": "^7.0.0-0 || 7.21.4-esm"
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/helper-plugin-test-runner": "^7.18.6"
"@babel/core": "^7.21.4-esm",
"@babel/helper-plugin-test-runner": "^7.21.4-esm"
},

@@ -30,0 +30,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-spread",

Sorry, the diff of this file is not supported yet

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