@babel/plugin-proposal-object-rest-spread
Advanced tools
Comparing version 7.9.6 to 7.10.0
@@ -302,3 +302,3 @@ "use strict"; | ||
} = prop; | ||
ref = _core.types.memberExpression(ref, _core.types.cloneNode(node.key), node.computed); | ||
ref = _core.types.memberExpression(ref, _core.types.cloneNode(node.key), node.computed || _core.types.isLiteral(node.key)); | ||
}); | ||
@@ -450,2 +450,10 @@ const objectPatternPath = path.findParent(path => path.isObjectPattern()); | ||
if (loose) { | ||
if (hadProps) { | ||
exp.arguments.push(obj); | ||
} | ||
return; | ||
} | ||
exp = _core.types.callExpression(_core.types.cloneNode(helper), [exp, ...(hadProps ? [_core.types.objectExpression([]), obj] : [])]); | ||
@@ -452,0 +460,0 @@ } |
{ | ||
"name": "@babel/plugin-proposal-object-rest-spread", | ||
"version": "7.9.6", | ||
"version": "7.10.0", | ||
"description": "Compile object rest and spread to ES5", | ||
@@ -23,6 +23,6 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-object-rest-spread", | ||
"devDependencies": { | ||
"@babel/core": "^7.9.6", | ||
"@babel/core": "^7.10.0", | ||
"@babel/helper-plugin-test-runner": "^7.8.3" | ||
}, | ||
"gitHead": "9c2846bcacc75aa931ea9d556950c2113765d43d" | ||
"gitHead": "5da2440adff6f25579fb6e9a018062291c89416f" | ||
} |
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
18334
377