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.14.6 to 7.15.8

10

lib/index.js

@@ -118,3 +118,5 @@ "use strict";

if (args.length === 1 && args[0].argument.name === "arguments") {
if (args.length === 1 && _core.types.isIdentifier(args[0].argument, {
name: "arguments"
})) {
nodes = [args[0].argument];

@@ -160,6 +162,6 @@ } else {

} = path;
let args = node.arguments;
if (!hasSpread(args)) return;
const nodes = build(args, scope, this);
if (!hasSpread(node.arguments)) return;
const nodes = build(node.arguments, scope, this);
const first = nodes.shift();
let args;

@@ -166,0 +168,0 @@ if (nodes.length) {

6

package.json
{
"name": "@babel/plugin-transform-spread",
"version": "7.14.6",
"version": "7.15.8",
"description": "Compile ES2015 spread to ES5",

@@ -20,3 +20,3 @@ "repository": {

"@babel/helper-plugin-utils": "^7.14.5",
"@babel/helper-skip-transparent-expression-wrappers": "^7.14.5"
"@babel/helper-skip-transparent-expression-wrappers": "^7.15.4"
},

@@ -27,3 +27,3 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "7.14.6",
"@babel/core": "7.15.8",
"@babel/helper-plugin-test-runner": "7.14.5"

@@ -30,0 +30,0 @@ },

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