@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 @@
|
|
|
1
|
+
{"version":3,"file":"large-numbers.d.ts","sourceRoot":"","sources":["../../src/large-numbers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,GAAI,KAAK,MAAM,EAAE,KAAK,MAAM,4BAa9C,CAAA;AA6BD,eAAO,MAAM,KAAK,GAAI,KAAK,MAAM,WAiBhC,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// Tar can encode large and negative numbers using a leading byte of
|
|
2
|
+
// 0xff for negative, and 0x80 for positive.
|
|
3
|
+
export const encode = (num, buf) => {
|
|
4
|
+
if (!Number.isSafeInteger(num)) {
|
|
5
|
+
// The number is so large that javascript cannot represent it with integer
|
|
6
|
+
// precision.
|
|
7
|
+
throw Error('cannot encode number outside of javascript safe integer range');
|
|
8
|
+
}
|
|
9
|
+
else if (num < 0) {
|
|
10
|
+
encodeNegative(num, buf);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
encodePositive(num, buf);
|
|
14
|
+
}
|
|
15
|
+
return buf;
|
|
16
|
+
};
|
|
17
|
+
const encodePositive = (num, buf) => {
|
|
18
|
+
buf[0] = 0x80;
|
|
19
|
+
for (var i = buf.length; i > 1; i--) {
|
|
20
|
+
buf[i - 1] = num & 0xff;
|
|
21
|
+
num = Math.floor(num / 0x100);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const encodeNegative = (num, buf) => {
|
|
25
|
+
buf[0] = 0xff;
|
|
26
|
+
var flipped = false;
|
|
27
|
+
num = num * -1;
|
|
28
|
+
for (var i = buf.length; i > 1; i--) {
|
|
29
|
+
var byte = num & 0xff;
|
|
30
|
+
num = Math.floor(num / 0x100);
|
|
31
|
+
if (flipped) {
|
|
32
|
+
buf[i - 1] = onesComp(byte);
|
|
33
|
+
}
|
|
34
|
+
else if (byte === 0) {
|
|
35
|
+
buf[i - 1] = 0;
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
flipped = true;
|
|
39
|
+
buf[i - 1] = twosComp(byte);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
export const parse = (buf) => {
|
|
44
|
+
const pre = buf[0];
|
|
45
|
+
const value = pre === 0x80 ? pos(buf.subarray(1, buf.length))
|
|
46
|
+
: pre === 0xff ? twos(buf)
|
|
47
|
+
: null;
|
|
48
|
+
if (value === null) {
|
|
49
|
+
throw Error('invalid base256 encoding');
|
|
50
|
+
}
|
|
51
|
+
if (!Number.isSafeInteger(value)) {
|
|
52
|
+
// The number is so large that javascript cannot represent it with integer
|
|
53
|
+
// precision.
|
|
54
|
+
throw Error('parsed number outside of javascript safe integer range');
|
|
55
|
+
}
|
|
56
|
+
return value;
|
|
57
|
+
};
|
|
58
|
+
const twos = (buf) => {
|
|
59
|
+
var len = buf.length;
|
|
60
|
+
var sum = 0;
|
|
61
|
+
var flipped = false;
|
|
62
|
+
for (var i = len - 1; i > -1; i--) {
|
|
63
|
+
var byte = Number(buf[i]);
|
|
64
|
+
var f;
|
|
65
|
+
if (flipped) {
|
|
66
|
+
f = onesComp(byte);
|
|
67
|
+
}
|
|
68
|
+
else if (byte === 0) {
|
|
69
|
+
f = byte;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
flipped = true;
|
|
73
|
+
f = twosComp(byte);
|
|
74
|
+
}
|
|
75
|
+
if (f !== 0) {
|
|
76
|
+
sum -= f * Math.pow(256, len - i - 1);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return sum;
|
|
80
|
+
};
|
|
81
|
+
const pos = (buf) => {
|
|
82
|
+
var len = buf.length;
|
|
83
|
+
var sum = 0;
|
|
84
|
+
for (var i = len - 1; i > -1; i--) {
|
|
85
|
+
var byte = Number(buf[i]);
|
|
86
|
+
if (byte !== 0) {
|
|
87
|
+
sum += byte * Math.pow(256, len - i - 1);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return sum;
|
|
91
|
+
};
|
|
92
|
+
const onesComp = (byte) => (0xff ^ byte) & 0xff;
|
|
93
|
+
const twosComp = (byte) => ((0xff ^ byte) + 1) & 0xff;
|
|
94
|
+
//# sourceMappingURL=large-numbers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"large-numbers.js","sourceRoot":"","sources":["../../src/large-numbers.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,4CAA4C;AAE5C,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IACjD,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;QAC/B,0EAA0E;QAC1E,aAAa;QACb,MAAM,KAAK,CACT,+DAA+D,CAChE,CAAA;IACH,CAAC;SAAM,IAAI,GAAG,GAAG,CAAC,EAAE,CAAC;QACnB,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAC1B,CAAC;SAAM,CAAC;QACN,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA;IAC1B,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IAClD,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IAEb,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QACpC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,GAAG,GAAG,IAAI,CAAA;QACvB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,CAAA;IAC/B,CAAC;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAG,CAAC,GAAW,EAAE,GAAW,EAAE,EAAE;IAClD,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IACb,IAAI,OAAO,GAAG,KAAK,CAAA;IACnB,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAA;IACd,KAAK,IAAI,CAAC,GAAG,GAA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IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAA;QAC1C,CAAC;IACH,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA;AAED,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,IAAI,CAAA;AAEvD,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAA","sourcesContent":["// Tar can encode large and negative numbers using a leading byte of\n// 0xff for negative, and 0x80 for positive.\n\nexport const encode = (num: number, buf: Buffer) => {\n if (!Number.isSafeInteger(num)) {\n // The number is so large that javascript cannot represent it with integer\n // precision.\n throw Error(\n 'cannot encode number outside of javascript safe integer range',\n )\n } else if (num < 0) {\n encodeNegative(num, buf)\n } else {\n encodePositive(num, buf)\n }\n return buf\n}\n\nconst encodePositive = (num: number, buf: Buffer) => {\n buf[0] = 0x80\n\n for (var i = buf.length; i > 1; i--) {\n buf[i - 1] = num & 0xff\n num = Math.floor(num / 0x100)\n }\n}\n\nconst encodeNegative = (num: number, buf: Buffer) => {\n buf[0] = 0xff\n var flipped = false\n num = num * -1\n for (var i = buf.length; i > 1; i--) {\n var byte = num & 0xff\n num = Math.floor(num / 0x100)\n if (flipped) {\n buf[i - 1] = onesComp(byte)\n } else if (byte === 0) {\n buf[i - 1] = 0\n } else {\n flipped = true\n buf[i - 1] = twosComp(byte)\n }\n }\n}\n\nexport const parse = (buf: Buffer) => {\n const pre = buf[0]\n const value =\n pre === 0x80 ? pos(buf.subarray(1, buf.length))\n : pre === 0xff ? twos(buf)\n : null\n if (value === null) {\n throw Error('invalid base256 encoding')\n }\n\n if (!Number.isSafeInteger(value)) {\n // The number is so large that javascript cannot represent it with integer\n // precision.\n throw Error('parsed number outside of javascript safe integer range')\n }\n\n return value\n}\n\nconst twos = (buf: Buffer) => {\n var len = buf.length\n var sum = 0\n var flipped = false\n for (var i = len - 1; i > -1; i--) {\n var byte = Number(buf[i])\n var f\n if (flipped) {\n f = onesComp(byte)\n } else if (byte === 0) {\n f = byte\n } else {\n flipped = true\n f = twosComp(byte)\n }\n if (f !== 0) {\n sum -= f * Math.pow(256, len - i - 1)\n }\n }\n return sum\n}\n\nconst pos = (buf: Buffer) => {\n var len = buf.length\n var sum = 0\n for (var i = len - 1; i > -1; i--) {\n var byte = Number(buf[i])\n if (byte !== 0) {\n sum += byte * Math.pow(256, len - i - 1)\n }\n }\n return sum\n}\n\nconst onesComp = (byte: number) => (0xff ^ byte) & 0xff\n\nconst twosComp = (byte: number) => ((0xff ^ byte) + 1) & 0xff\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../src/list.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,UAAU,EAGX,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AAgBnC,eAAO,MAAM,WAAW,GAAI,KAAK,UAAU,EAAE,OAAO,MAAM,EAAE,SAgC3D,CAAA;AA+DD,eAAO,MAAM,IAAI;UAG4B,IAAI;EAMhD,CAAA"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// tar -t
|
|
2
|
+
import * as fsm from '@isaacs/fs-minipass';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { dirname, parse } from 'path';
|
|
5
|
+
import { makeCommand } from './make-command.js';
|
|
6
|
+
import { Parser } from './parse.js';
|
|
7
|
+
import { stripTrailingSlashes } from './strip-trailing-slashes.js';
|
|
8
|
+
const onReadEntryFunction = (opt) => {
|
|
9
|
+
const onReadEntry = opt.onReadEntry;
|
|
10
|
+
opt.onReadEntry =
|
|
11
|
+
onReadEntry ?
|
|
12
|
+
e => {
|
|
13
|
+
onReadEntry(e);
|
|
14
|
+
e.resume();
|
|
15
|
+
}
|
|
16
|
+
: e => e.resume();
|
|
17
|
+
};
|
|
18
|
+
// construct a filter that limits the file entries listed
|
|
19
|
+
// include child entries if a dir is included
|
|
20
|
+
export const filesFilter = (opt, files) => {
|
|
21
|
+
const map = new Map(files.map(f => [stripTrailingSlashes(f), true]));
|
|
22
|
+
const filter = opt.filter;
|
|
23
|
+
// limit recursion to 100 levels
|
|
24
|
+
const MAX = 100;
|
|
25
|
+
const mapHas = (file, r = '', depth = 0) => {
|
|
26
|
+
/* c8 ignore start - excessive caution */
|
|
27
|
+
if (depth >= MAX) {
|
|
28
|
+
map.set(file, false);
|
|
29
|
+
return false;
|
|
30
|
+
}
|
|
31
|
+
/* c8 ignore stop */
|
|
32
|
+
const root = r || parse(file).root || '.';
|
|
33
|
+
let ret;
|
|
34
|
+
if (file === root)
|
|
35
|
+
ret = false;
|
|
36
|
+
else {
|
|
37
|
+
const m = map.get(file);
|
|
38
|
+
ret = m !== undefined ? m : mapHas(dirname(file), root, depth + 1);
|
|
39
|
+
}
|
|
40
|
+
map.set(file, ret);
|
|
41
|
+
return ret;
|
|
42
|
+
};
|
|
43
|
+
opt.filter =
|
|
44
|
+
filter ?
|
|
45
|
+
(file, entry) => filter(file, entry) && mapHas(stripTrailingSlashes(file))
|
|
46
|
+
: file => mapHas(stripTrailingSlashes(file));
|
|
47
|
+
};
|
|
48
|
+
const listFileSync = (opt) => {
|
|
49
|
+
const p = new Parser(opt);
|
|
50
|
+
const file = opt.file;
|
|
51
|
+
let fd;
|
|
52
|
+
try {
|
|
53
|
+
fd = fs.openSync(file, 'r');
|
|
54
|
+
const stat = fs.fstatSync(fd);
|
|
55
|
+
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
56
|
+
if (stat.size < readSize) {
|
|
57
|
+
const buf = Buffer.allocUnsafe(stat.size);
|
|
58
|
+
const read = fs.readSync(fd, buf, 0, stat.size, 0);
|
|
59
|
+
p.end(read === buf.byteLength ? buf : buf.subarray(0, read));
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
let pos = 0;
|
|
63
|
+
const buf = Buffer.allocUnsafe(readSize);
|
|
64
|
+
while (pos < stat.size) {
|
|
65
|
+
const bytesRead = fs.readSync(fd, buf, 0, readSize, pos);
|
|
66
|
+
if (bytesRead === 0)
|
|
67
|
+
break;
|
|
68
|
+
pos += bytesRead;
|
|
69
|
+
p.write(buf.subarray(0, bytesRead));
|
|
70
|
+
}
|
|
71
|
+
p.end();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
if (typeof fd === 'number') {
|
|
76
|
+
try {
|
|
77
|
+
fs.closeSync(fd);
|
|
78
|
+
/* c8 ignore next */
|
|
79
|
+
}
|
|
80
|
+
catch { }
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const listFile = (opt, _files) => {
|
|
85
|
+
const parse = new Parser(opt);
|
|
86
|
+
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
87
|
+
const file = opt.file;
|
|
88
|
+
const p = new Promise((resolve, reject) => {
|
|
89
|
+
parse.on('error', reject);
|
|
90
|
+
parse.on('end', resolve);
|
|
91
|
+
fs.stat(file, (er, stat) => {
|
|
92
|
+
if (er) {
|
|
93
|
+
reject(er);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
const stream = new fsm.ReadStream(file, {
|
|
97
|
+
readSize: readSize,
|
|
98
|
+
size: stat.size,
|
|
99
|
+
});
|
|
100
|
+
stream.on('error', reject);
|
|
101
|
+
stream.pipe(parse);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
return p;
|
|
106
|
+
};
|
|
107
|
+
export const list = makeCommand(listFileSync, listFile, opt => new Parser(opt), opt => new Parser(opt), (opt, files) => {
|
|
108
|
+
if (files?.length)
|
|
109
|
+
filesFilter(opt, files);
|
|
110
|
+
if (!opt.noResume)
|
|
111
|
+
onReadEntryF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AI,MAAM,CAAC,GAAG,CAA4B,EACjD,GAAG,CAAC,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,EACtB,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE;IACb,IAAI,KAAK,EAAE,MAAM;QAAE,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IAC1C,IAAI,CAAC,GAAG,CAAC,QAAQ;QAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;AAC7C,CAAC,CACF,CAAA","sourcesContent":["// tar -t\nimport * as fsm from '@isaacs/fs-minipass'\nimport fs from 'node:fs'\nimport { dirname, parse } from 'path'\nimport { makeCommand } from './make-command.js'\nimport type {\n TarOptions,\n TarOptionsFile,\n TarOptionsSyncFile,\n} from './options.js'\nimport { Parser } from './parse.js'\nimport { stripTrailingSlashes } from './strip-trailing-slashes.js'\n\nconst onReadEntryFunction = (opt: TarOptions) => {\n const onReadEntry = opt.onReadEntry\n opt.onReadEntry =\n onReadEntry ?\n e => {\n onReadEntry(e)\n e.resume()\n }\n : e => e.resume()\n}\n\n// construct a filter that limits the file entries listed\n// include child entries if a dir is included\nexport const filesFilter = (opt: TarOptions, files: string[]) => {\n const map = new Map<string, boolean>(\n files.map(f => [stripTrailingSlashes(f), true]),\n )\n const filter = opt.filter\n\n // limit recursion to 100 levels\n const MAX = 100\n const mapHas = (file: string, r: string = '', depth = 0): boolean => {\n /* c8 ignore start - excessive caution */\n if (depth >= MAX) {\n map.set(file, false)\n return false\n }\n /* c8 ignore stop */\n const root = r || parse(file).root || '.'\n let ret: boolean\n if (file === root) ret = false\n else {\n const m = map.get(file)\n ret = m !== undefined ? m : mapHas(dirname(file), root, depth + 1)\n }\n\n map.set(file, ret)\n return ret\n }\n\n opt.filter =\n filter ?\n (file, entry) =>\n filter(file, entry) && mapHas(stripTrailingSlashes(file))\n : file => mapHas(stripTrailingSlashes(file))\n}\n\nconst listFileSync = (opt: TarOptionsSyncFile) => {\n const p = new Parser(opt)\n const file = opt.file\n let fd: number | undefined\n try {\n fd = fs.openSync(file, 'r')\n const stat: fs.Stats = fs.fstatSync(fd)\n const readSize: number = opt.maxReadSize || 16 * 1024 * 1024\n if (stat.size < readSize) {\n const buf = Buffer.allocUnsafe(stat.size)\n const read = fs.readSync(fd, buf, 0, stat.size, 0)\n p.end(read === buf.byteLength ? buf : buf.subarray(0, read))\n } else {\n let pos = 0\n const buf = Buffer.allocUnsafe(readSize)\n while (pos < stat.size) {\n const bytesRead = fs.readSync(fd, buf, 0, readSize, pos)\n if (bytesRead === 0) break\n pos += bytesRead\n p.write(buf.subarray(0, bytesRead))\n }\n p.end()\n }\n } finally {\n if (typeof fd === 'number') {\n try {\n fs.closeSync(fd)\n /* c8 ignore next */\n } catch {}\n }\n }\n}\n\nconst listFile = (\n opt: TarOptionsFile,\n _files: string[],\n): Promise<void> => {\n const parse = new Parser(opt)\n const readSize = opt.maxReadSize || 16 * 1024 * 1024\n\n const file = opt.file\n const p = new Promise<void>((resolve, reject) => {\n parse.on('error', reject)\n parse.on('end', resolve)\n\n fs.stat(file, (er, stat) => {\n if (er) {\n reject(er)\n } else {\n const stream = new fsm.ReadStream(file, {\n readSize: readSize,\n size: stat.size,\n })\n stream.on('error', reject)\n stream.pipe(parse)\n }\n })\n })\n return p\n}\n\nexport const list = makeCommand(\n listFileSync,\n listFile,\n opt => new Parser(opt) as Parser & { sync: true },\n opt => new Parser(opt),\n (opt, files) => {\n if (files?.length) filesFilter(opt, files)\n if (!opt.noResume) onReadEntryFunction(opt)\n },\n)\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-command.d.ts","sourceRoot":"","sources":["../../src/make-command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,8BAA8B,EAC9B,gCAAgC,EAChC,yBAAyB,EACzB,2BAA2B,EAC3B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AU,CAAC,UAAU,EAAE,SAAS,CA2DlC,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { dealias, isAsyncFile, isAsyncNoFile, isSyncFile, isSyncNoFile, } from './options.js';
|
|
2
|
+
export const makeCommand = (syncFile, asyncFile, syncNoFile, asyncNoFile, validate) => {
|
|
3
|
+
return Object.assign((opt_ = [], entries, cb) => {
|
|
4
|
+
if (Array.isArray(opt_)) {
|
|
5
|
+
entries = opt_;
|
|
6
|
+
opt_ = {};
|
|
7
|
+
}
|
|
8
|
+
if (typeof entries === 'function') {
|
|
9
|
+
cb = entries;
|
|
10
|
+
entries = undefined;
|
|
11
|
+
}
|
|
12
|
+
entries = !entries ? [] : Array.from(entries);
|
|
13
|
+
const opt = dealias(opt_);
|
|
14
|
+
validate?.(opt, entries);
|
|
15
|
+
if (isSyncFile(opt)) {
|
|
16
|
+
if (typeof cb === 'function') {
|
|
17
|
+
throw new TypeError('callback not supported for sync tar functions');
|
|
18
|
+
}
|
|
19
|
+
return syncFile(opt, entries);
|
|
20
|
+
}
|
|
21
|
+
else if (isAsyncFile(opt)) {
|
|
22
|
+
const p = asyncFile(opt, entries);
|
|
23
|
+
return cb ? p.then(() => cb(), cb) : p;
|
|
24
|
+
}
|
|
25
|
+
else if (isSyncNoFile(opt)) {
|
|
26
|
+
if (typeof cb === 'function') {
|
|
27
|
+
throw new TypeError('callback not supported for sync tar functions');
|
|
28
|
+
}
|
|
29
|
+
return syncNoFile(opt, entries);
|
|
30
|
+
}
|
|
31
|
+
else if (isAsyncNoFile(opt)) {
|
|
32
|
+
if (typeof cb === 'function') {
|
|
33
|
+
throw new TypeError('callback only supported with file option');
|
|
34
|
+
}
|
|
35
|
+
return asyncNoFile(opt, entries);
|
|
36
|
+
/* c8 ignore start */
|
|
37
|
+
}
|
|
38
|
+
throw new Error('impossible options??');
|
|
39
|
+
/* c8 ignore stop */
|
|
40
|
+
}, {
|
|
41
|
+
syncFile,
|
|
42
|
+
asyncFile,
|
|
43
|
+
syncNoFile,
|
|
44
|
+
asyncNoFile,
|
|
45
|
+
validate,
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=make-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"make-command.js","sourceRoot":"","sources":["../../src/make-command.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,OAAO,EACP,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,cAAc,CAAA;AA+HrB,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,QAA8D,EAC9D,SAIkB,EAClB,UAAuE,EACvE,WAGe,EACf,QAAwD,EACrB,EAAE;IACrC,OAAO,MAAM,CAAC,MAAM,CAClB,CACE,OAAyC,EAAE,EAC3C,OAAuB,EACvB,EAAO,EACP,EAAE;QACF,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,OAAO,GAAG,IAAI,CAAA;YACd,IAAI,GAAG,EAAE,CAAA;QACX,CAAC;QAED,IAAI,OAAO,OAAO,KAAK,UAAU,EAAE,CAAC;YAClC,EAAE,GAAG,OAAO,CAAA;YACZ,OAAO,GAAG,SAAS,CAAA;QACrB,CAAC;QAED,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAE7C,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;QAEzB,QAAQ,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QAExB,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;YACpB,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC;gBAC7B,MAAM,IAAI,SAAS,CACjB,+CAA+C,CAChD,CAAA;YACH,CAAC;YACD,OAAO,QAAQ,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QAC/B,CAAC;aAAM,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;YAC5B,MAAM,CAAC,GAAG,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YACjC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QACxC,CAAC;aAAM,IAAI,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;YAC7B,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC;gBAC7B,MAAM,IAAI,SAAS,CACjB,+CAA+C,CAChD,CAAA;YACH,CAAC;YACD,OAAO,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;QACjC,CAAC;aAAM,IAAI,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;YAC9B,IAAI,OAAO,EAAE,KAAK,UAAU,EAAE,CAAC;gBAC7B,MAAM,IAAI,SAAS,CAAC,0CAA0C,CAAC,CAAA;YACjE,CAAC;YACD,OAAO,WAAW,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;YAChC,qBAAqB;QACvB,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAA;QAEvC,oBAAoB;IACtB,CAAC,EACD;QACE,QAAQ;QACR,SAAS;QACT,UAAU;QACV,WAAW;QACX,QAAQ;KACT,CACmC,CAAA;AACxC,CAAC,CAAA","sourcesContent":["import type {\n TarOptions,\n TarOptionsAsyncFile,\n TarOptionsAsyncNoFile,\n TarOptionsSyncFile,\n TarOptionsSyncNoFile,\n TarOptionsWithAliases,\n TarOptionsWithAliasesAsync,\n TarOptionsWithAliasesAsyncFile,\n TarOptionsWithAliasesAsyncNoFile,\n TarOptionsWithAliasesFile,\n TarOptionsWithAliasesNoFile,\n TarOptionsWithAliasesSync,\n TarOptionsWithAliasesSyncFile,\n TarOptionsWithAliasesSyncNoFile,\n} from './options.js'\nimport {\n dealias,\n isAsyncFile,\n isAsyncNoFile,\n isSyncFile,\n isSyncNoFile,\n} from './options.js'\n\nexport type CB = (er?: Error) => unknown\n\nexport type TarCommand<AsyncClass, SyncClass extends { sync: true }> = {\n // async and no file specified\n (): AsyncClass\n (opt: TarOptionsWithAliasesAsyncNoFile): AsyncClass\n (entries: string[]): AsyncClass\n (opt: TarOptionsWithAliasesAsyncNoFile, entries: string[]): AsyncClass\n} & {\n // sync and no file\n (opt: TarOptionsWithAliasesSyncNoFile): SyncClass\n (opt: TarOptionsWithAliasesSyncNoFile, entries: string[]): SyncClass\n} & {\n // async and file\n (opt: TarOptionsWithAliasesAsyncFile): Promise<void>\n (opt: TarOptionsWithAliasesAsyncFile, entries: string[]): Promise<void>\n (opt: TarOptionsWithAliasesAsyncFile, cb: CB): Promise<void>\n (\n opt: TarOptionsWithAliasesAsyncFile,\n entries: string[],\n cb: CB,\n ): Promise<void>\n} & {\n // sync and file\n (opt: TarOptionsWithAliasesSyncFile): void\n (opt: TarOptionsWithAliasesSyncFile, entries: string[]): void\n} & {\n // sync, maybe file\n (opt: TarOptionsWithAliasesSync): typeof opt extends (\n TarOptionsWithAliasesFile\n ) ?\n void\n : typeof opt extends TarOptionsWithAliasesNoFile ? SyncClass\n : void | SyncClass\n (\n opt: TarOptionsWithAliasesSync,\n entries: string[],\n ): typeof opt extends TarOptionsWithAliasesFile ? void\n : typeof opt extends TarOptionsWithAliasesNoFile ? SyncClass\n : void | SyncClass\n} & {\n // async, maybe file\n (opt: TarOptionsWithAliasesAsync): typeof opt extends (\n TarOptionsWithAliasesFile\n ) ?\n Promise<void>\n : typeof opt extends TarOptionsWithAliasesNoFile ? AsyncClass\n : Promise<void> | AsyncClass\n (\n opt: TarOptionsWithAliasesAsync,\n entries: string[],\n ): typeof opt extends TarOptionsWithAliasesFile ? Promise<void>\n : typeof opt extends TarOptionsWithAliasesNoFile ? AsyncClass\n : Promise<void> | AsyncClass\n (opt: TarOptionsWithAliasesAsync, cb: CB): Promise<void>\n (\n opt: TarOptionsWithAliasesAsync,\n entries: string[],\n cb: CB,\n ): typeof opt extends TarOptionsWithAliasesFile ? Promise<void>\n : typeof opt extends TarOptionsWithAliasesNoFile ? never\n : Promise<void>\n} & {\n // maybe sync, file\n (opt: TarOptionsWithAliasesFile): Promise<void> | void\n (\n opt: TarOptionsWithAliasesFile,\n entries: string[],\n ): typeof opt extends TarOptionsWithAliasesSync ? void\n : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void>\n : Promise<void> | void\n (opt: TarOptionsWithAliasesFile, cb: CB): Promise<void>\n (\n opt: TarOptionsWithAliasesFile,\n entries: string[],\n cb: CB,\n ): typeof opt extends TarOptionsWithAliasesSync ? never\n : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void>\n : Promise<void>\n} & {\n // maybe sync, no file\n (opt: TarOptionsWithAliasesNoFile): typeof opt extends (\n TarOptionsWithAliasesSync\n ) ?\n SyncClass\n : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass\n : SyncClass | AsyncClass\n (\n opt: TarOptionsWithAliasesNoFile,\n entries: string[],\n ): typeof opt extends TarOptionsWithAliasesSync ? SyncClass\n : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass\n : SyncClass | AsyncClass\n} & {\n // maybe sync, maybe file\n (opt: TarOptionsWithAliases): typeof opt extends (\n TarOptionsWithAliasesFile\n ) ?\n typeof opt extends TarOptionsWithAliasesSync ? void\n : typeof opt extends TarOptionsWithAliasesAsync ? Promise<void>\n : void | Promise<void>\n : typeof opt extends TarOptionsWithAliasesNoFile ?\n typeof opt extends TarOptionsWithAliasesSync ? SyncClass\n : typeof opt extends TarOptionsWithAliasesAsync ? AsyncClass\n : SyncClass | AsyncClass\n : typeof opt extends TarOptionsWithAliasesSync ? SyncClass | void\n : typeof opt extends TarOptionsWithAliasesAsync ?\n AsyncClass | Promise<void>\n : SyncClass | void | AsyncClass | Promise<void>\n} & {\n // extras\n syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void\n asyncFile: (\n opt: TarOptionsAsyncFile,\n entries: string[],\n cb?: CB,\n ) => Promise<void>\n syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass\n asyncNoFile: (\n opt: TarOptionsAsyncNoFile,\n entries: string[],\n ) => AsyncClass\n validate?: (opt: TarOptions, entries?: string[]) => void\n}\n\nexport const makeCommand = <AsyncClass, SyncClass extends { sync: true }>(\n syncFile: (opt: TarOptionsSyncFile, entries: string[]) => void,\n asyncFile: (\n opt: TarOptionsAsyncFile,\n entries: string[],\n cb?: CB,\n ) => Promise<void>,\n syncNoFile: (opt: TarOptionsSyncNoFile, entries: string[]) => SyncClass,\n asyncNoFile: (\n opt: TarOptionsAsyncNoFile,\n entries: string[],\n ) => AsyncClass,\n validate?: (opt: TarOptions, entries?: string[]) => void,\n): TarCommand<AsyncClass, SyncClass> => {\n return Object.assign(\n (\n opt_: TarOptionsWithAliases | string[] = [],\n entries?: string[] | CB,\n cb?: CB,\n ) => {\n if (Array.isArray(opt_)) {\n entries = opt_\n opt_ = {}\n }\n\n if (typeof entries === 'function') {\n cb = entries\n entries = undefined\n }\n\n entries = !entries ? [] : Array.from(entries)\n\n const opt = dealias(opt_)\n\n validate?.(opt, entries)\n\n if (isSyncFile(opt)) {\n if (typeof cb === 'function') {\n throw new TypeError(\n 'callback not supported for sync tar functions',\n )\n }\n return syncFile(opt, entries)\n } else if (isAsyncFile(opt)) {\n const p = asyncFile(opt, entries)\n return cb ? p.then(() => cb(), cb) : p\n } else if (isSyncNoFile(opt)) {\n if (typeof cb === 'function') {\n throw new TypeError(\n 'callback not supported for sync tar functions',\n )\n }\n return syncNoFile(opt, entries)\n } else if (isAsyncNoFile(opt)) {\n if (typeof cb === 'function') {\n throw new TypeError('callback only supported with file option')\n }\n return asyncNoFile(opt, entries)\n /* c8 ignore start */\n }\n throw new Error('impossible options??')\n\n /* c8 ignore stop */\n },\n {\n syncFile,\n asyncFile,\n syncNoFile,\n asyncNoFile,\n validate,\n },\n ) as TarCommand<AsyncClass, SyncClass>\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mkdir.d.ts","sourceRoot":"","sources":["../../src/mkdir.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,cAAc,GAAG,QAAQ,GAAG,YAAY,CAAA;AAiBxE;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,GAChB,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,IAAI,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,yBAkDpD,CAAA;AA8ED,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,EAAE,KAAK,YAAY,wBAmEvD,CAAA"}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { chownr, chownrSync } from 'chownr';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import fsp from 'node:fs/promises';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import { CwdError } from './cwd-error.js';
|
|
6
|
+
import { normalizeWindowsPath } from './normalize-windows-path.js';
|
|
7
|
+
import { SymlinkError } from './symlink-error.js';
|
|
8
|
+
const checkCwd = (dir, cb) => {
|
|
9
|
+
fs.stat(dir, (er, st) => {
|
|
10
|
+
if (er || !st.isDirectory()) {
|
|
11
|
+
er = new CwdError(dir, er?.code || 'ENOTDIR');
|
|
12
|
+
}
|
|
13
|
+
cb(er);
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Wrapper around fs/promises.mkdir for tar's needs.
|
|
18
|
+
*
|
|
19
|
+
* The main purpose is to avoid creating directories if we know that
|
|
20
|
+
* they already exist (and track which ones exist for this purpose),
|
|
21
|
+
* and prevent entries from being extracted into symlinked folders,
|
|
22
|
+
* if `preservePaths` is not set.
|
|
23
|
+
*/
|
|
24
|
+
export const mkdir = (dir, opt, cb) => {
|
|
25
|
+
dir = normalizeWindowsPath(dir);
|
|
26
|
+
// if there's any overlap between mask and mode,
|
|
27
|
+
// then we'll need an explicit chmod
|
|
28
|
+
/* c8 ignore next */
|
|
29
|
+
const umask = opt.umask ?? 0o22;
|
|
30
|
+
const mode = opt.mode | 0o0700;
|
|
31
|
+
const needChmod = (mode & umask) !== 0;
|
|
32
|
+
const uid = opt.uid;
|
|
33
|
+
const gid = opt.gid;
|
|
34
|
+
const doChown = typeof uid === 'number' &&
|
|
35
|
+
typeof gid === 'number' &&
|
|
36
|
+
(uid !== opt.processUid || gid !== opt.processGid);
|
|
37
|
+
const preserve = opt.preserve;
|
|
38
|
+
const unlink = opt.unlink;
|
|
39
|
+
const cwd = normalizeWindowsPath(opt.cwd);
|
|
40
|
+
const done = (er, created) => {
|
|
41
|
+
if (er) {
|
|
42
|
+
cb(er);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
if (created && doChown) {
|
|
46
|
+
chownr(created, uid, gid, er => done(er));
|
|
47
|
+
}
|
|
48
|
+
else if (needChmod) {
|
|
49
|
+
fs.chmod(dir, mode, cb);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
cb();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
if (dir === cwd) {
|
|
57
|
+
return checkCwd(dir, done);
|
|
58
|
+
}
|
|
59
|
+
if (preserve) {
|
|
60
|
+
return fsp.mkdir(dir, { mode, recursive: true }).then(made => done(null, made ?? undefined), // oh, ts
|
|
61
|
+
done);
|
|
62
|
+
}
|
|
63
|
+
const sub = normalizeWindowsPath(path.relative(cwd, dir));
|
|
64
|
+
const parts = sub.split('/');
|
|
65
|
+
mkdir_(cwd, parts, mode, unlink, cwd, undefined, done);
|
|
66
|
+
};
|
|
67
|
+
const mkdir_ = (base, parts, mode, unlink, cwd, created, cb) => {
|
|
68
|
+
if (parts.length === 0) {
|
|
69
|
+
return cb(null, created);
|
|
70
|
+
}
|
|
71
|
+
const p = parts.shift();
|
|
72
|
+
const part = normalizeWindowsPath(path.resolve(base + '/' + p));
|
|
73
|
+
fs.mkdir(part, mode, onmkdir(part, parts, mode, unlink, cwd, created, cb));
|
|
74
|
+
};
|
|
75
|
+
const onmkdir = (part, parts, mode, unlink, cwd, created, cb) => (er) => {
|
|
76
|
+
if (er) {
|
|
77
|
+
fs.lstat(part, (statEr, st) => {
|
|
78
|
+
if (statEr) {
|
|
79
|
+
statEr.path = statEr.path && normalizeWindowsPath(statEr.path);
|
|
80
|
+
cb(statEr);
|
|
81
|
+
}
|
|
82
|
+
else if (st.isDirectory()) {
|
|
83
|
+
mkdir_(part, parts, mode, unlink, cwd, created, cb);
|
|
84
|
+
}
|
|
85
|
+
else if (unlink) {
|
|
86
|
+
fs.unlink(part, er => {
|
|
87
|
+
if (er) {
|
|
88
|
+
return cb(er);
|
|
89
|
+
}
|
|
90
|
+
fs.mkdir(part, mode, onmkdir(part, parts, mode, unlink, cwd, created, cb));
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
else if (st.isSymbolicLink()) {
|
|
94
|
+
return cb(new SymlinkError(part, part + '/' + parts.join('/')));
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
cb(er);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
created = created || part;
|
|
103
|
+
mkdir_(part, parts, mode, unlink, cwd, created, cb);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
const checkCwdSync = (dir) => {
|
|
107
|
+
let ok = false;
|
|
108
|
+
let code;
|
|
109
|
+
try {
|
|
110
|
+
ok = fs.statSync(dir).isDirectory();
|
|
111
|
+
}
|
|
112
|
+
catch (er) {
|
|
113
|
+
code = er?.code;
|
|
114
|
+
}
|
|
115
|
+
finally {
|
|
116
|
+
if (!ok) {
|
|
117
|
+
throw new CwdError(dir, code ?? 'ENOTDIR');
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
export const mkdirSync = (dir, opt) => {
|
|
122
|
+
dir = normalizeWindowsPath(dir);
|
|
123
|
+
// if there's any overlap between mask and mode,
|
|
124
|
+
// then we'll need an explicit chmod
|
|
125
|
+
/* c8 ignore next */
|
|
126
|
+
const umask = opt.umask ?? 0o22;
|
|
127
|
+
const mode = opt.mode | 0o700;
|
|
128
|
+
const needChmod = (mode & umask) !== 0;
|
|
129
|
+
const uid = opt.uid;
|
|
130
|
+
const gid = opt.gid;
|
|
131
|
+
const doChown = typeof uid === 'number' &&
|
|
132
|
+
typeof gid === 'number' &&
|
|
133
|
+
(uid !== opt.processUid || gid !== opt.processGid);
|
|
134
|
+
const preserve = opt.preserve;
|
|
135
|
+
const unlink = opt.unlink;
|
|
136
|
+
const cwd = normalizeWindowsPath(opt.cwd);
|
|
137
|
+
const done = (created) => {
|
|
138
|
+
if (created && doChown) {
|
|
139
|
+
chownrSync(created, uid, gid);
|
|
140
|
+
}
|
|
141
|
+
if (needChmod) {
|
|
142
|
+
fs.chmodSync(dir, mode);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
if (dir === cwd) {
|
|
146
|
+
checkCwdSync(cwd);
|
|
147
|
+
return done();
|
|
148
|
+
}
|
|
149
|
+
if (preserve) {
|
|
150
|
+
return done(fs.mkdirSync(dir, { mode, recursive: true }) ?? undefined);
|
|
151
|
+
}
|
|
152
|
+
const sub = normalizeWindowsPath(path.relative(cwd, dir));
|
|
153
|
+
const parts = sub.split('/');
|
|
154
|
+
let created;
|
|
155
|
+
for (let p = parts.shift(), part = cwd; p && (part += '/' + p); p = parts.shift()) {
|
|
156
|
+
part = normalizeWindowsPath(path.resolve(part));
|
|
157
|
+
try {
|
|
158
|
+
fs.mkdirSync(part, mode);
|
|
159
|
+
created = created || part;
|
|
160
|
+
}
|
|
161
|
+
catch {
|
|
162
|
+
const st = fs.lstatSync(part);
|
|
163
|
+
if (st.isDirectory()) {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
else if (unlink) {
|
|
167
|
+
fs.unlinkSync(part);
|
|
168
|
+
fs.mkdirSync(part, mode);
|
|
169
|
+
created = created || part;
|
|
170
|
+
continue;
|
|
171
|
+
}
|
|
172
|
+
else if (st.isSymbolicLink()) {
|
|
173
|
+
return new SymlinkError(part, part + '/' + parts.join('/'));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return done(created);
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=mkdir.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mkdir.js","sourceRoot":"","sources":["../../src/mkdir.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,GAAG,MAAM,kBAAkB,CAAA;AAClC,OAAO,IAAI,MAAM,WAAW,CAAA;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAA;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAgBjD,MAAM,QAAQ,GAAG,CACf,GAAW,EACX,EAAuC,EACvC,EAAE;IACF,E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,CAAC,CAAA;AACtB,CAAC,CAAA","sourcesContent":["import { chownr, chownrSync } from 'chownr'\nimport fs from 'node:fs'\nimport fsp from 'node:fs/promises'\nimport path from 'node:path'\nimport { CwdError } from './cwd-error.js'\nimport { normalizeWindowsPath } from './normalize-windows-path.js'\nimport { SymlinkError } from './symlink-error.js'\n\nexport type MkdirOptions = {\n uid?: number\n gid?: number\n processUid?: number\n processGid?: number\n umask?: number\n preserve: boolean\n unlink: boolean\n cwd: string\n mode: number\n}\n\nexport type MkdirError = NodeJS.ErrnoException | CwdError | SymlinkError\n\nconst checkCwd = (\n dir: string,\n cb: (er?: null | MkdirError) => unknown,\n) => {\n fs.stat(dir, (er, st) => {\n if (er || !st.isDirectory()) {\n er = new CwdError(\n dir,\n (er as NodeJS.ErrnoException)?.code || 'ENOTDIR',\n )\n }\n cb(er)\n })\n}\n\n/**\n * Wrapper around fs/promises.mkdir for tar's needs.\n *\n * The main purpose is to avoid creating directories if we know that\n * they already exist (and track which ones exist for this purpose),\n * and prevent entries from being extracted into symlinked folders,\n * if `preservePaths` is not set.\n */\nexport const mkdir = (\n dir: string,\n opt: MkdirOptions,\n cb: (er?: null | MkdirError, made?: string) => void,\n) => {\n dir = normalizeWindowsPath(dir)\n\n // if there's any overlap between mask and mode,\n // then we'll need an explicit chmod\n /* c8 ignore next */\n const umask = opt.umask ?? 0o22\n const mode = opt.mode | 0o0700\n const needChmod = (mode & umask) !== 0\n\n const uid = opt.uid\n const gid = opt.gid\n const doChown =\n typeof uid === 'number' &&\n typeof gid === 'number' &&\n (uid !== opt.processUid || gid !== opt.processGid)\n\n const preserve = opt.preserve\n const unlink = opt.unlink\n const cwd = normalizeWindowsPath(opt.cwd)\n\n const done = (er?: null | MkdirError, created?: string) => {\n if (er) {\n cb(er)\n } else {\n if (created && doChown) {\n chownr(created, uid, gid, er => done(er as NodeJS.ErrnoException))\n } else if (needChmod) {\n fs.chmod(dir, mode, cb)\n } else {\n cb()\n }\n }\n }\n\n if (dir === cwd) {\n return checkCwd(dir, done)\n }\n\n if (preserve) {\n return fsp.mkdir(dir, { mode, recursive: true }).then(\n made => done(null, made ?? undefined), // oh, ts\n done,\n )\n }\n\n const sub = normalizeWindowsPath(path.relative(cwd, dir))\n const parts = sub.split('/')\n mkdir_(cwd, parts, mode, unlink, cwd, undefined, done)\n}\n\nconst mkdir_ = (\n base: string,\n parts: string[],\n mode: number,\n unlink: boolean,\n cwd: string,\n created: string | undefined,\n cb: (er?: null | MkdirError, made?: string) => void,\n): void => {\n if (parts.length === 0) {\n return cb(null, created)\n }\n const p = parts.shift()\n const part = normalizeWindowsPath(path.resolve(base + '/' + p))\n fs.mkdir(\n part,\n mode,\n onmkdir(part, parts, mode, unlink, cwd, created, cb),\n )\n}\n\nconst onmkdir =\n (\n part: string,\n parts: string[],\n mode: number,\n unlink: boolean,\n cwd: string,\n created: string | undefined,\n cb: (er?: null | MkdirError, made?: string) => void,\n ) =>\n (er?: null | NodeJS.ErrnoException) => {\n if (er) {\n fs.lstat(part, (statEr, st) => {\n if (statEr) {\n statEr.path = statEr.path && normalizeWindowsPath(statEr.path)\n cb(statEr)\n } else if (st.isDirectory()) {\n mkdir_(part, parts, mode, unlink, cwd, created, cb)\n } else if (unlink) {\n fs.unlink(part, er => {\n if (er) {\n return cb(er)\n }\n fs.mkdir(\n part,\n mode,\n onmkdir(part, parts, mode, unlink, cwd, created, cb),\n )\n })\n } else if (st.isSymbolicLink()) {\n return cb(new SymlinkError(part, part + '/' + parts.join('/')))\n } else {\n cb(er)\n }\n })\n } else {\n created = created || part\n mkdir_(part, parts, mode, unlink, cwd, created, cb)\n }\n }\n\nconst checkCwdSync = (dir: string) => {\n let ok = false\n let code\n try {\n ok = fs.statSync(dir).isDirectory()\n } catch (er) {\n code = (er as NodeJS.ErrnoException)?.code\n } finally {\n if (!ok) {\n throw new CwdError(dir, code ?? 'ENOTDIR')\n }\n }\n}\n\nexport const mkdirSync = (dir: string, opt: MkdirOptions) => {\n dir = normalizeWindowsPath(dir)\n // if there's any overlap between mask and mode,\n // then we'll need an explicit chmod\n /* c8 ignore next */\n const umask = opt.umask ?? 0o22\n const mode = opt.mode | 0o700\n const needChmod = (mode & umask) !== 0\n\n const uid = opt.uid\n const gid = opt.gid\n const doChown =\n typeof uid === 'number' &&\n typeof gid === 'number' &&\n (uid !== opt.processUid || gid !== opt.processGid)\n\n const preserve = opt.preserve\n const unlink = opt.unlink\n const cwd = normalizeWindowsPath(opt.cwd)\n\n const done = (created?: string | undefined) => {\n if (created && doChown) {\n chownrSync(created, uid, gid)\n }\n if (needChmod) {\n fs.chmodSync(dir, mode)\n }\n }\n\n if (dir === cwd) {\n checkCwdSync(cwd)\n return done()\n }\n\n if (preserve) {\n return done(fs.mkdirSync(dir, { mode, recursive: true }) ?? undefined)\n }\n\n const sub = normalizeWindowsPath(path.relative(cwd, dir))\n const parts = sub.split('/')\n let created\n for (\n let p = parts.shift(), part = cwd;\n p && (part += '/' + p);\n p = parts.shift()\n ) {\n part = normalizeWindowsPath(path.resolve(part))\n\n try {\n fs.mkdirSync(part, mode)\n created = created || part\n } catch {\n const st = fs.lstatSync(part)\n if (st.isDirectory()) {\n continue\n } else if (unlink) {\n fs.unlinkSync(part)\n fs.mkdirSync(part, mode)\n created = created || part\n continue\n } else if (st.isSymbolicLink()) {\n return new SymlinkError(part, part + '/' + parts.join('/'))\n }\n }\n }\n\n return done(created)\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mode-fix.d.ts","sourceRoot":"","sources":["../../src/mode-fix.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,GAClB,MAAM,MAAM,EACZ,OAAO,OAAO,EACd,UAAU,OAAO,WA0BlB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const modeFix = (mode, isDir, portable) => {
|
|
2
|
+
mode &= 0o7777;
|
|
3
|
+
// in portable mode, use the minimum reasonable umask
|
|
4
|
+
// if this system creates files with 0o664 by default
|
|
5
|
+
// (as some linux distros do), then we'll write the
|
|
6
|
+
// archive with 0o644 instead. Also, don't ever create
|
|
7
|
+
// a file that is not readable/writable by the owner.
|
|
8
|
+
if (portable) {
|
|
9
|
+
mode = (mode | 0o600) & ~0o22;
|
|
10
|
+
}
|
|
11
|
+
// if dirs are readable, then they should be listable
|
|
12
|
+
if (isDir) {
|
|
13
|
+
if (mode & 0o400) {
|
|
14
|
+
mode |= 0o100;
|
|
15
|
+
}
|
|
16
|
+
if (mode & 0o40) {
|
|
17
|
+
mode |= 0o10;
|
|
18
|
+
}
|
|
19
|
+
if (mode & 0o4) {
|
|
20
|
+
mode |= 0o1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return mode;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=mode-fix.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mode-fix.js","sourceRoot":"","sources":["../../src/mode-fix.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,CACrB,IAAY,EACZ,KAAc,EACd,QAAiB,EACjB,EAAE;IACF,IAAI,IAAI,MAAM,CAAA;IAEd,qDAAqD;IACrD,qDAAqD;IACrD,mDAAmD;IACnD,uDAAuD;IACvD,qDAAqD;IACrD,IAAI,QAAQ,EAAE,CAAC;QACb,IAAI,GAAG,CAAC,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAA;IAC/B,CAAC;IAED,qDAAqD;IACrD,IAAI,KAAK,EAAE,CAAC;QACV,IAAI,IAAI,GAAG,KAAK,EAAE,CAAC;YACjB,IAAI,IAAI,KAAK,CAAA;QACf,CAAC;QACD,IAAI,IAAI,GAAG,IAAI,EAAE,CAAC;YAChB,IAAI,IAAI,IAAI,CAAA;QACd,CAAC;QACD,IAAI,IAAI,GAAG,GAAG,EAAE,CAAC;YACf,IAAI,IAAI,GAAG,CAAA;QACb,CAAC;IACH,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["export const modeFix = (\n mode: number,\n isDir: boolean,\n portable: boolean,\n) => {\n mode &= 0o7777\n\n // in portable mode, use the minimum reasonable umask\n // if this system creates files with 0o664 by default\n // (as some linux distros do), then we'll write the\n // archive with 0o644 instead. Also, don't ever create\n // a file that is not readable/writable by the owner.\n if (portable) {\n mode = (mode | 0o600) & ~0o22\n }\n\n // if dirs are readable, then they should be listable\n if (isDir) {\n if (mode & 0o400) {\n mode |= 0o100\n }\n if (mode & 0o40) {\n mode |= 0o10\n }\n if (mode & 0o4) {\n mode |= 0o1\n }\n }\n return mode\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-unicode.d.ts","sourceRoot":"","sources":["../../src/normalize-unicode.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,KAAG,MAyB5C,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// warning: extremely hot code path.
|
|
2
|
+
// This has been meticulously optimized for use
|
|
3
|
+
// within npm install on large package trees.
|
|
4
|
+
// Do not edit without careful benchmarking.
|
|
5
|
+
const normalizeCache = Object.create(null);
|
|
6
|
+
// Limit the size of this. Very low-sophistication LRU cache
|
|
7
|
+
const MAX = 10000;
|
|
8
|
+
const cache = new Set();
|
|
9
|
+
export const normalizeUnicode = (s) => {
|
|
10
|
+
if (!cache.has(s)) {
|
|
11
|
+
// shake out identical accents and ligatures
|
|
12
|
+
normalizeCache[s] = s
|
|
13
|
+
.normalize('NFD')
|
|
14
|
+
.toLocaleLowerCase('en')
|
|
15
|
+
.toLocaleUpperCase('en');
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
cache.delete(s);
|
|
19
|
+
}
|
|
20
|
+
cache.add(s);
|
|
21
|
+
const ret = normalizeCache[s];
|
|
22
|
+
let i = cache.size - MAX;
|
|
23
|
+
// only prune when we're 10% over the max
|
|
24
|
+
if (i > MAX / 10) {
|
|
25
|
+
for (const s of cache) {
|
|
26
|
+
cache.delete(s);
|
|
27
|
+
delete normalizeCache[s];
|
|
28
|
+
if (--i <= 0)
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return ret;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=normalize-unicode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-unicode.js","sourceRoot":"","sources":["../../src/normalize-unicode.ts"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,+CAA+C;AAC/C,6CAA6C;AAC7C,4CAA4C;AAC5C,MAAM,cAAc,GAA2B,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;AAElE,4DAA4D;AAC5D,MAAM,GAAG,GAAG,KAAK,CAAA;AACjB,MAAM,KAAK,GAAG,IAAI,GAAG,EAAU,CAAA;AAC/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAU,EAAE;IACpD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAClB,4CAA4C;QAC5C,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC;aAClB,SAAS,CAAC,KAAK,CAAC;aAChB,iBAAiB,CAAC,IAAI,CAAC;aACvB,iBAAiB,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;SAAM,CAAC;QACN,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACjB,CAAC;IACD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAEZ,MAAM,GAAG,GAAG,cAAc,CAAC,CAAC,CAAW,CAAA;IAEvC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,GAAG,GAAG,CAAA;IACxB,yCAAyC;IACzC,IAAI,CAAC,GAAG,GAAG,GAAG,EAAE,EAAE,CAAC;QACjB,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;YACtB,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;YACf,OAAO,cAAc,CAAC,CAAC,CAAC,CAAA;YACxB,IAAI,EAAE,CAAC,IAAI,CAAC;gBAAE,MAAK;QACrB,CAAC;IACH,CAAC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC,CAAA","sourcesContent":["// warning: extremely hot code path.\n// This has been meticulously optimized for use\n// within npm install on large package trees.\n// Do not edit without careful benchmarking.\nconst normalizeCache: Record<string, string> = Object.create(null)\n\n// Limit the size of this. Very low-sophistication LRU cache\nconst MAX = 10000\nconst cache = new Set<string>()\nexport const normalizeUnicode = (s: string): string => {\n if (!cache.has(s)) {\n // shake out identical accents and ligatures\n normalizeCache[s] = s\n .normalize('NFD')\n .toLocaleLowerCase('en')\n .toLocaleUpperCase('en')\n } else {\n cache.delete(s)\n }\n cache.add(s)\n\n const ret = normalizeCache[s] as string\n\n let i = cache.size - MAX\n // only prune when we're 10% over the max\n if (i > MAX / 10) {\n for (const s of cache) {\n cache.delete(s)\n delete normalizeCache[s]\n if (--i <= 0) break\n }\n }\n\n return ret\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-windows-path.d.ts","sourceRoot":"","sources":["../../src/normalize-windows-path.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,MAGC,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// on windows, either \ or / are valid directory separators.
|
|
2
|
+
// on unix, \ is a valid character in filenames.
|
|
3
|
+
// so, on windows, and only on windows, we replace all \ chars with /,
|
|
4
|
+
// so that we can use / as our one and only directory separator char.
|
|
5
|
+
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
6
|
+
export const normalizeWindowsPath = platform !== 'win32' ?
|
|
7
|
+
(p) => String(p)
|
|
8
|
+
: (p) => String(p).replaceAll(/\\/g, '/');
|
|
9
|
+
//# sourceMappingURL=normalize-windows-path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalize-windows-path.js","sourceRoot":"","sources":["../../src/normalize-windows-path.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,gDAAgD;AAChD,sEAAsE;AACtE,qEAAqE;AAErE,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,yBAAyB,IAAI,OAAO,CAAC,QAAQ,CAAA;AAE1E,MAAM,CAAC,MAAM,oBAAoB,GAC/B,QAAQ,KAAK,OAAO,CAAC,CAAC;IACpB,CAAC,CAAU,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAC3B,CAAC,CAAC,CAAC,CAAU,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA","sourcesContent":["// on windows, either \\ or / are valid directory separators.\n// on unix, \\ is a valid character in filenames.\n// so, on windows, and only on windows, we replace all \\ chars with /,\n// so that we can use / as our one and only directory separator char.\n\nconst platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform\n\nexport const normalizeWindowsPath: (p: unknown) => string =\n platform !== 'win32' ?\n (p: unknown) => String(p)\n : (p: unknown) => String(p).replaceAll(/\\\\/g, '/')\n"]}
|