@babel/plugin-proposal-logical-assignment-operators
Advanced tools
Comparing version 7.10.1 to 7.10.3
@@ -62,8 +62,3 @@ "use strict"; | ||
const isRHSAnonymousFunction = _core.types.isFunction(right, { | ||
id: null | ||
}); | ||
const rightExpression = isRHSAnonymousFunction ? _core.types.sequenceExpression([_core.types.numericLiteral(0), right]) : right; | ||
path.replaceWith(_core.types.logicalExpression(operator.slice(0, -1), lhs, _core.types.assignmentExpression("=", left, rightExpression))); | ||
path.replaceWith(_core.types.logicalExpression(operator.slice(0, -1), lhs, _core.types.assignmentExpression("=", left, right))); | ||
} | ||
@@ -70,0 +65,0 @@ |
{ | ||
"name": "@babel/plugin-proposal-logical-assignment-operators", | ||
"version": "7.10.1", | ||
"version": "7.10.3", | ||
"description": "Transforms logical assignment operators into short-circuited assignments", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.10.1", | ||
"@babel/helper-plugin-utils": "^7.10.3", | ||
"@babel/plugin-syntax-logical-assignment-operators": "^7.10.1" | ||
@@ -27,8 +27,8 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.1", | ||
"@babel/helper-plugin-test-runner": "^7.10.1", | ||
"@babel/core": "^7.10.3", | ||
"@babel/helper-plugin-test-runner": "^7.10.3", | ||
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.10.1", | ||
"@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.0" | ||
}, | ||
"gitHead": "88f57a7ea659d25232bf62de1efceb5d6299b8cf" | ||
"gitHead": "2787ee2f967b6d8e1121fca00a8d578d75449a53" | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
4477
53
1