From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../plugin-syntax-unicode-sets-regex/LICENSE | 22 ------- .../plugin-syntax-unicode-sets-regex/README.md | 19 ------ .../plugin-syntax-unicode-sets-regex/lib/index.js | 25 ------- .../@babel/helper-plugin-utils/LICENSE | 22 ------- .../@babel/helper-plugin-utils/README.md | 19 ------ .../@babel/helper-plugin-utils/lib/index.js | 77 ---------------------- .../@babel/helper-plugin-utils/lib/index.js.map | 1 - .../@babel/helper-plugin-utils/package.json | 24 ------- .../@babel/helper-plugin-utils/tsconfig.json | 39 ----------- .../helper-plugin-utils/tsconfig.tsbuildinfo | 1 - .../plugin-syntax-unicode-sets-regex/package.json | 49 -------------- 11 files changed, 298 deletions(-) delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/lib/index.js delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/LICENSE delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/README.md delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js.map delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/package.json delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/tsconfig.json delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/tsconfig.tsbuildinfo delete mode 100644 node_modules/@babel/plugin-syntax-unicode-sets-regex/package.json (limited to 'node_modules/@babel/plugin-syntax-unicode-sets-regex') diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE b/node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md b/node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md deleted file mode 100644 index 6d4bae61..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/plugin-syntax-unicode-sets-regex - -> Parse regular expressions' unicodeSets (v) flag. - -See our website [@babel/plugin-syntax-unicode-sets-regex](https://babeljs.io/docs/en/babel-plugin-syntax-unicode-sets-regex) for more information. - -## Install - -Using npm: - -```sh -npm install --save-dev @babel/plugin-syntax-unicode-sets-regex -``` - -or using yarn: - -```sh -yarn add @babel/plugin-syntax-unicode-sets-regex --dev -``` diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/lib/index.js b/node_modules/@babel/plugin-syntax-unicode-sets-regex/lib/index.js deleted file mode 100644 index a029235a..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/lib/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.default = void 0; - -var _helperCreateRegexpFeaturesPlugin = require("@babel/helper-create-regexp-features-plugin"); - -var _helperPluginUtils = require("@babel/helper-plugin-utils"); - -var _default = (0, _helperPluginUtils.declare)(api => { - api.assertVersion(7); - return (0, _helperCreateRegexpFeaturesPlugin.createRegExpFeaturePlugin)({ - name: "syntax-unicode-sets-regex", - feature: "unicodeSetsFlag_syntax", - - manipulateOptions(opts, parserOpts) { - parserOpts.plugins.push("regexpUnicodeSets"); - } - - }); -}); - -exports.default = _default; \ No newline at end of file diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/LICENSE b/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/LICENSE deleted file mode 100644 index f31575ec..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/README.md b/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/README.md deleted file mode 100644 index a99070f3..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/helper-plugin-utils - -> General utilities for plugins to use - -See our website [@babel/helper-plugin-utils](https://babeljs.io/docs/babel-helper-plugin-utils) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/helper-plugin-utils -``` - -or using yarn: - -```sh -yarn add @babel/helper-plugin-utils -``` diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js b/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js deleted file mode 100644 index b8b73662..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.declare = declare; -exports.declarePreset = void 0; -const apiPolyfills = { - assertVersion: api => range => { - throwVersionError(range, api.version); - } -}; -{ - Object.assign(apiPolyfills, { - targets: () => () => { - return {}; - }, - assumption: () => () => { - return undefined; - } - }); -} -function declare(builder) { - return (api, options, dirname) => { - var _clonedApi2; - let clonedApi; - for (const name of Object.keys(apiPolyfills)) { - var _clonedApi; - if (api[name]) continue; - (_clonedApi = clonedApi) != null ? _clonedApi : clonedApi = copyApiObject(api); - clonedApi[name] = apiPolyfills[name](clonedApi); - } - return builder((_clonedApi2 = clonedApi) != null ? _clonedApi2 : api, options || {}, dirname); - }; -} -const declarePreset = exports.declarePreset = declare; -function copyApiObject(api) { - let proto = null; - if (typeof api.version === "string" && /^7\./.test(api.version)) { - proto = Object.getPrototypeOf(api); - if (proto && (!hasOwnProperty.call(proto, "version") || !hasOwnProperty.call(proto, "transform") || !hasOwnProperty.call(proto, "template") || !hasOwnProperty.call(proto, "types"))) { - proto = null; - } - } - return Object.assign({}, proto, api); -} -function throwVersionError(range, version) { - if (typeof range === "number") { - if (!Number.isInteger(range)) { - throw new Error("Expected string or integer value."); - } - range = `^${range}.0.0-0`; - } - if (typeof range !== "string") { - throw new Error("Expected string or integer value."); - } - const limit = Error.stackTraceLimit; - if (typeof limit === "number" && limit < 25) { - Error.stackTraceLimit = 25; - } - let err; - if (version.slice(0, 2) === "7.") { - err = new Error(`Requires Babel "^7.0.0-beta.41", but was loaded with "${version}". ` + `You'll need to update your @babel/core version.`); - } else { - err = new Error(`Requires Babel "${range}", but was loaded with "${version}". ` + `If you are sure you have a compatible version of @babel/core, ` + `it is likely that something in your build process is loading the ` + `wrong version. Inspect the stack trace of this error to look for ` + `the first entry that doesn't mention "@babel/core" or "babel-core" ` + `to see what is calling Babel.`); - } - if (typeof limit === "number") { - Error.stackTraceLimit = limit; - } - throw Object.assign(err, { - code: "BABEL_VERSION_UNSUPPORTED", - version, - range - }); -} - -//# sourceMappingURL=index.js.map diff --git a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js.map b/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js.map deleted file mode 100644 index 9eb14a4c..00000000 --- a/node_modules/@babel/plugin-syntax-unicode-sets-regex/node_modules/@babel/helper-plugin-utils/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"names":["apiPolyfills","assertVersion","api","range","throwVersionError","version","Object","assign","targets","assumption","undefined","declare","builder","options","dirname","_clonedApi2","clonedApi","name","keys","_clonedApi","copyApiObject","declarePreset","exports","proto","test","getPrototypeOf","hasOwnProperty","call","Number","isInteger","Error","limit","stackTraceLimit","err","slice","code"],"sources":["../src/index.ts"],"sourcesContent":["import type {\n PluginAPI,\n PluginObject,\n PluginPass,\n PresetAPI,\n PresetObject,\n} from \"@babel/core\";\n\ntype APIPolyfillFactory = (\n api: PluginAPI,\n) => PluginAPI[T];\n\ntype APIPolyfills = {\n assertVersion: APIPolyfillFactory<\"assertVersion\">;\n};\n\nconst apiPolyfills: APIPolyfills = {\n // Not supported by Babel 7 and early versions of Babel 7 beta.\n // It's important that this is polyfilled for older Babel versions\n // since it's needed to report the version mismatch.\n assertVersion: (api: PluginAPI) => (range: number | string) => {\n throwVersionError(range, api.version);\n },\n};\nif (!process.env.BABEL_8_BREAKING) {\n Object.assign(apiPolyfills, {\n // This is supported starting from Babel 7.13\n targets: () => () => {\n return {};\n },\n // This is supported starting from Babel 7.13\n assumption: () => () => {\n return undefined;\n },\n });\n}\n\nexport function declare(\n builder: (\n api: PluginAPI,\n options: Option,\n dirname: string,\n ) => PluginObject,\n): (\n api: PluginAPI,\n options: Option,\n dirname: string,\n) => PluginObject {\n return (api, options: Option, dirname: string) => {\n let clonedApi: PluginAPI;\n\n for (const name of Object.keys(\n apiPolyfills,\n ) as (keyof typeof apiPolyfills)[]) {\n if (api[name]) continue;\n\n clonedApi ??= copyApiObject(api);\n clonedApi[name] = apiPolyfills[name](clonedApi);\n }\n\n // @ts-expect-error options || {} may not be assigned to Options\n return builder(clonedApi ?? api, options || {}, dirname);\n };\n}\n\nexport const declarePreset = declare as