@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.3.0 to 7.3.1
@@ -340,2 +340,3 @@ "use strict"; | ||
function push() { | ||
if (!props.length) return; | ||
args.push(_core().types.objectExpression(props)); | ||
@@ -345,2 +346,6 @@ props = []; | ||
if (_core().types.isSpreadElement(path.node.properties[0])) { | ||
args.push(_core().types.objectExpression([])); | ||
} | ||
for (const prop of path.node.properties) { | ||
@@ -355,6 +360,3 @@ if (_core().types.isSpreadElement(prop)) { | ||
if (props.length) { | ||
push(); | ||
} | ||
push(); | ||
let helper; | ||
@@ -361,0 +363,0 @@ |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.3.0", | ||
"version": "7.3.1", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -25,3 +25,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread", | ||
}, | ||
"gitHead": "f6ee26c3da4c903818fd61fd9e5e8e1970185f77" | ||
"gitHead": "f2af6c1170ebbea22bd29a2bae01efaec800dfe9" | ||
} |
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
14635
294