@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.14.5 to 7.14.7
@@ -104,2 +104,3 @@ "use strict"; | ||
let allLiteral = true; | ||
let hasTemplateLiteral = false; | ||
@@ -111,2 +112,3 @@ for (const prop of props) { | ||
keys.push(_core.types.cloneNode(prop.key)); | ||
hasTemplateLiteral = true; | ||
} else if (_core.types.isLiteral(prop.key)) { | ||
@@ -122,3 +124,4 @@ keys.push(_core.types.stringLiteral(String(prop.key.value))); | ||
keys, | ||
allLiteral | ||
allLiteral, | ||
hasTemplateLiteral | ||
}; | ||
@@ -171,3 +174,4 @@ } | ||
keys, | ||
allLiteral | ||
allLiteral, | ||
hasTemplateLiteral | ||
} = extractNormalizedKeys(path); | ||
@@ -186,3 +190,3 @@ | ||
if (!_core.types.isProgram(path.scope.block)) { | ||
if (!hasTemplateLiteral && !_core.types.isProgram(path.scope.block)) { | ||
const program = path.findParent(path => path.isProgram()); | ||
@@ -189,0 +193,0 @@ const id = path.scope.generateUidIdentifier("excluded"); |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.14.5", | ||
"version": "7.14.7", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/compat-data": "^7.14.5", | ||
"@babel/compat-data": "^7.14.7", | ||
"@babel/helper-compilation-targets": "^7.14.5", | ||
@@ -31,3 +31,3 @@ "@babel/helper-plugin-utils": "^7.14.5", | ||
"devDependencies": { | ||
"@babel/core": "7.14.5", | ||
"@babel/core": "7.14.6", | ||
"@babel/helper-plugin-test-runner": "7.14.5" | ||
@@ -34,0 +34,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
19930
401
Updated@babel/compat-data@^7.14.7