@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.0.0-rc.2 to 7.0.0-rc.3
@@ -132,7 +132,9 @@ "use strict"; | ||
Object.keys(bindings).forEach(bindingName => { | ||
if (path.scope.getBinding(bindingName).references > 1) { | ||
const bindingParentPath = bindings[bindingName].parentPath; | ||
if (path.scope.getBinding(bindingName).references > 1 || !bindingParentPath.isObjectProperty()) { | ||
return; | ||
} | ||
bindings[bindingName].parentPath.remove(); | ||
bindingParentPath.remove(); | ||
}); | ||
@@ -139,0 +141,0 @@ } |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.0.0-rc.2", | ||
"version": "7.0.0-rc.3", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.0.0-rc.2", | ||
"@babel/plugin-syntax-object-rest-spread": "7.0.0-rc.2" | ||
"@babel/helper-plugin-utils": "7.0.0-rc.3", | ||
"@babel/plugin-syntax-object-rest-spread": "7.0.0-rc.3" | ||
}, | ||
@@ -20,5 +20,5 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-rc.2", | ||
"@babel/helper-plugin-test-runner": "7.0.0-rc.2" | ||
"@babel/core": "7.0.0-rc.3", | ||
"@babel/helper-plugin-test-runner": "7.0.0-rc.3" | ||
} | ||
} |
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
14502
4
293
+ Added@babel/helper-plugin-utils@7.0.0-rc.3(transitive)
+ Added@babel/plugin-syntax-object-rest-spread@7.0.0-rc.3(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-rc.2(transitive)
- Removed@babel/plugin-syntax-object-rest-spread@7.0.0-rc.2(transitive)