Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-logical-assignment-operators

Package Overview
Dependencies
55
Maintainers
5
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.8.3 to 7.10.0

7

lib/index.js

@@ -62,3 +62,8 @@ "use strict";

path.replaceWith(_core.types.logicalExpression(operator.slice(0, -1), lhs, _core.types.assignmentExpression("=", left, right)));
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)));
}

@@ -65,0 +70,0 @@

6

package.json
{
"name": "@babel/plugin-proposal-logical-assignment-operators",
"version": "7.8.3",
"version": "7.10.0",
"description": "Transforms logical assignment operators into short-circuited assignments",

@@ -22,3 +22,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-logical-assignment-operators",

"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/core": "^7.10.0",
"@babel/helper-plugin-test-runner": "^7.8.3",

@@ -28,3 +28,3 @@ "@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",

},
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017"
"gitHead": "5da2440adff6f25579fb6e9a018062291c89416f"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc