@flotte/cli 0.0.0-stage → 0.2.5
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/flotte.mjs +380 -0
- package/node-run.mjs +11 -0
- package/package.json +20 -4
- package/pnpm/LICENSE +22 -0
- package/pnpm/README.md +239 -0
- package/pnpm/bin/pnpm.cjs +28 -0
- package/pnpm/bin/pnpx.cjs +5 -0
- package/pnpm/dist/node-gyp-bin/node-gyp +6 -0
- package/pnpm/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/pnpm/dist/node_modules/.bin/glob +88 -0
- package/pnpm/dist/node_modules/.bin/node-gyp +88 -0
- package/pnpm/dist/node_modules/.bin/node-which +88 -0
- package/pnpm/dist/node_modules/.bin/nopt +88 -0
- package/pnpm/dist/node_modules/.bin/semver +88 -0
- package/pnpm/dist/node_modules/.modules.yaml +299 -0
- package/pnpm/dist/node_modules/.pnpm/lock.yaml +823 -0
- package/pnpm/dist/node_modules/.pnpm-workspace-state-v1.json +35 -0
- package/pnpm/dist/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
- package/pnpm/dist/node_modules/@isaacs/cliui/build/index.cjs +317 -0
- package/pnpm/dist/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
- package/pnpm/dist/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
- package/pnpm/dist/node_modules/@isaacs/cliui/index.mjs +14 -0
- package/pnpm/dist/node_modules/@isaacs/cliui/package.json +86 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/pnpm/dist/node_modules/@npmcli/agent/lib/agents.js +206 -0
- package/pnpm/dist/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/pnpm/dist/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/pnpm/dist/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/pnpm/dist/node_modules/@npmcli/agent/lib/options.js +86 -0
- package/pnpm/dist/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/pnpm/dist/node_modules/@npmcli/agent/package.json +60 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/common/get-options.js +20 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/index.js +13 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/pnpm/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/pnpm/dist/node_modules/@npmcli/fs/package.json +54 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/LICENSE +201 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/index.js +396 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/package.json +36 -0
- package/pnpm/dist/node_modules/@pkgjs/parseargs/utils.js +198 -0
- package/pnpm/dist/node_modules/abbrev/LICENSE +46 -0
- package/pnpm/dist/node_modules/abbrev/lib/index.js +53 -0
- package/pnpm/dist/node_modules/abbrev/package.json +45 -0
- package/pnpm/dist/node_modules/agent-base/LICENSE +22 -0
- package/pnpm/dist/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/pnpm/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/pnpm/dist/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/pnpm/dist/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/agent-base/dist/index.js +178 -0
- package/pnpm/dist/node_modules/agent-base/dist/index.js.map +1 -0
- package/pnpm/dist/node_modules/agent-base/package.json +46 -0
- package/pnpm/dist/node_modules/ansi-regex/index.js +15 -0
- package/pnpm/dist/node_modules/ansi-regex/license +9 -0
- package/pnpm/dist/node_modules/ansi-regex/package.json +61 -0
- package/pnpm/dist/node_modules/ansi-styles/index.js +223 -0
- package/pnpm/dist/node_modules/ansi-styles/license +9 -0
- package/pnpm/dist/node_modules/ansi-styles/package.json +54 -0
- package/pnpm/dist/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/pnpm/dist/node_modules/balanced-match/index.js +62 -0
- package/pnpm/dist/node_modules/balanced-match/package.json +48 -0
- package/pnpm/dist/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/pnpm/dist/node_modules/brace-expansion/LICENSE +21 -0
- package/pnpm/dist/node_modules/brace-expansion/index.js +394 -0
- package/pnpm/dist/node_modules/brace-expansion/package.json +49 -0
- package/pnpm/dist/node_modules/cacache/lib/content/path.js +29 -0
- package/pnpm/dist/node_modules/cacache/lib/content/read.js +165 -0
- package/pnpm/dist/node_modules/cacache/lib/content/rm.js +18 -0
- package/pnpm/dist/node_modules/cacache/lib/content/write.js +206 -0
- package/pnpm/dist/node_modules/cacache/lib/entry-index.js +336 -0
- package/pnpm/dist/node_modules/cacache/lib/get.js +170 -0
- package/pnpm/dist/node_modules/cacache/lib/index.js +42 -0
- package/pnpm/dist/node_modules/cacache/lib/memoization.js +72 -0
- package/pnpm/dist/node_modules/cacache/lib/put.js +80 -0
- package/pnpm/dist/node_modules/cacache/lib/rm.js +31 -0
- package/pnpm/dist/node_modules/cacache/lib/util/glob.js +7 -0
- package/pnpm/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/pnpm/dist/node_modules/cacache/lib/util/tmp.js +26 -0
- package/pnpm/dist/node_modules/cacache/lib/verify.js +258 -0
- package/pnpm/dist/node_modules/cacache/package.json +83 -0
- package/pnpm/dist/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/pnpm/dist/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/pnpm/dist/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/chownr/package.json +69 -0
- package/pnpm/dist/node_modules/color-convert/LICENSE +21 -0
- package/pnpm/dist/node_modules/color-convert/conversions.js +839 -0
- package/pnpm/dist/node_modules/color-convert/index.js +81 -0
- package/pnpm/dist/node_modules/color-convert/package.json +48 -0
- package/pnpm/dist/node_modules/color-convert/route.js +97 -0
- package/pnpm/dist/node_modules/color-name/LICENSE +8 -0
- package/pnpm/dist/node_modules/color-name/index.js +152 -0
- package/pnpm/dist/node_modules/color-name/package.json +28 -0
- package/pnpm/dist/node_modules/content-type/LICENSE +22 -0
- package/pnpm/dist/node_modules/content-type/dist/index.js +176 -0
- package/pnpm/dist/node_modules/content-type/dist/index.js.map +1 -0
- package/pnpm/dist/node_modules/content-type/package.json +52 -0
- package/pnpm/dist/node_modules/cross-spawn/LICENSE +21 -0
- package/pnpm/dist/node_modules/cross-spawn/index.js +39 -0
- package/pnpm/dist/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/pnpm/dist/node_modules/cross-spawn/lib/parse.js +91 -0
- package/pnpm/dist/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/pnpm/dist/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/pnpm/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/pnpm/dist/node_modules/cross-spawn/package.json +73 -0
- package/pnpm/dist/node_modules/debug/LICENSE +20 -0
- package/pnpm/dist/node_modules/debug/package.json +64 -0
- package/pnpm/dist/node_modules/debug/src/browser.js +272 -0
- package/pnpm/dist/node_modules/debug/src/common.js +292 -0
- package/pnpm/dist/node_modules/debug/src/index.js +10 -0
- package/pnpm/dist/node_modules/debug/src/node.js +263 -0
- package/pnpm/dist/node_modules/eastasianwidth/eastasianwidth.js +311 -0
- package/pnpm/dist/node_modules/eastasianwidth/package.json +18 -0
- package/pnpm/dist/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/pnpm/dist/node_modules/emoji-regex/RGI_Emoji.js +6 -0
- package/pnpm/dist/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
- package/pnpm/dist/node_modules/emoji-regex/es2015/index.js +6 -0
- package/pnpm/dist/node_modules/emoji-regex/es2015/text.js +6 -0
- package/pnpm/dist/node_modules/emoji-regex/index.js +6 -0
- package/pnpm/dist/node_modules/emoji-regex/package.json +52 -0
- package/pnpm/dist/node_modules/emoji-regex/text.js +6 -0
- package/pnpm/dist/node_modules/encoding/.prettierrc.js +8 -0
- package/pnpm/dist/node_modules/encoding/LICENSE +16 -0
- package/pnpm/dist/node_modules/encoding/lib/encoding.js +83 -0
- package/pnpm/dist/node_modules/encoding/package.json +18 -0
- package/pnpm/dist/node_modules/env-paths/index.js +74 -0
- package/pnpm/dist/node_modules/env-paths/license +9 -0
- package/pnpm/dist/node_modules/env-paths/package.json +45 -0
- package/pnpm/dist/node_modules/err-code/.eslintrc.json +7 -0
- package/pnpm/dist/node_modules/err-code/bower.json +30 -0
- package/pnpm/dist/node_modules/err-code/index.js +47 -0
- package/pnpm/dist/node_modules/err-code/index.umd.js +51 -0
- package/pnpm/dist/node_modules/err-code/package.json +34 -0
- package/pnpm/dist/node_modules/exponential-backoff/LICENSE +202 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/pnpm/dist/node_modules/exponential-backoff/dist/options.js.map +1 -0
- package/pnpm/dist/node_modules/exponential-backoff/package.json +62 -0
- package/pnpm/dist/node_modules/fdir/LICENSE +7 -0
- package/pnpm/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/pnpm/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/pnpm/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/pnpm/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/pnpm/dist/node_modules/fdir/package.json +103 -0
- package/pnpm/dist/node_modules/foreground-child/LICENSE +15 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/index.js +123 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/pnpm/dist/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/index.js +115 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/pnpm/dist/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
- package/pnpm/dist/node_modules/foreground-child/package.json +106 -0
- package/pnpm/dist/node_modules/fs-minipass/LICENSE +15 -0
- package/pnpm/dist/node_modules/fs-minipass/lib/index.js +443 -0
- package/pnpm/dist/node_modules/fs-minipass/package.json +54 -0
- package/pnpm/dist/node_modules/glob/LICENSE +15 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/pnpm/dist/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/pnpm/dist/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/bin.mjs +346 -0
- package/pnpm/dist/node_modules/glob/dist/esm/bin.mjs.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/glob.js +243 -0
- package/pnpm/dist/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/pnpm/dist/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/pnpm/dist/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/pnpm/dist/node_modules/glob/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/pattern.js +215 -0
- package/pnpm/dist/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/pnpm/dist/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/pnpm/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/pnpm/dist/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/pnpm/dist/node_modules/glob/package.json +99 -0
- package/pnpm/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/pnpm/dist/node_modules/graceful-fs/clone.js +23 -0
- package/pnpm/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/pnpm/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/pnpm/dist/node_modules/graceful-fs/package.json +53 -0
- package/pnpm/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/pnpm/dist/node_modules/http-cache-semantics/LICENSE +9 -0
- package/pnpm/dist/node_modules/http-cache-semantics/index.js +928 -0
- package/pnpm/dist/node_modules/http-cache-semantics/package.json +22 -0
- package/pnpm/dist/node_modules/http-proxy-agent/LICENSE +22 -0
- package/pnpm/dist/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/pnpm/dist/node_modules/http-proxy-agent/dist/index.js.map +1 -0
- package/pnpm/dist/node_modules/http-proxy-agent/package.json +47 -0
- package/pnpm/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/pnpm/dist/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/pnpm/dist/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/pnpm/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/pnpm/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/pnpm/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/pnpm/dist/node_modules/https-proxy-agent/package.json +50 -0
- package/pnpm/dist/node_modules/iconv-lite/.github/dependabot.yml +11 -0
- package/pnpm/dist/node_modules/iconv-lite/.idea/codeStyles/Project.xml +47 -0
- package/pnpm/dist/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/pnpm/dist/node_modules/iconv-lite/.idea/iconv-lite.iml +12 -0
- package/pnpm/dist/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/pnpm/dist/node_modules/iconv-lite/.idea/modules.xml +8 -0
- package/pnpm/dist/node_modules/iconv-lite/.idea/vcs.xml +6 -0
- package/pnpm/dist/node_modules/iconv-lite/LICENSE +21 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/index.js +23 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/internal.js +198 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/utf16.js +197 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/utf32.js +319 -0
- package/pnpm/dist/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/pnpm/dist/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/pnpm/dist/node_modules/iconv-lite/lib/index.js +180 -0
- package/pnpm/dist/node_modules/iconv-lite/lib/streams.js +109 -0
- package/pnpm/dist/node_modules/iconv-lite/package.json +44 -0
- package/pnpm/dist/node_modules/imurmurhash/imurmurhash.js +138 -0
- package/pnpm/dist/node_modules/imurmurhash/imurmurhash.min.js +12 -0
- package/pnpm/dist/node_modules/imurmurhash/package.json +40 -0
- package/pnpm/dist/node_modules/ip-address/LICENSE +19 -0
- package/pnpm/dist/node_modules/ip-address/dist/address-error.js +12 -0
- package/pnpm/dist/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/common.js +154 -0
- package/pnpm/dist/node_modules/ip-address/dist/common.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/ip-address.js +35 -0
- package/pnpm/dist/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/ipv4.js +595 -0
- package/pnpm/dist/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/ipv6.js +1458 -0
- package/pnpm/dist/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/v4/constants.js +51 -0
- package/pnpm/dist/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/v6/constants.js +128 -0
- package/pnpm/dist/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/v6/helpers.js +54 -0
- package/pnpm/dist/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/pnpm/dist/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/pnpm/dist/node_modules/ip-address/package.json +90 -0
- package/pnpm/dist/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/pnpm/dist/node_modules/is-fullwidth-code-point/license +9 -0
- package/pnpm/dist/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/pnpm/dist/node_modules/isexe/LICENSE +15 -0
- package/pnpm/dist/node_modules/isexe/index.js +57 -0
- package/pnpm/dist/node_modules/isexe/mode.js +41 -0
- package/pnpm/dist/node_modules/isexe/package.json +31 -0
- package/pnpm/dist/node_modules/isexe/windows.js +42 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/index.js +1010 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/commonjs/parse-args.js +50 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/index.js +1000 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/parse-args.js +26 -0
- package/pnpm/dist/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -0
- package/pnpm/dist/node_modules/jackspeak/package.json +95 -0
- package/pnpm/dist/node_modules/lru-cache/LICENSE +15 -0
- package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/pnpm/dist/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/pnpm/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/pnpm/dist/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/pnpm/dist/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/pnpm/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/lru-cache/package.json +116 -0
- package/pnpm/dist/node_modules/make-fetch-happen/LICENSE +16 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/pnpm/dist/node_modules/make-fetch-happen/lib/remote.js +132 -0
- package/pnpm/dist/node_modules/make-fetch-happen/package.json +74 -0
- package/pnpm/dist/node_modules/minimatch/LICENSE +15 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/ast.js +747 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/escape.js +22 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/index.js +1023 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
- package/pnpm/dist/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/ast.js +743 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/escape.js +18 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/index.js +1007 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/unescape.js +20 -0
- package/pnpm/dist/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/pnpm/dist/node_modules/minimatch/package.json +82 -0
- package/pnpm/dist/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/pnpm/dist/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minipass/dist/esm/index.js +1020 -0
- package/pnpm/dist/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/minipass/package.json +77 -0
- package/pnpm/dist/node_modules/minipass-collect/LICENSE +15 -0
- package/pnpm/dist/node_modules/minipass-collect/index.js +71 -0
- package/pnpm/dist/node_modules/minipass-collect/package.json +30 -0
- package/pnpm/dist/node_modules/minipass-fetch/LICENSE +28 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/body.js +350 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/index.js +376 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/request.js +282 -0
- package/pnpm/dist/node_modules/minipass-fetch/lib/response.js +90 -0
- package/pnpm/dist/node_modules/minipass-fetch/package.json +70 -0
- package/pnpm/dist/node_modules/minipass-flush/index.js +39 -0
- package/pnpm/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
- package/pnpm/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
- package/pnpm/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
- package/pnpm/dist/node_modules/minipass-flush/package.json +42 -0
- package/pnpm/dist/node_modules/minipass-pipeline/LICENSE +15 -0
- package/pnpm/dist/node_modules/minipass-pipeline/index.js +128 -0
- package/pnpm/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/pnpm/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/pnpm/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/pnpm/dist/node_modules/minipass-pipeline/package.json +29 -0
- package/pnpm/dist/node_modules/minipass-sized/LICENSE +15 -0
- package/pnpm/dist/node_modules/minipass-sized/index.js +67 -0
- package/pnpm/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +15 -0
- package/pnpm/dist/node_modules/minipass-sized/node_modules/minipass/index.js +649 -0
- package/pnpm/dist/node_modules/minipass-sized/node_modules/minipass/package.json +56 -0
- package/pnpm/dist/node_modules/minipass-sized/package.json +39 -0
- package/pnpm/dist/node_modules/minizlib/LICENSE +26 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/minizlib/package.json +80 -0
- package/pnpm/dist/node_modules/ms/index.js +162 -0
- package/pnpm/dist/node_modules/ms/package.json +38 -0
- package/pnpm/dist/node_modules/negotiator/LICENSE +24 -0
- package/pnpm/dist/node_modules/negotiator/index.js +83 -0
- package/pnpm/dist/node_modules/negotiator/lib/accept.js +54 -0
- package/pnpm/dist/node_modules/negotiator/lib/charset.js +145 -0
- package/pnpm/dist/node_modules/negotiator/lib/encoding.js +184 -0
- package/pnpm/dist/node_modules/negotiator/lib/language.js +158 -0
- package/pnpm/dist/node_modules/negotiator/lib/mediaType.js +176 -0
- package/pnpm/dist/node_modules/negotiator/package.json +49 -0
- package/pnpm/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/pnpm/dist/node_modules/node-gyp/LICENSE +24 -0
- package/pnpm/dist/node_modules/node-gyp/addon.gypi +204 -0
- package/pnpm/dist/node_modules/node-gyp/bin/node-gyp.js +138 -0
- package/pnpm/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/gyp +8 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +707 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +824 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/pyproject.toml +114 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/pnpm/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/pnpm/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/pnpm/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/pnpm/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/pnpm/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/pnpm/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/pnpm/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/pnpm/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/pnpm/dist/node_modules/node-gyp/lib/find-python.js +310 -0
- package/pnpm/dist/node_modules/node-gyp/lib/find-visualstudio.js +600 -0
- package/pnpm/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/pnpm/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/pnpm/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/pnpm/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/pnpm/dist/node_modules/node-gyp/lib/process-release.js +146 -0
- package/pnpm/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/pnpm/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/pnpm/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/pnpm/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/.bin/node-which +88 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.js +16 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.min.js.map +7 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.js +2 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.js +62 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.js +58 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.js.map +1 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/isexe/package.json +78 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/which/LICENSE +15 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/which/bin/which.js +52 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/which/lib/index.js +111 -0
- package/pnpm/dist/node_modules/node-gyp/node_modules/which/package.json +52 -0
- package/pnpm/dist/node_modules/node-gyp/package.json +52 -0
- package/pnpm/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/pnpm/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/pnpm/dist/node_modules/nopt/LICENSE +15 -0
- package/pnpm/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/pnpm/dist/node_modules/nopt/lib/debug.js +5 -0
- package/pnpm/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/pnpm/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/pnpm/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/pnpm/dist/node_modules/nopt/package.json +52 -0
- package/pnpm/dist/node_modules/p-map/index.js +324 -0
- package/pnpm/dist/node_modules/p-map/license +9 -0
- package/pnpm/dist/node_modules/p-map/package.json +57 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/index.js +129 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/package-json-from-dist/package.json +68 -0
- package/pnpm/dist/node_modules/path-key/index.js +16 -0
- package/pnpm/dist/node_modules/path-key/license +9 -0
- package/pnpm/dist/node_modules/path-key/package.json +39 -0
- package/pnpm/dist/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/pnpm/dist/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/path-scurry/dist/esm/index.js +1979 -0
- package/pnpm/dist/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/path-scurry/package.json +89 -0
- package/pnpm/dist/node_modules/picomatch/LICENSE +21 -0
- package/pnpm/dist/node_modules/picomatch/index.js +17 -0
- package/pnpm/dist/node_modules/picomatch/lib/constants.js +184 -0
- package/pnpm/dist/node_modules/picomatch/lib/parse.js +1425 -0
- package/pnpm/dist/node_modules/picomatch/lib/picomatch.js +361 -0
- package/pnpm/dist/node_modules/picomatch/lib/scan.js +403 -0
- package/pnpm/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/pnpm/dist/node_modules/picomatch/package.json +83 -0
- package/pnpm/dist/node_modules/picomatch/posix.js +3 -0
- package/pnpm/dist/node_modules/proc-log/LICENSE +15 -0
- package/pnpm/dist/node_modules/proc-log/lib/index.js +153 -0
- package/pnpm/dist/node_modules/proc-log/package.json +46 -0
- package/pnpm/dist/node_modules/promise-retry/LICENSE +19 -0
- package/pnpm/dist/node_modules/promise-retry/index.js +52 -0
- package/pnpm/dist/node_modules/promise-retry/package.json +37 -0
- package/pnpm/dist/node_modules/retry/License +21 -0
- package/pnpm/dist/node_modules/retry/equation.gif +0 -0
- package/pnpm/dist/node_modules/retry/index.js +1 -0
- package/pnpm/dist/node_modules/retry/lib/retry.js +100 -0
- package/pnpm/dist/node_modules/retry/lib/retry_operation.js +158 -0
- package/pnpm/dist/node_modules/retry/package.json +32 -0
- package/pnpm/dist/node_modules/safer-buffer/LICENSE +21 -0
- package/pnpm/dist/node_modules/safer-buffer/dangerous.js +58 -0
- package/pnpm/dist/node_modules/safer-buffer/package.json +34 -0
- package/pnpm/dist/node_modules/safer-buffer/safer.js +77 -0
- package/pnpm/dist/node_modules/safer-buffer/tests.js +406 -0
- package/pnpm/dist/node_modules/semver/LICENSE +15 -0
- package/pnpm/dist/node_modules/semver/bin/semver.js +195 -0
- package/pnpm/dist/node_modules/semver/classes/comparator.js +143 -0
- package/pnpm/dist/node_modules/semver/classes/index.js +7 -0
- package/pnpm/dist/node_modules/semver/classes/range.js +577 -0
- package/pnpm/dist/node_modules/semver/classes/semver.js +350 -0
- package/pnpm/dist/node_modules/semver/functions/clean.js +8 -0
- package/pnpm/dist/node_modules/semver/functions/cmp.js +54 -0
- package/pnpm/dist/node_modules/semver/functions/coerce.js +62 -0
- package/pnpm/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/pnpm/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/compare.js +7 -0
- package/pnpm/dist/node_modules/semver/functions/diff.js +60 -0
- package/pnpm/dist/node_modules/semver/functions/eq.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/gt.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/gte.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/inc.js +21 -0
- package/pnpm/dist/node_modules/semver/functions/lt.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/lte.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/major.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/minor.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/neq.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/parse.js +18 -0
- package/pnpm/dist/node_modules/semver/functions/patch.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/pnpm/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/rsort.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/pnpm/dist/node_modules/semver/functions/sort.js +5 -0
- package/pnpm/dist/node_modules/semver/functions/truncate.js +48 -0
- package/pnpm/dist/node_modules/semver/functions/valid.js +8 -0
- package/pnpm/dist/node_modules/semver/index.js +93 -0
- package/pnpm/dist/node_modules/semver/internal/constants.js +37 -0
- package/pnpm/dist/node_modules/semver/internal/debug.js +11 -0
- package/pnpm/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/pnpm/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/pnpm/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/pnpm/dist/node_modules/semver/internal/re.js +223 -0
- package/pnpm/dist/node_modules/semver/package.json +78 -0
- package/pnpm/dist/node_modules/semver/preload.js +4 -0
- package/pnpm/dist/node_modules/semver/range.bnf +17 -0
- package/pnpm/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/pnpm/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/pnpm/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/pnpm/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/pnpm/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/pnpm/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/pnpm/dist/node_modules/semver/ranges/outside.js +82 -0
- package/pnpm/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/pnpm/dist/node_modules/semver/ranges/subset.js +249 -0
- package/pnpm/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/pnpm/dist/node_modules/semver/ranges/valid.js +13 -0
- package/pnpm/dist/node_modules/shebang-command/index.js +19 -0
- package/pnpm/dist/node_modules/shebang-command/license +9 -0
- package/pnpm/dist/node_modules/shebang-command/package.json +34 -0
- package/pnpm/dist/node_modules/shebang-regex/index.js +2 -0
- package/pnpm/dist/node_modules/shebang-regex/license +9 -0
- package/pnpm/dist/node_modules/shebang-regex/package.json +35 -0
- package/pnpm/dist/node_modules/signal-exit/LICENSE.txt +16 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/pnpm/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/pnpm/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/pnpm/dist/node_modules/signal-exit/package.json +106 -0
- package/pnpm/dist/node_modules/smart-buffer/.prettierrc.yaml +5 -0
- package/pnpm/dist/node_modules/smart-buffer/LICENSE +20 -0
- package/pnpm/dist/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/pnpm/dist/node_modules/smart-buffer/build/smartbuffer.js.map +1 -0
- package/pnpm/dist/node_modules/smart-buffer/build/utils.js +108 -0
- package/pnpm/dist/node_modules/smart-buffer/build/utils.js.map +1 -0
- package/pnpm/dist/node_modules/smart-buffer/package.json +79 -0
- package/pnpm/dist/node_modules/socks/.prettierrc.yaml +7 -0
- package/pnpm/dist/node_modules/socks/LICENSE +20 -0
- package/pnpm/dist/node_modules/socks/build/client/socksclient.js +793 -0
- package/pnpm/dist/node_modules/socks/build/client/socksclient.js.map +1 -0
- package/pnpm/dist/node_modules/socks/build/common/constants.js +108 -0
- package/pnpm/dist/node_modules/socks/build/common/constants.js.map +1 -0
- package/pnpm/dist/node_modules/socks/build/common/helpers.js +166 -0
- package/pnpm/dist/node_modules/socks/build/common/helpers.js.map +1 -0
- package/pnpm/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/pnpm/dist/node_modules/socks/build/common/receivebuffer.js.map +1 -0
- package/pnpm/dist/node_modules/socks/build/common/util.js +25 -0
- package/pnpm/dist/node_modules/socks/build/common/util.js.map +1 -0
- package/pnpm/dist/node_modules/socks/build/index.js +18 -0
- package/pnpm/dist/node_modules/socks/build/index.js.map +1 -0
- package/pnpm/dist/node_modules/socks/package.json +58 -0
- package/pnpm/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/pnpm/dist/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/pnpm/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -0
- package/pnpm/dist/node_modules/socks-proxy-agent/package.json +142 -0
- package/pnpm/dist/node_modules/ssri/lib/index.js +580 -0
- package/pnpm/dist/node_modules/ssri/package.json +66 -0
- package/pnpm/dist/node_modules/string-width/index.js +54 -0
- package/pnpm/dist/node_modules/string-width/license +9 -0
- package/pnpm/dist/node_modules/string-width/package.json +59 -0
- package/pnpm/dist/node_modules/string-width-cjs/index.js +47 -0
- package/pnpm/dist/node_modules/string-width-cjs/license +9 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
- package/pnpm/dist/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
- package/pnpm/dist/node_modules/string-width-cjs/package.json +56 -0
- package/pnpm/dist/node_modules/strip-ansi/index.js +19 -0
- package/pnpm/dist/node_modules/strip-ansi/license +9 -0
- package/pnpm/dist/node_modules/strip-ansi/package.json +59 -0
- package/pnpm/dist/node_modules/strip-ansi-cjs/index.js +4 -0
- package/pnpm/dist/node_modules/strip-ansi-cjs/license +9 -0
- package/pnpm/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/pnpm/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/pnpm/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/pnpm/dist/node_modules/strip-ansi-cjs/package.json +54 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/create.js +82 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/header.js +348 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/list.js +153 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/types.js +70 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/pnpm/dist/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/create.js +76 -0
- package/pnpm/dist/node_modules/tar/dist/esm/create.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/pnpm/dist/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/pnpm/dist/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/pnpm/dist/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/header.js +311 -0
- package/pnpm/dist/node_modules/tar/dist/esm/header.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/pnpm/dist/node_modules/tar/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/pnpm/dist/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/pnpm/dist/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/pnpm/dist/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/list.js +113 -0
- package/pnpm/dist/node_modules/tar/dist/esm/list.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/make-command.js +48 -0
- package/pnpm/dist/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/pnpm/dist/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/pnpm/dist/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/pnpm/dist/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/pnpm/dist/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/pnpm/dist/node_modules/tar/dist/esm/options.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/pack.js +502 -0
- package/pnpm/dist/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/parse.js +651 -0
- package/pnpm/dist/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/pnpm/dist/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/pax.js +178 -0
- package/pnpm/dist/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/pnpm/dist/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/pnpm/dist/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/replace.js +221 -0
- package/pnpm/dist/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/pnpm/dist/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/pnpm/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/pnpm/dist/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/types.js +65 -0
- package/pnpm/dist/node_modules/tar/dist/esm/types.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/unpack.js +891 -0
- package/pnpm/dist/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/pnpm/dist/node_modules/tar/dist/esm/update.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/pnpm/dist/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/pnpm/dist/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/pnpm/dist/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/pnpm/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/pnpm/dist/node_modules/tar/package.json +298 -0
- package/pnpm/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/pnpm/dist/node_modules/tinyglobby/dist/index.cjs +335 -0
- package/pnpm/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/pnpm/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/pnpm/dist/node_modules/tinyglobby/dist/index.mjs +307 -0
- package/pnpm/dist/node_modules/tinyglobby/package.json +70 -0
- package/pnpm/dist/node_modules/unique-filename/LICENSE +5 -0
- package/pnpm/dist/node_modules/unique-filename/lib/index.js +7 -0
- package/pnpm/dist/node_modules/unique-filename/package.json +53 -0
- package/pnpm/dist/node_modules/unique-slug/LICENSE +15 -0
- package/pnpm/dist/node_modules/unique-slug/lib/index.js +11 -0
- package/pnpm/dist/node_modules/unique-slug/package.json +49 -0
- package/pnpm/dist/node_modules/v8-compile-cache/LICENSE +21 -0
- package/pnpm/dist/node_modules/v8-compile-cache/package.json +34 -0
- package/pnpm/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
- package/pnpm/dist/node_modules/which/LICENSE +15 -0
- package/pnpm/dist/node_modules/which/bin/node-which +52 -0
- package/pnpm/dist/node_modules/which/package.json +43 -0
- package/pnpm/dist/node_modules/which/which.js +125 -0
- package/pnpm/dist/node_modules/wrap-ansi/index.js +214 -0
- package/pnpm/dist/node_modules/wrap-ansi/license +9 -0
- package/pnpm/dist/node_modules/wrap-ansi/package.json +69 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/index.js +216 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/license +9 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +163 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +9 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +56 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +6 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +50 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +6 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +47 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/license +9 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +56 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
- package/pnpm/dist/node_modules/wrap-ansi-cjs/package.json +62 -0
- package/pnpm/dist/node_modules/yallist/LICENSE +15 -0
- package/pnpm/dist/node_modules/yallist/iterator.js +8 -0
- package/pnpm/dist/node_modules/yallist/package.json +29 -0
- package/pnpm/dist/node_modules/yallist/yallist.js +426 -0
- package/pnpm/dist/pnpm.cjs +214359 -0
- package/pnpm/dist/pnpmrc +2 -0
- package/pnpm/dist/reflink.darwin-arm64-2HJ4WGO6.node +0 -0
- package/pnpm/dist/reflink.darwin-x64-3G3H6IW4.node +0 -0
- package/pnpm/dist/reflink.win32-arm64-msvc-Q6BARPPB.node +0 -0
- package/pnpm/dist/reflink.win32-x64-msvc-J2TZHRQI.node +0 -0
- package/pnpm/dist/templates/completion.bash +31 -0
- package/pnpm/dist/templates/completion.fish +22 -0
- package/pnpm/dist/templates/completion.ps1 +193 -0
- package/pnpm/dist/templates/completion.zsh +27 -0
- package/pnpm/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/pnpm/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/pnpm/dist/worker.js +11564 -0
- package/pnpm/package.json +192 -0
- package/skills/.claude/skills/.gitkeep +0 -0
- package/skills/README.md +19 -0
- package/web/assets/core-CIeAU5U4.js +13 -0
- package/web/assets/core-CIeAU5U4.js.map +1 -0
- package/web/assets/css-BsVw1vtW.js +2 -0
- package/web/assets/css-BsVw1vtW.js.map +1 -0
- package/web/assets/diff-woXpYk--.js +2 -0
- package/web/assets/diff-woXpYk--.js.map +1 -0
- package/web/assets/engine-javascript-vHStYFkU.js +142 -0
- package/web/assets/engine-javascript-vHStYFkU.js.map +1 -0
- package/web/assets/github-dark-default-DXG-b-1a.js +2 -0
- package/web/assets/github-dark-default-DXG-b-1a.js.map +1 -0
- package/web/assets/github-light-EUqPIrTm.js +2 -0
- package/web/assets/github-light-EUqPIrTm.js.map +1 -0
- package/web/assets/go-rLFTqkRN.js +2 -0
- package/web/assets/go-rLFTqkRN.js.map +1 -0
- package/web/assets/html-BY76lXLH.js +2 -0
- package/web/assets/html-BY76lXLH.js.map +1 -0
- package/web/assets/icon-app-BHyKF-1l.png +0 -0
- package/web/assets/index-Bnebzkoc.js +122 -0
- package/web/assets/index-Bnebzkoc.js.map +1 -0
- package/web/assets/index-DxgjutLj.css +1 -0
- package/web/assets/java-BXcb2rRD.js +2 -0
- package/web/assets/java-BXcb2rRD.js.map +1 -0
- package/web/assets/javascript-BgS3c2Ky.js +2 -0
- package/web/assets/javascript-BgS3c2Ky.js.map +1 -0
- package/web/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
- package/web/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
- package/web/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2 +0 -0
- package/web/assets/jetbrains-mono-latin-500-normal-CJOVTJB7.woff +0 -0
- package/web/assets/json-qhed-kSA.js +2 -0
- package/web/assets/json-qhed-kSA.js.map +1 -0
- package/web/assets/jsx-Bz0zcwM4.js +2 -0
- package/web/assets/jsx-Bz0zcwM4.js.map +1 -0
- package/web/assets/markdown-BYOwaDjH.js +2 -0
- package/web/assets/markdown-BYOwaDjH.js.map +1 -0
- package/web/assets/python-gzcpVVnB.js +2 -0
- package/web/assets/python-gzcpVVnB.js.map +1 -0
- package/web/assets/rust-Cfkwpbl8.js +2 -0
- package/web/assets/rust-Cfkwpbl8.js.map +1 -0
- package/web/assets/shellscript-CLZ0U2zV.js +2 -0
- package/web/assets/shellscript-CLZ0U2zV.js.map +1 -0
- package/web/assets/sql-BsFa4tDR.js +2 -0
- package/web/assets/sql-BsFa4tDR.js.map +1 -0
- package/web/assets/tsx-udAQXfEw.js +2 -0
- package/web/assets/tsx-udAQXfEw.js.map +1 -0
- package/web/assets/typescript-bsJCZSQ-.js +2 -0
- package/web/assets/typescript-bsJCZSQ-.js.map +1 -0
- package/web/assets/yaml-rwi0_p6S.js +2 -0
- package/web/assets/yaml-rwi0_p6S.js.map +1 -0
- package/web/index.html +29 -0
- package/README.md +0 -3
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.allSignals = void 0;
|
|
7
|
+
const node_constants_1 = __importDefault(require("node:constants"));
|
|
8
|
+
exports.allSignals =
|
|
9
|
+
// this is the full list of signals that Node will let us do anything with
|
|
10
|
+
Object.keys(node_constants_1.default).filter(k => k.startsWith('SIG') &&
|
|
11
|
+
// https://github.com/tapjs/signal-exit/issues/21
|
|
12
|
+
k !== 'SIGPROF' &&
|
|
13
|
+
// no sense trying to listen for SIGKILL, it's impossible
|
|
14
|
+
k !== 'SIGKILL');
|
|
15
|
+
// These are some obscure signals that are reported by kill -l
|
|
16
|
+
// on macOS, Linux, or Windows, but which don't have any mapping
|
|
17
|
+
// in Node.js. No sense trying if they're just going to throw
|
|
18
|
+
// every time on every platform.
|
|
19
|
+
//
|
|
20
|
+
// 'SIGEMT',
|
|
21
|
+
// 'SIGLOST',
|
|
22
|
+
// 'SIGPOLL',
|
|
23
|
+
// 'SIGRTMAX',
|
|
24
|
+
// 'SIGRTMAX-1',
|
|
25
|
+
// 'SIGRTMAX-10',
|
|
26
|
+
// 'SIGRTMAX-11',
|
|
27
|
+
// 'SIGRTMAX-12',
|
|
28
|
+
// 'SIGRTMAX-13',
|
|
29
|
+
// 'SIGRTMAX-14',
|
|
30
|
+
// 'SIGRTMAX-15',
|
|
31
|
+
// 'SIGRTMAX-2',
|
|
32
|
+
// 'SIGRTMAX-3',
|
|
33
|
+
// 'SIGRTMAX-4',
|
|
34
|
+
// 'SIGRTMAX-5',
|
|
35
|
+
// 'SIGRTMAX-6',
|
|
36
|
+
// 'SIGRTMAX-7',
|
|
37
|
+
// 'SIGRTMAX-8',
|
|
38
|
+
// 'SIGRTMAX-9',
|
|
39
|
+
// 'SIGRTMIN',
|
|
40
|
+
// 'SIGRTMIN+1',
|
|
41
|
+
// 'SIGRTMIN+10',
|
|
42
|
+
// 'SIGRTMIN+11',
|
|
43
|
+
// 'SIGRTMIN+12',
|
|
44
|
+
// 'SIGRTMIN+13',
|
|
45
|
+
// 'SIGRTMIN+14',
|
|
46
|
+
// 'SIGRTMIN+15',
|
|
47
|
+
// 'SIGRTMIN+16',
|
|
48
|
+
// 'SIGRTMIN+2',
|
|
49
|
+
// 'SIGRTMIN+3',
|
|
50
|
+
// 'SIGRTMIN+4',
|
|
51
|
+
// 'SIGRTMIN+5',
|
|
52
|
+
// 'SIGRTMIN+6',
|
|
53
|
+
// 'SIGRTMIN+7',
|
|
54
|
+
// 'SIGRTMIN+8',
|
|
55
|
+
// 'SIGRTMIN+9',
|
|
56
|
+
// 'SIGSTKFLT',
|
|
57
|
+
// 'SIGUNUSED',
|
|
58
|
+
//# sourceMappingURL=all-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-signals.js","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAsC;AACzB,QAAA,UAAU;AACrB,0EAA0E;AAC1E,MAAM,CAAC,IAAI,CAAC,wBAAS,CAAC,CAAC,MAAM,CAC3B,CAAC,CAAC,EAAE,CACF,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC;IACnB,iDAAiD;IACjD,CAAC,KAAK,SAAS;IACf,yDAAyD;IACzD,CAAC,KAAK,SAAS,CACE,CAAA;AAEvB,8DAA8D;AAC9D,gEAAgE;AAChE,6DAA6D;AAC7D,gCAAgC;AAChC,EAAE;AACF,YAAY;AACZ,aAAa;AACb,aAAa;AACb,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,eAAe;AACf,eAAe","sourcesContent":["import constants from 'node:constants'\nexport const allSignals =\n // this is the full list of signals that Node will let us do anything with\n Object.keys(constants).filter(\n k =>\n k.startsWith('SIG') &&\n // https://github.com/tapjs/signal-exit/issues/21\n k !== 'SIGPROF' &&\n // no sense trying to listen for SIGKILL, it's impossible\n k !== 'SIGKILL',\n ) as NodeJS.Signals[]\n\n// These are some obscure signals that are reported by kill -l\n// on macOS, Linux, or Windows, but which don't have any mapping\n// in Node.js. No sense trying if they're just going to throw\n// every time on every platform.\n//\n// 'SIGEMT',\n// 'SIGLOST',\n// 'SIGPOLL',\n// 'SIGRTMAX',\n// 'SIGRTMAX-1',\n// 'SIGRTMAX-10',\n// 'SIGRTMAX-11',\n// 'SIGRTMAX-12',\n// 'SIGRTMAX-13',\n// 'SIGRTMAX-14',\n// 'SIGRTMAX-15',\n// 'SIGRTMAX-2',\n// 'SIGRTMAX-3',\n// 'SIGRTMAX-4',\n// 'SIGRTMAX-5',\n// 'SIGRTMAX-6',\n// 'SIGRTMAX-7',\n// 'SIGRTMAX-8',\n// 'SIGRTMAX-9',\n// 'SIGRTMIN',\n// 'SIGRTMIN+1',\n// 'SIGRTMIN+10',\n// 'SIGRTMIN+11',\n// 'SIGRTMIN+12',\n// 'SIGRTMIN+13',\n// 'SIGRTMIN+14',\n// 'SIGRTMIN+15',\n// 'SIGRTMIN+16',\n// 'SIGRTMIN+2',\n// 'SIGRTMIN+3',\n// 'SIGRTMIN+4',\n// 'SIGRTMIN+5',\n// 'SIGRTMIN+6',\n// 'SIGRTMIN+7',\n// 'SIGRTMIN+8',\n// 'SIGRTMIN+9',\n// 'SIGSTKFLT',\n// 'SIGUNUSED',\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAInB,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAA;AAUtB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,OAAO,EAC7B,WAAW,EAAE;IACX,WAAW,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;CAClC,KAEC,IAAI,GACJ,SAAS,GACT,MAAM,GACN,MAAM,CAAC,OAAO,GACd,KAAK,GACL,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,CAAA;AAE/D,MAAM,MAAM,MAAM,GACd,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACvE;IACE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC;IACzC,IAAI,CAAC,EAAE,YAAY;IACnB,OAAO,CAAC,EAAE,OAAO;CAClB,GACD,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACpC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACzD,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACrD;IACE,OAAO,EAAE,MAAM;IACf,IAAI,CAAC,EAAE,MAAM,EAAE;IACf,IAAI,CAAC,EAAE,YAAY;IACnB,OAAO,CAAC,EAAE,OAAO;CAClB,CAAA;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAClB,MAAM,KACb,CACD,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,OAAO,CAqBjB,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.normalizeFgArgs = void 0;
|
|
7
|
+
exports.foregroundChild = foregroundChild;
|
|
8
|
+
const child_process_1 = require("child_process");
|
|
9
|
+
const cross_spawn_1 = __importDefault(require("cross-spawn"));
|
|
10
|
+
const signal_exit_1 = require("signal-exit");
|
|
11
|
+
const proxy_signals_js_1 = require("./proxy-signals.js");
|
|
12
|
+
const watchdog_js_1 = require("./watchdog.js");
|
|
13
|
+
/* c8 ignore start */
|
|
14
|
+
const spawn = process?.platform === 'win32' ? cross_spawn_1.default : child_process_1.spawn;
|
|
15
|
+
/**
|
|
16
|
+
* Normalizes the arguments passed to `foregroundChild`.
|
|
17
|
+
*
|
|
18
|
+
* Exposed for testing.
|
|
19
|
+
*
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
const normalizeFgArgs = (fgArgs) => {
|
|
23
|
+
let [program, args = [], spawnOpts = {}, cleanup = () => { }] = fgArgs;
|
|
24
|
+
if (typeof args === 'function') {
|
|
25
|
+
cleanup = args;
|
|
26
|
+
spawnOpts = {};
|
|
27
|
+
args = [];
|
|
28
|
+
}
|
|
29
|
+
else if (!!args && typeof args === 'object' && !Array.isArray(args)) {
|
|
30
|
+
if (typeof spawnOpts === 'function')
|
|
31
|
+
cleanup = spawnOpts;
|
|
32
|
+
spawnOpts = args;
|
|
33
|
+
args = [];
|
|
34
|
+
}
|
|
35
|
+
else if (typeof spawnOpts === 'function') {
|
|
36
|
+
cleanup = spawnOpts;
|
|
37
|
+
spawnOpts = {};
|
|
38
|
+
}
|
|
39
|
+
if (Array.isArray(program)) {
|
|
40
|
+
const [pp, ...pa] = program;
|
|
41
|
+
program = pp;
|
|
42
|
+
args = pa;
|
|
43
|
+
}
|
|
44
|
+
return [program, args, { ...spawnOpts }, cleanup];
|
|
45
|
+
};
|
|
46
|
+
exports.normalizeFgArgs = normalizeFgArgs;
|
|
47
|
+
function foregroundChild(...fgArgs) {
|
|
48
|
+
const [program, args, spawnOpts, cleanup] = (0, exports.normalizeFgArgs)(fgArgs);
|
|
49
|
+
spawnOpts.stdio = [0, 1, 2];
|
|
50
|
+
if (process.send) {
|
|
51
|
+
spawnOpts.stdio.push('ipc');
|
|
52
|
+
}
|
|
53
|
+
const child = spawn(program, args, spawnOpts);
|
|
54
|
+
const childHangup = () => {
|
|
55
|
+
try {
|
|
56
|
+
child.kill('SIGHUP');
|
|
57
|
+
/* c8 ignore start */
|
|
58
|
+
}
|
|
59
|
+
catch (_) {
|
|
60
|
+
// SIGHUP is weird on windows
|
|
61
|
+
child.kill('SIGTERM');
|
|
62
|
+
}
|
|
63
|
+
/* c8 ignore stop */
|
|
64
|
+
};
|
|
65
|
+
const removeOnExit = (0, signal_exit_1.onExit)(childHangup);
|
|
66
|
+
(0, proxy_signals_js_1.proxySignals)(child);
|
|
67
|
+
const dog = (0, watchdog_js_1.watchdog)(child);
|
|
68
|
+
let done = false;
|
|
69
|
+
child.on('close', async (code, signal) => {
|
|
70
|
+
/* c8 ignore start */
|
|
71
|
+
if (done)
|
|
72
|
+
return;
|
|
73
|
+
/* c8 ignore stop */
|
|
74
|
+
done = true;
|
|
75
|
+
const result = cleanup(code, signal, {
|
|
76
|
+
watchdogPid: dog.pid,
|
|
77
|
+
});
|
|
78
|
+
const res = isPromise(result) ? await result : result;
|
|
79
|
+
removeOnExit();
|
|
80
|
+
if (res === false)
|
|
81
|
+
return;
|
|
82
|
+
else if (typeof res === 'string') {
|
|
83
|
+
signal = res;
|
|
84
|
+
code = null;
|
|
85
|
+
}
|
|
86
|
+
else if (typeof res === 'number') {
|
|
87
|
+
code = res;
|
|
88
|
+
signal = null;
|
|
89
|
+
}
|
|
90
|
+
if (signal) {
|
|
91
|
+
// If there is nothing else keeping the event loop alive,
|
|
92
|
+
// then there's a race between a graceful exit and getting
|
|
93
|
+
// the signal to this process. Put this timeout here to
|
|
94
|
+
// make sure we're still alive to get the signal, and thus
|
|
95
|
+
// exit with the intended signal code.
|
|
96
|
+
/* istanbul ignore next */
|
|
97
|
+
setTimeout(() => { }, 2000);
|
|
98
|
+
try {
|
|
99
|
+
process.kill(process.pid, signal);
|
|
100
|
+
/* c8 ignore start */
|
|
101
|
+
}
|
|
102
|
+
catch (_) {
|
|
103
|
+
process.kill(process.pid, 'SIGTERM');
|
|
104
|
+
}
|
|
105
|
+
/* c8 ignore stop */
|
|
106
|
+
}
|
|
107
|
+
else {
|
|
108
|
+
process.exit(code || 0);
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
if (process.send) {
|
|
112
|
+
process.removeAllListeners('message');
|
|
113
|
+
child.on('message', (message, sendHandle) => {
|
|
114
|
+
process.send?.(message, sendHandle);
|
|
115
|
+
});
|
|
116
|
+
process.on('message', (message, sendHandle) => {
|
|
117
|
+
child.send(message, sendHandle);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
return child;
|
|
121
|
+
}
|
|
122
|
+
const isPromise = (o) => !!o && typeof o === 'object' && typeof o.then === 'function';
|
|
123
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n ChildProcessByStdio,\n SendHandle,\n Serializable,\n spawn as nodeSpawn,\n SpawnOptions,\n ChildProcess,\n} from 'child_process'\nimport crossSpawn from 'cross-spawn'\nimport { onExit } from 'signal-exit'\nimport { proxySignals } from './proxy-signals.js'\nimport { watchdog } from './watchdog.js'\n\n/* c8 ignore start */\nconst spawn = process?.platform === 'win32' ? crossSpawn : nodeSpawn\n/* c8 ignore stop */\n\n/**\n * The signature for the cleanup method.\n *\n * Arguments indicate the exit status of the child process.\n *\n * If a Promise is returned, then the process is not terminated\n * until it resolves, and the resolution value is treated as the\n * exit status (if a number) or signal exit (if a signal string).\n *\n * If `undefined` is returned, then no change is made, and the parent\n * exits in the same way that the child exited.\n *\n * If boolean `false` is returned, then the parent's exit is canceled.\n *\n * If a number is returned, then the parent process exits with the number\n * as its exitCode.\n *\n * If a signal string is returned, then the parent process is killed with\n * the same signal that caused the child to exit.\n */\nexport type Cleanup = (\n code: number | null,\n signal: null | NodeJS.Signals,\n processInfo: {\n watchdogPid?: ChildProcess['pid']\n },\n) =>\n | void\n | undefined\n | number\n | NodeJS.Signals\n | false\n | Promise<void | undefined | number | NodeJS.Signals | false>\n\nexport type FgArgs =\n | [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup]\n | [\n program: [cmd: string, ...args: string[]],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n | [program: string, cleanup?: Cleanup]\n | [program: string, opts?: SpawnOptions, cleanup?: Cleanup]\n | [program: string, args?: string[], cleanup?: Cleanup]\n | [\n program: string,\n args?: string[],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n\n/**\n * Normalizes the arguments passed to `foregroundChild`.\n *\n * Exposed for testing.\n *\n * @internal\n */\nexport const normalizeFgArgs = (\n fgArgs: FgArgs,\n): [\n program: string,\n args: string[],\n spawnOpts: SpawnOptions,\n cleanup: Cleanup,\n] => {\n let [program, args = [], spawnOpts = {}, cleanup = () => {}] = fgArgs\n if (typeof args === 'function') {\n cleanup = args\n spawnOpts = {}\n args = []\n } else if (!!args && typeof args === 'object' && !Array.isArray(args)) {\n if (typeof spawnOpts === 'function') cleanup = spawnOpts\n spawnOpts = args\n args = []\n } else if (typeof spawnOpts === 'function') {\n cleanup = spawnOpts\n spawnOpts = {}\n }\n if (Array.isArray(program)) {\n const [pp, ...pa] = program\n program = pp\n args = pa\n }\n return [program, args, { ...spawnOpts }, cleanup]\n}\n\n/**\n * Spawn the specified program as a \"foreground\" process, or at least as\n * close as is possible given node's lack of exec-without-fork.\n *\n * Cleanup method may be used to modify or ignore the result of the child's\n * exit code or signal. If cleanup returns undefined (or a Promise that\n * resolves to undefined), then the parent will exit in the same way that\n * the child did.\n *\n * Return boolean `false` to prevent the parent's exit entirely.\n */\nexport function foregroundChild(\n cmd: string | [cmd: string, ...args: string[]],\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n program: string,\n args?: string[],\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n program: string,\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n program: string,\n args?: string[],\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n ...fgArgs: FgArgs\n): ChildProcessByStdio<null, null, null> {\n const [program, args, spawnOpts, cleanup] = normalizeFgArgs(fgArgs)\n\n spawnOpts.stdio = [0, 1, 2]\n if (process.send) {\n spawnOpts.stdio.push('ipc')\n }\n\n const child = spawn(program, args, spawnOpts) as ChildProcessByStdio<\n null,\n null,\n null\n >\n\n const childHangup = () => {\n try {\n child.kill('SIGHUP')\n\n /* c8 ignore start */\n } catch (_) {\n // SIGHUP is weird on windows\n child.kill('SIGTERM')\n }\n /* c8 ignore stop */\n }\n const removeOnExit = onExit(childHangup)\n\n proxySignals(child)\n const dog = watchdog(child)\n\n let done = false\n child.on('close', async (code, signal) => {\n /* c8 ignore start */\n if (done) return\n /* c8 ignore stop */\n done = true\n const result = cleanup(code, signal, {\n watchdogPid: dog.pid,\n })\n const res = isPromise(result) ? await result : result\n removeOnExit()\n\n if (res === false) return\n else if (typeof res === 'string') {\n signal = res\n code = null\n } else if (typeof res === 'number') {\n code = res\n signal = null\n }\n\n if (signal) {\n // If there is nothing else keeping the event loop alive,\n // then there's a race between a graceful exit and getting\n // the signal to this process. Put this timeout here to\n // make sure we're still alive to get the signal, and thus\n // exit with the intended signal code.\n /* istanbul ignore next */\n setTimeout(() => {}, 2000)\n try {\n process.kill(process.pid, signal)\n /* c8 ignore start */\n } catch (_) {\n process.kill(process.pid, 'SIGTERM')\n }\n /* c8 ignore stop */\n } else {\n process.exit(code || 0)\n }\n })\n\n if (process.send) {\n process.removeAllListeners('message')\n\n child.on('message', (message, sendHandle) => {\n process.send?.(message, sendHandle)\n })\n\n process.on('message', (message, sendHandle) => {\n child.send(\n message as Serializable,\n sendHandle as SendHandle | undefined,\n )\n })\n }\n\n return child\n}\n\nconst isPromise = (o: any): o is Promise<any> =>\n !!o && typeof o === 'object' && typeof o.then === 'function'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-signals.d.ts","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAGjD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,YAAY,eA4B/C,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.proxySignals = void 0;
|
|
4
|
+
const all_signals_js_1 = require("./all-signals.js");
|
|
5
|
+
/**
|
|
6
|
+
* Starts forwarding signals to `child` through `parent`.
|
|
7
|
+
*/
|
|
8
|
+
const proxySignals = (child) => {
|
|
9
|
+
const listeners = new Map();
|
|
10
|
+
for (const sig of all_signals_js_1.allSignals) {
|
|
11
|
+
const listener = () => {
|
|
12
|
+
// some signals can only be received, not sent
|
|
13
|
+
try {
|
|
14
|
+
child.kill(sig);
|
|
15
|
+
/* c8 ignore start */
|
|
16
|
+
}
|
|
17
|
+
catch (_) { }
|
|
18
|
+
/* c8 ignore stop */
|
|
19
|
+
};
|
|
20
|
+
try {
|
|
21
|
+
// if it's a signal this system doesn't recognize, skip it
|
|
22
|
+
process.on(sig, listener);
|
|
23
|
+
listeners.set(sig, listener);
|
|
24
|
+
/* c8 ignore start */
|
|
25
|
+
}
|
|
26
|
+
catch (_) { }
|
|
27
|
+
/* c8 ignore stop */
|
|
28
|
+
}
|
|
29
|
+
const unproxy = () => {
|
|
30
|
+
for (const [sig, listener] of listeners) {
|
|
31
|
+
process.removeListener(sig, listener);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
child.on('exit', unproxy);
|
|
35
|
+
return unproxy;
|
|
36
|
+
};
|
|
37
|
+
exports.proxySignals = proxySignals;
|
|
38
|
+
//# sourceMappingURL=proxy-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-signals.js","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":";;;AACA,qDAA6C;AAE7C;;GAEG;AACI,MAAM,YAAY,GAAG,CAAC,KAAmB,EAAE,EAAE;IAClD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAA;IAE3B,KAAK,MAAM,GAAG,IAAI,2BAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,GAAG,EAAE;YACpB,8CAA8C;YAC9C,IAAI,CAAC;gBACH,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACf,qBAAqB;YACvB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;YACd,oBAAoB;QACtB,CAAC,CAAA;QACD,IAAI,CAAC;YACH,0DAA0D;YAC1D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YACzB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC5B,qBAAqB;QACvB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;QACd,oBAAoB;IACtB,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC;YACxC,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC,CAAA;IACD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AA5BY,QAAA,YAAY,gBA4BxB","sourcesContent":["import { type ChildProcess } from 'child_process'\nimport { allSignals } from './all-signals.js'\n\n/**\n * Starts forwarding signals to `child` through `parent`.\n */\nexport const proxySignals = (child: ChildProcess) => {\n const listeners = new Map()\n\n for (const sig of allSignals) {\n const listener = () => {\n // some signals can only be received, not sent\n try {\n child.kill(sig)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n try {\n // if it's a signal this system doesn't recognize, skip it\n process.on(sig, listener)\n listeners.set(sig, listener)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n\n const unproxy = () => {\n for (const [sig, listener] of listeners) {\n process.removeListener(sig, listener)\n }\n }\n child.on('exit', unproxy)\n return unproxy\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchdog.d.ts","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAS,MAAM,eAAe,CAAA;AAyBnD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,UAAW,YAAY,iBAc3C,CAAA"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// this spawns a child process that listens for SIGHUP when the
|
|
3
|
+
// parent process exits, and after 200ms, sends a SIGKILL to the
|
|
4
|
+
// child, in case it did not terminate.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.watchdog = void 0;
|
|
7
|
+
const child_process_1 = require("child_process");
|
|
8
|
+
const watchdogCode = String.raw `
|
|
9
|
+
const pid = parseInt(process.argv[1], 10)
|
|
10
|
+
process.title = 'node (foreground-child watchdog pid=' + pid + ')'
|
|
11
|
+
if (!isNaN(pid)) {
|
|
12
|
+
let barked = false
|
|
13
|
+
// keepalive
|
|
14
|
+
const interval = setInterval(() => {}, 60000)
|
|
15
|
+
const bark = () => {
|
|
16
|
+
clearInterval(interval)
|
|
17
|
+
if (barked) return
|
|
18
|
+
barked = true
|
|
19
|
+
process.removeListener('SIGHUP', bark)
|
|
20
|
+
setTimeout(() => {
|
|
21
|
+
try {
|
|
22
|
+
process.kill(pid, 'SIGKILL')
|
|
23
|
+
setTimeout(() => process.exit(), 200)
|
|
24
|
+
} catch (_) {}
|
|
25
|
+
}, 500)
|
|
26
|
+
})
|
|
27
|
+
process.on('SIGHUP', bark)
|
|
28
|
+
}
|
|
29
|
+
`;
|
|
30
|
+
/**
|
|
31
|
+
* Pass in a ChildProcess, and this will spawn a watchdog process that
|
|
32
|
+
* will make sure it exits if the parent does, thus preventing any
|
|
33
|
+
* dangling detached zombie processes.
|
|
34
|
+
*
|
|
35
|
+
* If the child ends before the parent, then the watchdog will terminate.
|
|
36
|
+
*/
|
|
37
|
+
const watchdog = (child) => {
|
|
38
|
+
let dogExited = false;
|
|
39
|
+
const dog = (0, child_process_1.spawn)(process.execPath, ['-e', watchdogCode, String(child.pid)], {
|
|
40
|
+
stdio: 'ignore',
|
|
41
|
+
});
|
|
42
|
+
dog.on('exit', () => (dogExited = true));
|
|
43
|
+
child.on('exit', () => {
|
|
44
|
+
if (!dogExited)
|
|
45
|
+
dog.kill('SIGKILL');
|
|
46
|
+
});
|
|
47
|
+
return dog;
|
|
48
|
+
};
|
|
49
|
+
exports.watchdog = watchdog;
|
|
50
|
+
//# sourceMappingURL=watchdog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchdog.js","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":";AAAA,+DAA+D;AAC/D,gEAAgE;AAChE,uCAAuC;;;AAEvC,iDAAmD;AAEnD,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqB9B,CAAA;AAED;;;;;;GAMG;AACI,MAAM,QAAQ,GAAG,CAAC,KAAmB,EAAE,EAAE;IAC9C,IAAI,SAAS,GAAG,KAAK,CAAA;IACrB,MAAM,GAAG,GAAG,IAAA,qBAAK,EACf,OAAO,CAAC,QAAQ,EAChB,CAAC,IAAI,EAAE,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,EACvC;QACE,KAAK,EAAE,QAAQ;KAChB,CACF,CAAA;IACD,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC,CAAA;IACxC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;QACpB,IAAI,CAAC,SAAS;YAAE,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrC,CAAC,CAAC,CAAA;IACF,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAdY,QAAA,QAAQ,YAcpB","sourcesContent":["// this spawns a child process that listens for SIGHUP when the\n// parent process exits, and after 200ms, sends a SIGKILL to the\n// child, in case it did not terminate.\n\nimport { ChildProcess, spawn } from 'child_process'\n\nconst watchdogCode = String.raw`\nconst pid = parseInt(process.argv[1], 10)\nprocess.title = 'node (foreground-child watchdog pid=' + pid + ')'\nif (!isNaN(pid)) {\n let barked = false\n // keepalive\n const interval = setInterval(() => {}, 60000)\n const bark = () => {\n clearInterval(interval)\n if (barked) return\n barked = true\n process.removeListener('SIGHUP', bark)\n setTimeout(() => {\n try {\n process.kill(pid, 'SIGKILL')\n setTimeout(() => process.exit(), 200)\n } catch (_) {}\n }, 500)\n })\n process.on('SIGHUP', bark)\n}\n`\n\n/**\n * Pass in a ChildProcess, and this will spawn a watchdog process that\n * will make sure it exits if the parent does, thus preventing any\n * dangling detached zombie processes.\n *\n * If the child ends before the parent, then the watchdog will terminate.\n */\nexport const watchdog = (child: ChildProcess) => {\n let dogExited = false\n const dog = spawn(\n process.execPath,\n ['-e', watchdogCode, String(child.pid)],\n {\n stdio: 'ignore',\n },\n )\n dog.on('exit', () => (dogExited = true))\n child.on('exit', () => {\n if (!dogExited) dog.kill('SIGKILL')\n })\n return dog\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-signals.d.ts","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU,EAShB,MAAM,CAAC,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import constants from 'node:constants';
|
|
2
|
+
export const allSignals =
|
|
3
|
+
// this is the full list of signals that Node will let us do anything with
|
|
4
|
+
Object.keys(constants).filter(k => k.startsWith('SIG') &&
|
|
5
|
+
// https://github.com/tapjs/signal-exit/issues/21
|
|
6
|
+
k !== 'SIGPROF' &&
|
|
7
|
+
// no sense trying to listen for SIGKILL, it's impossible
|
|
8
|
+
k !== 'SIGKILL');
|
|
9
|
+
// These are some obscure signals that are reported by kill -l
|
|
10
|
+
// on macOS, Linux, or Windows, but which don't have any mapping
|
|
11
|
+
// in Node.js. No sense trying if they're just going to throw
|
|
12
|
+
// every time on every platform.
|
|
13
|
+
//
|
|
14
|
+
// 'SIGEMT',
|
|
15
|
+
// 'SIGLOST',
|
|
16
|
+
// 'SIGPOLL',
|
|
17
|
+
// 'SIGRTMAX',
|
|
18
|
+
// 'SIGRTMAX-1',
|
|
19
|
+
// 'SIGRTMAX-10',
|
|
20
|
+
// 'SIGRTMAX-11',
|
|
21
|
+
// 'SIGRTMAX-12',
|
|
22
|
+
// 'SIGRTMAX-13',
|
|
23
|
+
// 'SIGRTMAX-14',
|
|
24
|
+
// 'SIGRTMAX-15',
|
|
25
|
+
// 'SIGRTMAX-2',
|
|
26
|
+
// 'SIGRTMAX-3',
|
|
27
|
+
// 'SIGRTMAX-4',
|
|
28
|
+
// 'SIGRTMAX-5',
|
|
29
|
+
// 'SIGRTMAX-6',
|
|
30
|
+
// 'SIGRTMAX-7',
|
|
31
|
+
// 'SIGRTMAX-8',
|
|
32
|
+
// 'SIGRTMAX-9',
|
|
33
|
+
// 'SIGRTMIN',
|
|
34
|
+
// 'SIGRTMIN+1',
|
|
35
|
+
// 'SIGRTMIN+10',
|
|
36
|
+
// 'SIGRTMIN+11',
|
|
37
|
+
// 'SIGRTMIN+12',
|
|
38
|
+
// 'SIGRTMIN+13',
|
|
39
|
+
// 'SIGRTMIN+14',
|
|
40
|
+
// 'SIGRTMIN+15',
|
|
41
|
+
// 'SIGRTMIN+16',
|
|
42
|
+
// 'SIGRTMIN+2',
|
|
43
|
+
// 'SIGRTMIN+3',
|
|
44
|
+
// 'SIGRTMIN+4',
|
|
45
|
+
// 'SIGRTMIN+5',
|
|
46
|
+
// 'SIGRTMIN+6',
|
|
47
|
+
// 'SIGRTMIN+7',
|
|
48
|
+
// 'SIGRTMIN+8',
|
|
49
|
+
// 'SIGRTMIN+9',
|
|
50
|
+
// 'SIGSTKFLT',
|
|
51
|
+
// 'SIGUNUSED',
|
|
52
|
+
//# sourceMappingURL=all-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all-signals.js","sourceRoot":"","sources":["../../src/all-signals.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,gBAAgB,CAAA;AACtC,MAAM,CAAC,MAAM,UAAU;AACrB,0EAA0E;AAC1E,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAC3B,CAAC,CAAC,EAAE,CACF,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC;IACnB,iDAAiD;IACjD,CAAC,KAAK,SAAS;IACf,yDAAyD;IACzD,CAAC,KAAK,SAAS,CACE,CAAA;AAEvB,8DAA8D;AAC9D,gEAAgE;AAChE,6DAA6D;AAC7D,gCAAgC;AAChC,EAAE;AACF,YAAY;AACZ,aAAa;AACb,aAAa;AACb,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,cAAc;AACd,gBAAgB;AAChB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,iBAAiB;AACjB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,gBAAgB;AAChB,eAAe;AACf,eAAe","sourcesContent":["import constants from 'node:constants'\nexport const allSignals =\n // this is the full list of signals that Node will let us do anything with\n Object.keys(constants).filter(\n k =>\n k.startsWith('SIG') &&\n // https://github.com/tapjs/signal-exit/issues/21\n k !== 'SIGPROF' &&\n // no sense trying to listen for SIGKILL, it's impossible\n k !== 'SIGKILL',\n ) as NodeJS.Signals[]\n\n// These are some obscure signals that are reported by kill -l\n// on macOS, Linux, or Windows, but which don't have any mapping\n// in Node.js. No sense trying if they're just going to throw\n// every time on every platform.\n//\n// 'SIGEMT',\n// 'SIGLOST',\n// 'SIGPOLL',\n// 'SIGRTMAX',\n// 'SIGRTMAX-1',\n// 'SIGRTMAX-10',\n// 'SIGRTMAX-11',\n// 'SIGRTMAX-12',\n// 'SIGRTMAX-13',\n// 'SIGRTMAX-14',\n// 'SIGRTMAX-15',\n// 'SIGRTMAX-2',\n// 'SIGRTMAX-3',\n// 'SIGRTMAX-4',\n// 'SIGRTMAX-5',\n// 'SIGRTMAX-6',\n// 'SIGRTMAX-7',\n// 'SIGRTMAX-8',\n// 'SIGRTMAX-9',\n// 'SIGRTMIN',\n// 'SIGRTMIN+1',\n// 'SIGRTMIN+10',\n// 'SIGRTMIN+11',\n// 'SIGRTMIN+12',\n// 'SIGRTMIN+13',\n// 'SIGRTMIN+14',\n// 'SIGRTMIN+15',\n// 'SIGRTMIN+16',\n// 'SIGRTMIN+2',\n// 'SIGRTMIN+3',\n// 'SIGRTMIN+4',\n// 'SIGRTMIN+5',\n// 'SIGRTMIN+6',\n// 'SIGRTMIN+7',\n// 'SIGRTMIN+8',\n// 'SIGRTMIN+9',\n// 'SIGSTKFLT',\n// 'SIGUNUSED',\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAInB,YAAY,EACZ,YAAY,EACb,MAAM,eAAe,CAAA;AAUtB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,MAAM,OAAO,GAAG,CACpB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,MAAM,EAAE,IAAI,GAAG,MAAM,CAAC,OAAO,EAC7B,WAAW,EAAE;IACX,WAAW,CAAC,EAAE,YAAY,CAAC,KAAK,CAAC,CAAA;CAClC,KAEC,IAAI,GACJ,SAAS,GACT,MAAM,GACN,MAAM,CAAC,OAAO,GACd,KAAK,GACL,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC,OAAO,GAAG,KAAK,CAAC,CAAA;AAE/D,MAAM,MAAM,MAAM,GACd,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACvE;IACE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC;IACzC,IAAI,CAAC,EAAE,YAAY;IACnB,OAAO,CAAC,EAAE,OAAO;CAClB,GACD,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACpC,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACzD,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,GACrD;IACE,OAAO,EAAE,MAAM;IACf,IAAI,CAAC,EAAE,MAAM,EAAE;IACf,IAAI,CAAC,EAAE,YAAY;IACnB,OAAO,CAAC,EAAE,OAAO;CAClB,CAAA;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAClB,MAAM,KACb,CACD,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,OAAO,CAqBjB,CAAA;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;AACxC,wBAAgB,eAAe,CAC7B,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,EAAE,EACf,SAAS,CAAC,EAAE,YAAY,EACxB,OAAO,CAAC,EAAE,OAAO,GAChB,mBAAmB,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { spawn as nodeSpawn, } from 'child_process';
|
|
2
|
+
import crossSpawn from 'cross-spawn';
|
|
3
|
+
import { onExit } from 'signal-exit';
|
|
4
|
+
import { proxySignals } from './proxy-signals.js';
|
|
5
|
+
import { watchdog } from './watchdog.js';
|
|
6
|
+
/* c8 ignore start */
|
|
7
|
+
const spawn = process?.platform === 'win32' ? crossSpawn : nodeSpawn;
|
|
8
|
+
/**
|
|
9
|
+
* Normalizes the arguments passed to `foregroundChild`.
|
|
10
|
+
*
|
|
11
|
+
* Exposed for testing.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export const normalizeFgArgs = (fgArgs) => {
|
|
16
|
+
let [program, args = [], spawnOpts = {}, cleanup = () => { }] = fgArgs;
|
|
17
|
+
if (typeof args === 'function') {
|
|
18
|
+
cleanup = args;
|
|
19
|
+
spawnOpts = {};
|
|
20
|
+
args = [];
|
|
21
|
+
}
|
|
22
|
+
else if (!!args && typeof args === 'object' && !Array.isArray(args)) {
|
|
23
|
+
if (typeof spawnOpts === 'function')
|
|
24
|
+
cleanup = spawnOpts;
|
|
25
|
+
spawnOpts = args;
|
|
26
|
+
args = [];
|
|
27
|
+
}
|
|
28
|
+
else if (typeof spawnOpts === 'function') {
|
|
29
|
+
cleanup = spawnOpts;
|
|
30
|
+
spawnOpts = {};
|
|
31
|
+
}
|
|
32
|
+
if (Array.isArray(program)) {
|
|
33
|
+
const [pp, ...pa] = program;
|
|
34
|
+
program = pp;
|
|
35
|
+
args = pa;
|
|
36
|
+
}
|
|
37
|
+
return [program, args, { ...spawnOpts }, cleanup];
|
|
38
|
+
};
|
|
39
|
+
export function foregroundChild(...fgArgs) {
|
|
40
|
+
const [program, args, spawnOpts, cleanup] = normalizeFgArgs(fgArgs);
|
|
41
|
+
spawnOpts.stdio = [0, 1, 2];
|
|
42
|
+
if (process.send) {
|
|
43
|
+
spawnOpts.stdio.push('ipc');
|
|
44
|
+
}
|
|
45
|
+
const child = spawn(program, args, spawnOpts);
|
|
46
|
+
const childHangup = () => {
|
|
47
|
+
try {
|
|
48
|
+
child.kill('SIGHUP');
|
|
49
|
+
/* c8 ignore start */
|
|
50
|
+
}
|
|
51
|
+
catch (_) {
|
|
52
|
+
// SIGHUP is weird on windows
|
|
53
|
+
child.kill('SIGTERM');
|
|
54
|
+
}
|
|
55
|
+
/* c8 ignore stop */
|
|
56
|
+
};
|
|
57
|
+
const removeOnExit = onExit(childHangup);
|
|
58
|
+
proxySignals(child);
|
|
59
|
+
const dog = watchdog(child);
|
|
60
|
+
let done = false;
|
|
61
|
+
child.on('close', async (code, signal) => {
|
|
62
|
+
/* c8 ignore start */
|
|
63
|
+
if (done)
|
|
64
|
+
return;
|
|
65
|
+
/* c8 ignore stop */
|
|
66
|
+
done = true;
|
|
67
|
+
const result = cleanup(code, signal, {
|
|
68
|
+
watchdogPid: dog.pid,
|
|
69
|
+
});
|
|
70
|
+
const res = isPromise(result) ? await result : result;
|
|
71
|
+
removeOnExit();
|
|
72
|
+
if (res === false)
|
|
73
|
+
return;
|
|
74
|
+
else if (typeof res === 'string') {
|
|
75
|
+
signal = res;
|
|
76
|
+
code = null;
|
|
77
|
+
}
|
|
78
|
+
else if (typeof res === 'number') {
|
|
79
|
+
code = res;
|
|
80
|
+
signal = null;
|
|
81
|
+
}
|
|
82
|
+
if (signal) {
|
|
83
|
+
// If there is nothing else keeping the event loop alive,
|
|
84
|
+
// then there's a race between a graceful exit and getting
|
|
85
|
+
// the signal to this process. Put this timeout here to
|
|
86
|
+
// make sure we're still alive to get the signal, and thus
|
|
87
|
+
// exit with the intended signal code.
|
|
88
|
+
/* istanbul ignore next */
|
|
89
|
+
setTimeout(() => { }, 2000);
|
|
90
|
+
try {
|
|
91
|
+
process.kill(process.pid, signal);
|
|
92
|
+
/* c8 ignore start */
|
|
93
|
+
}
|
|
94
|
+
catch (_) {
|
|
95
|
+
process.kill(process.pid, 'SIGTERM');
|
|
96
|
+
}
|
|
97
|
+
/* c8 ignore stop */
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
process.exit(code || 0);
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
if (process.send) {
|
|
104
|
+
process.removeAllListeners('message');
|
|
105
|
+
child.on('message', (message, sendHandle) => {
|
|
106
|
+
process.send?.(message, sendHandle);
|
|
107
|
+
});
|
|
108
|
+
process.on('message', (message, sendHandle) => {
|
|
109
|
+
child.send(message, sendHandle);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return child;
|
|
113
|
+
}
|
|
114
|
+
const isPromise = (o) => !!o && typeof o === 'object' && typeof o.then === 'function';
|
|
115
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n ChildProcessByStdio,\n SendHandle,\n Serializable,\n spawn as nodeSpawn,\n SpawnOptions,\n ChildProcess,\n} from 'child_process'\nimport crossSpawn from 'cross-spawn'\nimport { onExit } from 'signal-exit'\nimport { proxySignals } from './proxy-signals.js'\nimport { watchdog } from './watchdog.js'\n\n/* c8 ignore start */\nconst spawn = process?.platform === 'win32' ? crossSpawn : nodeSpawn\n/* c8 ignore stop */\n\n/**\n * The signature for the cleanup method.\n *\n * Arguments indicate the exit status of the child process.\n *\n * If a Promise is returned, then the process is not terminated\n * until it resolves, and the resolution value is treated as the\n * exit status (if a number) or signal exit (if a signal string).\n *\n * If `undefined` is returned, then no change is made, and the parent\n * exits in the same way that the child exited.\n *\n * If boolean `false` is returned, then the parent's exit is canceled.\n *\n * If a number is returned, then the parent process exits with the number\n * as its exitCode.\n *\n * If a signal string is returned, then the parent process is killed with\n * the same signal that caused the child to exit.\n */\nexport type Cleanup = (\n code: number | null,\n signal: null | NodeJS.Signals,\n processInfo: {\n watchdogPid?: ChildProcess['pid']\n },\n) =>\n | void\n | undefined\n | number\n | NodeJS.Signals\n | false\n | Promise<void | undefined | number | NodeJS.Signals | false>\n\nexport type FgArgs =\n | [program: string | [cmd: string, ...args: string[]], cleanup?: Cleanup]\n | [\n program: [cmd: string, ...args: string[]],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n | [program: string, cleanup?: Cleanup]\n | [program: string, opts?: SpawnOptions, cleanup?: Cleanup]\n | [program: string, args?: string[], cleanup?: Cleanup]\n | [\n program: string,\n args?: string[],\n opts?: SpawnOptions,\n cleanup?: Cleanup,\n ]\n\n/**\n * Normalizes the arguments passed to `foregroundChild`.\n *\n * Exposed for testing.\n *\n * @internal\n */\nexport const normalizeFgArgs = (\n fgArgs: FgArgs,\n): [\n program: string,\n args: string[],\n spawnOpts: SpawnOptions,\n cleanup: Cleanup,\n] => {\n let [program, args = [], spawnOpts = {}, cleanup = () => {}] = fgArgs\n if (typeof args === 'function') {\n cleanup = args\n spawnOpts = {}\n args = []\n } else if (!!args && typeof args === 'object' && !Array.isArray(args)) {\n if (typeof spawnOpts === 'function') cleanup = spawnOpts\n spawnOpts = args\n args = []\n } else if (typeof spawnOpts === 'function') {\n cleanup = spawnOpts\n spawnOpts = {}\n }\n if (Array.isArray(program)) {\n const [pp, ...pa] = program\n program = pp\n args = pa\n }\n return [program, args, { ...spawnOpts }, cleanup]\n}\n\n/**\n * Spawn the specified program as a \"foreground\" process, or at least as\n * close as is possible given node's lack of exec-without-fork.\n *\n * Cleanup method may be used to modify or ignore the result of the child's\n * exit code or signal. If cleanup returns undefined (or a Promise that\n * resolves to undefined), then the parent will exit in the same way that\n * the child did.\n *\n * Return boolean `false` to prevent the parent's exit entirely.\n */\nexport function foregroundChild(\n cmd: string | [cmd: string, ...args: string[]],\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n program: string,\n args?: string[],\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n program: string,\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n program: string,\n args?: string[],\n spawnOpts?: SpawnOptions,\n cleanup?: Cleanup,\n): ChildProcessByStdio<null, null, null>\nexport function foregroundChild(\n ...fgArgs: FgArgs\n): ChildProcessByStdio<null, null, null> {\n const [program, args, spawnOpts, cleanup] = normalizeFgArgs(fgArgs)\n\n spawnOpts.stdio = [0, 1, 2]\n if (process.send) {\n spawnOpts.stdio.push('ipc')\n }\n\n const child = spawn(program, args, spawnOpts) as ChildProcessByStdio<\n null,\n null,\n null\n >\n\n const childHangup = () => {\n try {\n child.kill('SIGHUP')\n\n /* c8 ignore start */\n } catch (_) {\n // SIGHUP is weird on windows\n child.kill('SIGTERM')\n }\n /* c8 ignore stop */\n }\n const removeOnExit = onExit(childHangup)\n\n proxySignals(child)\n const dog = watchdog(child)\n\n let done = false\n child.on('close', async (code, signal) => {\n /* c8 ignore start */\n if (done) return\n /* c8 ignore stop */\n done = true\n const result = cleanup(code, signal, {\n watchdogPid: dog.pid,\n })\n const res = isPromise(result) ? await result : result\n removeOnExit()\n\n if (res === false) return\n else if (typeof res === 'string') {\n signal = res\n code = null\n } else if (typeof res === 'number') {\n code = res\n signal = null\n }\n\n if (signal) {\n // If there is nothing else keeping the event loop alive,\n // then there's a race between a graceful exit and getting\n // the signal to this process. Put this timeout here to\n // make sure we're still alive to get the signal, and thus\n // exit with the intended signal code.\n /* istanbul ignore next */\n setTimeout(() => {}, 2000)\n try {\n process.kill(process.pid, signal)\n /* c8 ignore start */\n } catch (_) {\n process.kill(process.pid, 'SIGTERM')\n }\n /* c8 ignore stop */\n } else {\n process.exit(code || 0)\n }\n })\n\n if (process.send) {\n process.removeAllListeners('message')\n\n child.on('message', (message, sendHandle) => {\n process.send?.(message, sendHandle)\n })\n\n process.on('message', (message, sendHandle) => {\n child.send(\n message as Serializable,\n sendHandle as SendHandle | undefined,\n )\n })\n }\n\n return child\n}\n\nconst isPromise = (o: any): o is Promise<any> =>\n !!o && typeof o === 'object' && typeof o.then === 'function'\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-signals.d.ts","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,eAAe,CAAA;AAGjD;;GAEG;AACH,eAAO,MAAM,YAAY,UAAW,YAAY,eA4B/C,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { allSignals } from './all-signals.js';
|
|
2
|
+
/**
|
|
3
|
+
* Starts forwarding signals to `child` through `parent`.
|
|
4
|
+
*/
|
|
5
|
+
export const proxySignals = (child) => {
|
|
6
|
+
const listeners = new Map();
|
|
7
|
+
for (const sig of allSignals) {
|
|
8
|
+
const listener = () => {
|
|
9
|
+
// some signals can only be received, not sent
|
|
10
|
+
try {
|
|
11
|
+
child.kill(sig);
|
|
12
|
+
/* c8 ignore start */
|
|
13
|
+
}
|
|
14
|
+
catch (_) { }
|
|
15
|
+
/* c8 ignore stop */
|
|
16
|
+
};
|
|
17
|
+
try {
|
|
18
|
+
// if it's a signal this system doesn't recognize, skip it
|
|
19
|
+
process.on(sig, listener);
|
|
20
|
+
listeners.set(sig, listener);
|
|
21
|
+
/* c8 ignore start */
|
|
22
|
+
}
|
|
23
|
+
catch (_) { }
|
|
24
|
+
/* c8 ignore stop */
|
|
25
|
+
}
|
|
26
|
+
const unproxy = () => {
|
|
27
|
+
for (const [sig, listener] of listeners) {
|
|
28
|
+
process.removeListener(sig, listener);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
child.on('exit', unproxy);
|
|
32
|
+
return unproxy;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=proxy-signals.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy-signals.js","sourceRoot":"","sources":["../../src/proxy-signals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,KAAmB,EAAE,EAAE;IAClD,MAAM,SAAS,GAAG,IAAI,GAAG,EAAE,CAAA;IAE3B,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,GAAG,EAAE;YACpB,8CAA8C;YAC9C,IAAI,CAAC;gBACH,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;gBACf,qBAAqB;YACvB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;YACd,oBAAoB;QACtB,CAAC,CAAA;QACD,IAAI,CAAC;YACH,0DAA0D;YAC1D,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YACzB,SAAS,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAC5B,qBAAqB;QACvB,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC,CAAA,CAAC;QACd,oBAAoB;IACtB,CAAC;IAED,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,KAAK,MAAM,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC;YACxC,OAAO,CAAC,cAAc,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC,CAAA;IACD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACzB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA","sourcesContent":["import { type ChildProcess } from 'child_process'\nimport { allSignals } from './all-signals.js'\n\n/**\n * Starts forwarding signals to `child` through `parent`.\n */\nexport const proxySignals = (child: ChildProcess) => {\n const listeners = new Map()\n\n for (const sig of allSignals) {\n const listener = () => {\n // some signals can only be received, not sent\n try {\n child.kill(sig)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n try {\n // if it's a signal this system doesn't recognize, skip it\n process.on(sig, listener)\n listeners.set(sig, listener)\n /* c8 ignore start */\n } catch (_) {}\n /* c8 ignore stop */\n }\n\n const unproxy = () => {\n for (const [sig, listener] of listeners) {\n process.removeListener(sig, listener)\n }\n }\n child.on('exit', unproxy)\n return unproxy\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchdog.d.ts","sourceRoot":"","sources":["../../src/watchdog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAS,MAAM,eAAe,CAAA;AAyBnD;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,UAAW,YAAY,iBAc3C,CAAA"}
|