Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-transform-optional-chaining

Package Overview
Dependencies
Maintainers
6
Versions
13
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.0.0-beta.2 to 7.0.0-beta.3

27

lib/index.js
"use strict";
exports.__esModule = true;
exports.default = _default;
exports.default = function (_ref) {
var _babelPluginSyntaxOptionalChaining = _interopRequireDefault(require("babel-plugin-syntax-optional-chaining"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _default(_ref, options) {
var t = _ref.types;
var _options$loose = options.loose,
loose = _options$loose === void 0 ? false : _options$loose;
function optional(path, replacementPath, loose) {
if (loose === void 0) {
loose = false;
}
function optional(path, replacementPath) {
var scope = path.scope;

@@ -110,3 +113,3 @@ var optionals = [];

return {
inherits: _babelPluginSyntaxOptionalChaining2.default,
inherits: _babelPluginSyntaxOptionalChaining.default,
visitor: {

@@ -118,12 +121,6 @@ "MemberExpression|NewExpression|CallExpression": function MemberExpressionNewExpressionCallExpression(path) {

optional(path, findReplacementPath(path), this.opts.loose);
optional(path, findReplacementPath(path));
}
}
};
};
var _babelPluginSyntaxOptionalChaining = require("babel-plugin-syntax-optional-chaining");
var _babelPluginSyntaxOptionalChaining2 = _interopRequireDefault(_babelPluginSyntaxOptionalChaining);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
}
{
"name": "babel-plugin-transform-optional-chaining",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "Transform optional chaining operators into a series of nil checks",

@@ -9,3 +9,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-optional-chaining",

"dependencies": {
"babel-plugin-syntax-optional-chaining": "7.0.0-beta.2"
"babel-plugin-syntax-optional-chaining": "7.0.0-beta.3"
},

@@ -16,4 +16,4 @@ "keywords": [

"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-beta.2"
"babel-helper-plugin-test-runner": "7.0.0-beta.3"
}
}
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