summaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-transform-optional-catch-binding/lib
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:10:59 +0800
committerlittleblack111 <littleblack11111@gmail.com>2026-05-18 23:41:44 +0800
commitfc87c009806dcc98867f6b58efe29b042aa01dee (patch)
tree8f59b3f4a5b66e9dfef2d40c8d318e258a521228 /node_modules/@babel/plugin-transform-optional-catch-binding/lib
parent3336b2356ee6152d9c6ae59bd9b87ccbc0958407 (diff)
node: updatemain
Diffstat (limited to 'node_modules/@babel/plugin-transform-optional-catch-binding/lib')
-rw-r--r--node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js25
-rw-r--r--node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map1
2 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js b/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js
deleted file mode 100644
index 5ede8b01..00000000
--- a/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports.default = void 0;
-var _helperPluginUtils = require("@babel/helper-plugin-utils");
-var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
- api.assertVersion("^7.0.0-0 || >8.0.0-alpha <8.0.0-beta");
- return {
- name: "transform-optional-catch-binding",
- manipulateOptions: (_, parser) => parser.plugins.push("optionalCatchBinding"),
- visitor: {
- CatchClause(path) {
- if (!path.node.param) {
- const uid = path.scope.generateUidIdentifier("unused");
- const paramPath = path.get("param");
- paramPath.replaceWith(uid);
- }
- }
- }
- };
-});
-
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map b/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map
deleted file mode 100644
index a70550d7..00000000
--- a/node_modules/@babel/plugin-transform-optional-catch-binding/lib/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"names":["_helperPluginUtils","require","_default","exports","default","declare","api","assertVersion","name","manipulateOptions","_","parser","plugins","push","visitor","CatchClause","path","node","param","uid","scope","generateUidIdentifier","paramPath","get","replaceWith"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\n\nexport default declare(api => {\n api.assertVersion(REQUIRED_VERSION(7));\n\n return {\n name: \"transform-optional-catch-binding\",\n manipulateOptions: process.env.BABEL_8_BREAKING\n ? undefined\n : (_, parser) => parser.plugins.push(\"optionalCatchBinding\"),\n\n visitor: {\n CatchClause(path) {\n if (!path.node.param) {\n const uid = path.scope.generateUidIdentifier(\"unused\");\n const paramPath = path.get(\"param\");\n paramPath.replaceWith(uid);\n }\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AAAqD,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEtC,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,uCAAoB,CAAC;EAEtC,OAAO;IACLC,IAAI,EAAE,kCAAkC;IACxCC,iBAAiB,EAEbA,CAACC,CAAC,EAAEC,MAAM,KAAKA,MAAM,CAACC,OAAO,CAACC,IAAI,CAAC,sBAAsB,CAAC;IAE9DC,OAAO,EAAE;MACPC,WAAWA,CAACC,IAAI,EAAE;QAChB,IAAI,CAACA,IAAI,CAACC,IAAI,CAACC,KAAK,EAAE;UACpB,MAAMC,GAAG,GAAGH,IAAI,CAACI,KAAK,CAACC,qBAAqB,CAAC,QAAQ,CAAC;UACtD,MAAMC,SAAS,GAAGN,IAAI,CAACO,GAAG,CAAC,OAAO,CAAC;UACnCD,SAAS,CAACE,WAAW,CAACL,GAAG,CAAC;QAC5B;MACF;IACF;EACF,CAAC;AACH,CAAC,CAAC","ignoreList":[]} \ No newline at end of file