summaryrefslogtreecommitdiff
path: root/node_modules/@babel/plugin-transform-export-namespace-from
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/plugin-transform-export-namespace-from')
-rw-r--r--node_modules/@babel/plugin-transform-export-namespace-from/LICENSE22
-rw-r--r--node_modules/@babel/plugin-transform-export-namespace-from/README.md19
-rw-r--r--node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js47
-rw-r--r--node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js.map1
-rw-r--r--node_modules/@babel/plugin-transform-export-namespace-from/package.json35
5 files changed, 124 insertions, 0 deletions
diff --git a/node_modules/@babel/plugin-transform-export-namespace-from/LICENSE b/node_modules/@babel/plugin-transform-export-namespace-from/LICENSE
new file mode 100644
index 00000000..f31575ec
--- /dev/null
+++ b/node_modules/@babel/plugin-transform-export-namespace-from/LICENSE
@@ -0,0 +1,22 @@
+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-transform-export-namespace-from/README.md b/node_modules/@babel/plugin-transform-export-namespace-from/README.md
new file mode 100644
index 00000000..33aea24e
--- /dev/null
+++ b/node_modules/@babel/plugin-transform-export-namespace-from/README.md
@@ -0,0 +1,19 @@
+# @babel/plugin-transform-export-namespace-from
+
+> Compile export namespace to ES2015
+
+See our website [@babel/plugin-transform-export-namespace-from](https://babeljs.io/docs/babel-plugin-transform-export-namespace-from) for more information.
+
+## Install
+
+Using npm:
+
+```sh
+npm install --save-dev @babel/plugin-transform-export-namespace-from
+```
+
+or using yarn:
+
+```sh
+yarn add @babel/plugin-transform-export-namespace-from --dev
+```
diff --git a/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js b/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js
new file mode 100644
index 00000000..5856d7b7
--- /dev/null
+++ b/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js
@@ -0,0 +1,47 @@
+"use strict";
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+exports.default = void 0;
+var _helperPluginUtils = require("@babel/helper-plugin-utils");
+var _core = require("@babel/core");
+var _default = (0, _helperPluginUtils.declare)(api => {
+ api.assertVersion(7);
+ return {
+ name: "transform-export-namespace-from",
+ inherits: require("@babel/plugin-syntax-export-namespace-from").default,
+ visitor: {
+ ExportNamedDeclaration(path) {
+ var _exported$name;
+ const {
+ node,
+ scope
+ } = path;
+ const {
+ specifiers
+ } = node;
+ const index = _core.types.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0;
+ if (!_core.types.isExportNamespaceSpecifier(specifiers[index])) return;
+ const nodes = [];
+ if (index === 1) {
+ nodes.push(_core.types.exportNamedDeclaration(null, [specifiers.shift()], node.source));
+ }
+ const specifier = specifiers.shift();
+ const {
+ exported
+ } = specifier;
+ const uid = scope.generateUidIdentifier((_exported$name = exported.name) != null ? _exported$name : exported.value);
+ nodes.push(_core.types.importDeclaration([_core.types.importNamespaceSpecifier(uid)], _core.types.cloneNode(node.source)), _core.types.exportNamedDeclaration(null, [_core.types.exportSpecifier(_core.types.cloneNode(uid), exported)]));
+ if (node.specifiers.length >= 1) {
+ nodes.push(node);
+ }
+ const [importDeclaration] = path.replaceWithMultiple(nodes);
+ path.scope.registerDeclaration(importDeclaration);
+ }
+ }
+ };
+});
+exports.default = _default;
+
+//# sourceMappingURL=index.js.map
diff --git a/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js.map b/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js.map
new file mode 100644
index 00000000..6d8d20b2
--- /dev/null
+++ b/node_modules/@babel/plugin-transform-export-namespace-from/lib/index.js.map
@@ -0,0 +1 @@
+{"version":3,"names":["_helperPluginUtils","require","_core","_default","declare","api","assertVersion","name","inherits","default","visitor","ExportNamedDeclaration","path","_exported$name","node","scope","specifiers","index","t","isExportDefaultSpecifier","isExportNamespaceSpecifier","nodes","push","exportNamedDeclaration","shift","source","specifier","exported","uid","generateUidIdentifier","value","importDeclaration","importNamespaceSpecifier","cloneNode","exportSpecifier","length","replaceWithMultiple","registerDeclaration","exports"],"sources":["../src/index.ts"],"sourcesContent":["import { declare } from \"@babel/helper-plugin-utils\";\nimport { types as t } from \"@babel/core\";\n\nexport default declare(api => {\n api.assertVersion(7);\n\n return {\n name: \"transform-export-namespace-from\",\n inherits: USE_ESM\n ? undefined\n : IS_STANDALONE\n ? undefined\n : // eslint-disable-next-line no-restricted-globals\n require(\"@babel/plugin-syntax-export-namespace-from\").default,\n\n visitor: {\n ExportNamedDeclaration(path) {\n const { node, scope } = path;\n const { specifiers } = node;\n\n const index = t.isExportDefaultSpecifier(specifiers[0]) ? 1 : 0;\n if (!t.isExportNamespaceSpecifier(specifiers[index])) return;\n\n const nodes = [];\n\n if (index === 1) {\n nodes.push(\n t.exportNamedDeclaration(null, [specifiers.shift()], node.source),\n );\n }\n\n const specifier = specifiers.shift();\n const { exported } = specifier;\n const uid = scope.generateUidIdentifier(\n // @ts-expect-error Identifier ?? StringLiteral\n exported.name ?? exported.value,\n );\n\n nodes.push(\n t.importDeclaration(\n [t.importNamespaceSpecifier(uid)],\n t.cloneNode(node.source),\n ),\n t.exportNamedDeclaration(null, [\n t.exportSpecifier(t.cloneNode(uid), exported),\n ]),\n );\n\n if (node.specifiers.length >= 1) {\n nodes.push(node);\n }\n\n const [importDeclaration] = path.replaceWithMultiple(nodes);\n path.scope.registerDeclaration(importDeclaration);\n },\n },\n };\n});\n"],"mappings":";;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAAyC,IAAAE,QAAA,GAE1B,IAAAC,0BAAO,EAACC,GAAG,IAAI;EAC5BA,GAAG,CAACC,aAAa,CAAC,CAAC,CAAC;EAEpB,OAAO;IACLC,IAAI,EAAE,iCAAiC;IACvCC,QAAQ,EAKJP,OAAO,CAAC,4CAA4C,CAAC,CAACQ,OAAO;IAEjEC,OAAO,EAAE;MACPC,sBAAsBA,CAACC,IAAI,EAAE;QAAA,IAAAC,cAAA;QAC3B,MAAM;UAAEC,IAAI;UAAEC;QAAM,CAAC,GAAGH,IAAI;QAC5B,MAAM;UAAEI;QAAW,CAAC,GAAGF,IAAI;QAE3B,MAAMG,KAAK,GAAGC,WAAC,CAACC,wBAAwB,CAACH,UAAU,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;QAC/D,IAAI,CAACE,WAAC,CAACE,0BAA0B,CAACJ,UAAU,CAACC,KAAK,CAAC,CAAC,EAAE;QAEtD,MAAMI,KAAK,GAAG,EAAE;QAEhB,IAAIJ,KAAK,KAAK,CAAC,EAAE;UACfI,KAAK,CAACC,IAAI,CACRJ,WAAC,CAACK,sBAAsB,CAAC,IAAI,EAAE,CAACP,UAAU,CAACQ,KAAK,CAAC,CAAC,CAAC,EAAEV,IAAI,CAACW,MAAM,CAClE,CAAC;QACH;QAEA,MAAMC,SAAS,GAAGV,UAAU,CAACQ,KAAK,CAAC,CAAC;QACpC,MAAM;UAAEG;QAAS,CAAC,GAAGD,SAAS;QAC9B,MAAME,GAAG,GAAGb,KAAK,CAACc,qBAAqB,EAAAhB,cAAA,GAErCc,QAAQ,CAACpB,IAAI,YAAAM,cAAA,GAAIc,QAAQ,CAACG,KAC5B,CAAC;QAEDT,KAAK,CAACC,IAAI,CACRJ,WAAC,CAACa,iBAAiB,CACjB,CAACb,WAAC,CAACc,wBAAwB,CAACJ,GAAG,CAAC,CAAC,EACjCV,WAAC,CAACe,SAAS,CAACnB,IAAI,CAACW,MAAM,CACzB,CAAC,EACDP,WAAC,CAACK,sBAAsB,CAAC,IAAI,EAAE,CAC7BL,WAAC,CAACgB,eAAe,CAAChB,WAAC,CAACe,SAAS,CAACL,GAAG,CAAC,EAAED,QAAQ,CAAC,CAC9C,CACH,CAAC;QAED,IAAIb,IAAI,CAACE,UAAU,CAACmB,MAAM,IAAI,CAAC,EAAE;UAC/Bd,KAAK,CAACC,IAAI,CAACR,IAAI,CAAC;QAClB;QAEA,MAAM,CAACiB,iBAAiB,CAAC,GAAGnB,IAAI,CAACwB,mBAAmB,CAACf,KAAK,CAAC;QAC3DT,IAAI,CAACG,KAAK,CAACsB,mBAAmB,CAACN,iBAAiB,CAAC;MACnD;IACF;EACF,CAAC;AACH,CAAC,CAAC;AAAAO,OAAA,CAAA7B,OAAA,GAAAN,QAAA"} \ No newline at end of file
diff --git a/node_modules/@babel/plugin-transform-export-namespace-from/package.json b/node_modules/@babel/plugin-transform-export-namespace-from/package.json
new file mode 100644
index 00000000..2e131daa
--- /dev/null
+++ b/node_modules/@babel/plugin-transform-export-namespace-from/package.json
@@ -0,0 +1,35 @@
+{
+ "name": "@babel/plugin-transform-export-namespace-from",
+ "version": "7.22.11",
+ "description": "Compile export namespace to ES2015",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/babel/babel.git",
+ "directory": "packages/babel-plugin-transform-export-namespace-from"
+ },
+ "license": "MIT",
+ "publishConfig": {
+ "access": "public"
+ },
+ "main": "./lib/index.js",
+ "keywords": [
+ "babel-plugin"
+ ],
+ "dependencies": {
+ "@babel/helper-plugin-utils": "^7.22.5",
+ "@babel/plugin-syntax-export-namespace-from": "^7.8.3"
+ },
+ "peerDependencies": {
+ "@babel/core": "^7.0.0-0"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.22.11",
+ "@babel/helper-plugin-test-runner": "^7.22.5"
+ },
+ "homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-export-namespace-from",
+ "engines": {
+ "node": ">=6.9.0"
+ },
+ "author": "The Babel Team (https://babel.dev/team)",
+ "type": "commonjs"
+} \ No newline at end of file