Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-optional-chaining

Package Overview
Dependencies
Maintainers
4
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-optional-chaining - npm Package Compare versions

Comparing version 7.22.11 to 7.22.12

3

lib/index.js

@@ -51,2 +51,3 @@ 'use strict';

const last = arr => arr[arr.length - 1];
function isSimpleMemberExpression(expression) {

@@ -175,3 +176,3 @@ expression = helperSkipTransparentExpressionWrappers.skipTransparentExprWrapperNodes(expression);

});
const isEvaluationValueIgnored = (core.types.isExpressionStatement(replacementPath.parent) || core.types.isSequenceExpression(replacementPath.parent)) && !replacementPath.isCompletionRecord();
const isEvaluationValueIgnored = core.types.isExpressionStatement(replacementPath.parent) && !replacementPath.isCompletionRecord() || core.types.isSequenceExpression(replacementPath.parent) && last(replacementPath.parent.expressions) !== replacementPath.node;
const tpl = ifNullishFalse ? noDocumentAll ? NULLISH_CHECK_NO_DDA_NEG : NULLISH_CHECK_NEG : noDocumentAll ? NULLISH_CHECK_NO_DDA : NULLISH_CHECK;

@@ -178,0 +179,0 @@ const logicalOp = ifNullishFalse ? "&&" : "||";

{
"name": "@babel/plugin-transform-optional-chaining",
"version": "7.22.11",
"version": "7.22.12",
"description": "Transform optional chaining operators into a series of nil checks",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc