blockmine 1.0.0 → 1.0.1
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 +6 -3
- package/backend/.env +7 -0
- package/backend/node_modules/.bin/blockminejs +16 -0
- package/backend/node_modules/.bin/blockminejs.cmd +17 -0
- package/backend/node_modules/.bin/blockminejs.ps1 +28 -0
- package/backend/node_modules/.bin/nodemon +16 -0
- package/backend/node_modules/.bin/nodemon.cmd +17 -0
- package/backend/node_modules/.bin/nodemon.ps1 +28 -0
- package/backend/node_modules/.bin/nodetouch +16 -0
- package/backend/node_modules/.bin/nodetouch.cmd +17 -0
- package/backend/node_modules/.bin/nodetouch.ps1 +28 -0
- package/backend/node_modules/.bin/prisma +16 -0
- package/backend/node_modules/.bin/prisma.cmd +17 -0
- package/backend/node_modules/.bin/prisma.ps1 +28 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/libquery-engine.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine +0 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.gz.sha256 +1 -0
- package/backend/node_modules/.cache/prisma/master/81e4af48011447c3cc503a190e86995b66d2a28e/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/.package-lock.json +2521 -0
- package/backend/node_modules/.prisma/client/client.d.ts +1 -0
- package/backend/node_modules/.prisma/client/client.js +4 -0
- package/backend/node_modules/.prisma/client/default.d.ts +1 -0
- package/backend/node_modules/.prisma/client/default.js +1 -0
- package/backend/node_modules/.prisma/client/deno/edge.d.ts +9 -0
- package/backend/node_modules/.prisma/client/edge.d.ts +1 -0
- package/backend/node_modules/.prisma/client/edge.js +263 -0
- package/backend/node_modules/.prisma/client/index-browser.js +258 -0
- package/backend/node_modules/.prisma/client/index.d.ts +15548 -0
- package/backend/node_modules/.prisma/client/index.js +286 -0
- package/backend/node_modules/.prisma/client/package.json +97 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp14264 +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp18496 +0 -0
- package/backend/node_modules/.prisma/client/query_engine-windows.dll.node.tmp24408 +0 -0
- package/backend/node_modules/.prisma/client/schema.prisma +136 -0
- package/backend/node_modules/.prisma/client/wasm.d.ts +1 -0
- package/backend/node_modules/.prisma/client/wasm.js +258 -0
- package/backend/node_modules/@prisma/debug/LICENSE +201 -0
- package/backend/node_modules/@prisma/debug/README.md +29 -0
- package/backend/node_modules/@prisma/debug/dist/index.d.ts +35 -0
- package/backend/node_modules/@prisma/debug/dist/index.js +236 -0
- package/backend/node_modules/@prisma/debug/dist/util.d.ts +2 -0
- package/backend/node_modules/@prisma/debug/dist/util.js +74 -0
- package/backend/node_modules/@prisma/debug/package.json +37 -0
- package/backend/node_modules/@prisma/engines/LICENSE +201 -0
- package/backend/node_modules/@prisma/engines/README.md +13 -0
- package/backend/node_modules/@prisma/engines/dist/index.d.ts +18 -0
- package/backend/node_modules/@prisma/engines/dist/index.js +113 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.d.ts +1 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/localinstall.js +2048 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.d.ts +1 -0
- package/backend/node_modules/@prisma/engines/dist/scripts/postinstall.js +128 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine +0 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.gz.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/libquery-engine.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine +0 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.gz.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/node_modules/.cache/prisma/master/605197351a3c8bdd595af2d2a9bc3025bca48ea2/windows/schema-engine.sha256 +1 -0
- package/backend/node_modules/@prisma/engines/package.json +41 -0
- package/backend/node_modules/@prisma/engines/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/@prisma/engines/schema-engine-windows.exe +0 -0
- package/backend/node_modules/@prisma/engines/scripts/postinstall.js +28 -0
- package/backend/node_modules/@prisma/engines-version/LICENSE +201 -0
- package/backend/node_modules/@prisma/engines-version/README.md +8 -0
- package/backend/node_modules/@prisma/engines-version/index.d.ts +1 -0
- package/backend/node_modules/@prisma/engines-version/index.js +5 -0
- package/backend/node_modules/@prisma/engines-version/package.json +27 -0
- package/backend/node_modules/@prisma/fetch-engine/LICENSE +201 -0
- package/backend/node_modules/@prisma/fetch-engine/README.md +8 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.d.ts +5 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/BinaryType.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chmodPlusX.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-2BCLJS3M.js +2385 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-4LX3XBNY.js +161 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-AH6QHEOA.js +66 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-CWGQAQ3T.js +49 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-FQ2BOR66.js +2457 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KDPLGCY6.js +1404 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-KJ74H3SQ.js +2385 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-MX3HXAU2.js +44 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-PXQVM7NP.js +159 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QLWYUM7O.js +8153 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-QSTZGX47.js +70 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-RGVHWUUH.js +2786 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-VTJS2JJN.js +4232 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/chunk-X37PZICB.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/cleanupCache.js +28 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/download.d.ts +27 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/download.js +41 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.d.ts +6 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/downloadZip.js +30 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/env.d.ts +14 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/env.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.d.ts +1 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getHash.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.d.ts +3 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/getProxyAgent.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/index.d.ts +5 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/index.js +49 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/log.d.ts +2 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/log.js +25 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/multipart-parser-47FFAP42.js +371 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.d.ts +11 -0
- package/backend/node_modules/@prisma/fetch-engine/dist/utils.js +29 -0
- package/backend/node_modules/@prisma/fetch-engine/package.json +59 -0
- package/backend/node_modules/@prisma/get-platform/LICENSE +201 -0
- package/backend/node_modules/@prisma/get-platform/README.md +16 -0
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.d.ts +4 -0
- package/backend/node_modules/@prisma/get-platform/dist/assertNodeAPISupported.js +25 -0
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.d.ts +2 -0
- package/backend/node_modules/@prisma/get-platform/dist/binaryTargets.js +26 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2ESYSVXG.js +67 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-2U36ISZO.js +34 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-6HZWON4S.js +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-7MLUNQIZ.js +62 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-B23KD6U3.js +53 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-D7S5FGQN.js +367 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-FWMN4WME.js +41 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-M5NKJZ76.js +14956 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-O5EOXX3N.js +43 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YDM7ULQH.js +580 -0
- package/backend/node_modules/@prisma/get-platform/dist/chunk-YVXCXD3A.js +70 -0
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/getNodeAPIName.js +25 -0
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.d.ts +105 -0
- package/backend/node_modules/@prisma/get-platform/dist/getPlatform.js +38 -0
- package/backend/node_modules/@prisma/get-platform/dist/index.d.ts +7 -0
- package/backend/node_modules/@prisma/get-platform/dist/index.js +43 -0
- package/backend/node_modules/@prisma/get-platform/dist/link.d.ts +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/link.js +26 -0
- package/backend/node_modules/@prisma/get-platform/dist/logger.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/logger.js +29 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.d.ts +8 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/binaryTargetRegex.js +27 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.d.ts +1 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/index.js +28 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.d.ts +108 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestContext.js +27 -0
- package/backend/node_modules/@prisma/get-platform/dist/test-utils/jestSnapshotSerializer.js +205 -0
- package/backend/node_modules/@prisma/get-platform/package.json +49 -0
- package/backend/node_modules/anymatch/LICENSE +15 -0
- package/backend/node_modules/anymatch/README.md +87 -0
- package/backend/node_modules/anymatch/index.d.ts +20 -0
- package/backend/node_modules/anymatch/index.js +104 -0
- package/backend/node_modules/anymatch/package.json +48 -0
- package/backend/node_modules/binary-extensions/binary-extensions.json +263 -0
- package/backend/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/backend/node_modules/binary-extensions/index.d.ts +14 -0
- package/backend/node_modules/binary-extensions/index.js +1 -0
- package/backend/node_modules/binary-extensions/license +10 -0
- package/backend/node_modules/binary-extensions/package.json +40 -0
- package/backend/node_modules/binary-extensions/readme.md +25 -0
- package/backend/node_modules/brace-expansion/LICENSE +21 -0
- package/backend/node_modules/brace-expansion/README.md +129 -0
- package/backend/node_modules/brace-expansion/index.js +201 -0
- package/backend/node_modules/brace-expansion/package.json +47 -0
- package/backend/node_modules/braces/LICENSE +21 -0
- package/backend/node_modules/braces/README.md +586 -0
- package/backend/node_modules/braces/index.js +170 -0
- package/backend/node_modules/braces/lib/compile.js +60 -0
- package/backend/node_modules/braces/lib/constants.js +57 -0
- package/backend/node_modules/braces/lib/expand.js +113 -0
- package/backend/node_modules/braces/lib/parse.js +331 -0
- package/backend/node_modules/braces/lib/stringify.js +32 -0
- package/backend/node_modules/braces/lib/utils.js +122 -0
- package/backend/node_modules/braces/package.json +77 -0
- package/backend/node_modules/chokidar/LICENSE +21 -0
- package/backend/node_modules/chokidar/README.md +308 -0
- package/backend/node_modules/chokidar/index.js +973 -0
- package/backend/node_modules/chokidar/lib/constants.js +66 -0
- package/backend/node_modules/chokidar/lib/fsevents-handler.js +526 -0
- package/backend/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/backend/node_modules/chokidar/package.json +70 -0
- package/backend/node_modules/chokidar/types/index.d.ts +192 -0
- package/backend/node_modules/concat-map/.travis.yml +4 -0
- package/backend/node_modules/concat-map/LICENSE +18 -0
- package/backend/node_modules/concat-map/README.markdown +62 -0
- package/backend/node_modules/concat-map/example/map.js +6 -0
- package/backend/node_modules/concat-map/index.js +13 -0
- package/backend/node_modules/concat-map/package.json +43 -0
- package/backend/node_modules/concat-map/test/map.js +39 -0
- package/backend/node_modules/debug/LICENSE +20 -0
- package/backend/node_modules/debug/README.md +481 -0
- package/backend/node_modules/debug/package.json +64 -0
- package/backend/node_modules/debug/src/browser.js +272 -0
- package/backend/node_modules/debug/src/common.js +292 -0
- package/backend/node_modules/debug/src/index.js +10 -0
- package/backend/node_modules/debug/src/node.js +263 -0
- package/backend/node_modules/fill-range/LICENSE +21 -0
- package/backend/node_modules/fill-range/README.md +237 -0
- package/backend/node_modules/fill-range/index.js +248 -0
- package/backend/node_modules/fill-range/package.json +74 -0
- package/backend/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/backend/node_modules/glob-parent/LICENSE +15 -0
- package/backend/node_modules/glob-parent/README.md +137 -0
- package/backend/node_modules/glob-parent/index.js +42 -0
- package/backend/node_modules/glob-parent/package.json +48 -0
- package/backend/node_modules/has-flag/index.js +8 -0
- package/backend/node_modules/has-flag/license +9 -0
- package/backend/node_modules/has-flag/package.json +44 -0
- package/backend/node_modules/has-flag/readme.md +70 -0
- package/backend/node_modules/ignore-by-default/LICENSE +14 -0
- package/backend/node_modules/ignore-by-default/README.md +26 -0
- package/backend/node_modules/ignore-by-default/index.js +12 -0
- package/backend/node_modules/ignore-by-default/package.json +34 -0
- package/backend/node_modules/is-binary-path/index.d.ts +17 -0
- package/backend/node_modules/is-binary-path/index.js +7 -0
- package/backend/node_modules/is-binary-path/license +9 -0
- package/backend/node_modules/is-binary-path/package.json +40 -0
- package/backend/node_modules/is-binary-path/readme.md +34 -0
- package/backend/node_modules/is-extglob/LICENSE +21 -0
- package/backend/node_modules/is-extglob/README.md +107 -0
- package/backend/node_modules/is-extglob/index.js +20 -0
- package/backend/node_modules/is-extglob/package.json +69 -0
- package/backend/node_modules/is-glob/LICENSE +21 -0
- package/backend/node_modules/is-glob/README.md +206 -0
- package/backend/node_modules/is-glob/index.js +150 -0
- package/backend/node_modules/is-glob/package.json +81 -0
- package/backend/node_modules/is-number/LICENSE +21 -0
- package/backend/node_modules/is-number/README.md +187 -0
- package/backend/node_modules/is-number/index.js +18 -0
- package/backend/node_modules/is-number/package.json +82 -0
- package/backend/node_modules/minimatch/LICENSE +15 -0
- package/backend/node_modules/minimatch/README.md +230 -0
- package/backend/node_modules/minimatch/minimatch.js +947 -0
- package/backend/node_modules/minimatch/package.json +33 -0
- package/backend/node_modules/ms/index.js +162 -0
- package/backend/node_modules/ms/license.md +21 -0
- package/backend/node_modules/ms/package.json +38 -0
- package/backend/node_modules/ms/readme.md +59 -0
- package/backend/node_modules/nodemon/.prettierrc.json +3 -0
- package/backend/node_modules/nodemon/LICENSE +21 -0
- package/backend/node_modules/nodemon/README.md +441 -0
- package/backend/node_modules/nodemon/bin/nodemon.js +16 -0
- package/backend/node_modules/nodemon/bin/windows-kill.exe +0 -0
- package/backend/node_modules/nodemon/doc/cli/authors.txt +8 -0
- package/backend/node_modules/nodemon/doc/cli/config.txt +44 -0
- package/backend/node_modules/nodemon/doc/cli/help.txt +29 -0
- package/backend/node_modules/nodemon/doc/cli/logo.txt +20 -0
- package/backend/node_modules/nodemon/doc/cli/options.txt +36 -0
- package/backend/node_modules/nodemon/doc/cli/topics.txt +8 -0
- package/backend/node_modules/nodemon/doc/cli/usage.txt +3 -0
- package/backend/node_modules/nodemon/doc/cli/whoami.txt +9 -0
- package/backend/node_modules/nodemon/index.d.ts +125 -0
- package/backend/node_modules/nodemon/jsconfig.json +7 -0
- package/backend/node_modules/nodemon/lib/cli/index.js +49 -0
- package/backend/node_modules/nodemon/lib/cli/parse.js +230 -0
- package/backend/node_modules/nodemon/lib/config/command.js +43 -0
- package/backend/node_modules/nodemon/lib/config/defaults.js +34 -0
- package/backend/node_modules/nodemon/lib/config/exec.js +234 -0
- package/backend/node_modules/nodemon/lib/config/index.js +93 -0
- package/backend/node_modules/nodemon/lib/config/load.js +225 -0
- package/backend/node_modules/nodemon/lib/help/index.js +27 -0
- package/backend/node_modules/nodemon/lib/index.js +1 -0
- package/backend/node_modules/nodemon/lib/monitor/index.js +4 -0
- package/backend/node_modules/nodemon/lib/monitor/match.js +287 -0
- package/backend/node_modules/nodemon/lib/monitor/run.js +562 -0
- package/backend/node_modules/nodemon/lib/monitor/signals.js +34 -0
- package/backend/node_modules/nodemon/lib/monitor/watch.js +244 -0
- package/backend/node_modules/nodemon/lib/nodemon.js +317 -0
- package/backend/node_modules/nodemon/lib/rules/add.js +89 -0
- package/backend/node_modules/nodemon/lib/rules/index.js +53 -0
- package/backend/node_modules/nodemon/lib/rules/parse.js +43 -0
- package/backend/node_modules/nodemon/lib/spawn.js +74 -0
- package/backend/node_modules/nodemon/lib/utils/bus.js +44 -0
- package/backend/node_modules/nodemon/lib/utils/clone.js +40 -0
- package/backend/node_modules/nodemon/lib/utils/colour.js +26 -0
- package/backend/node_modules/nodemon/lib/utils/index.js +103 -0
- package/backend/node_modules/nodemon/lib/utils/log.js +82 -0
- package/backend/node_modules/nodemon/lib/utils/merge.js +47 -0
- package/backend/node_modules/nodemon/lib/version.js +100 -0
- package/backend/node_modules/nodemon/package.json +75 -0
- package/backend/node_modules/picomatch/CHANGELOG.md +136 -0
- package/backend/node_modules/picomatch/LICENSE +21 -0
- package/backend/node_modules/picomatch/README.md +708 -0
- package/backend/node_modules/picomatch/index.js +3 -0
- package/backend/node_modules/picomatch/lib/constants.js +179 -0
- package/backend/node_modules/picomatch/lib/parse.js +1091 -0
- package/backend/node_modules/picomatch/lib/picomatch.js +342 -0
- package/backend/node_modules/picomatch/lib/scan.js +391 -0
- package/backend/node_modules/picomatch/lib/utils.js +64 -0
- package/backend/node_modules/picomatch/package.json +81 -0
- package/backend/node_modules/prisma/LICENSE +201 -0
- package/backend/node_modules/prisma/README.md +84 -0
- package/backend/node_modules/prisma/build/child.js +82915 -0
- package/backend/node_modules/prisma/build/index.js +2591 -0
- package/backend/node_modules/prisma/build/prisma_schema_build_bg.wasm +0 -0
- package/backend/node_modules/prisma/build/public/assets/alert.60ea9f84.svg +5 -0
- package/backend/node_modules/prisma/build/public/assets/array.1a36c222.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/boolean.9188b434.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/chevron-down.24f76e3c.svg +3 -0
- package/backend/node_modules/prisma/build/public/assets/cross.c2610cf5.svg +11 -0
- package/backend/node_modules/prisma/build/public/assets/datetime.a3bf710a.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/download.8d34b65a.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/ellipsis.a8c5a34a.svg +10 -0
- package/backend/node_modules/prisma/build/public/assets/enum.7ec0b64c.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/folder.d77b8eaf.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/hamburger.5fdadeac.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/index.js +1 -0
- package/backend/node_modules/prisma/build/public/assets/inter-all-400-normal.4c1f8a0d.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-all-600-normal.d0a7c8a9.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-400-normal.ac97a49e.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-600-normal.2c917f10.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-400-normal.f21a6a97.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-cyrillic-ext-600-normal.bb31f197.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-400-normal.e9163df8.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-600-normal.e644d70f.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-400-normal.43addcc8.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-greek-ext-600-normal.7f437016.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-400-normal.27ae72da.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-600-normal.87d718a2.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-400-normal.5b02c69a.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-latin-ext-600-normal.88feb9e4.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/inter-vietnamese-600-normal.8185dacd.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-all-400-normal.f86807b7.woff +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-cyrillic-400-normal.1ae57fe2.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-400-normal.80a5dc9e.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/jetbrains-mono-latin-ext-400-normal.6315c53c.woff2 +0 -0
- package/backend/node_modules/prisma/build/public/assets/logotype.a960b169.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/number.85ddf96b.svg +7 -0
- package/backend/node_modules/prisma/build/public/assets/object.0ba944a6.svg +5 -0
- package/backend/node_modules/prisma/build/public/assets/play.8811691e.svg +6 -0
- package/backend/node_modules/prisma/build/public/assets/plus.8fbf7ad3.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/refresh.d5448ccc.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/search.2ed766ce.svg +7 -0
- package/backend/node_modules/prisma/build/public/assets/settings.5ad25af2.svg +8 -0
- package/backend/node_modules/prisma/build/public/assets/string.ea615a24.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/tick-indeterminate.aec8a44d.svg +3 -0
- package/backend/node_modules/prisma/build/public/assets/tick.8cbb6a93.svg +4 -0
- package/backend/node_modules/prisma/build/public/assets/vendor.js +385 -0
- package/backend/node_modules/prisma/build/public/favicon.svg +5 -0
- package/backend/node_modules/prisma/build/public/http/databrowser.js +1 -0
- package/backend/node_modules/prisma/build/public/http/splash.js +1 -0
- package/backend/node_modules/prisma/build/public/icon-1024.png +0 -0
- package/backend/node_modules/prisma/build/public/index.css +1 -0
- package/backend/node_modules/prisma/build/public/pages/http/databrowser.html +21 -0
- package/backend/node_modules/prisma/build/public/pages/http/splash.html +21 -0
- package/backend/node_modules/prisma/build/xdg-open +1066 -0
- package/backend/node_modules/prisma/package.json +136 -0
- package/backend/node_modules/prisma/preinstall/index.js +7 -0
- package/backend/node_modules/prisma/prisma-client/README.md +27 -0
- package/backend/node_modules/prisma/prisma-client/default.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/default.js +3 -0
- package/backend/node_modules/prisma/prisma-client/edge.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/edge.js +4 -0
- package/backend/node_modules/prisma/prisma-client/extension.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/extension.js +4 -0
- package/backend/node_modules/prisma/prisma-client/generator-build/index.js +10351 -0
- package/backend/node_modules/prisma/prisma-client/index-browser.js +3 -0
- package/backend/node_modules/prisma/prisma-client/index.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/index.js +4 -0
- package/backend/node_modules/prisma/prisma-client/package.json +281 -0
- package/backend/node_modules/prisma/prisma-client/react-native.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/react-native.js +3 -0
- package/backend/node_modules/prisma/prisma-client/runtime/binary.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/runtime/binary.js +210 -0
- package/backend/node_modules/prisma/prisma-client/runtime/edge-esm.js +31 -0
- package/backend/node_modules/prisma/prisma-client/runtime/edge.js +31 -0
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.d.ts +365 -0
- package/backend/node_modules/prisma/prisma-client/runtime/index-browser.js +13 -0
- package/backend/node_modules/prisma/prisma-client/runtime/library.d.ts +3403 -0
- package/backend/node_modules/prisma/prisma-client/runtime/library.js +143 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.mysql.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.postgresql.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/query_engine_bg.sqlite.js +2 -0
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.d.ts +3403 -0
- package/backend/node_modules/prisma/prisma-client/runtime/react-native.js +80 -0
- package/backend/node_modules/prisma/prisma-client/scripts/colors.js +176 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-deno-edge.ts +9 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.d.ts +110 -0
- package/backend/node_modules/prisma/prisma-client/scripts/default-index.js +65 -0
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.d.ts +5 -0
- package/backend/node_modules/prisma/prisma-client/scripts/postinstall.js +410 -0
- package/backend/node_modules/prisma/prisma-client/sql.d.ts +1 -0
- package/backend/node_modules/prisma/prisma-client/sql.js +4 -0
- package/backend/node_modules/prisma/prisma-client/sql.mjs +1 -0
- package/backend/node_modules/prisma/query_engine-windows.dll.node +0 -0
- package/backend/node_modules/prisma/scripts/preinstall-entry.js +10 -0
- package/backend/node_modules/pstree.remy/.travis.yml +8 -0
- package/backend/node_modules/pstree.remy/LICENSE +7 -0
- package/backend/node_modules/pstree.remy/README.md +26 -0
- package/backend/node_modules/pstree.remy/lib/index.js +37 -0
- package/backend/node_modules/pstree.remy/lib/tree.js +37 -0
- package/backend/node_modules/pstree.remy/lib/utils.js +53 -0
- package/backend/node_modules/pstree.remy/package.json +33 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/index.js +13 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/out1 +10 -0
- package/backend/node_modules/pstree.remy/tests/fixtures/out2 +29 -0
- package/backend/node_modules/pstree.remy/tests/index.test.js +51 -0
- package/backend/node_modules/readdirp/LICENSE +21 -0
- package/backend/node_modules/readdirp/README.md +122 -0
- package/backend/node_modules/readdirp/index.d.ts +43 -0
- package/backend/node_modules/readdirp/index.js +287 -0
- package/backend/node_modules/readdirp/package.json +122 -0
- package/backend/node_modules/simple-update-notifier/LICENSE +21 -0
- package/backend/node_modules/simple-update-notifier/README.md +82 -0
- package/backend/node_modules/simple-update-notifier/build/index.d.ts +13 -0
- package/backend/node_modules/simple-update-notifier/build/index.js +210 -0
- package/backend/node_modules/simple-update-notifier/package.json +100 -0
- package/backend/node_modules/simple-update-notifier/src/borderedText.ts +12 -0
- package/backend/node_modules/simple-update-notifier/src/cache.spec.ts +17 -0
- package/backend/node_modules/simple-update-notifier/src/cache.ts +44 -0
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.spec.ts +35 -0
- package/backend/node_modules/simple-update-notifier/src/getDistVersion.ts +29 -0
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.spec.ts +82 -0
- package/backend/node_modules/simple-update-notifier/src/hasNewVersion.ts +40 -0
- package/backend/node_modules/simple-update-notifier/src/index.spec.ts +27 -0
- package/backend/node_modules/simple-update-notifier/src/index.ts +34 -0
- package/backend/node_modules/simple-update-notifier/src/isNpmOrYarn.ts +12 -0
- package/backend/node_modules/simple-update-notifier/src/types.ts +8 -0
- package/backend/node_modules/supports-color/browser.js +5 -0
- package/backend/node_modules/supports-color/index.js +131 -0
- package/backend/node_modules/supports-color/license +9 -0
- package/backend/node_modules/supports-color/package.json +53 -0
- package/backend/node_modules/supports-color/readme.md +66 -0
- package/backend/node_modules/to-regex-range/LICENSE +21 -0
- package/backend/node_modules/to-regex-range/README.md +305 -0
- package/backend/node_modules/to-regex-range/index.js +288 -0
- package/backend/node_modules/to-regex-range/package.json +88 -0
- package/backend/node_modules/touch/LICENSE +15 -0
- package/backend/node_modules/touch/README.md +52 -0
- package/backend/node_modules/touch/bin/nodetouch.js +112 -0
- package/backend/node_modules/touch/index.js +224 -0
- package/backend/node_modules/touch/package.json +25 -0
- package/backend/node_modules/undefsafe/.github/workflows/release.yml +25 -0
- package/backend/node_modules/undefsafe/.jscsrc +13 -0
- package/backend/node_modules/undefsafe/.jshintrc +16 -0
- package/backend/node_modules/undefsafe/.travis.yml +18 -0
- package/backend/node_modules/undefsafe/LICENSE +22 -0
- package/backend/node_modules/undefsafe/README.md +63 -0
- package/backend/node_modules/undefsafe/example.js +14 -0
- package/backend/node_modules/undefsafe/lib/undefsafe.js +125 -0
- package/backend/node_modules/undefsafe/package.json +34 -0
- package/backend/package.json +1 -14
- package/backend/prisma/dev.db +0 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/index.js +59 -0
- package/backend/storage/plugins/bot_1/anti-tp-keksik/package.json +23 -0
- package/backend/storage/plugins/bot_1/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_1/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_1/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/README.md +64 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/index.js +98 -0
- package/backend/storage/plugins/bot_1/clan-role-manager/package.json +13 -0
- package/backend/storage/plugins/bot_1/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_1/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_1/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_1/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_1/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_1/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/index.js +35 -0
- package/backend/storage/plugins/bot_1/unlock-auth-keksik/package.json +18 -0
- package/backend/storage/plugins/bot_2/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_2/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_2/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_2/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_3/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_3/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_3/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_3/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_3/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_3/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_3/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_3/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_3/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_4/fly-keksik/index.js +111 -0
- package/backend/storage/plugins/bot_4/fly-keksik/package.json +59 -0
- package/backend/storage/plugins/bot_4/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_4/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_4/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_4/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_5/auth-keksik-servers/index.js +66 -0
- package/backend/storage/plugins/bot_5/auth-keksik-servers/package.json +20 -0
- package/backend/storage/plugins/bot_5/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_5/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_5/parser-keksik/index.js +117 -0
- package/backend/storage/plugins/bot_5/parser-keksik/package.json +40 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/README.md +81 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/index.js +46 -0
- package/backend/storage/plugins/bot_6/clan-events-keksik/package.json +14 -0
- package/backend/storage/plugins/bot_6/clan-welcome/index.js +32 -0
- package/backend/storage/plugins/bot_6/clan-welcome/package.json +22 -0
- package/backend/storage/plugins/bot_6/parser-keksik/LICENSE.md +12 -0
- package/backend/storage/plugins/bot_6/parser-keksik/README.md +65 -0
- package/backend/storage/plugins/bot_6/parser-keksik/index.js +135 -0
- package/backend/storage/plugins/bot_6/parser-keksik/package.json +40 -0
- package/package.json +29 -4
- package/frontend/package.json +0 -65
- package/image/1.png +0 -0
- package/image/2.png +0 -0
- package/image/3.png +0 -0
- package/image/logo.png +0 -0
- package/tailwind.config.js +0 -0
- package/vite.config.js +0 -0
|
@@ -0,0 +1,2048 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
|
|
28
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
29
|
+
var require_windows = __commonJS({
|
|
30
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports2, module2) {
|
|
31
|
+
"use strict";
|
|
32
|
+
module2.exports = isexe;
|
|
33
|
+
isexe.sync = sync;
|
|
34
|
+
var fs2 = require("fs");
|
|
35
|
+
function checkPathExt(path2, options) {
|
|
36
|
+
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
37
|
+
if (!pathext) {
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
pathext = pathext.split(";");
|
|
41
|
+
if (pathext.indexOf("") !== -1) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
for (var i = 0; i < pathext.length; i++) {
|
|
45
|
+
var p = pathext[i].toLowerCase();
|
|
46
|
+
if (p && path2.substr(-p.length).toLowerCase() === p) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
function checkStat(stat, path2, options) {
|
|
53
|
+
if (!stat.isSymbolicLink() && !stat.isFile()) {
|
|
54
|
+
return false;
|
|
55
|
+
}
|
|
56
|
+
return checkPathExt(path2, options);
|
|
57
|
+
}
|
|
58
|
+
function isexe(path2, options, cb) {
|
|
59
|
+
fs2.stat(path2, function(er, stat) {
|
|
60
|
+
cb(er, er ? false : checkStat(stat, path2, options));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function sync(path2, options) {
|
|
64
|
+
return checkStat(fs2.statSync(path2), path2, options);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
70
|
+
var require_mode = __commonJS({
|
|
71
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports2, module2) {
|
|
72
|
+
"use strict";
|
|
73
|
+
module2.exports = isexe;
|
|
74
|
+
isexe.sync = sync;
|
|
75
|
+
var fs2 = require("fs");
|
|
76
|
+
function isexe(path2, options, cb) {
|
|
77
|
+
fs2.stat(path2, function(er, stat) {
|
|
78
|
+
cb(er, er ? false : checkStat(stat, options));
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function sync(path2, options) {
|
|
82
|
+
return checkStat(fs2.statSync(path2), options);
|
|
83
|
+
}
|
|
84
|
+
function checkStat(stat, options) {
|
|
85
|
+
return stat.isFile() && checkMode(stat, options);
|
|
86
|
+
}
|
|
87
|
+
function checkMode(stat, options) {
|
|
88
|
+
var mod = stat.mode;
|
|
89
|
+
var uid = stat.uid;
|
|
90
|
+
var gid = stat.gid;
|
|
91
|
+
var myUid = options.uid !== void 0 ? options.uid : process.getuid && process.getuid();
|
|
92
|
+
var myGid = options.gid !== void 0 ? options.gid : process.getgid && process.getgid();
|
|
93
|
+
var u = parseInt("100", 8);
|
|
94
|
+
var g = parseInt("010", 8);
|
|
95
|
+
var o = parseInt("001", 8);
|
|
96
|
+
var ug = u | g;
|
|
97
|
+
var ret = mod & o || mod & g && gid === myGid || mod & u && uid === myUid || mod & ug && myUid === 0;
|
|
98
|
+
return ret;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
104
|
+
var require_isexe = __commonJS({
|
|
105
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports2, module2) {
|
|
106
|
+
"use strict";
|
|
107
|
+
var fs2 = require("fs");
|
|
108
|
+
var core;
|
|
109
|
+
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
110
|
+
core = require_windows();
|
|
111
|
+
} else {
|
|
112
|
+
core = require_mode();
|
|
113
|
+
}
|
|
114
|
+
module2.exports = isexe;
|
|
115
|
+
isexe.sync = sync;
|
|
116
|
+
function isexe(path2, options, cb) {
|
|
117
|
+
if (typeof options === "function") {
|
|
118
|
+
cb = options;
|
|
119
|
+
options = {};
|
|
120
|
+
}
|
|
121
|
+
if (!cb) {
|
|
122
|
+
if (typeof Promise !== "function") {
|
|
123
|
+
throw new TypeError("callback not provided");
|
|
124
|
+
}
|
|
125
|
+
return new Promise(function(resolve, reject) {
|
|
126
|
+
isexe(path2, options || {}, function(er, is) {
|
|
127
|
+
if (er) {
|
|
128
|
+
reject(er);
|
|
129
|
+
} else {
|
|
130
|
+
resolve(is);
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
core(path2, options || {}, function(er, is) {
|
|
136
|
+
if (er) {
|
|
137
|
+
if (er.code === "EACCES" || options && options.ignoreErrors) {
|
|
138
|
+
er = null;
|
|
139
|
+
is = false;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
cb(er, is);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function sync(path2, options) {
|
|
146
|
+
try {
|
|
147
|
+
return core.sync(path2, options || {});
|
|
148
|
+
} catch (er) {
|
|
149
|
+
if (options && options.ignoreErrors || er.code === "EACCES") {
|
|
150
|
+
return false;
|
|
151
|
+
} else {
|
|
152
|
+
throw er;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
160
|
+
var require_which = __commonJS({
|
|
161
|
+
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports2, module2) {
|
|
162
|
+
"use strict";
|
|
163
|
+
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
164
|
+
var path2 = require("path");
|
|
165
|
+
var COLON = isWindows ? ";" : ":";
|
|
166
|
+
var isexe = require_isexe();
|
|
167
|
+
var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
168
|
+
var getPathInfo = (cmd, opt) => {
|
|
169
|
+
const colon = opt.colon || COLON;
|
|
170
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [
|
|
171
|
+
// windows always checks the cwd first
|
|
172
|
+
...isWindows ? [process.cwd()] : [],
|
|
173
|
+
...(opt.path || process.env.PATH || /* istanbul ignore next: very unusual */
|
|
174
|
+
"").split(colon)
|
|
175
|
+
];
|
|
176
|
+
const pathExtExe = isWindows ? opt.pathExt || process.env.PATHEXT || ".EXE;.CMD;.BAT;.COM" : "";
|
|
177
|
+
const pathExt = isWindows ? pathExtExe.split(colon) : [""];
|
|
178
|
+
if (isWindows) {
|
|
179
|
+
if (cmd.indexOf(".") !== -1 && pathExt[0] !== "")
|
|
180
|
+
pathExt.unshift("");
|
|
181
|
+
}
|
|
182
|
+
return {
|
|
183
|
+
pathEnv,
|
|
184
|
+
pathExt,
|
|
185
|
+
pathExtExe
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
var which = (cmd, opt, cb) => {
|
|
189
|
+
if (typeof opt === "function") {
|
|
190
|
+
cb = opt;
|
|
191
|
+
opt = {};
|
|
192
|
+
}
|
|
193
|
+
if (!opt)
|
|
194
|
+
opt = {};
|
|
195
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
196
|
+
const found = [];
|
|
197
|
+
const step = (i) => new Promise((resolve, reject) => {
|
|
198
|
+
if (i === pathEnv.length)
|
|
199
|
+
return opt.all && found.length ? resolve(found) : reject(getNotFoundError(cmd));
|
|
200
|
+
const ppRaw = pathEnv[i];
|
|
201
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
202
|
+
const pCmd = path2.join(pathPart, cmd);
|
|
203
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
204
|
+
resolve(subStep(p, i, 0));
|
|
205
|
+
});
|
|
206
|
+
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
207
|
+
if (ii === pathExt.length)
|
|
208
|
+
return resolve(step(i + 1));
|
|
209
|
+
const ext = pathExt[ii];
|
|
210
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
211
|
+
if (!er && is) {
|
|
212
|
+
if (opt.all)
|
|
213
|
+
found.push(p + ext);
|
|
214
|
+
else
|
|
215
|
+
return resolve(p + ext);
|
|
216
|
+
}
|
|
217
|
+
return resolve(subStep(p, i, ii + 1));
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
return cb ? step(0).then((res) => cb(null, res), cb) : step(0);
|
|
221
|
+
};
|
|
222
|
+
var whichSync = (cmd, opt) => {
|
|
223
|
+
opt = opt || {};
|
|
224
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
|
|
225
|
+
const found = [];
|
|
226
|
+
for (let i = 0; i < pathEnv.length; i++) {
|
|
227
|
+
const ppRaw = pathEnv[i];
|
|
228
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw;
|
|
229
|
+
const pCmd = path2.join(pathPart, cmd);
|
|
230
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd : pCmd;
|
|
231
|
+
for (let j = 0; j < pathExt.length; j++) {
|
|
232
|
+
const cur = p + pathExt[j];
|
|
233
|
+
try {
|
|
234
|
+
const is = isexe.sync(cur, { pathExt: pathExtExe });
|
|
235
|
+
if (is) {
|
|
236
|
+
if (opt.all)
|
|
237
|
+
found.push(cur);
|
|
238
|
+
else
|
|
239
|
+
return cur;
|
|
240
|
+
}
|
|
241
|
+
} catch (ex) {
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
if (opt.all && found.length)
|
|
246
|
+
return found;
|
|
247
|
+
if (opt.nothrow)
|
|
248
|
+
return null;
|
|
249
|
+
throw getNotFoundError(cmd);
|
|
250
|
+
};
|
|
251
|
+
module2.exports = which;
|
|
252
|
+
which.sync = whichSync;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
|
|
256
|
+
// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
257
|
+
var require_path_key = __commonJS({
|
|
258
|
+
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports2, module2) {
|
|
259
|
+
"use strict";
|
|
260
|
+
var pathKey = (options = {}) => {
|
|
261
|
+
const environment = options.env || process.env;
|
|
262
|
+
const platform = options.platform || process.platform;
|
|
263
|
+
if (platform !== "win32") {
|
|
264
|
+
return "PATH";
|
|
265
|
+
}
|
|
266
|
+
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
267
|
+
};
|
|
268
|
+
module2.exports = pathKey;
|
|
269
|
+
module2.exports.default = pathKey;
|
|
270
|
+
}
|
|
271
|
+
});
|
|
272
|
+
|
|
273
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
274
|
+
var require_resolveCommand = __commonJS({
|
|
275
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
|
|
276
|
+
"use strict";
|
|
277
|
+
var path2 = require("path");
|
|
278
|
+
var which = require_which();
|
|
279
|
+
var getPathKey = require_path_key();
|
|
280
|
+
function resolveCommandAttempt(parsed, withoutPathExt) {
|
|
281
|
+
const env = parsed.options.env || process.env;
|
|
282
|
+
const cwd = process.cwd();
|
|
283
|
+
const hasCustomCwd = parsed.options.cwd != null;
|
|
284
|
+
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
|
285
|
+
if (shouldSwitchCwd) {
|
|
286
|
+
try {
|
|
287
|
+
process.chdir(parsed.options.cwd);
|
|
288
|
+
} catch (err) {
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
let resolved;
|
|
292
|
+
try {
|
|
293
|
+
resolved = which.sync(parsed.command, {
|
|
294
|
+
path: env[getPathKey({ env })],
|
|
295
|
+
pathExt: withoutPathExt ? path2.delimiter : void 0
|
|
296
|
+
});
|
|
297
|
+
} catch (e) {
|
|
298
|
+
} finally {
|
|
299
|
+
if (shouldSwitchCwd) {
|
|
300
|
+
process.chdir(cwd);
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
if (resolved) {
|
|
304
|
+
resolved = path2.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
|
|
305
|
+
}
|
|
306
|
+
return resolved;
|
|
307
|
+
}
|
|
308
|
+
function resolveCommand(parsed) {
|
|
309
|
+
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
310
|
+
}
|
|
311
|
+
module2.exports = resolveCommand;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js
|
|
316
|
+
var require_escape = __commonJS({
|
|
317
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
|
|
318
|
+
"use strict";
|
|
319
|
+
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
320
|
+
function escapeCommand(arg) {
|
|
321
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
322
|
+
return arg;
|
|
323
|
+
}
|
|
324
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
325
|
+
arg = `${arg}`;
|
|
326
|
+
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
327
|
+
arg = arg.replace(/(\\*)$/, "$1$1");
|
|
328
|
+
arg = `"${arg}"`;
|
|
329
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
330
|
+
if (doubleEscapeMetaChars) {
|
|
331
|
+
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
332
|
+
}
|
|
333
|
+
return arg;
|
|
334
|
+
}
|
|
335
|
+
module2.exports.command = escapeCommand;
|
|
336
|
+
module2.exports.argument = escapeArgument;
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
341
|
+
var require_shebang_regex = __commonJS({
|
|
342
|
+
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports2, module2) {
|
|
343
|
+
"use strict";
|
|
344
|
+
module2.exports = /^#!(.*)/;
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
|
|
348
|
+
// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
349
|
+
var require_shebang_command = __commonJS({
|
|
350
|
+
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports2, module2) {
|
|
351
|
+
"use strict";
|
|
352
|
+
var shebangRegex = require_shebang_regex();
|
|
353
|
+
module2.exports = (string = "") => {
|
|
354
|
+
const match = string.match(shebangRegex);
|
|
355
|
+
if (!match) {
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
const [path2, argument] = match[0].replace(/#! ?/, "").split(" ");
|
|
359
|
+
const binary = path2.split("/").pop();
|
|
360
|
+
if (binary === "env") {
|
|
361
|
+
return argument;
|
|
362
|
+
}
|
|
363
|
+
return argument ? `${binary} ${argument}` : binary;
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
|
|
368
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js
|
|
369
|
+
var require_readShebang = __commonJS({
|
|
370
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
|
|
371
|
+
"use strict";
|
|
372
|
+
var fs2 = require("fs");
|
|
373
|
+
var shebangCommand = require_shebang_command();
|
|
374
|
+
function readShebang(command) {
|
|
375
|
+
const size = 150;
|
|
376
|
+
const buffer = Buffer.alloc(size);
|
|
377
|
+
let fd;
|
|
378
|
+
try {
|
|
379
|
+
fd = fs2.openSync(command, "r");
|
|
380
|
+
fs2.readSync(fd, buffer, 0, size, 0);
|
|
381
|
+
fs2.closeSync(fd);
|
|
382
|
+
} catch (e) {
|
|
383
|
+
}
|
|
384
|
+
return shebangCommand(buffer.toString());
|
|
385
|
+
}
|
|
386
|
+
module2.exports = readShebang;
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
|
|
390
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js
|
|
391
|
+
var require_parse = __commonJS({
|
|
392
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
|
|
393
|
+
"use strict";
|
|
394
|
+
var path2 = require("path");
|
|
395
|
+
var resolveCommand = require_resolveCommand();
|
|
396
|
+
var escape = require_escape();
|
|
397
|
+
var readShebang = require_readShebang();
|
|
398
|
+
var isWin = process.platform === "win32";
|
|
399
|
+
var isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
400
|
+
var isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
401
|
+
function detectShebang(parsed) {
|
|
402
|
+
parsed.file = resolveCommand(parsed);
|
|
403
|
+
const shebang = parsed.file && readShebang(parsed.file);
|
|
404
|
+
if (shebang) {
|
|
405
|
+
parsed.args.unshift(parsed.file);
|
|
406
|
+
parsed.command = shebang;
|
|
407
|
+
return resolveCommand(parsed);
|
|
408
|
+
}
|
|
409
|
+
return parsed.file;
|
|
410
|
+
}
|
|
411
|
+
function parseNonShell(parsed) {
|
|
412
|
+
if (!isWin) {
|
|
413
|
+
return parsed;
|
|
414
|
+
}
|
|
415
|
+
const commandFile = detectShebang(parsed);
|
|
416
|
+
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
417
|
+
if (parsed.options.forceShell || needsShell) {
|
|
418
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
419
|
+
parsed.command = path2.normalize(parsed.command);
|
|
420
|
+
parsed.command = escape.command(parsed.command);
|
|
421
|
+
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
422
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(" ");
|
|
423
|
+
parsed.args = ["/d", "/s", "/c", `"${shellCommand}"`];
|
|
424
|
+
parsed.command = process.env.comspec || "cmd.exe";
|
|
425
|
+
parsed.options.windowsVerbatimArguments = true;
|
|
426
|
+
}
|
|
427
|
+
return parsed;
|
|
428
|
+
}
|
|
429
|
+
function parse(command, args, options) {
|
|
430
|
+
if (args && !Array.isArray(args)) {
|
|
431
|
+
options = args;
|
|
432
|
+
args = null;
|
|
433
|
+
}
|
|
434
|
+
args = args ? args.slice(0) : [];
|
|
435
|
+
options = Object.assign({}, options);
|
|
436
|
+
const parsed = {
|
|
437
|
+
command,
|
|
438
|
+
args,
|
|
439
|
+
options,
|
|
440
|
+
file: void 0,
|
|
441
|
+
original: {
|
|
442
|
+
command,
|
|
443
|
+
args
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
447
|
+
}
|
|
448
|
+
module2.exports = parse;
|
|
449
|
+
}
|
|
450
|
+
});
|
|
451
|
+
|
|
452
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js
|
|
453
|
+
var require_enoent = __commonJS({
|
|
454
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
|
|
455
|
+
"use strict";
|
|
456
|
+
var isWin = process.platform === "win32";
|
|
457
|
+
function notFoundError(original, syscall) {
|
|
458
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
459
|
+
code: "ENOENT",
|
|
460
|
+
errno: "ENOENT",
|
|
461
|
+
syscall: `${syscall} ${original.command}`,
|
|
462
|
+
path: original.command,
|
|
463
|
+
spawnargs: original.args
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
function hookChildProcess(cp, parsed) {
|
|
467
|
+
if (!isWin) {
|
|
468
|
+
return;
|
|
469
|
+
}
|
|
470
|
+
const originalEmit = cp.emit;
|
|
471
|
+
cp.emit = function(name, arg1) {
|
|
472
|
+
if (name === "exit") {
|
|
473
|
+
const err = verifyENOENT(arg1, parsed, "spawn");
|
|
474
|
+
if (err) {
|
|
475
|
+
return originalEmit.call(cp, "error", err);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
return originalEmit.apply(cp, arguments);
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
function verifyENOENT(status, parsed) {
|
|
482
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
483
|
+
return notFoundError(parsed.original, "spawn");
|
|
484
|
+
}
|
|
485
|
+
return null;
|
|
486
|
+
}
|
|
487
|
+
function verifyENOENTSync(status, parsed) {
|
|
488
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
489
|
+
return notFoundError(parsed.original, "spawnSync");
|
|
490
|
+
}
|
|
491
|
+
return null;
|
|
492
|
+
}
|
|
493
|
+
module2.exports = {
|
|
494
|
+
hookChildProcess,
|
|
495
|
+
verifyENOENT,
|
|
496
|
+
verifyENOENTSync,
|
|
497
|
+
notFoundError
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
|
|
502
|
+
// ../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js
|
|
503
|
+
var require_cross_spawn = __commonJS({
|
|
504
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports2, module2) {
|
|
505
|
+
"use strict";
|
|
506
|
+
var cp = require("child_process");
|
|
507
|
+
var parse = require_parse();
|
|
508
|
+
var enoent = require_enoent();
|
|
509
|
+
function spawn(command, args, options) {
|
|
510
|
+
const parsed = parse(command, args, options);
|
|
511
|
+
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
512
|
+
enoent.hookChildProcess(spawned, parsed);
|
|
513
|
+
return spawned;
|
|
514
|
+
}
|
|
515
|
+
function spawnSync(command, args, options) {
|
|
516
|
+
const parsed = parse(command, args, options);
|
|
517
|
+
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
518
|
+
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
519
|
+
return result;
|
|
520
|
+
}
|
|
521
|
+
module2.exports = spawn;
|
|
522
|
+
module2.exports.spawn = spawn;
|
|
523
|
+
module2.exports.sync = spawnSync;
|
|
524
|
+
module2.exports._parse = parse;
|
|
525
|
+
module2.exports._enoent = enoent;
|
|
526
|
+
}
|
|
527
|
+
});
|
|
528
|
+
|
|
529
|
+
// ../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js
|
|
530
|
+
var require_strip_final_newline = __commonJS({
|
|
531
|
+
"../../node_modules/.pnpm/strip-final-newline@2.0.0/node_modules/strip-final-newline/index.js"(exports2, module2) {
|
|
532
|
+
"use strict";
|
|
533
|
+
module2.exports = (input) => {
|
|
534
|
+
const LF = typeof input === "string" ? "\n" : "\n".charCodeAt();
|
|
535
|
+
const CR = typeof input === "string" ? "\r" : "\r".charCodeAt();
|
|
536
|
+
if (input[input.length - 1] === LF) {
|
|
537
|
+
input = input.slice(0, input.length - 1);
|
|
538
|
+
}
|
|
539
|
+
if (input[input.length - 1] === CR) {
|
|
540
|
+
input = input.slice(0, input.length - 1);
|
|
541
|
+
}
|
|
542
|
+
return input;
|
|
543
|
+
};
|
|
544
|
+
}
|
|
545
|
+
});
|
|
546
|
+
|
|
547
|
+
// ../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js
|
|
548
|
+
var require_npm_run_path = __commonJS({
|
|
549
|
+
"../../node_modules/.pnpm/npm-run-path@4.0.1/node_modules/npm-run-path/index.js"(exports2, module2) {
|
|
550
|
+
"use strict";
|
|
551
|
+
var path2 = require("path");
|
|
552
|
+
var pathKey = require_path_key();
|
|
553
|
+
var npmRunPath = (options) => {
|
|
554
|
+
options = {
|
|
555
|
+
cwd: process.cwd(),
|
|
556
|
+
path: process.env[pathKey()],
|
|
557
|
+
execPath: process.execPath,
|
|
558
|
+
...options
|
|
559
|
+
};
|
|
560
|
+
let previous;
|
|
561
|
+
let cwdPath = path2.resolve(options.cwd);
|
|
562
|
+
const result = [];
|
|
563
|
+
while (previous !== cwdPath) {
|
|
564
|
+
result.push(path2.join(cwdPath, "node_modules/.bin"));
|
|
565
|
+
previous = cwdPath;
|
|
566
|
+
cwdPath = path2.resolve(cwdPath, "..");
|
|
567
|
+
}
|
|
568
|
+
const execPathDir = path2.resolve(options.cwd, options.execPath, "..");
|
|
569
|
+
result.push(execPathDir);
|
|
570
|
+
return result.concat(options.path).join(path2.delimiter);
|
|
571
|
+
};
|
|
572
|
+
module2.exports = npmRunPath;
|
|
573
|
+
module2.exports.default = npmRunPath;
|
|
574
|
+
module2.exports.env = (options) => {
|
|
575
|
+
options = {
|
|
576
|
+
env: process.env,
|
|
577
|
+
...options
|
|
578
|
+
};
|
|
579
|
+
const env = { ...options.env };
|
|
580
|
+
const path3 = pathKey({ env });
|
|
581
|
+
options.path = env[path3];
|
|
582
|
+
env[path3] = module2.exports(options);
|
|
583
|
+
return env;
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
// ../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
|
|
589
|
+
var require_mimic_fn = __commonJS({
|
|
590
|
+
"../../node_modules/.pnpm/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports2, module2) {
|
|
591
|
+
"use strict";
|
|
592
|
+
var mimicFn = (to, from) => {
|
|
593
|
+
for (const prop of Reflect.ownKeys(from)) {
|
|
594
|
+
Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
|
|
595
|
+
}
|
|
596
|
+
return to;
|
|
597
|
+
};
|
|
598
|
+
module2.exports = mimicFn;
|
|
599
|
+
module2.exports.default = mimicFn;
|
|
600
|
+
}
|
|
601
|
+
});
|
|
602
|
+
|
|
603
|
+
// ../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js
|
|
604
|
+
var require_onetime = __commonJS({
|
|
605
|
+
"../../node_modules/.pnpm/onetime@5.1.2/node_modules/onetime/index.js"(exports2, module2) {
|
|
606
|
+
"use strict";
|
|
607
|
+
var mimicFn = require_mimic_fn();
|
|
608
|
+
var calledFunctions = /* @__PURE__ */ new WeakMap();
|
|
609
|
+
var onetime = (function_, options = {}) => {
|
|
610
|
+
if (typeof function_ !== "function") {
|
|
611
|
+
throw new TypeError("Expected a function");
|
|
612
|
+
}
|
|
613
|
+
let returnValue;
|
|
614
|
+
let callCount = 0;
|
|
615
|
+
const functionName = function_.displayName || function_.name || "<anonymous>";
|
|
616
|
+
const onetime2 = function(...arguments_) {
|
|
617
|
+
calledFunctions.set(onetime2, ++callCount);
|
|
618
|
+
if (callCount === 1) {
|
|
619
|
+
returnValue = function_.apply(this, arguments_);
|
|
620
|
+
function_ = null;
|
|
621
|
+
} else if (options.throw === true) {
|
|
622
|
+
throw new Error(`Function \`${functionName}\` can only be called once`);
|
|
623
|
+
}
|
|
624
|
+
return returnValue;
|
|
625
|
+
};
|
|
626
|
+
mimicFn(onetime2, function_);
|
|
627
|
+
calledFunctions.set(onetime2, callCount);
|
|
628
|
+
return onetime2;
|
|
629
|
+
};
|
|
630
|
+
module2.exports = onetime;
|
|
631
|
+
module2.exports.default = onetime;
|
|
632
|
+
module2.exports.callCount = (function_) => {
|
|
633
|
+
if (!calledFunctions.has(function_)) {
|
|
634
|
+
throw new Error(`The given function \`${function_.name}\` is not wrapped by the \`onetime\` package`);
|
|
635
|
+
}
|
|
636
|
+
return calledFunctions.get(function_);
|
|
637
|
+
};
|
|
638
|
+
}
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js
|
|
642
|
+
var require_core = __commonJS({
|
|
643
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/core.js"(exports2) {
|
|
644
|
+
"use strict";
|
|
645
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
646
|
+
exports2.SIGNALS = void 0;
|
|
647
|
+
var SIGNALS = [
|
|
648
|
+
{
|
|
649
|
+
name: "SIGHUP",
|
|
650
|
+
number: 1,
|
|
651
|
+
action: "terminate",
|
|
652
|
+
description: "Terminal closed",
|
|
653
|
+
standard: "posix"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: "SIGINT",
|
|
657
|
+
number: 2,
|
|
658
|
+
action: "terminate",
|
|
659
|
+
description: "User interruption with CTRL-C",
|
|
660
|
+
standard: "ansi"
|
|
661
|
+
},
|
|
662
|
+
{
|
|
663
|
+
name: "SIGQUIT",
|
|
664
|
+
number: 3,
|
|
665
|
+
action: "core",
|
|
666
|
+
description: "User interruption with CTRL-\\",
|
|
667
|
+
standard: "posix"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
name: "SIGILL",
|
|
671
|
+
number: 4,
|
|
672
|
+
action: "core",
|
|
673
|
+
description: "Invalid machine instruction",
|
|
674
|
+
standard: "ansi"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
name: "SIGTRAP",
|
|
678
|
+
number: 5,
|
|
679
|
+
action: "core",
|
|
680
|
+
description: "Debugger breakpoint",
|
|
681
|
+
standard: "posix"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
name: "SIGABRT",
|
|
685
|
+
number: 6,
|
|
686
|
+
action: "core",
|
|
687
|
+
description: "Aborted",
|
|
688
|
+
standard: "ansi"
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: "SIGIOT",
|
|
692
|
+
number: 6,
|
|
693
|
+
action: "core",
|
|
694
|
+
description: "Aborted",
|
|
695
|
+
standard: "bsd"
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: "SIGBUS",
|
|
699
|
+
number: 7,
|
|
700
|
+
action: "core",
|
|
701
|
+
description: "Bus error due to misaligned, non-existing address or paging error",
|
|
702
|
+
standard: "bsd"
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
name: "SIGEMT",
|
|
706
|
+
number: 7,
|
|
707
|
+
action: "terminate",
|
|
708
|
+
description: "Command should be emulated but is not implemented",
|
|
709
|
+
standard: "other"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: "SIGFPE",
|
|
713
|
+
number: 8,
|
|
714
|
+
action: "core",
|
|
715
|
+
description: "Floating point arithmetic error",
|
|
716
|
+
standard: "ansi"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
name: "SIGKILL",
|
|
720
|
+
number: 9,
|
|
721
|
+
action: "terminate",
|
|
722
|
+
description: "Forced termination",
|
|
723
|
+
standard: "posix",
|
|
724
|
+
forced: true
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
name: "SIGUSR1",
|
|
728
|
+
number: 10,
|
|
729
|
+
action: "terminate",
|
|
730
|
+
description: "Application-specific signal",
|
|
731
|
+
standard: "posix"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: "SIGSEGV",
|
|
735
|
+
number: 11,
|
|
736
|
+
action: "core",
|
|
737
|
+
description: "Segmentation fault",
|
|
738
|
+
standard: "ansi"
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
name: "SIGUSR2",
|
|
742
|
+
number: 12,
|
|
743
|
+
action: "terminate",
|
|
744
|
+
description: "Application-specific signal",
|
|
745
|
+
standard: "posix"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
name: "SIGPIPE",
|
|
749
|
+
number: 13,
|
|
750
|
+
action: "terminate",
|
|
751
|
+
description: "Broken pipe or socket",
|
|
752
|
+
standard: "posix"
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
name: "SIGALRM",
|
|
756
|
+
number: 14,
|
|
757
|
+
action: "terminate",
|
|
758
|
+
description: "Timeout or timer",
|
|
759
|
+
standard: "posix"
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
name: "SIGTERM",
|
|
763
|
+
number: 15,
|
|
764
|
+
action: "terminate",
|
|
765
|
+
description: "Termination",
|
|
766
|
+
standard: "ansi"
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
name: "SIGSTKFLT",
|
|
770
|
+
number: 16,
|
|
771
|
+
action: "terminate",
|
|
772
|
+
description: "Stack is empty or overflowed",
|
|
773
|
+
standard: "other"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
name: "SIGCHLD",
|
|
777
|
+
number: 17,
|
|
778
|
+
action: "ignore",
|
|
779
|
+
description: "Child process terminated, paused or unpaused",
|
|
780
|
+
standard: "posix"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
name: "SIGCLD",
|
|
784
|
+
number: 17,
|
|
785
|
+
action: "ignore",
|
|
786
|
+
description: "Child process terminated, paused or unpaused",
|
|
787
|
+
standard: "other"
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
name: "SIGCONT",
|
|
791
|
+
number: 18,
|
|
792
|
+
action: "unpause",
|
|
793
|
+
description: "Unpaused",
|
|
794
|
+
standard: "posix",
|
|
795
|
+
forced: true
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
name: "SIGSTOP",
|
|
799
|
+
number: 19,
|
|
800
|
+
action: "pause",
|
|
801
|
+
description: "Paused",
|
|
802
|
+
standard: "posix",
|
|
803
|
+
forced: true
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
name: "SIGTSTP",
|
|
807
|
+
number: 20,
|
|
808
|
+
action: "pause",
|
|
809
|
+
description: 'Paused using CTRL-Z or "suspend"',
|
|
810
|
+
standard: "posix"
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: "SIGTTIN",
|
|
814
|
+
number: 21,
|
|
815
|
+
action: "pause",
|
|
816
|
+
description: "Background process cannot read terminal input",
|
|
817
|
+
standard: "posix"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
name: "SIGBREAK",
|
|
821
|
+
number: 21,
|
|
822
|
+
action: "terminate",
|
|
823
|
+
description: "User interruption with CTRL-BREAK",
|
|
824
|
+
standard: "other"
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
name: "SIGTTOU",
|
|
828
|
+
number: 22,
|
|
829
|
+
action: "pause",
|
|
830
|
+
description: "Background process cannot write to terminal output",
|
|
831
|
+
standard: "posix"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
name: "SIGURG",
|
|
835
|
+
number: 23,
|
|
836
|
+
action: "ignore",
|
|
837
|
+
description: "Socket received out-of-band data",
|
|
838
|
+
standard: "bsd"
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
name: "SIGXCPU",
|
|
842
|
+
number: 24,
|
|
843
|
+
action: "core",
|
|
844
|
+
description: "Process timed out",
|
|
845
|
+
standard: "bsd"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
name: "SIGXFSZ",
|
|
849
|
+
number: 25,
|
|
850
|
+
action: "core",
|
|
851
|
+
description: "File too big",
|
|
852
|
+
standard: "bsd"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
name: "SIGVTALRM",
|
|
856
|
+
number: 26,
|
|
857
|
+
action: "terminate",
|
|
858
|
+
description: "Timeout or timer",
|
|
859
|
+
standard: "bsd"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
name: "SIGPROF",
|
|
863
|
+
number: 27,
|
|
864
|
+
action: "terminate",
|
|
865
|
+
description: "Timeout or timer",
|
|
866
|
+
standard: "bsd"
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
name: "SIGWINCH",
|
|
870
|
+
number: 28,
|
|
871
|
+
action: "ignore",
|
|
872
|
+
description: "Terminal window size changed",
|
|
873
|
+
standard: "bsd"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
name: "SIGIO",
|
|
877
|
+
number: 29,
|
|
878
|
+
action: "terminate",
|
|
879
|
+
description: "I/O is available",
|
|
880
|
+
standard: "other"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: "SIGPOLL",
|
|
884
|
+
number: 29,
|
|
885
|
+
action: "terminate",
|
|
886
|
+
description: "Watched event",
|
|
887
|
+
standard: "other"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
name: "SIGINFO",
|
|
891
|
+
number: 29,
|
|
892
|
+
action: "ignore",
|
|
893
|
+
description: "Request for process information",
|
|
894
|
+
standard: "other"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
name: "SIGPWR",
|
|
898
|
+
number: 30,
|
|
899
|
+
action: "terminate",
|
|
900
|
+
description: "Device running out of power",
|
|
901
|
+
standard: "systemv"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
name: "SIGSYS",
|
|
905
|
+
number: 31,
|
|
906
|
+
action: "core",
|
|
907
|
+
description: "Invalid system call",
|
|
908
|
+
standard: "other"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
name: "SIGUNUSED",
|
|
912
|
+
number: 31,
|
|
913
|
+
action: "terminate",
|
|
914
|
+
description: "Invalid system call",
|
|
915
|
+
standard: "other"
|
|
916
|
+
}
|
|
917
|
+
];
|
|
918
|
+
exports2.SIGNALS = SIGNALS;
|
|
919
|
+
}
|
|
920
|
+
});
|
|
921
|
+
|
|
922
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js
|
|
923
|
+
var require_realtime = __commonJS({
|
|
924
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/realtime.js"(exports2) {
|
|
925
|
+
"use strict";
|
|
926
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
927
|
+
exports2.SIGRTMAX = exports2.getRealtimeSignals = void 0;
|
|
928
|
+
var getRealtimeSignals = function() {
|
|
929
|
+
const length = SIGRTMAX - SIGRTMIN + 1;
|
|
930
|
+
return Array.from({ length }, getRealtimeSignal);
|
|
931
|
+
};
|
|
932
|
+
exports2.getRealtimeSignals = getRealtimeSignals;
|
|
933
|
+
var getRealtimeSignal = function(value, index) {
|
|
934
|
+
return {
|
|
935
|
+
name: `SIGRT${index + 1}`,
|
|
936
|
+
number: SIGRTMIN + index,
|
|
937
|
+
action: "terminate",
|
|
938
|
+
description: "Application-specific signal (realtime)",
|
|
939
|
+
standard: "posix"
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
var SIGRTMIN = 34;
|
|
943
|
+
var SIGRTMAX = 64;
|
|
944
|
+
exports2.SIGRTMAX = SIGRTMAX;
|
|
945
|
+
}
|
|
946
|
+
});
|
|
947
|
+
|
|
948
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js
|
|
949
|
+
var require_signals = __commonJS({
|
|
950
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/signals.js"(exports2) {
|
|
951
|
+
"use strict";
|
|
952
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
953
|
+
exports2.getSignals = void 0;
|
|
954
|
+
var _os = require("os");
|
|
955
|
+
var _core = require_core();
|
|
956
|
+
var _realtime = require_realtime();
|
|
957
|
+
var getSignals = function() {
|
|
958
|
+
const realtimeSignals = (0, _realtime.getRealtimeSignals)();
|
|
959
|
+
const signals = [..._core.SIGNALS, ...realtimeSignals].map(normalizeSignal);
|
|
960
|
+
return signals;
|
|
961
|
+
};
|
|
962
|
+
exports2.getSignals = getSignals;
|
|
963
|
+
var normalizeSignal = function({
|
|
964
|
+
name,
|
|
965
|
+
number: defaultNumber,
|
|
966
|
+
description,
|
|
967
|
+
action,
|
|
968
|
+
forced = false,
|
|
969
|
+
standard
|
|
970
|
+
}) {
|
|
971
|
+
const {
|
|
972
|
+
signals: { [name]: constantSignal }
|
|
973
|
+
} = _os.constants;
|
|
974
|
+
const supported = constantSignal !== void 0;
|
|
975
|
+
const number = supported ? constantSignal : defaultNumber;
|
|
976
|
+
return { name, number, description, supported, action, forced, standard };
|
|
977
|
+
};
|
|
978
|
+
}
|
|
979
|
+
});
|
|
980
|
+
|
|
981
|
+
// ../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js
|
|
982
|
+
var require_main = __commonJS({
|
|
983
|
+
"../../node_modules/.pnpm/human-signals@2.1.0/node_modules/human-signals/build/src/main.js"(exports2) {
|
|
984
|
+
"use strict";
|
|
985
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
986
|
+
exports2.signalsByNumber = exports2.signalsByName = void 0;
|
|
987
|
+
var _os = require("os");
|
|
988
|
+
var _signals = require_signals();
|
|
989
|
+
var _realtime = require_realtime();
|
|
990
|
+
var getSignalsByName = function() {
|
|
991
|
+
const signals = (0, _signals.getSignals)();
|
|
992
|
+
return signals.reduce(getSignalByName, {});
|
|
993
|
+
};
|
|
994
|
+
var getSignalByName = function(signalByNameMemo, { name, number, description, supported, action, forced, standard }) {
|
|
995
|
+
return {
|
|
996
|
+
...signalByNameMemo,
|
|
997
|
+
[name]: { name, number, description, supported, action, forced, standard }
|
|
998
|
+
};
|
|
999
|
+
};
|
|
1000
|
+
var signalsByName = getSignalsByName();
|
|
1001
|
+
exports2.signalsByName = signalsByName;
|
|
1002
|
+
var getSignalsByNumber = function() {
|
|
1003
|
+
const signals = (0, _signals.getSignals)();
|
|
1004
|
+
const length = _realtime.SIGRTMAX + 1;
|
|
1005
|
+
const signalsA = Array.from({ length }, (value, number) => getSignalByNumber(number, signals));
|
|
1006
|
+
return Object.assign({}, ...signalsA);
|
|
1007
|
+
};
|
|
1008
|
+
var getSignalByNumber = function(number, signals) {
|
|
1009
|
+
const signal = findSignalByNumber(number, signals);
|
|
1010
|
+
if (signal === void 0) {
|
|
1011
|
+
return {};
|
|
1012
|
+
}
|
|
1013
|
+
const { name, description, supported, action, forced, standard } = signal;
|
|
1014
|
+
return {
|
|
1015
|
+
[number]: {
|
|
1016
|
+
name,
|
|
1017
|
+
number,
|
|
1018
|
+
description,
|
|
1019
|
+
supported,
|
|
1020
|
+
action,
|
|
1021
|
+
forced,
|
|
1022
|
+
standard
|
|
1023
|
+
}
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
var findSignalByNumber = function(number, signals) {
|
|
1027
|
+
const signal = signals.find(({ name }) => _os.constants.signals[name] === number);
|
|
1028
|
+
if (signal !== void 0) {
|
|
1029
|
+
return signal;
|
|
1030
|
+
}
|
|
1031
|
+
return signals.find((signalA) => signalA.number === number);
|
|
1032
|
+
};
|
|
1033
|
+
var signalsByNumber = getSignalsByNumber();
|
|
1034
|
+
exports2.signalsByNumber = signalsByNumber;
|
|
1035
|
+
}
|
|
1036
|
+
});
|
|
1037
|
+
|
|
1038
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js
|
|
1039
|
+
var require_error = __commonJS({
|
|
1040
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/error.js"(exports2, module2) {
|
|
1041
|
+
"use strict";
|
|
1042
|
+
var { signalsByName } = require_main();
|
|
1043
|
+
var getErrorPrefix = ({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled }) => {
|
|
1044
|
+
if (timedOut) {
|
|
1045
|
+
return `timed out after ${timeout} milliseconds`;
|
|
1046
|
+
}
|
|
1047
|
+
if (isCanceled) {
|
|
1048
|
+
return "was canceled";
|
|
1049
|
+
}
|
|
1050
|
+
if (errorCode !== void 0) {
|
|
1051
|
+
return `failed with ${errorCode}`;
|
|
1052
|
+
}
|
|
1053
|
+
if (signal !== void 0) {
|
|
1054
|
+
return `was killed with ${signal} (${signalDescription})`;
|
|
1055
|
+
}
|
|
1056
|
+
if (exitCode !== void 0) {
|
|
1057
|
+
return `failed with exit code ${exitCode}`;
|
|
1058
|
+
}
|
|
1059
|
+
return "failed";
|
|
1060
|
+
};
|
|
1061
|
+
var makeError = ({
|
|
1062
|
+
stdout,
|
|
1063
|
+
stderr,
|
|
1064
|
+
all,
|
|
1065
|
+
error,
|
|
1066
|
+
signal,
|
|
1067
|
+
exitCode,
|
|
1068
|
+
command,
|
|
1069
|
+
escapedCommand,
|
|
1070
|
+
timedOut,
|
|
1071
|
+
isCanceled,
|
|
1072
|
+
killed,
|
|
1073
|
+
parsed: { options: { timeout } }
|
|
1074
|
+
}) => {
|
|
1075
|
+
exitCode = exitCode === null ? void 0 : exitCode;
|
|
1076
|
+
signal = signal === null ? void 0 : signal;
|
|
1077
|
+
const signalDescription = signal === void 0 ? void 0 : signalsByName[signal].description;
|
|
1078
|
+
const errorCode = error && error.code;
|
|
1079
|
+
const prefix = getErrorPrefix({ timedOut, timeout, errorCode, signal, signalDescription, exitCode, isCanceled });
|
|
1080
|
+
const execaMessage = `Command ${prefix}: ${command}`;
|
|
1081
|
+
const isError = Object.prototype.toString.call(error) === "[object Error]";
|
|
1082
|
+
const shortMessage = isError ? `${execaMessage}
|
|
1083
|
+
${error.message}` : execaMessage;
|
|
1084
|
+
const message = [shortMessage, stderr, stdout].filter(Boolean).join("\n");
|
|
1085
|
+
if (isError) {
|
|
1086
|
+
error.originalMessage = error.message;
|
|
1087
|
+
error.message = message;
|
|
1088
|
+
} else {
|
|
1089
|
+
error = new Error(message);
|
|
1090
|
+
}
|
|
1091
|
+
error.shortMessage = shortMessage;
|
|
1092
|
+
error.command = command;
|
|
1093
|
+
error.escapedCommand = escapedCommand;
|
|
1094
|
+
error.exitCode = exitCode;
|
|
1095
|
+
error.signal = signal;
|
|
1096
|
+
error.signalDescription = signalDescription;
|
|
1097
|
+
error.stdout = stdout;
|
|
1098
|
+
error.stderr = stderr;
|
|
1099
|
+
if (all !== void 0) {
|
|
1100
|
+
error.all = all;
|
|
1101
|
+
}
|
|
1102
|
+
if ("bufferedData" in error) {
|
|
1103
|
+
delete error.bufferedData;
|
|
1104
|
+
}
|
|
1105
|
+
error.failed = true;
|
|
1106
|
+
error.timedOut = Boolean(timedOut);
|
|
1107
|
+
error.isCanceled = isCanceled;
|
|
1108
|
+
error.killed = killed && !timedOut;
|
|
1109
|
+
return error;
|
|
1110
|
+
};
|
|
1111
|
+
module2.exports = makeError;
|
|
1112
|
+
}
|
|
1113
|
+
});
|
|
1114
|
+
|
|
1115
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js
|
|
1116
|
+
var require_stdio = __commonJS({
|
|
1117
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stdio.js"(exports2, module2) {
|
|
1118
|
+
"use strict";
|
|
1119
|
+
var aliases = ["stdin", "stdout", "stderr"];
|
|
1120
|
+
var hasAlias = (options) => aliases.some((alias) => options[alias] !== void 0);
|
|
1121
|
+
var normalizeStdio = (options) => {
|
|
1122
|
+
if (!options) {
|
|
1123
|
+
return;
|
|
1124
|
+
}
|
|
1125
|
+
const { stdio } = options;
|
|
1126
|
+
if (stdio === void 0) {
|
|
1127
|
+
return aliases.map((alias) => options[alias]);
|
|
1128
|
+
}
|
|
1129
|
+
if (hasAlias(options)) {
|
|
1130
|
+
throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${aliases.map((alias) => `\`${alias}\``).join(", ")}`);
|
|
1131
|
+
}
|
|
1132
|
+
if (typeof stdio === "string") {
|
|
1133
|
+
return stdio;
|
|
1134
|
+
}
|
|
1135
|
+
if (!Array.isArray(stdio)) {
|
|
1136
|
+
throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof stdio}\``);
|
|
1137
|
+
}
|
|
1138
|
+
const length = Math.max(stdio.length, aliases.length);
|
|
1139
|
+
return Array.from({ length }, (value, index) => stdio[index]);
|
|
1140
|
+
};
|
|
1141
|
+
module2.exports = normalizeStdio;
|
|
1142
|
+
module2.exports.node = (options) => {
|
|
1143
|
+
const stdio = normalizeStdio(options);
|
|
1144
|
+
if (stdio === "ipc") {
|
|
1145
|
+
return "ipc";
|
|
1146
|
+
}
|
|
1147
|
+
if (stdio === void 0 || typeof stdio === "string") {
|
|
1148
|
+
return [stdio, stdio, stdio, "ipc"];
|
|
1149
|
+
}
|
|
1150
|
+
if (stdio.includes("ipc")) {
|
|
1151
|
+
return stdio;
|
|
1152
|
+
}
|
|
1153
|
+
return [...stdio, "ipc"];
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
|
|
1158
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
|
1159
|
+
var require_signals2 = __commonJS({
|
|
1160
|
+
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
1161
|
+
"use strict";
|
|
1162
|
+
module2.exports = [
|
|
1163
|
+
"SIGABRT",
|
|
1164
|
+
"SIGALRM",
|
|
1165
|
+
"SIGHUP",
|
|
1166
|
+
"SIGINT",
|
|
1167
|
+
"SIGTERM"
|
|
1168
|
+
];
|
|
1169
|
+
if (process.platform !== "win32") {
|
|
1170
|
+
module2.exports.push(
|
|
1171
|
+
"SIGVTALRM",
|
|
1172
|
+
"SIGXCPU",
|
|
1173
|
+
"SIGXFSZ",
|
|
1174
|
+
"SIGUSR2",
|
|
1175
|
+
"SIGTRAP",
|
|
1176
|
+
"SIGSYS",
|
|
1177
|
+
"SIGQUIT",
|
|
1178
|
+
"SIGIOT"
|
|
1179
|
+
// should detect profiler and enable/disable accordingly.
|
|
1180
|
+
// see #21
|
|
1181
|
+
// 'SIGPROF'
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
if (process.platform === "linux") {
|
|
1185
|
+
module2.exports.push(
|
|
1186
|
+
"SIGIO",
|
|
1187
|
+
"SIGPOLL",
|
|
1188
|
+
"SIGPWR",
|
|
1189
|
+
"SIGSTKFLT",
|
|
1190
|
+
"SIGUNUSED"
|
|
1191
|
+
);
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
|
|
1196
|
+
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
1197
|
+
var require_signal_exit = __commonJS({
|
|
1198
|
+
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
1199
|
+
"use strict";
|
|
1200
|
+
var process2 = global.process;
|
|
1201
|
+
var processOk = function(process3) {
|
|
1202
|
+
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
1203
|
+
};
|
|
1204
|
+
if (!processOk(process2)) {
|
|
1205
|
+
module2.exports = function() {
|
|
1206
|
+
return function() {
|
|
1207
|
+
};
|
|
1208
|
+
};
|
|
1209
|
+
} else {
|
|
1210
|
+
assert = require("assert");
|
|
1211
|
+
signals = require_signals2();
|
|
1212
|
+
isWin = /^win/i.test(process2.platform);
|
|
1213
|
+
EE = require("events");
|
|
1214
|
+
if (typeof EE !== "function") {
|
|
1215
|
+
EE = EE.EventEmitter;
|
|
1216
|
+
}
|
|
1217
|
+
if (process2.__signal_exit_emitter__) {
|
|
1218
|
+
emitter = process2.__signal_exit_emitter__;
|
|
1219
|
+
} else {
|
|
1220
|
+
emitter = process2.__signal_exit_emitter__ = new EE();
|
|
1221
|
+
emitter.count = 0;
|
|
1222
|
+
emitter.emitted = {};
|
|
1223
|
+
}
|
|
1224
|
+
if (!emitter.infinite) {
|
|
1225
|
+
emitter.setMaxListeners(Infinity);
|
|
1226
|
+
emitter.infinite = true;
|
|
1227
|
+
}
|
|
1228
|
+
module2.exports = function(cb, opts) {
|
|
1229
|
+
if (!processOk(global.process)) {
|
|
1230
|
+
return function() {
|
|
1231
|
+
};
|
|
1232
|
+
}
|
|
1233
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
1234
|
+
if (loaded === false) {
|
|
1235
|
+
load();
|
|
1236
|
+
}
|
|
1237
|
+
var ev = "exit";
|
|
1238
|
+
if (opts && opts.alwaysLast) {
|
|
1239
|
+
ev = "afterexit";
|
|
1240
|
+
}
|
|
1241
|
+
var remove = function() {
|
|
1242
|
+
emitter.removeListener(ev, cb);
|
|
1243
|
+
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
1244
|
+
unload();
|
|
1245
|
+
}
|
|
1246
|
+
};
|
|
1247
|
+
emitter.on(ev, cb);
|
|
1248
|
+
return remove;
|
|
1249
|
+
};
|
|
1250
|
+
unload = function unload2() {
|
|
1251
|
+
if (!loaded || !processOk(global.process)) {
|
|
1252
|
+
return;
|
|
1253
|
+
}
|
|
1254
|
+
loaded = false;
|
|
1255
|
+
signals.forEach(function(sig) {
|
|
1256
|
+
try {
|
|
1257
|
+
process2.removeListener(sig, sigListeners[sig]);
|
|
1258
|
+
} catch (er) {
|
|
1259
|
+
}
|
|
1260
|
+
});
|
|
1261
|
+
process2.emit = originalProcessEmit;
|
|
1262
|
+
process2.reallyExit = originalProcessReallyExit;
|
|
1263
|
+
emitter.count -= 1;
|
|
1264
|
+
};
|
|
1265
|
+
module2.exports.unload = unload;
|
|
1266
|
+
emit = function emit2(event, code, signal) {
|
|
1267
|
+
if (emitter.emitted[event]) {
|
|
1268
|
+
return;
|
|
1269
|
+
}
|
|
1270
|
+
emitter.emitted[event] = true;
|
|
1271
|
+
emitter.emit(event, code, signal);
|
|
1272
|
+
};
|
|
1273
|
+
sigListeners = {};
|
|
1274
|
+
signals.forEach(function(sig) {
|
|
1275
|
+
sigListeners[sig] = function listener() {
|
|
1276
|
+
if (!processOk(global.process)) {
|
|
1277
|
+
return;
|
|
1278
|
+
}
|
|
1279
|
+
var listeners = process2.listeners(sig);
|
|
1280
|
+
if (listeners.length === emitter.count) {
|
|
1281
|
+
unload();
|
|
1282
|
+
emit("exit", null, sig);
|
|
1283
|
+
emit("afterexit", null, sig);
|
|
1284
|
+
if (isWin && sig === "SIGHUP") {
|
|
1285
|
+
sig = "SIGINT";
|
|
1286
|
+
}
|
|
1287
|
+
process2.kill(process2.pid, sig);
|
|
1288
|
+
}
|
|
1289
|
+
};
|
|
1290
|
+
});
|
|
1291
|
+
module2.exports.signals = function() {
|
|
1292
|
+
return signals;
|
|
1293
|
+
};
|
|
1294
|
+
loaded = false;
|
|
1295
|
+
load = function load2() {
|
|
1296
|
+
if (loaded || !processOk(global.process)) {
|
|
1297
|
+
return;
|
|
1298
|
+
}
|
|
1299
|
+
loaded = true;
|
|
1300
|
+
emitter.count += 1;
|
|
1301
|
+
signals = signals.filter(function(sig) {
|
|
1302
|
+
try {
|
|
1303
|
+
process2.on(sig, sigListeners[sig]);
|
|
1304
|
+
return true;
|
|
1305
|
+
} catch (er) {
|
|
1306
|
+
return false;
|
|
1307
|
+
}
|
|
1308
|
+
});
|
|
1309
|
+
process2.emit = processEmit;
|
|
1310
|
+
process2.reallyExit = processReallyExit;
|
|
1311
|
+
};
|
|
1312
|
+
module2.exports.load = load;
|
|
1313
|
+
originalProcessReallyExit = process2.reallyExit;
|
|
1314
|
+
processReallyExit = function processReallyExit2(code) {
|
|
1315
|
+
if (!processOk(global.process)) {
|
|
1316
|
+
return;
|
|
1317
|
+
}
|
|
1318
|
+
process2.exitCode = code || /* istanbul ignore next */
|
|
1319
|
+
0;
|
|
1320
|
+
emit("exit", process2.exitCode, null);
|
|
1321
|
+
emit("afterexit", process2.exitCode, null);
|
|
1322
|
+
originalProcessReallyExit.call(process2, process2.exitCode);
|
|
1323
|
+
};
|
|
1324
|
+
originalProcessEmit = process2.emit;
|
|
1325
|
+
processEmit = function processEmit2(ev, arg) {
|
|
1326
|
+
if (ev === "exit" && processOk(global.process)) {
|
|
1327
|
+
if (arg !== void 0) {
|
|
1328
|
+
process2.exitCode = arg;
|
|
1329
|
+
}
|
|
1330
|
+
var ret = originalProcessEmit.apply(this, arguments);
|
|
1331
|
+
emit("exit", process2.exitCode, null);
|
|
1332
|
+
emit("afterexit", process2.exitCode, null);
|
|
1333
|
+
return ret;
|
|
1334
|
+
} else {
|
|
1335
|
+
return originalProcessEmit.apply(this, arguments);
|
|
1336
|
+
}
|
|
1337
|
+
};
|
|
1338
|
+
}
|
|
1339
|
+
var assert;
|
|
1340
|
+
var signals;
|
|
1341
|
+
var isWin;
|
|
1342
|
+
var EE;
|
|
1343
|
+
var emitter;
|
|
1344
|
+
var unload;
|
|
1345
|
+
var emit;
|
|
1346
|
+
var sigListeners;
|
|
1347
|
+
var loaded;
|
|
1348
|
+
var load;
|
|
1349
|
+
var originalProcessReallyExit;
|
|
1350
|
+
var processReallyExit;
|
|
1351
|
+
var originalProcessEmit;
|
|
1352
|
+
var processEmit;
|
|
1353
|
+
}
|
|
1354
|
+
});
|
|
1355
|
+
|
|
1356
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js
|
|
1357
|
+
var require_kill = __commonJS({
|
|
1358
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/kill.js"(exports2, module2) {
|
|
1359
|
+
"use strict";
|
|
1360
|
+
var os = require("os");
|
|
1361
|
+
var onExit = require_signal_exit();
|
|
1362
|
+
var DEFAULT_FORCE_KILL_TIMEOUT = 1e3 * 5;
|
|
1363
|
+
var spawnedKill = (kill, signal = "SIGTERM", options = {}) => {
|
|
1364
|
+
const killResult = kill(signal);
|
|
1365
|
+
setKillTimeout(kill, signal, options, killResult);
|
|
1366
|
+
return killResult;
|
|
1367
|
+
};
|
|
1368
|
+
var setKillTimeout = (kill, signal, options, killResult) => {
|
|
1369
|
+
if (!shouldForceKill(signal, options, killResult)) {
|
|
1370
|
+
return;
|
|
1371
|
+
}
|
|
1372
|
+
const timeout = getForceKillAfterTimeout(options);
|
|
1373
|
+
const t = setTimeout(() => {
|
|
1374
|
+
kill("SIGKILL");
|
|
1375
|
+
}, timeout);
|
|
1376
|
+
if (t.unref) {
|
|
1377
|
+
t.unref();
|
|
1378
|
+
}
|
|
1379
|
+
};
|
|
1380
|
+
var shouldForceKill = (signal, { forceKillAfterTimeout }, killResult) => {
|
|
1381
|
+
return isSigterm(signal) && forceKillAfterTimeout !== false && killResult;
|
|
1382
|
+
};
|
|
1383
|
+
var isSigterm = (signal) => {
|
|
1384
|
+
return signal === os.constants.signals.SIGTERM || typeof signal === "string" && signal.toUpperCase() === "SIGTERM";
|
|
1385
|
+
};
|
|
1386
|
+
var getForceKillAfterTimeout = ({ forceKillAfterTimeout = true }) => {
|
|
1387
|
+
if (forceKillAfterTimeout === true) {
|
|
1388
|
+
return DEFAULT_FORCE_KILL_TIMEOUT;
|
|
1389
|
+
}
|
|
1390
|
+
if (!Number.isFinite(forceKillAfterTimeout) || forceKillAfterTimeout < 0) {
|
|
1391
|
+
throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${forceKillAfterTimeout}\` (${typeof forceKillAfterTimeout})`);
|
|
1392
|
+
}
|
|
1393
|
+
return forceKillAfterTimeout;
|
|
1394
|
+
};
|
|
1395
|
+
var spawnedCancel = (spawned, context) => {
|
|
1396
|
+
const killResult = spawned.kill();
|
|
1397
|
+
if (killResult) {
|
|
1398
|
+
context.isCanceled = true;
|
|
1399
|
+
}
|
|
1400
|
+
};
|
|
1401
|
+
var timeoutKill = (spawned, signal, reject) => {
|
|
1402
|
+
spawned.kill(signal);
|
|
1403
|
+
reject(Object.assign(new Error("Timed out"), { timedOut: true, signal }));
|
|
1404
|
+
};
|
|
1405
|
+
var setupTimeout = (spawned, { timeout, killSignal = "SIGTERM" }, spawnedPromise) => {
|
|
1406
|
+
if (timeout === 0 || timeout === void 0) {
|
|
1407
|
+
return spawnedPromise;
|
|
1408
|
+
}
|
|
1409
|
+
let timeoutId;
|
|
1410
|
+
const timeoutPromise = new Promise((resolve, reject) => {
|
|
1411
|
+
timeoutId = setTimeout(() => {
|
|
1412
|
+
timeoutKill(spawned, killSignal, reject);
|
|
1413
|
+
}, timeout);
|
|
1414
|
+
});
|
|
1415
|
+
const safeSpawnedPromise = spawnedPromise.finally(() => {
|
|
1416
|
+
clearTimeout(timeoutId);
|
|
1417
|
+
});
|
|
1418
|
+
return Promise.race([timeoutPromise, safeSpawnedPromise]);
|
|
1419
|
+
};
|
|
1420
|
+
var validateTimeout = ({ timeout }) => {
|
|
1421
|
+
if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {
|
|
1422
|
+
throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${timeout}\` (${typeof timeout})`);
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
var setExitHandler = async (spawned, { cleanup, detached }, timedPromise) => {
|
|
1426
|
+
if (!cleanup || detached) {
|
|
1427
|
+
return timedPromise;
|
|
1428
|
+
}
|
|
1429
|
+
const removeExitHandler = onExit(() => {
|
|
1430
|
+
spawned.kill();
|
|
1431
|
+
});
|
|
1432
|
+
return timedPromise.finally(() => {
|
|
1433
|
+
removeExitHandler();
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1436
|
+
module2.exports = {
|
|
1437
|
+
spawnedKill,
|
|
1438
|
+
spawnedCancel,
|
|
1439
|
+
setupTimeout,
|
|
1440
|
+
validateTimeout,
|
|
1441
|
+
setExitHandler
|
|
1442
|
+
};
|
|
1443
|
+
}
|
|
1444
|
+
});
|
|
1445
|
+
|
|
1446
|
+
// ../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js
|
|
1447
|
+
var require_is_stream = __commonJS({
|
|
1448
|
+
"../../node_modules/.pnpm/is-stream@2.0.1/node_modules/is-stream/index.js"(exports2, module2) {
|
|
1449
|
+
"use strict";
|
|
1450
|
+
var isStream = (stream) => stream !== null && typeof stream === "object" && typeof stream.pipe === "function";
|
|
1451
|
+
isStream.writable = (stream) => isStream(stream) && stream.writable !== false && typeof stream._write === "function" && typeof stream._writableState === "object";
|
|
1452
|
+
isStream.readable = (stream) => isStream(stream) && stream.readable !== false && typeof stream._read === "function" && typeof stream._readableState === "object";
|
|
1453
|
+
isStream.duplex = (stream) => isStream.writable(stream) && isStream.readable(stream);
|
|
1454
|
+
isStream.transform = (stream) => isStream.duplex(stream) && typeof stream._transform === "function";
|
|
1455
|
+
module2.exports = isStream;
|
|
1456
|
+
}
|
|
1457
|
+
});
|
|
1458
|
+
|
|
1459
|
+
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js
|
|
1460
|
+
var require_buffer_stream = __commonJS({
|
|
1461
|
+
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/buffer-stream.js"(exports2, module2) {
|
|
1462
|
+
"use strict";
|
|
1463
|
+
var { PassThrough: PassThroughStream } = require("stream");
|
|
1464
|
+
module2.exports = (options) => {
|
|
1465
|
+
options = { ...options };
|
|
1466
|
+
const { array } = options;
|
|
1467
|
+
let { encoding } = options;
|
|
1468
|
+
const isBuffer = encoding === "buffer";
|
|
1469
|
+
let objectMode = false;
|
|
1470
|
+
if (array) {
|
|
1471
|
+
objectMode = !(encoding || isBuffer);
|
|
1472
|
+
} else {
|
|
1473
|
+
encoding = encoding || "utf8";
|
|
1474
|
+
}
|
|
1475
|
+
if (isBuffer) {
|
|
1476
|
+
encoding = null;
|
|
1477
|
+
}
|
|
1478
|
+
const stream = new PassThroughStream({ objectMode });
|
|
1479
|
+
if (encoding) {
|
|
1480
|
+
stream.setEncoding(encoding);
|
|
1481
|
+
}
|
|
1482
|
+
let length = 0;
|
|
1483
|
+
const chunks = [];
|
|
1484
|
+
stream.on("data", (chunk) => {
|
|
1485
|
+
chunks.push(chunk);
|
|
1486
|
+
if (objectMode) {
|
|
1487
|
+
length = chunks.length;
|
|
1488
|
+
} else {
|
|
1489
|
+
length += chunk.length;
|
|
1490
|
+
}
|
|
1491
|
+
});
|
|
1492
|
+
stream.getBufferedValue = () => {
|
|
1493
|
+
if (array) {
|
|
1494
|
+
return chunks;
|
|
1495
|
+
}
|
|
1496
|
+
return isBuffer ? Buffer.concat(chunks, length) : chunks.join("");
|
|
1497
|
+
};
|
|
1498
|
+
stream.getBufferedLength = () => length;
|
|
1499
|
+
return stream;
|
|
1500
|
+
};
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
|
|
1504
|
+
// ../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js
|
|
1505
|
+
var require_get_stream = __commonJS({
|
|
1506
|
+
"../../node_modules/.pnpm/get-stream@6.0.1/node_modules/get-stream/index.js"(exports2, module2) {
|
|
1507
|
+
"use strict";
|
|
1508
|
+
var { constants: BufferConstants } = require("buffer");
|
|
1509
|
+
var stream = require("stream");
|
|
1510
|
+
var { promisify } = require("util");
|
|
1511
|
+
var bufferStream = require_buffer_stream();
|
|
1512
|
+
var streamPipelinePromisified = promisify(stream.pipeline);
|
|
1513
|
+
var MaxBufferError = class extends Error {
|
|
1514
|
+
constructor() {
|
|
1515
|
+
super("maxBuffer exceeded");
|
|
1516
|
+
this.name = "MaxBufferError";
|
|
1517
|
+
}
|
|
1518
|
+
};
|
|
1519
|
+
async function getStream(inputStream, options) {
|
|
1520
|
+
if (!inputStream) {
|
|
1521
|
+
throw new Error("Expected a stream");
|
|
1522
|
+
}
|
|
1523
|
+
options = {
|
|
1524
|
+
maxBuffer: Infinity,
|
|
1525
|
+
...options
|
|
1526
|
+
};
|
|
1527
|
+
const { maxBuffer } = options;
|
|
1528
|
+
const stream2 = bufferStream(options);
|
|
1529
|
+
await new Promise((resolve, reject) => {
|
|
1530
|
+
const rejectPromise = (error) => {
|
|
1531
|
+
if (error && stream2.getBufferedLength() <= BufferConstants.MAX_LENGTH) {
|
|
1532
|
+
error.bufferedData = stream2.getBufferedValue();
|
|
1533
|
+
}
|
|
1534
|
+
reject(error);
|
|
1535
|
+
};
|
|
1536
|
+
(async () => {
|
|
1537
|
+
try {
|
|
1538
|
+
await streamPipelinePromisified(inputStream, stream2);
|
|
1539
|
+
resolve();
|
|
1540
|
+
} catch (error) {
|
|
1541
|
+
rejectPromise(error);
|
|
1542
|
+
}
|
|
1543
|
+
})();
|
|
1544
|
+
stream2.on("data", () => {
|
|
1545
|
+
if (stream2.getBufferedLength() > maxBuffer) {
|
|
1546
|
+
rejectPromise(new MaxBufferError());
|
|
1547
|
+
}
|
|
1548
|
+
});
|
|
1549
|
+
});
|
|
1550
|
+
return stream2.getBufferedValue();
|
|
1551
|
+
}
|
|
1552
|
+
module2.exports = getStream;
|
|
1553
|
+
module2.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" });
|
|
1554
|
+
module2.exports.array = (stream2, options) => getStream(stream2, { ...options, array: true });
|
|
1555
|
+
module2.exports.MaxBufferError = MaxBufferError;
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
|
|
1559
|
+
// ../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js
|
|
1560
|
+
var require_merge_stream = __commonJS({
|
|
1561
|
+
"../../node_modules/.pnpm/merge-stream@2.0.0/node_modules/merge-stream/index.js"(exports2, module2) {
|
|
1562
|
+
"use strict";
|
|
1563
|
+
var { PassThrough } = require("stream");
|
|
1564
|
+
module2.exports = function() {
|
|
1565
|
+
var sources = [];
|
|
1566
|
+
var output = new PassThrough({ objectMode: true });
|
|
1567
|
+
output.setMaxListeners(0);
|
|
1568
|
+
output.add = add;
|
|
1569
|
+
output.isEmpty = isEmpty;
|
|
1570
|
+
output.on("unpipe", remove);
|
|
1571
|
+
Array.prototype.slice.call(arguments).forEach(add);
|
|
1572
|
+
return output;
|
|
1573
|
+
function add(source) {
|
|
1574
|
+
if (Array.isArray(source)) {
|
|
1575
|
+
source.forEach(add);
|
|
1576
|
+
return this;
|
|
1577
|
+
}
|
|
1578
|
+
sources.push(source);
|
|
1579
|
+
source.once("end", remove.bind(null, source));
|
|
1580
|
+
source.once("error", output.emit.bind(output, "error"));
|
|
1581
|
+
source.pipe(output, { end: false });
|
|
1582
|
+
return this;
|
|
1583
|
+
}
|
|
1584
|
+
function isEmpty() {
|
|
1585
|
+
return sources.length == 0;
|
|
1586
|
+
}
|
|
1587
|
+
function remove(source) {
|
|
1588
|
+
sources = sources.filter(function(it) {
|
|
1589
|
+
return it !== source;
|
|
1590
|
+
});
|
|
1591
|
+
if (!sources.length && output.readable) {
|
|
1592
|
+
output.end();
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1598
|
+
|
|
1599
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js
|
|
1600
|
+
var require_stream = __commonJS({
|
|
1601
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/stream.js"(exports2, module2) {
|
|
1602
|
+
"use strict";
|
|
1603
|
+
var isStream = require_is_stream();
|
|
1604
|
+
var getStream = require_get_stream();
|
|
1605
|
+
var mergeStream = require_merge_stream();
|
|
1606
|
+
var handleInput = (spawned, input) => {
|
|
1607
|
+
if (input === void 0 || spawned.stdin === void 0) {
|
|
1608
|
+
return;
|
|
1609
|
+
}
|
|
1610
|
+
if (isStream(input)) {
|
|
1611
|
+
input.pipe(spawned.stdin);
|
|
1612
|
+
} else {
|
|
1613
|
+
spawned.stdin.end(input);
|
|
1614
|
+
}
|
|
1615
|
+
};
|
|
1616
|
+
var makeAllStream = (spawned, { all }) => {
|
|
1617
|
+
if (!all || !spawned.stdout && !spawned.stderr) {
|
|
1618
|
+
return;
|
|
1619
|
+
}
|
|
1620
|
+
const mixed = mergeStream();
|
|
1621
|
+
if (spawned.stdout) {
|
|
1622
|
+
mixed.add(spawned.stdout);
|
|
1623
|
+
}
|
|
1624
|
+
if (spawned.stderr) {
|
|
1625
|
+
mixed.add(spawned.stderr);
|
|
1626
|
+
}
|
|
1627
|
+
return mixed;
|
|
1628
|
+
};
|
|
1629
|
+
var getBufferedData = async (stream, streamPromise) => {
|
|
1630
|
+
if (!stream) {
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
stream.destroy();
|
|
1634
|
+
try {
|
|
1635
|
+
return await streamPromise;
|
|
1636
|
+
} catch (error) {
|
|
1637
|
+
return error.bufferedData;
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
var getStreamPromise = (stream, { encoding, buffer, maxBuffer }) => {
|
|
1641
|
+
if (!stream || !buffer) {
|
|
1642
|
+
return;
|
|
1643
|
+
}
|
|
1644
|
+
if (encoding) {
|
|
1645
|
+
return getStream(stream, { encoding, maxBuffer });
|
|
1646
|
+
}
|
|
1647
|
+
return getStream.buffer(stream, { maxBuffer });
|
|
1648
|
+
};
|
|
1649
|
+
var getSpawnedResult = async ({ stdout, stderr, all }, { encoding, buffer, maxBuffer }, processDone) => {
|
|
1650
|
+
const stdoutPromise = getStreamPromise(stdout, { encoding, buffer, maxBuffer });
|
|
1651
|
+
const stderrPromise = getStreamPromise(stderr, { encoding, buffer, maxBuffer });
|
|
1652
|
+
const allPromise = getStreamPromise(all, { encoding, buffer, maxBuffer: maxBuffer * 2 });
|
|
1653
|
+
try {
|
|
1654
|
+
return await Promise.all([processDone, stdoutPromise, stderrPromise, allPromise]);
|
|
1655
|
+
} catch (error) {
|
|
1656
|
+
return Promise.all([
|
|
1657
|
+
{ error, signal: error.signal, timedOut: error.timedOut },
|
|
1658
|
+
getBufferedData(stdout, stdoutPromise),
|
|
1659
|
+
getBufferedData(stderr, stderrPromise),
|
|
1660
|
+
getBufferedData(all, allPromise)
|
|
1661
|
+
]);
|
|
1662
|
+
}
|
|
1663
|
+
};
|
|
1664
|
+
var validateInputSync = ({ input }) => {
|
|
1665
|
+
if (isStream(input)) {
|
|
1666
|
+
throw new TypeError("The `input` option cannot be a stream in sync mode");
|
|
1667
|
+
}
|
|
1668
|
+
};
|
|
1669
|
+
module2.exports = {
|
|
1670
|
+
handleInput,
|
|
1671
|
+
makeAllStream,
|
|
1672
|
+
getSpawnedResult,
|
|
1673
|
+
validateInputSync
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
});
|
|
1677
|
+
|
|
1678
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js
|
|
1679
|
+
var require_promise = __commonJS({
|
|
1680
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/promise.js"(exports2, module2) {
|
|
1681
|
+
"use strict";
|
|
1682
|
+
var nativePromisePrototype = (async () => {
|
|
1683
|
+
})().constructor.prototype;
|
|
1684
|
+
var descriptors = ["then", "catch", "finally"].map((property) => [
|
|
1685
|
+
property,
|
|
1686
|
+
Reflect.getOwnPropertyDescriptor(nativePromisePrototype, property)
|
|
1687
|
+
]);
|
|
1688
|
+
var mergePromise = (spawned, promise) => {
|
|
1689
|
+
for (const [property, descriptor] of descriptors) {
|
|
1690
|
+
const value = typeof promise === "function" ? (...args) => Reflect.apply(descriptor.value, promise(), args) : descriptor.value.bind(promise);
|
|
1691
|
+
Reflect.defineProperty(spawned, property, { ...descriptor, value });
|
|
1692
|
+
}
|
|
1693
|
+
return spawned;
|
|
1694
|
+
};
|
|
1695
|
+
var getSpawnedPromise = (spawned) => {
|
|
1696
|
+
return new Promise((resolve, reject) => {
|
|
1697
|
+
spawned.on("exit", (exitCode, signal) => {
|
|
1698
|
+
resolve({ exitCode, signal });
|
|
1699
|
+
});
|
|
1700
|
+
spawned.on("error", (error) => {
|
|
1701
|
+
reject(error);
|
|
1702
|
+
});
|
|
1703
|
+
if (spawned.stdin) {
|
|
1704
|
+
spawned.stdin.on("error", (error) => {
|
|
1705
|
+
reject(error);
|
|
1706
|
+
});
|
|
1707
|
+
}
|
|
1708
|
+
});
|
|
1709
|
+
};
|
|
1710
|
+
module2.exports = {
|
|
1711
|
+
mergePromise,
|
|
1712
|
+
getSpawnedPromise
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
});
|
|
1716
|
+
|
|
1717
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js
|
|
1718
|
+
var require_command = __commonJS({
|
|
1719
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/lib/command.js"(exports2, module2) {
|
|
1720
|
+
"use strict";
|
|
1721
|
+
var normalizeArgs = (file, args = []) => {
|
|
1722
|
+
if (!Array.isArray(args)) {
|
|
1723
|
+
return [file];
|
|
1724
|
+
}
|
|
1725
|
+
return [file, ...args];
|
|
1726
|
+
};
|
|
1727
|
+
var NO_ESCAPE_REGEXP = /^[\w.-]+$/;
|
|
1728
|
+
var DOUBLE_QUOTES_REGEXP = /"/g;
|
|
1729
|
+
var escapeArg = (arg) => {
|
|
1730
|
+
if (typeof arg !== "string" || NO_ESCAPE_REGEXP.test(arg)) {
|
|
1731
|
+
return arg;
|
|
1732
|
+
}
|
|
1733
|
+
return `"${arg.replace(DOUBLE_QUOTES_REGEXP, '\\"')}"`;
|
|
1734
|
+
};
|
|
1735
|
+
var joinCommand = (file, args) => {
|
|
1736
|
+
return normalizeArgs(file, args).join(" ");
|
|
1737
|
+
};
|
|
1738
|
+
var getEscapedCommand = (file, args) => {
|
|
1739
|
+
return normalizeArgs(file, args).map((arg) => escapeArg(arg)).join(" ");
|
|
1740
|
+
};
|
|
1741
|
+
var SPACES_REGEXP = / +/g;
|
|
1742
|
+
var parseCommand = (command) => {
|
|
1743
|
+
const tokens = [];
|
|
1744
|
+
for (const token of command.trim().split(SPACES_REGEXP)) {
|
|
1745
|
+
const previousToken = tokens[tokens.length - 1];
|
|
1746
|
+
if (previousToken && previousToken.endsWith("\\")) {
|
|
1747
|
+
tokens[tokens.length - 1] = `${previousToken.slice(0, -1)} ${token}`;
|
|
1748
|
+
} else {
|
|
1749
|
+
tokens.push(token);
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
return tokens;
|
|
1753
|
+
};
|
|
1754
|
+
module2.exports = {
|
|
1755
|
+
joinCommand,
|
|
1756
|
+
getEscapedCommand,
|
|
1757
|
+
parseCommand
|
|
1758
|
+
};
|
|
1759
|
+
}
|
|
1760
|
+
});
|
|
1761
|
+
|
|
1762
|
+
// ../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js
|
|
1763
|
+
var require_execa = __commonJS({
|
|
1764
|
+
"../../node_modules/.pnpm/execa@5.1.1/node_modules/execa/index.js"(exports2, module2) {
|
|
1765
|
+
"use strict";
|
|
1766
|
+
var path2 = require("path");
|
|
1767
|
+
var childProcess = require("child_process");
|
|
1768
|
+
var crossSpawn = require_cross_spawn();
|
|
1769
|
+
var stripFinalNewline = require_strip_final_newline();
|
|
1770
|
+
var npmRunPath = require_npm_run_path();
|
|
1771
|
+
var onetime = require_onetime();
|
|
1772
|
+
var makeError = require_error();
|
|
1773
|
+
var normalizeStdio = require_stdio();
|
|
1774
|
+
var { spawnedKill, spawnedCancel, setupTimeout, validateTimeout, setExitHandler } = require_kill();
|
|
1775
|
+
var { handleInput, getSpawnedResult, makeAllStream, validateInputSync } = require_stream();
|
|
1776
|
+
var { mergePromise, getSpawnedPromise } = require_promise();
|
|
1777
|
+
var { joinCommand, parseCommand, getEscapedCommand } = require_command();
|
|
1778
|
+
var DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
|
1779
|
+
var getEnv = ({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
|
1780
|
+
const env = extendEnv ? { ...process.env, ...envOption } : envOption;
|
|
1781
|
+
if (preferLocal) {
|
|
1782
|
+
return npmRunPath.env({ env, cwd: localDir, execPath });
|
|
1783
|
+
}
|
|
1784
|
+
return env;
|
|
1785
|
+
};
|
|
1786
|
+
var handleArguments = (file, args, options = {}) => {
|
|
1787
|
+
const parsed = crossSpawn._parse(file, args, options);
|
|
1788
|
+
file = parsed.command;
|
|
1789
|
+
args = parsed.args;
|
|
1790
|
+
options = parsed.options;
|
|
1791
|
+
options = {
|
|
1792
|
+
maxBuffer: DEFAULT_MAX_BUFFER,
|
|
1793
|
+
buffer: true,
|
|
1794
|
+
stripFinalNewline: true,
|
|
1795
|
+
extendEnv: true,
|
|
1796
|
+
preferLocal: false,
|
|
1797
|
+
localDir: options.cwd || process.cwd(),
|
|
1798
|
+
execPath: process.execPath,
|
|
1799
|
+
encoding: "utf8",
|
|
1800
|
+
reject: true,
|
|
1801
|
+
cleanup: true,
|
|
1802
|
+
all: false,
|
|
1803
|
+
windowsHide: true,
|
|
1804
|
+
...options
|
|
1805
|
+
};
|
|
1806
|
+
options.env = getEnv(options);
|
|
1807
|
+
options.stdio = normalizeStdio(options);
|
|
1808
|
+
if (process.platform === "win32" && path2.basename(file, ".exe") === "cmd") {
|
|
1809
|
+
args.unshift("/q");
|
|
1810
|
+
}
|
|
1811
|
+
return { file, args, options, parsed };
|
|
1812
|
+
};
|
|
1813
|
+
var handleOutput = (options, value, error) => {
|
|
1814
|
+
if (typeof value !== "string" && !Buffer.isBuffer(value)) {
|
|
1815
|
+
return error === void 0 ? void 0 : "";
|
|
1816
|
+
}
|
|
1817
|
+
if (options.stripFinalNewline) {
|
|
1818
|
+
return stripFinalNewline(value);
|
|
1819
|
+
}
|
|
1820
|
+
return value;
|
|
1821
|
+
};
|
|
1822
|
+
var execa2 = (file, args, options) => {
|
|
1823
|
+
const parsed = handleArguments(file, args, options);
|
|
1824
|
+
const command = joinCommand(file, args);
|
|
1825
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
1826
|
+
validateTimeout(parsed.options);
|
|
1827
|
+
let spawned;
|
|
1828
|
+
try {
|
|
1829
|
+
spawned = childProcess.spawn(parsed.file, parsed.args, parsed.options);
|
|
1830
|
+
} catch (error) {
|
|
1831
|
+
const dummySpawned = new childProcess.ChildProcess();
|
|
1832
|
+
const errorPromise = Promise.reject(makeError({
|
|
1833
|
+
error,
|
|
1834
|
+
stdout: "",
|
|
1835
|
+
stderr: "",
|
|
1836
|
+
all: "",
|
|
1837
|
+
command,
|
|
1838
|
+
escapedCommand,
|
|
1839
|
+
parsed,
|
|
1840
|
+
timedOut: false,
|
|
1841
|
+
isCanceled: false,
|
|
1842
|
+
killed: false
|
|
1843
|
+
}));
|
|
1844
|
+
return mergePromise(dummySpawned, errorPromise);
|
|
1845
|
+
}
|
|
1846
|
+
const spawnedPromise = getSpawnedPromise(spawned);
|
|
1847
|
+
const timedPromise = setupTimeout(spawned, parsed.options, spawnedPromise);
|
|
1848
|
+
const processDone = setExitHandler(spawned, parsed.options, timedPromise);
|
|
1849
|
+
const context = { isCanceled: false };
|
|
1850
|
+
spawned.kill = spawnedKill.bind(null, spawned.kill.bind(spawned));
|
|
1851
|
+
spawned.cancel = spawnedCancel.bind(null, spawned, context);
|
|
1852
|
+
const handlePromise = async () => {
|
|
1853
|
+
const [{ error, exitCode, signal, timedOut }, stdoutResult, stderrResult, allResult] = await getSpawnedResult(spawned, parsed.options, processDone);
|
|
1854
|
+
const stdout = handleOutput(parsed.options, stdoutResult);
|
|
1855
|
+
const stderr = handleOutput(parsed.options, stderrResult);
|
|
1856
|
+
const all = handleOutput(parsed.options, allResult);
|
|
1857
|
+
if (error || exitCode !== 0 || signal !== null) {
|
|
1858
|
+
const returnedError = makeError({
|
|
1859
|
+
error,
|
|
1860
|
+
exitCode,
|
|
1861
|
+
signal,
|
|
1862
|
+
stdout,
|
|
1863
|
+
stderr,
|
|
1864
|
+
all,
|
|
1865
|
+
command,
|
|
1866
|
+
escapedCommand,
|
|
1867
|
+
parsed,
|
|
1868
|
+
timedOut,
|
|
1869
|
+
isCanceled: context.isCanceled,
|
|
1870
|
+
killed: spawned.killed
|
|
1871
|
+
});
|
|
1872
|
+
if (!parsed.options.reject) {
|
|
1873
|
+
return returnedError;
|
|
1874
|
+
}
|
|
1875
|
+
throw returnedError;
|
|
1876
|
+
}
|
|
1877
|
+
return {
|
|
1878
|
+
command,
|
|
1879
|
+
escapedCommand,
|
|
1880
|
+
exitCode: 0,
|
|
1881
|
+
stdout,
|
|
1882
|
+
stderr,
|
|
1883
|
+
all,
|
|
1884
|
+
failed: false,
|
|
1885
|
+
timedOut: false,
|
|
1886
|
+
isCanceled: false,
|
|
1887
|
+
killed: false
|
|
1888
|
+
};
|
|
1889
|
+
};
|
|
1890
|
+
const handlePromiseOnce = onetime(handlePromise);
|
|
1891
|
+
handleInput(spawned, parsed.options.input);
|
|
1892
|
+
spawned.all = makeAllStream(spawned, parsed.options);
|
|
1893
|
+
return mergePromise(spawned, handlePromiseOnce);
|
|
1894
|
+
};
|
|
1895
|
+
module2.exports = execa2;
|
|
1896
|
+
module2.exports.sync = (file, args, options) => {
|
|
1897
|
+
const parsed = handleArguments(file, args, options);
|
|
1898
|
+
const command = joinCommand(file, args);
|
|
1899
|
+
const escapedCommand = getEscapedCommand(file, args);
|
|
1900
|
+
validateInputSync(parsed.options);
|
|
1901
|
+
let result;
|
|
1902
|
+
try {
|
|
1903
|
+
result = childProcess.spawnSync(parsed.file, parsed.args, parsed.options);
|
|
1904
|
+
} catch (error) {
|
|
1905
|
+
throw makeError({
|
|
1906
|
+
error,
|
|
1907
|
+
stdout: "",
|
|
1908
|
+
stderr: "",
|
|
1909
|
+
all: "",
|
|
1910
|
+
command,
|
|
1911
|
+
escapedCommand,
|
|
1912
|
+
parsed,
|
|
1913
|
+
timedOut: false,
|
|
1914
|
+
isCanceled: false,
|
|
1915
|
+
killed: false
|
|
1916
|
+
});
|
|
1917
|
+
}
|
|
1918
|
+
const stdout = handleOutput(parsed.options, result.stdout, result.error);
|
|
1919
|
+
const stderr = handleOutput(parsed.options, result.stderr, result.error);
|
|
1920
|
+
if (result.error || result.status !== 0 || result.signal !== null) {
|
|
1921
|
+
const error = makeError({
|
|
1922
|
+
stdout,
|
|
1923
|
+
stderr,
|
|
1924
|
+
error: result.error,
|
|
1925
|
+
signal: result.signal,
|
|
1926
|
+
exitCode: result.status,
|
|
1927
|
+
command,
|
|
1928
|
+
escapedCommand,
|
|
1929
|
+
parsed,
|
|
1930
|
+
timedOut: result.error && result.error.code === "ETIMEDOUT",
|
|
1931
|
+
isCanceled: false,
|
|
1932
|
+
killed: result.signal !== null
|
|
1933
|
+
});
|
|
1934
|
+
if (!parsed.options.reject) {
|
|
1935
|
+
return error;
|
|
1936
|
+
}
|
|
1937
|
+
throw error;
|
|
1938
|
+
}
|
|
1939
|
+
return {
|
|
1940
|
+
command,
|
|
1941
|
+
escapedCommand,
|
|
1942
|
+
exitCode: 0,
|
|
1943
|
+
stdout,
|
|
1944
|
+
stderr,
|
|
1945
|
+
failed: false,
|
|
1946
|
+
timedOut: false,
|
|
1947
|
+
isCanceled: false,
|
|
1948
|
+
killed: false
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1951
|
+
module2.exports.command = (command, options) => {
|
|
1952
|
+
const [file, ...args] = parseCommand(command);
|
|
1953
|
+
return execa2(file, args, options);
|
|
1954
|
+
};
|
|
1955
|
+
module2.exports.commandSync = (command, options) => {
|
|
1956
|
+
const [file, ...args] = parseCommand(command);
|
|
1957
|
+
return execa2.sync(file, args, options);
|
|
1958
|
+
};
|
|
1959
|
+
module2.exports.node = (scriptPath, args, options = {}) => {
|
|
1960
|
+
if (args && !Array.isArray(args) && typeof args === "object") {
|
|
1961
|
+
options = args;
|
|
1962
|
+
args = [];
|
|
1963
|
+
}
|
|
1964
|
+
const stdio = normalizeStdio.node(options);
|
|
1965
|
+
const defaultExecArgv = process.execArgv.filter((arg) => !arg.startsWith("--inspect"));
|
|
1966
|
+
const {
|
|
1967
|
+
nodePath = process.execPath,
|
|
1968
|
+
nodeOptions = defaultExecArgv
|
|
1969
|
+
} = options;
|
|
1970
|
+
return execa2(
|
|
1971
|
+
nodePath,
|
|
1972
|
+
[
|
|
1973
|
+
...nodeOptions,
|
|
1974
|
+
scriptPath,
|
|
1975
|
+
...Array.isArray(args) ? args : []
|
|
1976
|
+
],
|
|
1977
|
+
{
|
|
1978
|
+
...options,
|
|
1979
|
+
stdin: void 0,
|
|
1980
|
+
stdout: void 0,
|
|
1981
|
+
stderr: void 0,
|
|
1982
|
+
stdio,
|
|
1983
|
+
shell: false
|
|
1984
|
+
}
|
|
1985
|
+
);
|
|
1986
|
+
};
|
|
1987
|
+
}
|
|
1988
|
+
});
|
|
1989
|
+
|
|
1990
|
+
// src/scripts/localinstall.ts
|
|
1991
|
+
var import_fetch_engine = require("@prisma/fetch-engine");
|
|
1992
|
+
var import_package = require("@prisma/fetch-engine/package.json");
|
|
1993
|
+
var import_get_platform = require("@prisma/get-platform");
|
|
1994
|
+
var import_execa = __toESM(require_execa());
|
|
1995
|
+
var import_fs = __toESM(require("fs"));
|
|
1996
|
+
var import_path = __toESM(require("path"));
|
|
1997
|
+
var baseDir = import_path.default.join(__dirname, "..", "..");
|
|
1998
|
+
async function main() {
|
|
1999
|
+
const binaryTarget = await (0, import_get_platform.getBinaryTargetForCurrentPlatform)();
|
|
2000
|
+
const cacheDir = await (0, import_fetch_engine.getCacheDir)("master", "_local_", binaryTarget);
|
|
2001
|
+
const branch = import_package.enginesOverride?.["branch"];
|
|
2002
|
+
let folder = import_package.enginesOverride?.["folder"];
|
|
2003
|
+
const engineCachePaths = {
|
|
2004
|
+
[import_fetch_engine.BinaryType.QueryEngineBinary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.QueryEngineBinary),
|
|
2005
|
+
[import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.QueryEngineLibrary),
|
|
2006
|
+
[import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(cacheDir, import_fetch_engine.BinaryType.SchemaEngineBinary)
|
|
2007
|
+
};
|
|
2008
|
+
if (branch !== void 0) {
|
|
2009
|
+
const enginesRepoUri = "git@github.com:prisma/prisma-engines.git";
|
|
2010
|
+
const enginesRepoDir = import_path.default.join(baseDir, "dist", "prisma-engines");
|
|
2011
|
+
const currentBranch = await (0, import_execa.default)("git", ["branch", "--show-current"], {
|
|
2012
|
+
cwd: enginesRepoDir
|
|
2013
|
+
}).catch(() => ({ failed: true, stdout: "" }));
|
|
2014
|
+
if (currentBranch.failed === true || currentBranch.stdout !== branch) {
|
|
2015
|
+
await import_fs.default.promises.rm(enginesRepoDir, { recursive: true, force: true });
|
|
2016
|
+
await (0, import_execa.default)("git", ["clone", enginesRepoUri, "--depth", "1", "--branch", branch], {
|
|
2017
|
+
cwd: import_path.default.join(baseDir, "dist"),
|
|
2018
|
+
stdio: "inherit"
|
|
2019
|
+
});
|
|
2020
|
+
}
|
|
2021
|
+
await (0, import_execa.default)("git", ["pull", "origin", branch], {
|
|
2022
|
+
cwd: enginesRepoDir,
|
|
2023
|
+
stdio: "inherit"
|
|
2024
|
+
});
|
|
2025
|
+
await (0, import_execa.default)("cargo", ["build", "--release"], {
|
|
2026
|
+
cwd: enginesRepoDir,
|
|
2027
|
+
stdio: "inherit"
|
|
2028
|
+
});
|
|
2029
|
+
folder = import_path.default.join(enginesRepoDir, "target", "release");
|
|
2030
|
+
}
|
|
2031
|
+
if (folder !== void 0) {
|
|
2032
|
+
folder = import_path.default.isAbsolute(folder) ? folder : import_path.default.join(baseDir, folder);
|
|
2033
|
+
const libExt = binaryTarget.includes("windows") ? ".dll" : binaryTarget.includes("darwin") ? ".dylib" : ".so";
|
|
2034
|
+
const binExt = binaryTarget.includes("windows") ? ".exe" : "";
|
|
2035
|
+
const engineOutputPaths = {
|
|
2036
|
+
[import_fetch_engine.BinaryType.QueryEngineLibrary]: import_path.default.join(folder, "libquery_engine".concat(libExt)),
|
|
2037
|
+
[import_fetch_engine.BinaryType.QueryEngineBinary]: import_path.default.join(folder, import_fetch_engine.BinaryType.QueryEngineBinary.concat(binExt)),
|
|
2038
|
+
[import_fetch_engine.BinaryType.SchemaEngineBinary]: import_path.default.join(folder, import_fetch_engine.BinaryType.SchemaEngineBinary.concat(binExt))
|
|
2039
|
+
};
|
|
2040
|
+
for (const [binaryType, outputPath] of Object.entries(engineOutputPaths)) {
|
|
2041
|
+
await import_fs.default.promises.copyFile(outputPath, engineCachePaths[binaryType]);
|
|
2042
|
+
}
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
main().catch((e) => {
|
|
2046
|
+
console.log(e.message);
|
|
2047
|
+
process.exit(1);
|
|
2048
|
+
});
|