babel-plugin-transform-optional-chaining
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
"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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6003
98
+ Addedbabel-plugin-syntax-optional-chaining@7.0.0-beta.3(transitive)
- Removedbabel-plugin-syntax-optional-chaining@7.0.0-beta.2(transitive)