From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../babel-plugin-polyfill-regenerator/LICENSE | 22 ---------- .../babel-plugin-polyfill-regenerator/README.md | 28 ------------- .../esm/index.mjs | 46 --------------------- .../esm/index.mjs.map | 1 - .../babel-plugin-polyfill-regenerator/lib/index.js | 48 ---------------------- .../babel-plugin-polyfill-regenerator/package.json | 40 ------------------ 6 files changed, 185 deletions(-) delete mode 100644 node_modules/babel-plugin-polyfill-regenerator/LICENSE delete mode 100644 node_modules/babel-plugin-polyfill-regenerator/README.md delete mode 100644 node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs delete mode 100644 node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs.map delete mode 100644 node_modules/babel-plugin-polyfill-regenerator/lib/index.js delete mode 100644 node_modules/babel-plugin-polyfill-regenerator/package.json (limited to 'node_modules/babel-plugin-polyfill-regenerator') diff --git a/node_modules/babel-plugin-polyfill-regenerator/LICENSE b/node_modules/babel-plugin-polyfill-regenerator/LICENSE deleted file mode 100644 index b74971fe..00000000 --- a/node_modules/babel-plugin-polyfill-regenerator/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Nicolò Ribaudo 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-polyfill-regenerator/README.md b/node_modules/babel-plugin-polyfill-regenerator/README.md deleted file mode 100644 index e40b692e..00000000 --- a/node_modules/babel-plugin-polyfill-regenerator/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# babel-plugin-polyfill-regenerator - -## Install - -Using npm: - -```sh -npm install --save-dev babel-plugin-polyfill-regenerator -``` - -or using yarn: - -```sh -yarn add babel-plugin-polyfill-regenerator --dev -``` - -## Usage - -Add this plugin to your Babel configuration: - -```json -{ - "plugins": [["polyfill-regenerator", { "method": "usage-global" }]] -} -``` - -This package supports the `usage-pure`, `usage-global`, and `entry-global` methods. -When `entry-global` is used, it replaces imports to `regenerator-runtime`. diff --git a/node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs b/node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs deleted file mode 100644 index b2f60bc2..00000000 --- a/node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs +++ /dev/null @@ -1,46 +0,0 @@ -import defineProvider from '@babel/helper-define-polyfill-provider'; - -const runtimeCompat = "#__secret_key__@babel/runtime__compatibility"; -var index = defineProvider(({ - debug, - targets, - babel -}, options) => { - if (!shallowEqual(targets, babel.targets())) { - throw new Error("This plugin does not use the targets option. Only preset-env's targets" + " or top-level targets need to be configured for this plugin to work." + " See https://github.com/babel/babel-polyfills/issues/36 for more" + " details."); - } - const { - [runtimeCompat]: { - moduleName = null, - useBabelRuntime = false - } = {} - } = options; - return { - name: "regenerator", - polyfills: ["regenerator-runtime"], - usageGlobal(meta, utils) { - if (isRegenerator(meta)) { - debug("regenerator-runtime"); - utils.injectGlobalImport("regenerator-runtime/runtime.js"); - } - }, - usagePure(meta, utils, path) { - if (isRegenerator(meta)) { - let pureName = "regenerator-runtime"; - if (useBabelRuntime) { - var _ref; - const runtimeName = (_ref = moduleName != null ? moduleName : path.hub.file.get("runtimeHelpersModuleName")) != null ? _ref : "@babel/runtime"; - pureName = `${runtimeName}/regenerator`; - } - path.replaceWith(utils.injectDefaultImport(pureName, "regenerator-runtime")); - } - } - }; -}); -const isRegenerator = meta => meta.kind === "global" && meta.name === "regeneratorRuntime"; -function shallowEqual(obj1, obj2) { - return JSON.stringify(obj1) === JSON.stringify(obj2); -} - -export default index; -//# sourceMappingURL=index.mjs.map diff --git a/node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs.map b/node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs.map deleted file mode 100644 index 4e90add7..00000000 --- a/node_modules/babel-plugin-polyfill-regenerator/esm/index.mjs.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import defineProvider from \"@babel/helper-define-polyfill-provider\";\nimport type { PluginPass } from \"@babel/core\";\n\nconst runtimeCompat = \"#__secret_key__@babel/runtime__compatibility\";\n\ntype Options = {\n \"#__secret_key__@babel/runtime__compatibility\": void | {\n useBabelRuntime: boolean;\n moduleName: string;\n };\n};\n\nexport default defineProvider(({ debug, targets, babel }, options) => {\n if (!shallowEqual(targets, babel.targets())) {\n throw new Error(\n \"This plugin does not use the targets option. Only preset-env's targets\" +\n \" or top-level targets need to be configured for this plugin to work.\" +\n \" See https://github.com/babel/babel-polyfills/issues/36 for more\" +\n \" details.\",\n );\n }\n\n const {\n [runtimeCompat]: { moduleName = null, useBabelRuntime = false } = {},\n } = options;\n\n return {\n name: \"regenerator\",\n\n polyfills: [\"regenerator-runtime\"],\n\n usageGlobal(meta, utils): undefined {\n if (isRegenerator(meta)) {\n debug(\"regenerator-runtime\");\n utils.injectGlobalImport(\"regenerator-runtime/runtime.js\");\n }\n },\n usagePure(meta, utils, path) {\n if (isRegenerator(meta)) {\n let pureName = \"regenerator-runtime\";\n if (useBabelRuntime) {\n const runtimeName =\n moduleName ??\n ((path.hub as any).file as PluginPass).get(\n \"runtimeHelpersModuleName\",\n ) ??\n \"@babel/runtime\";\n pureName = `${runtimeName}/regenerator`;\n }\n\n path.replaceWith(\n utils.injectDefaultImport(pureName, \"regenerator-runtime\"),\n );\n }\n },\n };\n});\n\nconst isRegenerator = meta =>\n meta.kind === \"global\" && meta.name === \"regeneratorRuntime\";\n\nfunction shallowEqual(obj1: any, obj2: any) {\n return JSON.stringify(obj1) === JSON.stringify(obj2);\n}\n"],"names":["runtimeCompat","defineProvider","debug","targets","babel","options","shallowEqual","Error","moduleName","useBabelRuntime","name","polyfills","usageGlobal","meta","utils","isRegenerator","injectGlobalImport","usagePure","path","pureName","_ref","runtimeName","hub","file","get","replaceWith","injectDefaultImport","kind","obj1","obj2","JSON","stringify"],"mappings":";;AAGA,MAAMA,aAAa,GAAG,8CAA8C;AASpE,YAAeC,cAAc,CAAU,CAAC;EAAEC,KAAK;EAAEC,OAAO;EAAEC;AAAM,CAAC,EAAEC,OAAO,KAAK;EAC7E,IAAI,CAACC,YAAY,CAACH,OAAO,EAAEC,KAAK,CAACD,OAAO,EAAE,CAAC,EAAE;IAC3C,MAAM,IAAII,KAAK,CACb,wEAAwE,GACtE,sEAAsE,GACtE,kEAAkE,GAClE,WACJ,CAAC;;EAGH,MAAM;IACJ,CAACP,aAAa,GAAG;MAAEQ,UAAU,GAAG,IAAI;MAAEC,eAAe,GAAG;KAAO,GAAG;GACnE,GAAGJ,OAAO;EAEX,OAAO;IACLK,IAAI,EAAE,aAAa;IAEnBC,SAAS,EAAE,CAAC,qBAAqB,CAAC;IAElCC,WAAWA,CAACC,IAAI,EAAEC,KAAK,EAAa;MAClC,IAAIC,aAAa,CAACF,IAAI,CAAC,EAAE;QACvBX,KAAK,CAAC,qBAAqB,CAAC;QAC5BY,KAAK,CAACE,kBAAkB,CAAC,gCAAgC,CAAC;;KAE7D;IACDC,SAASA,CAACJ,IAAI,EAAEC,KAAK,EAAEI,IAAI,EAAE;MAC3B,IAAIH,aAAa,CAACF,IAAI,CAAC,EAAE;QACvB,IAAIM,QAAQ,GAAG,qBAAqB;QACpC,IAAIV,eAAe,EAAE;UAAA,IAAAW,IAAA;UACnB,MAAMC,WAAW,IAAAD,IAAA,GACfZ,UAAU,WAAVA,UAAU,GACRU,IAAI,CAACI,GAAG,CAASC,IAAI,CAAgBC,GAAG,CACxC,0BACF,CAAC,YAAAJ,IAAA,GACD,gBAAgB;UAClBD,QAAQ,GAAI,GAAEE,WAAY,cAAa;;QAGzCH,IAAI,CAACO,WAAW,CACdX,KAAK,CAACY,mBAAmB,CAACP,QAAQ,EAAE,qBAAqB,CAC3D,CAAC;;;GAGN;AACH,CAAC,CAAC;AAEF,MAAMJ,aAAa,GAAGF,IAAI,IACxBA,IAAI,CAACc,IAAI,KAAK,QAAQ,IAAId,IAAI,CAACH,IAAI,KAAK,oBAAoB;AAE9D,SAASJ,YAAYA,CAACsB,IAAS,EAAEC,IAAS,EAAE;EAC1C,OAAOC,IAAI,CAACC,SAAS,CAACH,IAAI,CAAC,KAAKE,IAAI,CAACC,SAAS,CAACF,IAAI,CAAC;AACtD;;;;"} \ No newline at end of file diff --git a/node_modules/babel-plugin-polyfill-regenerator/lib/index.js b/node_modules/babel-plugin-polyfill-regenerator/lib/index.js deleted file mode 100644 index 43afef5b..00000000 --- a/node_modules/babel-plugin-polyfill-regenerator/lib/index.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; - -exports.__esModule = true; -exports.default = void 0; -var _helperDefinePolyfillProvider = _interopRequireDefault(require("@babel/helper-define-polyfill-provider")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } -const runtimeCompat = "#__secret_key__@babel/runtime__compatibility"; -var _default = (0, _helperDefinePolyfillProvider.default)(({ - debug, - targets, - babel -}, options) => { - if (!shallowEqual(targets, babel.targets())) { - throw new Error("This plugin does not use the targets option. Only preset-env's targets" + " or top-level targets need to be configured for this plugin to work." + " See https://github.com/babel/babel-polyfills/issues/36 for more" + " details."); - } - const { - [runtimeCompat]: { - moduleName = null, - useBabelRuntime = false - } = {} - } = options; - return { - name: "regenerator", - polyfills: ["regenerator-runtime"], - usageGlobal(meta, utils) { - if (isRegenerator(meta)) { - debug("regenerator-runtime"); - utils.injectGlobalImport("regenerator-runtime/runtime.js"); - } - }, - usagePure(meta, utils, path) { - if (isRegenerator(meta)) { - let pureName = "regenerator-runtime"; - if (useBabelRuntime) { - var _ref; - const runtimeName = (_ref = moduleName != null ? moduleName : path.hub.file.get("runtimeHelpersModuleName")) != null ? _ref : "@babel/runtime"; - pureName = `${runtimeName}/regenerator`; - } - path.replaceWith(utils.injectDefaultImport(pureName, "regenerator-runtime")); - } - } - }; -}); -exports.default = _default; -const isRegenerator = meta => meta.kind === "global" && meta.name === "regeneratorRuntime"; -function shallowEqual(obj1, obj2) { - return JSON.stringify(obj1) === JSON.stringify(obj2); -} \ No newline at end of file diff --git a/node_modules/babel-plugin-polyfill-regenerator/package.json b/node_modules/babel-plugin-polyfill-regenerator/package.json deleted file mode 100644 index 0b2ec66d..00000000 --- a/node_modules/babel-plugin-polyfill-regenerator/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "babel-plugin-polyfill-regenerator", - "version": "0.6.2", - "description": "A Babel plugin to inject imports to regenerator-runtime", - "repository": { - "type": "git", - "url": "https://github.com/babel/babel-polyfills.git", - "directory": "packages/babel-plugin-polyfill-regenerator" - }, - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "main": "lib/index.js", - "exports": { - ".": [ - { - "import": "./esm/index.mjs", - "default": "./lib/index.js" - }, - "./lib/index.js" - ], - "./package.json": "./package.json" - }, - "keywords": [ - "babel-plugin" - ], - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.6.2" - }, - "devDependencies": { - "@babel/core": "^7.17.8", - "@babel/helper-plugin-test-runner": "^7.16.7", - "@babel/plugin-transform-regenerator": "~7.14.0" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - }, - "gitHead": "2da4da8e1a3d87640c88a3cd7e650cbb1c049a33" -} \ No newline at end of file -- cgit v1.2.3