Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-optional-chaining

Package Overview
Dependencies
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 7.18.6 to 7.18.9

15

lib/index.js

@@ -174,10 +174,15 @@ 'use strict';

} = chain;
let context = scope.maybeGenerateMemoised(object);
let context;
if (context) {
chain.object = core.types.assignmentExpression("=", context, object);
} else if (core.types.isSuper(object)) {
if (core.types.isSuper(object)) {
context = core.types.thisExpression();
} else {
context = object;
const memoized = scope.maybeGenerateMemoised(object);
if (memoized) {
context = memoized;
chain.object = core.types.assignmentExpression("=", memoized, object);
} else {
context = object;
}
}

@@ -184,0 +189,0 @@

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

@@ -20,4 +20,4 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.18.6",
"@babel/helper-skip-transparent-expression-wrappers": "^7.18.6",
"@babel/helper-plugin-utils": "^7.18.9",
"@babel/helper-skip-transparent-expression-wrappers": "^7.18.9",
"@babel/plugin-syntax-optional-chaining": "^7.8.3"

@@ -29,6 +29,6 @@ },

"devDependencies": {
"@babel/core": "^7.18.6",
"@babel/core": "^7.18.9",
"@babel/helper-plugin-test-runner": "^7.18.6",
"@babel/plugin-transform-block-scoping": "^7.18.6",
"@babel/traverse": "^7.18.6"
"@babel/plugin-transform-block-scoping": "^7.18.9",
"@babel/traverse": "^7.18.9"
},

@@ -35,0 +35,0 @@ "engines": {

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