Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-optional-chaining

Package Overview
Dependencies
55
Maintainers
6
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.7.4 to 7.7.5

4

lib/index.js

@@ -30,2 +30,3 @@ "use strict";

} = path;
let isDeleteOperation = false;
const optionals = [];

@@ -58,2 +59,3 @@ let optionalPath = path;

replacementPath = parentPath;
isDeleteOperation = true;
}

@@ -106,3 +108,3 @@

replacementPath.replaceWith(_core.types.conditionalExpression(loose ? _core.types.binaryExpression("==", _core.types.cloneNode(check), _core.types.nullLiteral()) : _core.types.logicalExpression("||", _core.types.binaryExpression("===", _core.types.cloneNode(check), _core.types.nullLiteral()), _core.types.binaryExpression("===", _core.types.cloneNode(ref), scope.buildUndefinedNode())), scope.buildUndefinedNode(), replacementPath.node));
replacementPath.replaceWith(_core.types.conditionalExpression(loose ? _core.types.binaryExpression("==", _core.types.cloneNode(check), _core.types.nullLiteral()) : _core.types.logicalExpression("||", _core.types.binaryExpression("===", _core.types.cloneNode(check), _core.types.nullLiteral()), _core.types.binaryExpression("===", _core.types.cloneNode(ref), scope.buildUndefinedNode())), isDeleteOperation ? _core.types.booleanLiteral(true) : scope.buildUndefinedNode(), replacementPath.node));
replacementPath = replacementPath.get("alternate");

@@ -109,0 +111,0 @@ }

{
"name": "@babel/plugin-proposal-optional-chaining",
"version": "7.7.4",
"version": "7.7.5",
"description": "Transform optional chaining operators into a series of nil checks",

@@ -22,7 +22,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-proposal-optional-chaining",

"devDependencies": {
"@babel/core": "^7.7.4",
"@babel/core": "^7.7.5",
"@babel/helper-plugin-test-runner": "^7.7.4",
"@babel/plugin-transform-block-scoping": "^7.7.4"
},
"gitHead": "75767d87cb147709b9bd9b99bf44daa6688874a9"
"gitHead": "d04508e510abc624b3e423ff334eff47f297502a"
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc