@babel/plugin-transform-spread
Advanced tools
Comparing version 7.20.7 to 7.21.4-esm
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
21206
6
143
1
- Removed@ampproject/remapping@2.3.0(transitive)
- Removed@babel/compat-data@7.25.7(transitive)
- Removed@babel/core@7.25.7(transitive)
- Removed@babel/helper-compilation-targets@7.25.7(transitive)
- Removed@babel/helper-module-imports@7.25.7(transitive)
- Removed@babel/helper-module-transforms@7.25.7(transitive)
- Removed@babel/helper-simple-access@7.25.7(transitive)
- Removed@babel/helper-validator-option@7.25.7(transitive)
- Removed@babel/helpers@7.25.7(transitive)
- Removedbrowserslist@4.24.0(transitive)
- Removedcaniuse-lite@1.0.30001667(transitive)
- Removedconvert-source-map@2.0.0(transitive)
- Removedelectron-to-chromium@1.5.32(transitive)
- Removedescalade@3.2.0(transitive)
- Removedgensync@1.0.0-beta.2(transitive)
- Removedjson5@2.2.3(transitive)
- Removedlru-cache@5.1.1(transitive)
- Removednode-releases@2.0.18(transitive)
- Removedsemver@6.3.1(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)
- Removedyallist@3.1.1(transitive)
Updated@babel/helper-skip-transparent-expression-wrappers@^7.21.4-esm