@babel/plugin-proposal-throw-expressions
Advanced tools
Comparing version 7.18.6 to 7.22.5
@@ -7,9 +7,5 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _pluginSyntaxThrowExpressions = require("@babel/plugin-syntax-throw-expressions"); | ||
var _core = require("@babel/core"); | ||
var _default = (0, _helperPluginUtils.declare)(api => { | ||
@@ -27,12 +23,10 @@ api.assertVersion(7); | ||
if (operator !== "throw") return; | ||
const arrow = _core.types.functionExpression(null, [_core.types.identifier("e")], _core.types.blockStatement([_core.types.throwStatement(_core.types.identifier("e"))])); | ||
path.replaceWith(_core.types.callExpression(arrow, [argument])); | ||
} | ||
} | ||
}; | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-proposal-throw-expressions", | ||
"version": "7.18.6", | ||
"version": "7.22.5", | ||
"description": "Wraps Throw Expressions in an IIFE", | ||
@@ -20,4 +20,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/plugin-syntax-throw-expressions": "^7.18.6" | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/plugin-syntax-throw-expressions": "^7.22.5" | ||
}, | ||
@@ -28,4 +28,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/helper-plugin-test-runner": "^7.18.6" | ||
"@babel/core": "^7.22.5", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
}, | ||
@@ -32,0 +32,0 @@ "engines": { |
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
5363
5
28