@babel/plugin-transform-spread
Advanced tools
Comparing version 7.14.6 to 7.15.8
@@ -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) { |
{ | ||
"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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7609
141