@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.14.7 to 7.15.6
@@ -20,2 +20,4 @@ "use strict"; | ||
var _shouldStoreRHSInTemporaryVariable = require("./shouldStoreRHSInTemporaryVariable"); | ||
const ZERO_REFS = (() => { | ||
@@ -308,3 +310,3 @@ const node = _core.types.identifier("a"); | ||
if (originalPath.node.id.properties.length > 1 && !_core.types.isIdentifier(originalPath.node.init)) { | ||
if ((0, _shouldStoreRHSInTemporaryVariable.default)(originalPath.node.id) && !_core.types.isIdentifier(originalPath.node.init)) { | ||
const initRef = path.scope.generateUidIdentifierBasedOnNode(originalPath.node.init, "ref"); | ||
@@ -311,0 +313,0 @@ originalPath.insertBefore(_core.types.variableDeclarator(initRef, originalPath.node.init)); |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.14.7", | ||
"version": "7.15.6", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -20,7 +20,7 @@ "repository": { | ||
"dependencies": { | ||
"@babel/compat-data": "^7.14.7", | ||
"@babel/helper-compilation-targets": "^7.14.5", | ||
"@babel/compat-data": "^7.15.0", | ||
"@babel/helper-compilation-targets": "^7.15.4", | ||
"@babel/helper-plugin-utils": "^7.14.5", | ||
"@babel/plugin-syntax-object-rest-spread": "^7.8.3", | ||
"@babel/plugin-transform-parameters": "^7.14.5" | ||
"@babel/plugin-transform-parameters": "^7.15.4" | ||
}, | ||
@@ -31,4 +31,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.14.6", | ||
"@babel/helper-plugin-test-runner": "7.14.5" | ||
"@babel/core": "7.15.5", | ||
"@babel/helper-plugin-test-runner": "7.14.5", | ||
"@babel/parser": "7.15.6" | ||
}, | ||
@@ -35,0 +36,0 @@ "engines": { |
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
21178
5
424
3
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/compat-data@7.25.4(transitive)
+ Added@babel/core@7.25.2(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-compilation-targets@7.25.2(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-module-transforms@7.25.2(transitive)
+ Added@babel/helper-plugin-utils@7.24.8(transitive)
+ Added@babel/helper-simple-access@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/helper-validator-option@7.24.8(transitive)
+ Added@babel/helpers@7.25.6(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/plugin-transform-parameters@7.24.7(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Addedcaniuse-lite@1.0.30001664(transitive)
+ Addedelectron-to-chromium@1.5.29(transitive)
+ Addedjsesc@2.5.2(transitive)
- Removed@babel/code-frame@7.25.7(transitive)
- Removed@babel/compat-data@7.25.7(transitive)
- Removed@babel/core@7.25.7(transitive)
- Removed@babel/generator@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-plugin-utils@7.25.7(transitive)
- Removed@babel/helper-simple-access@7.25.7(transitive)
- Removed@babel/helper-string-parser@7.25.7(transitive)
- Removed@babel/helper-validator-identifier@7.25.7(transitive)
- Removed@babel/helper-validator-option@7.25.7(transitive)
- Removed@babel/helpers@7.25.7(transitive)
- Removed@babel/highlight@7.25.7(transitive)
- Removed@babel/parser@7.25.7(transitive)
- Removed@babel/plugin-transform-parameters@7.25.7(transitive)
- Removed@babel/template@7.25.7(transitive)
- Removed@babel/traverse@7.25.7(transitive)
- Removed@babel/types@7.25.7(transitive)
- Removedcaniuse-lite@1.0.30001667(transitive)
- Removedelectron-to-chromium@1.5.32(transitive)
- Removedjsesc@3.0.2(transitive)
Updated@babel/compat-data@^7.15.0