Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-optional-chaining

Package Overview
Dependencies
Maintainers
4
Versions
29
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 8.0.0-alpha.11 to 8.0.0-alpha.12

2

lib/index.d.ts

@@ -14,4 +14,4 @@ import * as _babel_core from '@babel/core';

}
declare const _default: (api: _babel_core.PluginAPI, options: Options, dirname: string) => _babel_core.PluginObject<_babel_core.PluginPass<{}>>;
declare const _default: (api: _babel_core.PluginAPI, options: Options, dirname: string) => _babel_core.PluginObject<object & _babel_core.PluginPass>;
export { type Options, _default as default, transform, transformOptionalChain };

@@ -130,3 +130,7 @@ import { declare } from '@babel/helper-plugin-utils';

check = types.assignmentExpression("=", types.cloneNode(tmpVar), chainWithTypes);
isCall ? node.callee = ref : node.object = ref;
if (isCall) {
node.callee = ref;
} else {
node.object = ref;
}
}

@@ -212,3 +216,3 @@ if (isCall && types.isMemberExpression(chain)) {

var index = declare((api, options) => {
api.assertVersion("8.0.0-alpha.11");
api.assertVersion("8.0.0-alpha.12");
const {

@@ -215,0 +219,0 @@ loose = false

{
"name": "@babel/plugin-transform-optional-chaining",
"version": "8.0.0-alpha.11",
"version": "8.0.0-alpha.12",
"description": "Transform optional chaining operators into a series of nil checks",

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

"dependencies": {
"@babel/helper-plugin-utils": "^8.0.0-alpha.11",
"@babel/helper-skip-transparent-expression-wrappers": "^8.0.0-alpha.11"
"@babel/helper-plugin-utils": "^8.0.0-alpha.12",
"@babel/helper-skip-transparent-expression-wrappers": "^8.0.0-alpha.12"
},
"peerDependencies": {
"@babel/core": "^8.0.0-alpha.11"
"@babel/core": "^8.0.0-alpha.12"
},
"devDependencies": {
"@babel/core": "^8.0.0-alpha.11",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.11",
"@babel/plugin-transform-block-scoping": "^8.0.0-alpha.11",
"@babel/traverse": "^8.0.0-alpha.11"
"@babel/core": "^8.0.0-alpha.12",
"@babel/helper-plugin-test-runner": "^8.0.0-alpha.12",
"@babel/plugin-transform-block-scoping": "^8.0.0-alpha.12",
"@babel/traverse": "^8.0.0-alpha.12"
},

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

Sorry, the diff of this file is not supported yet

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