@powerlines/plugin-env 0.16.60 → 0.16.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -16
- package/dist/_virtual/{rolldown_runtime.cjs → _rolldown/runtime.cjs} +1 -3
- package/dist/_virtual/{rolldown_runtime.mjs → _rolldown/runtime.mjs} +2 -3
- package/dist/babel/index.cjs +1 -0
- package/dist/babel/plugin.cjs +20 -19
- package/dist/babel/plugin.d.cts +0 -1
- package/dist/babel/plugin.d.cts.map +1 -1
- package/dist/babel/plugin.d.mts +0 -1
- package/dist/babel/plugin.d.mts.map +1 -1
- package/dist/babel/plugin.mjs +3 -3
- package/dist/babel/plugin.mjs.map +1 -1
- package/dist/components/docs.cjs +26 -25
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts.map +1 -1
- package/dist/components/docs.mjs +1 -1
- package/dist/components/env-builtin.cjs +155 -153
- package/dist/components/env-builtin.d.cts +0 -1
- package/dist/components/env-builtin.d.cts.map +1 -1
- package/dist/components/env-builtin.d.mts +0 -1
- package/dist/components/env-builtin.d.mts.map +1 -1
- package/dist/components/env-builtin.mjs +1 -1
- package/dist/components/index.cjs +1 -0
- package/dist/helpers/automd-generator.cjs +4 -3
- package/dist/helpers/automd-generator.d.cts +2 -3
- package/dist/helpers/automd-generator.d.cts.map +1 -1
- package/dist/helpers/automd-generator.d.mts +2 -3
- package/dist/helpers/automd-generator.d.mts.map +1 -1
- package/dist/helpers/automd-generator.mjs +1 -1
- package/dist/helpers/automd-generator.mjs.map +1 -1
- package/dist/helpers/create-reflection-resource.cjs +1 -0
- package/dist/helpers/create-reflection-resource.d.cts +0 -1
- package/dist/helpers/create-reflection-resource.d.cts.map +1 -1
- package/dist/helpers/create-reflection-resource.d.mts +0 -1
- package/dist/helpers/create-reflection-resource.d.mts.map +1 -1
- package/dist/helpers/create-reflection-resource.mjs.map +1 -1
- package/dist/helpers/docs-helper.cjs +4 -2
- package/dist/helpers/docs-helper.d.cts +0 -1
- package/dist/helpers/docs-helper.d.cts.map +1 -1
- package/dist/helpers/docs-helper.d.mts +0 -1
- package/dist/helpers/docs-helper.d.mts.map +1 -1
- package/dist/helpers/docs-helper.mjs +1 -1
- package/dist/helpers/docs-helper.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -0
- package/dist/helpers/load.cjs +19 -17
- package/dist/helpers/load.d.cts +0 -1
- package/dist/helpers/load.d.cts.map +1 -1
- package/dist/helpers/load.d.mts +0 -1
- package/dist/helpers/load.d.mts.map +1 -1
- package/dist/helpers/load.mjs +2 -2
- package/dist/helpers/load.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +59 -58
- package/dist/helpers/persistence.d.cts +0 -1
- package/dist/helpers/persistence.d.cts.map +1 -1
- package/dist/helpers/persistence.d.mts +0 -1
- package/dist/helpers/persistence.d.mts.map +1 -1
- package/dist/helpers/persistence.mjs +15 -15
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/reflect.cjs +40 -39
- package/dist/helpers/reflect.d.cts.map +1 -1
- package/dist/helpers/reflect.d.mts.map +1 -1
- package/dist/helpers/reflect.mjs +2 -2
- package/dist/helpers/reflect.mjs.map +1 -1
- package/dist/helpers/source-file-env.cjs +8 -7
- package/dist/helpers/source-file-env.d.cts.map +1 -1
- package/dist/helpers/source-file-env.d.mts.map +1 -1
- package/dist/helpers/source-file-env.mjs.map +1 -1
- package/dist/helpers/template-helpers.cjs +6 -5
- package/dist/helpers/template-helpers.d.cts +0 -1
- package/dist/helpers/template-helpers.d.cts.map +1 -1
- package/dist/helpers/template-helpers.d.mts +0 -1
- package/dist/helpers/template-helpers.d.mts.map +1 -1
- package/dist/helpers/template-helpers.mjs.map +1 -1
- package/dist/index.cjs +49 -49
- package/dist/index.d.cts +0 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +5 -6
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.cjs +7 -7
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs +6 -6
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.2/node_modules/c12/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.cjs +6 -6
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs +6 -6
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/_format.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.cjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/json.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.cjs +655 -655
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs +655 -655
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/js-yaml.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.cjs +179 -179
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs +179 -179
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/json5.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.cjs +188 -188
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs +188 -188
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/jsonc-parser.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.cjs +297 -297
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs +297 -297
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/libs/smol-toml.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.cjs +8 -8
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs +8 -8
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/_chunks/rolldown-runtime.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.cjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs +4 -4
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/json5.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.cjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/jsonc.mjs.map +1 -1
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.cjs +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.4/node_modules/confbox/dist/yaml.mjs.map +1 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.cjs +5 -5
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs +4 -4
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/lib/main.mjs.map +1 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.cjs +2 -2
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs +1 -1
- package/dist/node_modules/.pnpm/dotenv@17.3.1/node_modules/dotenv/package.mjs.map +1 -1
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +18 -18
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +2 -2
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +1308 -1311
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +1294 -1297
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -1
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +2194 -2194
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +2193 -2193
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -1
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +3 -3
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +3 -3
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +34 -34
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +33 -33
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +221 -223
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +220 -222
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +1 -1
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +2 -2
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +1 -1
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.cjs +3 -3
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs +5 -5
- package/dist/node_modules/.pnpm/nypm@0.6.5/node_modules/nypm/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +1 -1
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +6 -6
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +5 -5
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +10 -10
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +16 -16
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +412 -412
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +189 -189
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -1
- package/dist/types/index.cjs +1 -0
- package/dist/types/plugin.cjs +20 -19
- package/dist/types/plugin.d.cts.map +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/plugin.mjs.map +1 -1
- package/dist/types/runtime.cjs +1 -0
- package/dist/types/runtime.d.cts.map +1 -1
- package/dist/types/runtime.d.mts.map +1 -1
- package/dist/types/runtime.mjs.map +1 -1
- package/package.json +45 -26
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.cjs +0 -37
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.mjs +0 -38
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.mjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/to-array.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +0 -5
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +0 -6
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +0 -7
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +0 -3
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +0 -19
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +0 -20
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +0 -63
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +0 -64
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +0 -17
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.53/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.cjs +0 -32
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.mjs +0 -33
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-parent-path.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.cjs +0 -28
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs +0 -29
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/is-type.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.cjs +0 -122
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.mjs +0 -123
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/join-paths.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.cjs +0 -12
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.mjs +0 -9
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/regex.mjs.map +0 -1
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.cjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.mjs +0 -15
- package/dist/node_modules/.pnpm/@stryke_path@0.26.19/node_modules/@stryke/path/dist/slash.mjs.map +0 -1
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +0 -43
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_runtime = require('../../../../../../_virtual/_rolldown/runtime.cjs');
|
|
2
2
|
let node_path = require("node:path");
|
|
3
3
|
let node_process = require("node:process");
|
|
4
4
|
let node_module = require("node:module");
|
|
5
5
|
let node_stream = require("node:stream");
|
|
6
6
|
let node_child_process = require("node:child_process");
|
|
7
7
|
let node_readline = require("node:readline");
|
|
8
|
-
node_readline =
|
|
8
|
+
node_readline = require_runtime.__toESM(node_readline);
|
|
9
9
|
|
|
10
10
|
//#region ../../node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.js
|
|
11
11
|
var l = Object.create;
|
|
@@ -14,443 +14,443 @@ var d = Object.getOwnPropertyDescriptor;
|
|
|
14
14
|
var f = Object.getOwnPropertyNames;
|
|
15
15
|
var p = Object.getPrototypeOf;
|
|
16
16
|
var m = Object.prototype.hasOwnProperty;
|
|
17
|
-
var h = (e
|
|
18
|
-
var g = (e
|
|
19
|
-
if (t
|
|
20
|
-
s
|
|
21
|
-
if (!m.call(e
|
|
22
|
-
get: ((e
|
|
23
|
-
enumerable: !(r
|
|
17
|
+
var h = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
18
|
+
var g = (e, t, n, r) => {
|
|
19
|
+
if (t && typeof t === "object" || typeof t === "function") for (var i = f(t), a = 0, o = i.length, s; a < o; a++) {
|
|
20
|
+
s = i[a];
|
|
21
|
+
if (!m.call(e, s) && s !== n) u(e, s, {
|
|
22
|
+
get: ((e) => t[e]).bind(null, s),
|
|
23
|
+
enumerable: !(r = d(t, s)) || r.enumerable
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
return e
|
|
26
|
+
return e;
|
|
27
27
|
};
|
|
28
|
-
var _ = (e
|
|
29
|
-
value: e
|
|
28
|
+
var _ = (e, t, n) => (n = e != null ? l(p(e)) : {}, g(t || !e || !e.__esModule ? u(n, "default", {
|
|
29
|
+
value: e,
|
|
30
30
|
enumerable: true
|
|
31
|
-
}) : n
|
|
31
|
+
}) : n, e));
|
|
32
32
|
var v = /* @__PURE__ */ (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href);
|
|
33
33
|
const y = /^path$/i;
|
|
34
34
|
const b = {
|
|
35
35
|
key: "PATH",
|
|
36
36
|
value: ""
|
|
37
37
|
};
|
|
38
|
-
function x(e
|
|
39
|
-
for (const t
|
|
40
|
-
if (!Object.prototype.hasOwnProperty.call(e
|
|
41
|
-
const n
|
|
42
|
-
if (!n
|
|
38
|
+
function x(e) {
|
|
39
|
+
for (const t in e) {
|
|
40
|
+
if (!Object.prototype.hasOwnProperty.call(e, t) || !y.test(t)) continue;
|
|
41
|
+
const n = e[t];
|
|
42
|
+
if (!n) return b;
|
|
43
43
|
return {
|
|
44
|
-
key: t
|
|
45
|
-
value: n
|
|
44
|
+
key: t,
|
|
45
|
+
value: n
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
return b;
|
|
49
49
|
}
|
|
50
|
-
function S(e
|
|
51
|
-
const i
|
|
52
|
-
let o
|
|
53
|
-
let s
|
|
50
|
+
function S(e, t) {
|
|
51
|
+
const i = t.value.split(node_path.delimiter);
|
|
52
|
+
let o = e;
|
|
53
|
+
let s;
|
|
54
54
|
do {
|
|
55
|
-
i
|
|
56
|
-
s
|
|
57
|
-
o
|
|
58
|
-
} while (o
|
|
55
|
+
i.push((0, node_path.resolve)(o, "node_modules", ".bin"));
|
|
56
|
+
s = o;
|
|
57
|
+
o = (0, node_path.dirname)(o);
|
|
58
|
+
} while (o !== s);
|
|
59
59
|
return {
|
|
60
|
-
key: t
|
|
61
|
-
value: i
|
|
60
|
+
key: t.key,
|
|
61
|
+
value: i.join(node_path.delimiter)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
|
-
function C(e
|
|
65
|
-
const n
|
|
64
|
+
function C(e, t) {
|
|
65
|
+
const n = {
|
|
66
66
|
...process.env,
|
|
67
|
-
...t
|
|
67
|
+
...t
|
|
68
68
|
};
|
|
69
|
-
const r
|
|
70
|
-
n
|
|
71
|
-
return n
|
|
69
|
+
const r = S(e, x(n));
|
|
70
|
+
n[r.key] = r.value;
|
|
71
|
+
return n;
|
|
72
72
|
}
|
|
73
|
-
const w = (e
|
|
74
|
-
let t
|
|
75
|
-
const n
|
|
76
|
-
const r
|
|
77
|
-
if (--t
|
|
73
|
+
const w = (e) => {
|
|
74
|
+
let t = e.length;
|
|
75
|
+
const n = new node_stream.PassThrough();
|
|
76
|
+
const r = () => {
|
|
77
|
+
if (--t === 0) n.emit("end");
|
|
78
78
|
};
|
|
79
|
-
for (const t
|
|
80
|
-
t
|
|
81
|
-
t
|
|
79
|
+
for (const t of e) {
|
|
80
|
+
t.pipe(n, { end: false });
|
|
81
|
+
t.on("end", r);
|
|
82
82
|
}
|
|
83
|
-
return n
|
|
83
|
+
return n;
|
|
84
84
|
};
|
|
85
|
-
var T = h((exports
|
|
86
|
-
t
|
|
87
|
-
a
|
|
88
|
-
var n
|
|
89
|
-
function r
|
|
90
|
-
var n
|
|
91
|
-
if (!n
|
|
92
|
-
n
|
|
93
|
-
if (n
|
|
94
|
-
for (var r
|
|
95
|
-
var i
|
|
96
|
-
if (i
|
|
85
|
+
var T = h((exports, t) => {
|
|
86
|
+
t.exports = a;
|
|
87
|
+
a.sync = o;
|
|
88
|
+
var n = v("fs");
|
|
89
|
+
function r(e, t) {
|
|
90
|
+
var n = t.pathExt !== void 0 ? t.pathExt : process.env.PATHEXT;
|
|
91
|
+
if (!n) return true;
|
|
92
|
+
n = n.split(";");
|
|
93
|
+
if (n.indexOf("") !== -1) return true;
|
|
94
|
+
for (var r = 0; r < n.length; r++) {
|
|
95
|
+
var i = n[r].toLowerCase();
|
|
96
|
+
if (i && e.substr(-i.length).toLowerCase() === i) return true;
|
|
97
97
|
}
|
|
98
98
|
return false;
|
|
99
99
|
}
|
|
100
|
-
function i
|
|
101
|
-
if (!e
|
|
102
|
-
return r
|
|
100
|
+
function i(e, t, n) {
|
|
101
|
+
if (!e.isSymbolicLink() && !e.isFile()) return false;
|
|
102
|
+
return r(t, n);
|
|
103
103
|
}
|
|
104
|
-
function a
|
|
105
|
-
n
|
|
106
|
-
r
|
|
104
|
+
function a(e, t, r) {
|
|
105
|
+
n.stat(e, function(n, a) {
|
|
106
|
+
r(n, n ? false : i(a, e, t));
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function o
|
|
110
|
-
return i
|
|
109
|
+
function o(e, t) {
|
|
110
|
+
return i(n.statSync(e), e, t);
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
|
-
var E = h((exports
|
|
114
|
-
t
|
|
115
|
-
r
|
|
116
|
-
var n
|
|
117
|
-
function r
|
|
118
|
-
n
|
|
119
|
-
r
|
|
113
|
+
var E = h((exports, t) => {
|
|
114
|
+
t.exports = r;
|
|
115
|
+
r.sync = i;
|
|
116
|
+
var n = v("fs");
|
|
117
|
+
function r(e, t, r) {
|
|
118
|
+
n.stat(e, function(e, n) {
|
|
119
|
+
r(e, e ? false : a(n, t));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
function i
|
|
123
|
-
return a
|
|
122
|
+
function i(e, t) {
|
|
123
|
+
return a(n.statSync(e), t);
|
|
124
124
|
}
|
|
125
|
-
function a
|
|
126
|
-
return e
|
|
125
|
+
function a(e, t) {
|
|
126
|
+
return e.isFile() && o(e, t);
|
|
127
127
|
}
|
|
128
|
-
function o
|
|
129
|
-
var n
|
|
130
|
-
var r
|
|
131
|
-
var i
|
|
132
|
-
var a
|
|
133
|
-
var o
|
|
134
|
-
var s
|
|
135
|
-
var c
|
|
136
|
-
var l
|
|
137
|
-
var u
|
|
138
|
-
return n
|
|
128
|
+
function o(e, t) {
|
|
129
|
+
var n = e.mode;
|
|
130
|
+
var r = e.uid;
|
|
131
|
+
var i = e.gid;
|
|
132
|
+
var a = t.uid !== void 0 ? t.uid : process.getuid && process.getuid();
|
|
133
|
+
var o = t.gid !== void 0 ? t.gid : process.getgid && process.getgid();
|
|
134
|
+
var s = parseInt("100", 8);
|
|
135
|
+
var c = parseInt("010", 8);
|
|
136
|
+
var l = parseInt("001", 8);
|
|
137
|
+
var u = s | c;
|
|
138
|
+
return n & l || n & c && i === o || n & s && r === a || n & u && a === 0;
|
|
139
139
|
}
|
|
140
140
|
});
|
|
141
|
-
var D = h((exports
|
|
141
|
+
var D = h((exports, t) => {
|
|
142
142
|
v("fs");
|
|
143
|
-
var r
|
|
144
|
-
if (process.platform === "win32" || global.TESTING_WINDOWS) r
|
|
145
|
-
else r
|
|
146
|
-
t
|
|
147
|
-
i
|
|
148
|
-
function i
|
|
149
|
-
if (typeof t
|
|
150
|
-
n
|
|
151
|
-
t
|
|
143
|
+
var r;
|
|
144
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) r = T();
|
|
145
|
+
else r = E();
|
|
146
|
+
t.exports = i;
|
|
147
|
+
i.sync = a;
|
|
148
|
+
function i(e, t, n) {
|
|
149
|
+
if (typeof t === "function") {
|
|
150
|
+
n = t;
|
|
151
|
+
t = {};
|
|
152
152
|
}
|
|
153
|
-
if (!n
|
|
153
|
+
if (!n) {
|
|
154
154
|
if (typeof Promise !== "function") throw new TypeError("callback not provided");
|
|
155
|
-
return new Promise(function(n
|
|
156
|
-
i
|
|
157
|
-
if (e
|
|
158
|
-
else n
|
|
155
|
+
return new Promise(function(n, r) {
|
|
156
|
+
i(e, t || {}, function(e, t) {
|
|
157
|
+
if (e) r(e);
|
|
158
|
+
else n(t);
|
|
159
159
|
});
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
r
|
|
163
|
-
if (e
|
|
164
|
-
if (e
|
|
165
|
-
e
|
|
166
|
-
r
|
|
162
|
+
r(e, t || {}, function(e, r) {
|
|
163
|
+
if (e) {
|
|
164
|
+
if (e.code === "EACCES" || t && t.ignoreErrors) {
|
|
165
|
+
e = null;
|
|
166
|
+
r = false;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
n
|
|
169
|
+
n(e, r);
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
function a
|
|
172
|
+
function a(e, t) {
|
|
173
173
|
try {
|
|
174
|
-
return r
|
|
175
|
-
} catch (e
|
|
176
|
-
if (t
|
|
177
|
-
else throw e
|
|
174
|
+
return r.sync(e, t || {});
|
|
175
|
+
} catch (e) {
|
|
176
|
+
if (t && t.ignoreErrors || e.code === "EACCES") return false;
|
|
177
|
+
else throw e;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
});
|
|
181
|
-
var O = h((exports
|
|
182
|
-
const n
|
|
183
|
-
const r
|
|
184
|
-
const i
|
|
185
|
-
const a
|
|
186
|
-
const o
|
|
187
|
-
const s
|
|
188
|
-
const r
|
|
189
|
-
const a
|
|
190
|
-
const o
|
|
191
|
-
const s
|
|
192
|
-
if (n
|
|
193
|
-
if (e
|
|
181
|
+
var O = h((exports, t) => {
|
|
182
|
+
const n = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
183
|
+
const r = v("path");
|
|
184
|
+
const i = n ? ";" : ":";
|
|
185
|
+
const a = D();
|
|
186
|
+
const o = (e) => Object.assign(/* @__PURE__ */ new Error(`not found: ${e}`), { code: "ENOENT" });
|
|
187
|
+
const s = (e, t) => {
|
|
188
|
+
const r = t.colon || i;
|
|
189
|
+
const a = e.match(/\//) || n && e.match(/\\/) ? [""] : [...n ? [process.cwd()] : [], ...(t.path || process.env.PATH || "").split(r)];
|
|
190
|
+
const o = n ? t.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
191
|
+
const s = n ? o.split(r) : [""];
|
|
192
|
+
if (n) {
|
|
193
|
+
if (e.indexOf(".") !== -1 && s[0] !== "") s.unshift("");
|
|
194
194
|
}
|
|
195
195
|
return {
|
|
196
|
-
pathEnv: a
|
|
197
|
-
pathExt: s
|
|
198
|
-
pathExtExe: o
|
|
196
|
+
pathEnv: a,
|
|
197
|
+
pathExt: s,
|
|
198
|
+
pathExtExe: o
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
|
-
const c
|
|
202
|
-
if (typeof t
|
|
203
|
-
n
|
|
204
|
-
t
|
|
201
|
+
const c = (e, t, n) => {
|
|
202
|
+
if (typeof t === "function") {
|
|
203
|
+
n = t;
|
|
204
|
+
t = {};
|
|
205
205
|
}
|
|
206
|
-
if (!t
|
|
207
|
-
const { pathEnv: i
|
|
208
|
-
const u
|
|
209
|
-
const d
|
|
210
|
-
if (n
|
|
211
|
-
const c
|
|
212
|
-
const l
|
|
213
|
-
const d
|
|
214
|
-
a
|
|
206
|
+
if (!t) t = {};
|
|
207
|
+
const { pathEnv: i, pathExt: c, pathExtExe: l } = s(e, t);
|
|
208
|
+
const u = [];
|
|
209
|
+
const d = (n) => new Promise((a, s) => {
|
|
210
|
+
if (n === i.length) return t.all && u.length ? a(u) : s(o(e));
|
|
211
|
+
const c = i[n];
|
|
212
|
+
const l = /^".*"$/.test(c) ? c.slice(1, -1) : c;
|
|
213
|
+
const d = r.join(l, e);
|
|
214
|
+
a(f(!l && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d, n, 0));
|
|
215
215
|
});
|
|
216
|
-
const f
|
|
217
|
-
if (r
|
|
218
|
-
const s
|
|
219
|
-
a
|
|
220
|
-
if (!a
|
|
221
|
-
else return i
|
|
222
|
-
return i
|
|
216
|
+
const f = (e, n, r) => new Promise((i, o) => {
|
|
217
|
+
if (r === c.length) return i(d(n + 1));
|
|
218
|
+
const s = c[r];
|
|
219
|
+
a(e + s, { pathExt: l }, (a, o) => {
|
|
220
|
+
if (!a && o) if (t.all) u.push(e + s);
|
|
221
|
+
else return i(e + s);
|
|
222
|
+
return i(f(e, n, r + 1));
|
|
223
223
|
});
|
|
224
224
|
});
|
|
225
|
-
return n
|
|
225
|
+
return n ? d(0).then((e) => n(null, e), n) : d(0);
|
|
226
226
|
};
|
|
227
|
-
const l
|
|
228
|
-
t
|
|
229
|
-
const { pathEnv: n
|
|
230
|
-
const l
|
|
231
|
-
for (let o
|
|
232
|
-
const s
|
|
233
|
-
const u
|
|
234
|
-
const d
|
|
235
|
-
const f
|
|
236
|
-
for (let e
|
|
237
|
-
const n
|
|
227
|
+
const l = (e, t) => {
|
|
228
|
+
t = t || {};
|
|
229
|
+
const { pathEnv: n, pathExt: i, pathExtExe: c } = s(e, t);
|
|
230
|
+
const l = [];
|
|
231
|
+
for (let o = 0; o < n.length; o++) {
|
|
232
|
+
const s = n[o];
|
|
233
|
+
const u = /^".*"$/.test(s) ? s.slice(1, -1) : s;
|
|
234
|
+
const d = r.join(u, e);
|
|
235
|
+
const f = !u && /^\.[\\\/]/.test(e) ? e.slice(0, 2) + d : d;
|
|
236
|
+
for (let e = 0; e < i.length; e++) {
|
|
237
|
+
const n = f + i[e];
|
|
238
238
|
try {
|
|
239
|
-
if (a
|
|
240
|
-
else return n
|
|
241
|
-
} catch (e
|
|
239
|
+
if (a.sync(n, { pathExt: c })) if (t.all) l.push(n);
|
|
240
|
+
else return n;
|
|
241
|
+
} catch (e) {}
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
if (t
|
|
245
|
-
if (t
|
|
246
|
-
throw o
|
|
244
|
+
if (t.all && l.length) return l;
|
|
245
|
+
if (t.nothrow) return null;
|
|
246
|
+
throw o(e);
|
|
247
247
|
};
|
|
248
|
-
t
|
|
249
|
-
c
|
|
248
|
+
t.exports = c;
|
|
249
|
+
c.sync = l;
|
|
250
250
|
});
|
|
251
|
-
var k = h((exports
|
|
252
|
-
const n
|
|
253
|
-
const t
|
|
254
|
-
if ((e
|
|
255
|
-
return Object.keys(t
|
|
251
|
+
var k = h((exports, t) => {
|
|
252
|
+
const n = (e = {}) => {
|
|
253
|
+
const t = e.env || process.env;
|
|
254
|
+
if ((e.platform || process.platform) !== "win32") return "PATH";
|
|
255
|
+
return Object.keys(t).reverse().find((e) => e.toUpperCase() === "PATH") || "Path";
|
|
256
256
|
};
|
|
257
|
-
t
|
|
258
|
-
t
|
|
257
|
+
t.exports = n;
|
|
258
|
+
t.exports.default = n;
|
|
259
259
|
});
|
|
260
|
-
var A = h((exports
|
|
261
|
-
const n
|
|
262
|
-
const r
|
|
263
|
-
const i
|
|
264
|
-
function a
|
|
265
|
-
const a
|
|
266
|
-
const o
|
|
267
|
-
const s
|
|
268
|
-
const c
|
|
269
|
-
if (c
|
|
270
|
-
process.chdir(e
|
|
271
|
-
} catch (e
|
|
272
|
-
let l
|
|
260
|
+
var A = h((exports, t) => {
|
|
261
|
+
const n = v("path");
|
|
262
|
+
const r = O();
|
|
263
|
+
const i = k();
|
|
264
|
+
function a(e, t) {
|
|
265
|
+
const a = e.options.env || process.env;
|
|
266
|
+
const o = process.cwd();
|
|
267
|
+
const s = e.options.cwd != null;
|
|
268
|
+
const c = s && process.chdir !== void 0 && !process.chdir.disabled;
|
|
269
|
+
if (c) try {
|
|
270
|
+
process.chdir(e.options.cwd);
|
|
271
|
+
} catch (e) {}
|
|
272
|
+
let l;
|
|
273
273
|
try {
|
|
274
|
-
l
|
|
275
|
-
path: a
|
|
276
|
-
pathExt: t
|
|
274
|
+
l = r.sync(e.command, {
|
|
275
|
+
path: a[i({ env: a })],
|
|
276
|
+
pathExt: t ? n.delimiter : void 0
|
|
277
277
|
});
|
|
278
|
-
} catch (e
|
|
279
|
-
if (c
|
|
278
|
+
} catch (e) {} finally {
|
|
279
|
+
if (c) process.chdir(o);
|
|
280
280
|
}
|
|
281
|
-
if (l
|
|
282
|
-
return l
|
|
281
|
+
if (l) l = n.resolve(s ? e.options.cwd : "", l);
|
|
282
|
+
return l;
|
|
283
283
|
}
|
|
284
|
-
function o
|
|
285
|
-
return a
|
|
284
|
+
function o(e) {
|
|
285
|
+
return a(e) || a(e, true);
|
|
286
286
|
}
|
|
287
|
-
t
|
|
287
|
+
t.exports = o;
|
|
288
288
|
});
|
|
289
|
-
var j = h((exports
|
|
290
|
-
const n
|
|
291
|
-
function r
|
|
292
|
-
e
|
|
293
|
-
return e
|
|
294
|
-
}
|
|
295
|
-
function i
|
|
296
|
-
e
|
|
297
|
-
e
|
|
298
|
-
e
|
|
299
|
-
e
|
|
300
|
-
e
|
|
301
|
-
if (t
|
|
302
|
-
return e
|
|
303
|
-
}
|
|
304
|
-
t
|
|
305
|
-
t
|
|
289
|
+
var j = h((exports, t) => {
|
|
290
|
+
const n = /([()\][%!^"`<>&|;, *?])/g;
|
|
291
|
+
function r(e) {
|
|
292
|
+
e = e.replace(n, "^$1");
|
|
293
|
+
return e;
|
|
294
|
+
}
|
|
295
|
+
function i(e, t) {
|
|
296
|
+
e = `${e}`;
|
|
297
|
+
e = e.replace(/(\\*)"/g, "$1$1\\\"");
|
|
298
|
+
e = e.replace(/(\\*)$/, "$1$1");
|
|
299
|
+
e = `"${e}"`;
|
|
300
|
+
e = e.replace(n, "^$1");
|
|
301
|
+
if (t) e = e.replace(n, "^$1");
|
|
302
|
+
return e;
|
|
303
|
+
}
|
|
304
|
+
t.exports.command = r;
|
|
305
|
+
t.exports.argument = i;
|
|
306
306
|
});
|
|
307
|
-
var M = h((exports
|
|
308
|
-
t
|
|
307
|
+
var M = h((exports, t) => {
|
|
308
|
+
t.exports = /^#!(.*)/;
|
|
309
309
|
});
|
|
310
|
-
var N = h((exports
|
|
311
|
-
const n
|
|
312
|
-
t
|
|
313
|
-
const t
|
|
314
|
-
if (!t
|
|
315
|
-
const [r
|
|
316
|
-
const a
|
|
317
|
-
if (a
|
|
318
|
-
return i
|
|
310
|
+
var N = h((exports, t) => {
|
|
311
|
+
const n = M();
|
|
312
|
+
t.exports = (e = "") => {
|
|
313
|
+
const t = e.match(n);
|
|
314
|
+
if (!t) return null;
|
|
315
|
+
const [r, i] = t[0].replace(/#! ?/, "").split(" ");
|
|
316
|
+
const a = r.split("/").pop();
|
|
317
|
+
if (a === "env") return i;
|
|
318
|
+
return i ? `${a} ${i}` : a;
|
|
319
319
|
};
|
|
320
320
|
});
|
|
321
|
-
var P = h((exports
|
|
322
|
-
const n
|
|
323
|
-
const r
|
|
324
|
-
function i
|
|
325
|
-
const t
|
|
326
|
-
const i
|
|
327
|
-
let a
|
|
321
|
+
var P = h((exports, t) => {
|
|
322
|
+
const n = v("fs");
|
|
323
|
+
const r = N();
|
|
324
|
+
function i(e) {
|
|
325
|
+
const t = 150;
|
|
326
|
+
const i = Buffer.alloc(t);
|
|
327
|
+
let a;
|
|
328
328
|
try {
|
|
329
|
-
a
|
|
330
|
-
n
|
|
331
|
-
n
|
|
332
|
-
} catch (e
|
|
333
|
-
return r
|
|
329
|
+
a = n.openSync(e, "r");
|
|
330
|
+
n.readSync(a, i, 0, t, 0);
|
|
331
|
+
n.closeSync(a);
|
|
332
|
+
} catch (e) {}
|
|
333
|
+
return r(i.toString());
|
|
334
334
|
}
|
|
335
|
-
t
|
|
335
|
+
t.exports = i;
|
|
336
336
|
});
|
|
337
|
-
var F = h((exports
|
|
338
|
-
const n
|
|
339
|
-
const r
|
|
340
|
-
const i
|
|
341
|
-
const a
|
|
342
|
-
const o
|
|
343
|
-
const s
|
|
344
|
-
const c
|
|
345
|
-
function l
|
|
346
|
-
e
|
|
347
|
-
const t
|
|
348
|
-
if (t
|
|
349
|
-
e
|
|
350
|
-
e
|
|
351
|
-
return r
|
|
337
|
+
var F = h((exports, t) => {
|
|
338
|
+
const n = v("path");
|
|
339
|
+
const r = A();
|
|
340
|
+
const i = j();
|
|
341
|
+
const a = P();
|
|
342
|
+
const o = process.platform === "win32";
|
|
343
|
+
const s = /\.(?:com|exe)$/i;
|
|
344
|
+
const c = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
345
|
+
function l(e) {
|
|
346
|
+
e.file = r(e);
|
|
347
|
+
const t = e.file && a(e.file);
|
|
348
|
+
if (t) {
|
|
349
|
+
e.args.unshift(e.file);
|
|
350
|
+
e.command = t;
|
|
351
|
+
return r(e);
|
|
352
352
|
}
|
|
353
|
-
return e
|
|
354
|
-
}
|
|
355
|
-
function u
|
|
356
|
-
if (!o
|
|
357
|
-
const t
|
|
358
|
-
const r
|
|
359
|
-
if (e
|
|
360
|
-
const r
|
|
361
|
-
e
|
|
362
|
-
e
|
|
363
|
-
e
|
|
364
|
-
e
|
|
353
|
+
return e.file;
|
|
354
|
+
}
|
|
355
|
+
function u(e) {
|
|
356
|
+
if (!o) return e;
|
|
357
|
+
const t = l(e);
|
|
358
|
+
const r = !s.test(t);
|
|
359
|
+
if (e.options.forceShell || r) {
|
|
360
|
+
const r = c.test(t);
|
|
361
|
+
e.command = n.normalize(e.command);
|
|
362
|
+
e.command = i.command(e.command);
|
|
363
|
+
e.args = e.args.map((e) => i.argument(e, r));
|
|
364
|
+
e.args = [
|
|
365
365
|
"/d",
|
|
366
366
|
"/s",
|
|
367
367
|
"/c",
|
|
368
|
-
`"${[e
|
|
368
|
+
`"${[e.command].concat(e.args).join(" ")}"`
|
|
369
369
|
];
|
|
370
|
-
e
|
|
371
|
-
e
|
|
370
|
+
e.command = process.env.comspec || "cmd.exe";
|
|
371
|
+
e.options.windowsVerbatimArguments = true;
|
|
372
372
|
}
|
|
373
|
-
return e
|
|
373
|
+
return e;
|
|
374
374
|
}
|
|
375
|
-
function d
|
|
376
|
-
if (t
|
|
377
|
-
n
|
|
378
|
-
t
|
|
375
|
+
function d(e, t, n) {
|
|
376
|
+
if (t && !Array.isArray(t)) {
|
|
377
|
+
n = t;
|
|
378
|
+
t = null;
|
|
379
379
|
}
|
|
380
|
-
t
|
|
381
|
-
n
|
|
382
|
-
const r
|
|
383
|
-
command: e
|
|
384
|
-
args: t
|
|
385
|
-
options: n
|
|
380
|
+
t = t ? t.slice(0) : [];
|
|
381
|
+
n = Object.assign({}, n);
|
|
382
|
+
const r = {
|
|
383
|
+
command: e,
|
|
384
|
+
args: t,
|
|
385
|
+
options: n,
|
|
386
386
|
file: void 0,
|
|
387
387
|
original: {
|
|
388
|
-
command: e
|
|
389
|
-
args: t
|
|
388
|
+
command: e,
|
|
389
|
+
args: t
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
|
-
return n
|
|
392
|
+
return n.shell ? r : u(r);
|
|
393
393
|
}
|
|
394
|
-
t
|
|
394
|
+
t.exports = d;
|
|
395
395
|
});
|
|
396
|
-
var I = h((exports
|
|
397
|
-
const n
|
|
398
|
-
function r
|
|
399
|
-
return Object.assign(/* @__PURE__ */ new Error(`${t
|
|
396
|
+
var I = h((exports, t) => {
|
|
397
|
+
const n = process.platform === "win32";
|
|
398
|
+
function r(e, t) {
|
|
399
|
+
return Object.assign(/* @__PURE__ */ new Error(`${t} ${e.command} ENOENT`), {
|
|
400
400
|
code: "ENOENT",
|
|
401
401
|
errno: "ENOENT",
|
|
402
|
-
syscall: `${t
|
|
403
|
-
path: e
|
|
404
|
-
spawnargs: e
|
|
402
|
+
syscall: `${t} ${e.command}`,
|
|
403
|
+
path: e.command,
|
|
404
|
+
spawnargs: e.args
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
function i
|
|
408
|
-
if (!n
|
|
409
|
-
const r
|
|
410
|
-
e
|
|
411
|
-
if (n
|
|
412
|
-
const n
|
|
413
|
-
if (n
|
|
407
|
+
function i(e, t) {
|
|
408
|
+
if (!n) return;
|
|
409
|
+
const r = e.emit;
|
|
410
|
+
e.emit = function(n, i) {
|
|
411
|
+
if (n === "exit") {
|
|
412
|
+
const n = a(i, t, "spawn");
|
|
413
|
+
if (n) return r.call(e, "error", n);
|
|
414
414
|
}
|
|
415
|
-
return r
|
|
415
|
+
return r.apply(e, arguments);
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
|
-
function a
|
|
419
|
-
if (n
|
|
418
|
+
function a(e, t) {
|
|
419
|
+
if (n && e === 1 && !t.file) return r(t.original, "spawn");
|
|
420
420
|
return null;
|
|
421
421
|
}
|
|
422
|
-
function o
|
|
423
|
-
if (n
|
|
422
|
+
function o(e, t) {
|
|
423
|
+
if (n && e === 1 && !t.file) return r(t.original, "spawnSync");
|
|
424
424
|
return null;
|
|
425
425
|
}
|
|
426
|
-
t
|
|
427
|
-
hookChildProcess: i
|
|
428
|
-
verifyENOENT: a
|
|
429
|
-
verifyENOENTSync: o
|
|
430
|
-
notFoundError: r
|
|
426
|
+
t.exports = {
|
|
427
|
+
hookChildProcess: i,
|
|
428
|
+
verifyENOENT: a,
|
|
429
|
+
verifyENOENTSync: o,
|
|
430
|
+
notFoundError: r
|
|
431
431
|
};
|
|
432
432
|
});
|
|
433
|
-
var R = _(h((exports
|
|
434
|
-
const n
|
|
435
|
-
const r
|
|
436
|
-
const i
|
|
437
|
-
function a
|
|
438
|
-
const o
|
|
439
|
-
const s
|
|
440
|
-
i
|
|
441
|
-
return s
|
|
442
|
-
}
|
|
443
|
-
function o
|
|
444
|
-
const o
|
|
445
|
-
const s
|
|
446
|
-
s
|
|
447
|
-
return s
|
|
448
|
-
}
|
|
449
|
-
t
|
|
450
|
-
t
|
|
451
|
-
t
|
|
452
|
-
t
|
|
453
|
-
t
|
|
433
|
+
var R = _(h((exports, t) => {
|
|
434
|
+
const n = v("child_process");
|
|
435
|
+
const r = F();
|
|
436
|
+
const i = I();
|
|
437
|
+
function a(e, t, a) {
|
|
438
|
+
const o = r(e, t, a);
|
|
439
|
+
const s = n.spawn(o.command, o.args, o.options);
|
|
440
|
+
i.hookChildProcess(s, o);
|
|
441
|
+
return s;
|
|
442
|
+
}
|
|
443
|
+
function o(e, t, a) {
|
|
444
|
+
const o = r(e, t, a);
|
|
445
|
+
const s = n.spawnSync(o.command, o.args, o.options);
|
|
446
|
+
s.error = s.error || i.verifyENOENTSync(s.status, o);
|
|
447
|
+
return s;
|
|
448
|
+
}
|
|
449
|
+
t.exports = a;
|
|
450
|
+
t.exports.spawn = a;
|
|
451
|
+
t.exports.sync = o;
|
|
452
|
+
t.exports._parse = r;
|
|
453
|
+
t.exports._enoent = i;
|
|
454
454
|
})(), 1);
|
|
455
455
|
var z = class extends Error {
|
|
456
456
|
result;
|
|
@@ -458,10 +458,10 @@ var z = class extends Error {
|
|
|
458
458
|
get exitCode() {
|
|
459
459
|
if (this.result.exitCode !== null) return this.result.exitCode;
|
|
460
460
|
}
|
|
461
|
-
constructor(e
|
|
462
|
-
super(`Process exited with non-zero status (${e
|
|
463
|
-
this.result = e
|
|
464
|
-
this.output = t
|
|
461
|
+
constructor(e, t) {
|
|
462
|
+
super(`Process exited with non-zero status (${e.exitCode})`);
|
|
463
|
+
this.result = e;
|
|
464
|
+
this.output = t;
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
467
|
const B = {
|
|
@@ -469,30 +469,30 @@ const B = {
|
|
|
469
469
|
persist: false
|
|
470
470
|
};
|
|
471
471
|
const V = { windowsHide: true };
|
|
472
|
-
function H(e
|
|
472
|
+
function H(e, t) {
|
|
473
473
|
return {
|
|
474
|
-
command: (0, node_path.normalize)(e
|
|
475
|
-
args: t
|
|
474
|
+
command: (0, node_path.normalize)(e),
|
|
475
|
+
args: t ?? []
|
|
476
476
|
};
|
|
477
477
|
}
|
|
478
|
-
function U(e
|
|
479
|
-
const t
|
|
480
|
-
for (const n
|
|
481
|
-
if (n
|
|
482
|
-
t
|
|
483
|
-
return n
|
|
478
|
+
function U(e) {
|
|
479
|
+
const t = new AbortController();
|
|
480
|
+
for (const n of e) {
|
|
481
|
+
if (n.aborted) {
|
|
482
|
+
t.abort();
|
|
483
|
+
return n;
|
|
484
484
|
}
|
|
485
|
-
const e
|
|
486
|
-
t
|
|
485
|
+
const e = () => {
|
|
486
|
+
t.abort(n.reason);
|
|
487
487
|
};
|
|
488
|
-
n
|
|
488
|
+
n.addEventListener("abort", e, { signal: t.signal });
|
|
489
489
|
}
|
|
490
|
-
return t
|
|
490
|
+
return t.signal;
|
|
491
491
|
}
|
|
492
|
-
async function W(e
|
|
493
|
-
let t
|
|
494
|
-
for await (const n
|
|
495
|
-
return t
|
|
492
|
+
async function W(e) {
|
|
493
|
+
let t = "";
|
|
494
|
+
for await (const n of e) t += n.toString();
|
|
495
|
+
return t;
|
|
496
496
|
}
|
|
497
497
|
var G = class {
|
|
498
498
|
_process;
|
|
@@ -512,19 +512,19 @@ var G = class {
|
|
|
512
512
|
get exitCode() {
|
|
513
513
|
if (this._process && this._process.exitCode !== null) return this._process.exitCode;
|
|
514
514
|
}
|
|
515
|
-
constructor(e
|
|
515
|
+
constructor(e, t, n) {
|
|
516
516
|
this._options = {
|
|
517
517
|
...B,
|
|
518
|
-
...n
|
|
518
|
+
...n
|
|
519
519
|
};
|
|
520
|
-
this._command = e
|
|
521
|
-
this._args = t
|
|
522
|
-
this._processClosed = new Promise((e
|
|
523
|
-
this._resolveClose = e
|
|
520
|
+
this._command = e;
|
|
521
|
+
this._args = t ?? [];
|
|
522
|
+
this._processClosed = new Promise((e) => {
|
|
523
|
+
this._resolveClose = e;
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
|
-
kill(e
|
|
527
|
-
return this._process?.kill(e
|
|
526
|
+
kill(e) {
|
|
527
|
+
return this._process?.kill(e) === true;
|
|
528
528
|
}
|
|
529
529
|
get aborted() {
|
|
530
530
|
return this._aborted;
|
|
@@ -532,96 +532,96 @@ var G = class {
|
|
|
532
532
|
get killed() {
|
|
533
533
|
return this._process?.killed === true;
|
|
534
534
|
}
|
|
535
|
-
pipe(e
|
|
536
|
-
return q(e
|
|
537
|
-
...n
|
|
535
|
+
pipe(e, t, n) {
|
|
536
|
+
return q(e, t, {
|
|
537
|
+
...n,
|
|
538
538
|
stdin: this
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
async *[Symbol.asyncIterator]() {
|
|
542
|
-
const e
|
|
543
|
-
if (!e
|
|
544
|
-
const t
|
|
545
|
-
if (this._streamErr) t
|
|
546
|
-
if (this._streamOut) t
|
|
547
|
-
const n
|
|
548
|
-
const r
|
|
549
|
-
for await (const e
|
|
542
|
+
const e = this._process;
|
|
543
|
+
if (!e) return;
|
|
544
|
+
const t = [];
|
|
545
|
+
if (this._streamErr) t.push(this._streamErr);
|
|
546
|
+
if (this._streamOut) t.push(this._streamOut);
|
|
547
|
+
const n = w(t);
|
|
548
|
+
const r = node_readline.default.createInterface({ input: n });
|
|
549
|
+
for await (const e of r) yield e.toString();
|
|
550
550
|
await this._processClosed;
|
|
551
|
-
e
|
|
551
|
+
e.removeAllListeners();
|
|
552
552
|
if (this._thrownError) throw this._thrownError;
|
|
553
553
|
if (this._options?.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this);
|
|
554
554
|
}
|
|
555
555
|
async _waitForOutput() {
|
|
556
|
-
const e
|
|
557
|
-
if (!e
|
|
558
|
-
const [t
|
|
556
|
+
const e = this._process;
|
|
557
|
+
if (!e) throw new Error("No process was started");
|
|
558
|
+
const [t, n] = await Promise.all([this._streamOut ? W(this._streamOut) : "", this._streamErr ? W(this._streamErr) : ""]);
|
|
559
559
|
await this._processClosed;
|
|
560
560
|
if (this._options?.stdin) await this._options.stdin;
|
|
561
|
-
e
|
|
561
|
+
e.removeAllListeners();
|
|
562
562
|
if (this._thrownError) throw this._thrownError;
|
|
563
|
-
const r
|
|
564
|
-
stderr: n
|
|
565
|
-
stdout: t
|
|
563
|
+
const r = {
|
|
564
|
+
stderr: n,
|
|
565
|
+
stdout: t,
|
|
566
566
|
exitCode: this.exitCode
|
|
567
567
|
};
|
|
568
|
-
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r
|
|
569
|
-
return r
|
|
568
|
+
if (this._options.throwOnError && this.exitCode !== 0 && this.exitCode !== void 0) throw new z(this, r);
|
|
569
|
+
return r;
|
|
570
570
|
}
|
|
571
|
-
then(e
|
|
572
|
-
return this._waitForOutput().then(e
|
|
571
|
+
then(e, t) {
|
|
572
|
+
return this._waitForOutput().then(e, t);
|
|
573
573
|
}
|
|
574
574
|
_streamOut;
|
|
575
575
|
_streamErr;
|
|
576
576
|
spawn() {
|
|
577
|
-
const e
|
|
578
|
-
const n
|
|
579
|
-
const r
|
|
577
|
+
const e = (0, node_process.cwd)();
|
|
578
|
+
const n = this._options;
|
|
579
|
+
const r = {
|
|
580
580
|
...V,
|
|
581
|
-
...n
|
|
581
|
+
...n.nodeOptions
|
|
582
582
|
};
|
|
583
|
-
const i
|
|
583
|
+
const i = [];
|
|
584
584
|
this._resetState();
|
|
585
|
-
if (n
|
|
586
|
-
if (n
|
|
587
|
-
if (n
|
|
588
|
-
if (i
|
|
589
|
-
r
|
|
590
|
-
const { command: a
|
|
591
|
-
const c
|
|
592
|
-
const l
|
|
593
|
-
if (l
|
|
594
|
-
if (l
|
|
595
|
-
this._process = l
|
|
596
|
-
l
|
|
597
|
-
l
|
|
598
|
-
if (n
|
|
599
|
-
const { stdout: e
|
|
600
|
-
if (e
|
|
585
|
+
if (n.timeout !== void 0) i.push(AbortSignal.timeout(n.timeout));
|
|
586
|
+
if (n.signal !== void 0) i.push(n.signal);
|
|
587
|
+
if (n.persist === true) r.detached = true;
|
|
588
|
+
if (i.length > 0) r.signal = U(i);
|
|
589
|
+
r.env = C(e, r.env);
|
|
590
|
+
const { command: a, args: s } = H(this._command, this._args);
|
|
591
|
+
const c = (0, R._parse)(a, s, r);
|
|
592
|
+
const l = (0, node_child_process.spawn)(c.command, c.args, c.options);
|
|
593
|
+
if (l.stderr) this._streamErr = l.stderr;
|
|
594
|
+
if (l.stdout) this._streamOut = l.stdout;
|
|
595
|
+
this._process = l;
|
|
596
|
+
l.once("error", this._onError);
|
|
597
|
+
l.once("close", this._onClose);
|
|
598
|
+
if (n.stdin !== void 0 && l.stdin && n.stdin.process) {
|
|
599
|
+
const { stdout: e } = n.stdin.process;
|
|
600
|
+
if (e) e.pipe(l.stdin);
|
|
601
601
|
}
|
|
602
602
|
}
|
|
603
603
|
_resetState() {
|
|
604
604
|
this._aborted = false;
|
|
605
|
-
this._processClosed = new Promise((e
|
|
606
|
-
this._resolveClose = e
|
|
605
|
+
this._processClosed = new Promise((e) => {
|
|
606
|
+
this._resolveClose = e;
|
|
607
607
|
});
|
|
608
608
|
this._thrownError = void 0;
|
|
609
609
|
}
|
|
610
|
-
_onError = (e
|
|
611
|
-
if (e
|
|
610
|
+
_onError = (e) => {
|
|
611
|
+
if (e.name === "AbortError" && (!(e.cause instanceof Error) || e.cause.name !== "TimeoutError")) {
|
|
612
612
|
this._aborted = true;
|
|
613
613
|
return;
|
|
614
614
|
}
|
|
615
|
-
this._thrownError = e
|
|
615
|
+
this._thrownError = e;
|
|
616
616
|
};
|
|
617
617
|
_onClose = () => {
|
|
618
618
|
if (this._resolveClose) this._resolveClose();
|
|
619
619
|
};
|
|
620
620
|
};
|
|
621
|
-
const K = (e
|
|
622
|
-
const r
|
|
623
|
-
r
|
|
624
|
-
return r
|
|
621
|
+
const K = (e, t, n) => {
|
|
622
|
+
const r = new G(e, t, n);
|
|
623
|
+
r.spawn();
|
|
624
|
+
return r;
|
|
625
625
|
};
|
|
626
626
|
const q = K;
|
|
627
627
|
|