@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.4.4 to 7.5.0
@@ -357,3 +357,2 @@ "use strict"; | ||
function push() { | ||
if (!props.length) return; | ||
args.push(_core().types.objectExpression(props)); | ||
@@ -363,6 +362,2 @@ props = []; | ||
if (_core().types.isSpreadElement(path.node.properties[0])) { | ||
args.push(_core().types.objectExpression([])); | ||
} | ||
for (const prop of path.node.properties) { | ||
@@ -377,3 +372,6 @@ if (_core().types.isSpreadElement(prop)) { | ||
push(); | ||
if (props.length) { | ||
push(); | ||
} | ||
let helper; | ||
@@ -384,3 +382,3 @@ | ||
} else { | ||
helper = file.addHelper("objectSpread"); | ||
helper = file.addHelper("objectSpread2"); | ||
} | ||
@@ -387,0 +385,0 @@ |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.4.4", | ||
"version": "7.5.0", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -22,6 +22,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread", | ||
"devDependencies": { | ||
"@babel/core": "^7.4.4", | ||
"@babel/core": "^7.5.0", | ||
"@babel/helper-plugin-test-runner": "^7.0.0" | ||
}, | ||
"gitHead": "2c88694388831b1e5b88e4bbed6781eb2be1edba" | ||
"gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4" | ||
} |
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
15126
303