Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-throw-expressions

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-proposal-throw-expressions - npm Package Compare versions

Comparing version 7.18.6 to 7.22.5

lib/index.js.map

10

lib/index.js

@@ -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

10

package.json
{
"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": {

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