Socket
Socket
Sign inDemoInstall

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

Package Overview
Dependencies
55
Maintainers
6
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.10.1 to 7.10.3

7

lib/index.js

@@ -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 @@

10

package.json
{
"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"
}
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