pxnpm 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +276 -2
- package/bin/{pxnpm.cjs → pnpm.cjs} +2 -2
- package/bin/{pxnpx.cjs → pnpx.cjs} +1 -1
- package/dist/node_modules/.modules.yaml +92 -98
- package/dist/node_modules/.pnpm/lock.yaml +303 -412
- package/dist/node_modules/{set-blocking → @isaacs/cliui}/LICENSE.txt +1 -1
- package/dist/node_modules/@isaacs/cliui/build/index.cjs +317 -0
- package/dist/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
- package/dist/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
- package/dist/node_modules/@isaacs/cliui/index.mjs +14 -0
- package/dist/node_modules/@isaacs/cliui/package.json +86 -0
- package/dist/node_modules/@npmcli/agent/lib/agents.js +206 -0
- package/dist/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/dist/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/dist/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/dist/node_modules/@npmcli/agent/lib/options.js +86 -0
- package/dist/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/dist/node_modules/@npmcli/agent/package.json +60 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/index.js +1 -1
- package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +2 -2
- package/dist/node_modules/@npmcli/fs/lib/index.js +11 -10
- package/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +4 -6
- package/dist/node_modules/@npmcli/fs/package.json +13 -11
- package/dist/node_modules/@pkgjs/parseargs/LICENSE +201 -0
- package/dist/node_modules/@pkgjs/parseargs/index.js +396 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
- package/dist/node_modules/@pkgjs/parseargs/package.json +36 -0
- package/dist/node_modules/@pkgjs/parseargs/utils.js +198 -0
- package/dist/node_modules/abbrev/lib/index.js +50 -0
- package/dist/node_modules/abbrev/package.json +33 -11
- package/dist/node_modules/agent-base/LICENSE +22 -0
- package/dist/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/dist/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/dist/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/dist/node_modules/agent-base/dist/index.js +175 -0
- package/dist/node_modules/agent-base/dist/index.js.map +1 -0
- package/dist/node_modules/agent-base/package.json +26 -41
- package/dist/node_modules/ansi-regex/index.js +3 -5
- package/dist/node_modules/ansi-regex/license +1 -1
- package/dist/node_modules/ansi-regex/package.json +9 -6
- package/dist/node_modules/ansi-styles/index.js +223 -0
- package/dist/node_modules/ansi-styles/license +9 -0
- package/dist/node_modules/ansi-styles/package.json +54 -0
- package/dist/node_modules/brace-expansion/index.js +86 -84
- package/dist/node_modules/brace-expansion/package.json +3 -4
- package/dist/node_modules/cacache/lib/content/read.js +10 -86
- package/dist/node_modules/cacache/lib/content/rm.js +2 -4
- package/dist/node_modules/cacache/lib/content/write.js +42 -25
- package/dist/node_modules/cacache/lib/entry-index.js +26 -100
- package/dist/node_modules/cacache/lib/get.js +1 -56
- package/dist/node_modules/cacache/lib/index.js +0 -3
- package/dist/node_modules/cacache/lib/memoization.js +2 -2
- package/dist/node_modules/cacache/lib/rm.js +5 -5
- package/dist/node_modules/cacache/lib/util/glob.js +7 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +3 -10
- package/dist/node_modules/cacache/lib/verify.js +31 -31
- package/dist/node_modules/cacache/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/cacache/node_modules/fs-minipass/package.json +54 -0
- package/dist/node_modules/cacache/package.json +23 -25
- package/dist/node_modules/color-convert/LICENSE +21 -0
- package/dist/node_modules/color-convert/conversions.js +839 -0
- package/dist/node_modules/color-convert/index.js +81 -0
- package/dist/node_modules/color-convert/package.json +48 -0
- package/dist/node_modules/color-convert/route.js +97 -0
- package/dist/node_modules/color-name/LICENSE +8 -0
- package/dist/node_modules/color-name/index.js +152 -0
- package/dist/node_modules/color-name/package.json +28 -0
- package/dist/node_modules/{safe-buffer → cross-spawn}/LICENSE +1 -1
- package/dist/node_modules/cross-spawn/index.js +39 -0
- package/dist/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/dist/node_modules/cross-spawn/lib/parse.js +91 -0
- package/dist/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/dist/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/dist/node_modules/cross-spawn/package.json +73 -0
- package/dist/node_modules/debug/package.json +4 -3
- package/dist/node_modules/debug/src/node.js +2 -2
- package/dist/node_modules/eastasianwidth/eastasianwidth.js +311 -0
- package/dist/node_modules/eastasianwidth/package.json +18 -0
- package/dist/node_modules/emoji-regex/RGI_Emoji.js +6 -0
- package/dist/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
- package/dist/node_modules/emoji-regex/es2015/index.js +1 -1
- package/dist/node_modules/emoji-regex/es2015/text.js +1 -1
- package/dist/node_modules/emoji-regex/index.js +1 -1
- package/dist/node_modules/emoji-regex/package.json +13 -11
- package/dist/node_modules/emoji-regex/text.js +1 -1
- package/dist/node_modules/{infer-owner → foreground-child}/LICENSE +1 -1
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.js +121 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/index.js +113 -0
- package/dist/node_modules/foreground-child/dist/esm/index.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
- package/dist/node_modules/foreground-child/package.json +111 -0
- package/dist/node_modules/{cacache/node_modules/minimatch → fs-minipass/node_modules/minipass}/LICENSE +1 -1
- package/dist/node_modules/fs-minipass/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/glob/LICENSE +1 -7
- package/dist/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/dist/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/dist/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
- package/dist/node_modules/glob/dist/esm/bin.mjs +270 -0
- package/dist/node_modules/glob/dist/esm/bin.mjs.map +1 -0
- package/dist/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/glob.js +243 -0
- package/dist/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/dist/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/dist/node_modules/glob/dist/esm/index.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/dist/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +215 -0
- package/dist/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/dist/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/dist/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/dist/node_modules/glob/package.json +79 -35
- package/dist/node_modules/{agentkeepalive → http-proxy-agent}/LICENSE +2 -3
- package/dist/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +142 -8
- package/dist/node_modules/http-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/http-proxy-agent/package.json +22 -32
- package/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +169 -8
- package/dist/node_modules/https-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +47 -12
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -1
- package/dist/node_modules/https-proxy-agent/package.json +25 -31
- package/dist/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.js +1010 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/parse-args.js +50 -0
- package/dist/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/esm/index.js +1000 -0
- package/dist/node_modules/jackspeak/dist/esm/index.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/esm/parse-args.js +26 -0
- package/dist/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -0
- package/dist/node_modules/jackspeak/package.json +95 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/lru-cache/package.json +66 -46
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +28 -1
- package/dist/node_modules/make-fetch-happen/lib/options.js +2 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +13 -3
- package/dist/node_modules/make-fetch-happen/package.json +19 -23
- package/dist/node_modules/minimatch/LICENSE +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +592 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +22 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js +1017 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js +588 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js +18 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/index.js +1001 -0
- package/dist/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js +20 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/dist/node_modules/minimatch/package.json +62 -13
- package/dist/node_modules/minipass/LICENSE +1 -1
- package/dist/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1018 -0
- package/dist/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +62 -36
- package/dist/node_modules/minipass-collect/LICENSE +1 -1
- package/dist/node_modules/minipass-collect/index.js +1 -1
- package/dist/node_modules/minipass-collect/package.json +7 -6
- package/dist/node_modules/minipass-fetch/lib/blob.js +1 -1
- package/dist/node_modules/minipass-fetch/lib/body.js +2 -2
- package/dist/node_modules/minipass-fetch/lib/index.js +16 -4
- package/dist/node_modules/minipass-fetch/lib/request.js +2 -1
- package/dist/node_modules/minipass-fetch/package.json +15 -13
- package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minizlib/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minizlib/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minizlib/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/ms/index.js +1 -1
- package/dist/node_modules/ms/package.json +4 -5
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +27 -29
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +12 -14
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +3 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +4 -2
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +67 -17
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +98 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +5 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +4 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +11 -15
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +4 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +3 -6
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +10 -3
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +1 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +3 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +62 -31
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +47 -52
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +33 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +12 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +2 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +27 -42
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +12 -23
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +4 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +20 -21
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +53 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +21 -20
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +108 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +825 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +84 -5
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/lib/build.js +110 -96
- package/dist/node_modules/node-gyp/lib/clean.js +5 -5
- package/dist/node_modules/node-gyp/lib/configure.js +172 -204
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +14 -11
- package/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +5 -5
- package/dist/node_modules/node-gyp/lib/find-python.js +128 -162
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +260 -133
- package/dist/node_modules/node-gyp/lib/install.js +27 -70
- package/dist/node_modules/node-gyp/lib/list.js +14 -15
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +147 -174
- package/dist/node_modules/node-gyp/lib/process-release.js +22 -23
- package/dist/node_modules/node-gyp/lib/rebuild.js +1 -2
- package/dist/node_modules/node-gyp/lib/remove.js +18 -21
- package/dist/node_modules/node-gyp/lib/util.js +62 -45
- package/dist/node_modules/{cacache/node_modules/glob → node-gyp/node_modules/isexe}/LICENSE +1 -1
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/index.js +46 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/options.d.ts.map +1 -0
- package/dist/node_modules/{@tootallnate/once/dist/types.js → node-gyp/node_modules/isexe/dist/cjs/options.js} +1 -1
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/options.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/posix.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/posix.js +67 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/posix.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/win32.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/win32.js +62 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/win32.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/index.js +16 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/options.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/options.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/options.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/posix.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/posix.js +62 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/posix.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/win32.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/win32.js +57 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/win32.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +96 -0
- package/dist/node_modules/node-gyp/node_modules/which/bin/which.js +52 -0
- package/dist/node_modules/node-gyp/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/node-gyp/node_modules/which/package.json +57 -0
- package/dist/node_modules/node-gyp/package.json +12 -12
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/nopt/bin/nopt.js +7 -34
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +479 -0
- package/dist/node_modules/nopt/lib/nopt.js +21 -506
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +13 -15
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +124 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.js +119 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/dist/node_modules/package-json-from-dist/package.json +68 -0
- package/dist/node_modules/path-key/index.js +16 -0
- package/dist/node_modules/path-key/license +9 -0
- package/dist/node_modules/path-key/package.json +39 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js +1979 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/package.json +89 -0
- package/dist/node_modules/{inflight → proc-log}/LICENSE +1 -1
- package/dist/node_modules/proc-log/lib/index.js +153 -0
- package/dist/node_modules/proc-log/package.json +45 -0
- package/dist/node_modules/semver/bin/semver.js +5 -14
- package/dist/node_modules/semver/classes/range.js +4 -3
- package/dist/node_modules/semver/classes/semver.js +1 -1
- package/dist/node_modules/semver/functions/coerce.js +13 -5
- package/dist/node_modules/semver/internal/lrucache.js +40 -0
- package/dist/node_modules/semver/internal/re.js +7 -2
- package/dist/node_modules/semver/package.json +8 -18
- package/dist/node_modules/shebang-command/index.js +19 -0
- package/dist/node_modules/shebang-command/license +9 -0
- package/dist/node_modules/shebang-command/package.json +34 -0
- package/dist/node_modules/shebang-regex/index.js +2 -0
- package/dist/node_modules/shebang-regex/license +9 -0
- package/dist/node_modules/shebang-regex/package.json +35 -0
- package/dist/node_modules/signal-exit/LICENSE.txt +1 -1
- package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dist/node_modules/signal-exit/package.json +87 -19
- package/dist/node_modules/socks/build/common/helpers.js +5 -1
- package/dist/node_modules/socks/build/common/helpers.js.map +1 -1
- package/dist/node_modules/socks/package.json +1 -1
- package/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +134 -146
- package/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/socks-proxy-agent/package.json +33 -72
- package/dist/node_modules/ssri/lib/index.js +158 -102
- package/dist/node_modules/ssri/package.json +14 -12
- package/dist/node_modules/string-width/index.js +26 -19
- package/dist/node_modules/string-width/license +1 -1
- package/dist/node_modules/string-width/package.json +12 -9
- package/dist/node_modules/string-width-cjs/index.js +47 -0
- package/dist/node_modules/string-width-cjs/license +9 -0
- package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/{delegates/License → string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt} +1 -1
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
- package/dist/node_modules/string-width-cjs/package.json +56 -0
- package/dist/node_modules/strip-ansi/index.js +13 -3
- package/dist/node_modules/strip-ansi/license +1 -1
- package/dist/node_modules/strip-ansi/package.json +10 -7
- package/dist/node_modules/strip-ansi-cjs/index.js +4 -0
- package/dist/node_modules/strip-ansi-cjs/license +9 -0
- package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/strip-ansi-cjs/package.json +54 -0
- package/dist/node_modules/unique-filename/package.json +12 -9
- package/dist/node_modules/unique-slug/package.json +10 -7
- package/dist/node_modules/wrap-ansi/index.js +214 -0
- package/dist/node_modules/wrap-ansi/license +9 -0
- package/dist/node_modules/wrap-ansi/package.json +69 -0
- package/dist/node_modules/wrap-ansi-cjs/index.js +216 -0
- package/dist/node_modules/wrap-ansi-cjs/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +163 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +56 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +50 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +47 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +56 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
- package/dist/node_modules/wrap-ansi-cjs/package.json +62 -0
- package/dist/pnpm.cjs +161888 -155937
- package/dist/pnpmrc +0 -7
- package/dist/{scripts/bash.sh → templates/completion.bash} +2 -1
- package/dist/{scripts/fish.sh → templates/completion.fish} +1 -1
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/worker.js +5462 -9749
- package/package.json +140 -6
- package/dist/node_modules/@gar/promisify/index.js +0 -36
- package/dist/node_modules/@gar/promisify/package.json +0 -32
- package/dist/node_modules/@npmcli/fs/lib/common/owner-sync.js +0 -96
- package/dist/node_modules/@npmcli/fs/lib/common/owner.js +0 -96
- package/dist/node_modules/@npmcli/fs/lib/copy-file.js +0 -16
- package/dist/node_modules/@npmcli/fs/lib/fs.js +0 -14
- package/dist/node_modules/@npmcli/fs/lib/mkdir.js +0 -19
- package/dist/node_modules/@npmcli/fs/lib/mkdtemp.js +0 -23
- package/dist/node_modules/@npmcli/fs/lib/rm/index.js +0 -22
- package/dist/node_modules/@npmcli/fs/lib/rm/polyfill.js +0 -239
- package/dist/node_modules/@npmcli/fs/lib/with-owner-sync.js +0 -21
- package/dist/node_modules/@npmcli/fs/lib/with-owner.js +0 -21
- package/dist/node_modules/@npmcli/fs/lib/write-file.js +0 -14
- package/dist/node_modules/@npmcli/move-file/lib/index.js +0 -185
- package/dist/node_modules/@npmcli/move-file/package.json +0 -47
- package/dist/node_modules/@tootallnate/once/LICENSE +0 -21
- package/dist/node_modules/@tootallnate/once/dist/index.js +0 -24
- package/dist/node_modules/@tootallnate/once/dist/index.js.map +0 -1
- package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js +0 -3
- package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map +0 -1
- package/dist/node_modules/@tootallnate/once/dist/types.js.map +0 -1
- package/dist/node_modules/@tootallnate/once/package.json +0 -52
- package/dist/node_modules/abbrev/abbrev.js +0 -61
- package/dist/node_modules/agent-base/dist/src/index.js +0 -203
- package/dist/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/dist/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/dist/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/dist/node_modules/agentkeepalive/browser.js +0 -5
- package/dist/node_modules/agentkeepalive/index.js +0 -5
- package/dist/node_modules/agentkeepalive/lib/agent.js +0 -402
- package/dist/node_modules/agentkeepalive/lib/constants.js +0 -14
- package/dist/node_modules/agentkeepalive/lib/https_agent.js +0 -51
- package/dist/node_modules/agentkeepalive/package.json +0 -56
- package/dist/node_modules/aproba/LICENSE +0 -14
- package/dist/node_modules/aproba/index.js +0 -105
- package/dist/node_modules/aproba/package.json +0 -35
- package/dist/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/dist/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/dist/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/dist/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/dist/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/dist/node_modules/are-we-there-yet/package.json +0 -56
- package/dist/node_modules/cacache/lib/util/fix-owner.js +0 -145
- package/dist/node_modules/cacache/lib/util/move-file.js +0 -56
- package/dist/node_modules/cacache/node_modules/brace-expansion/LICENSE +0 -21
- package/dist/node_modules/cacache/node_modules/brace-expansion/index.js +0 -203
- package/dist/node_modules/cacache/node_modules/brace-expansion/package.json +0 -46
- package/dist/node_modules/cacache/node_modules/glob/common.js +0 -244
- package/dist/node_modules/cacache/node_modules/glob/glob.js +0 -790
- package/dist/node_modules/cacache/node_modules/glob/package.json +0 -55
- package/dist/node_modules/cacache/node_modules/glob/sync.js +0 -486
- package/dist/node_modules/cacache/node_modules/minimatch/lib/path.js +0 -4
- package/dist/node_modules/cacache/node_modules/minimatch/minimatch.js +0 -944
- package/dist/node_modules/cacache/node_modules/minimatch/package.json +0 -35
- package/dist/node_modules/color-support/bin.js +0 -3
- package/dist/node_modules/color-support/browser.js +0 -14
- package/dist/node_modules/color-support/index.js +0 -134
- package/dist/node_modules/color-support/package.json +0 -36
- package/dist/node_modules/concat-map/LICENSE +0 -18
- package/dist/node_modules/concat-map/README.markdown +0 -62
- package/dist/node_modules/concat-map/index.js +0 -13
- package/dist/node_modules/concat-map/package.json +0 -43
- package/dist/node_modules/console-control-strings/LICENSE +0 -13
- package/dist/node_modules/console-control-strings/README.md~ +0 -140
- package/dist/node_modules/console-control-strings/index.js +0 -125
- package/dist/node_modules/console-control-strings/package.json +0 -27
- package/dist/node_modules/debug/node_modules/ms/index.js +0 -162
- package/dist/node_modules/debug/node_modules/ms/package.json +0 -37
- package/dist/node_modules/delegates/index.js +0 -121
- package/dist/node_modules/delegates/package.json +0 -13
- package/dist/node_modules/fs.realpath/LICENSE +0 -43
- package/dist/node_modules/fs.realpath/index.js +0 -66
- package/dist/node_modules/fs.realpath/old.js +0 -303
- package/dist/node_modules/fs.realpath/package.json +0 -26
- package/dist/node_modules/gauge/lib/base-theme.js +0 -18
- package/dist/node_modules/gauge/lib/error.js +0 -24
- package/dist/node_modules/gauge/lib/has-color.js +0 -4
- package/dist/node_modules/gauge/lib/index.js +0 -289
- package/dist/node_modules/gauge/lib/plumbing.js +0 -50
- package/dist/node_modules/gauge/lib/process.js +0 -3
- package/dist/node_modules/gauge/lib/progress-bar.js +0 -41
- package/dist/node_modules/gauge/lib/render-template.js +0 -222
- package/dist/node_modules/gauge/lib/set-immediate.js +0 -7
- package/dist/node_modules/gauge/lib/set-interval.js +0 -3
- package/dist/node_modules/gauge/lib/spin.js +0 -5
- package/dist/node_modules/gauge/lib/template-item.js +0 -87
- package/dist/node_modules/gauge/lib/theme-set.js +0 -122
- package/dist/node_modules/gauge/lib/themes.js +0 -56
- package/dist/node_modules/gauge/lib/wide-truncate.js +0 -31
- package/dist/node_modules/gauge/package.json +0 -66
- package/dist/node_modules/glob/common.js +0 -238
- package/dist/node_modules/glob/glob.js +0 -790
- package/dist/node_modules/glob/sync.js +0 -486
- package/dist/node_modules/has-unicode/LICENSE +0 -14
- package/dist/node_modules/has-unicode/index.js +0 -16
- package/dist/node_modules/has-unicode/package.json +0 -30
- package/dist/node_modules/http-proxy-agent/dist/agent.js +0 -145
- package/dist/node_modules/http-proxy-agent/dist/agent.js.map +0 -1
- package/dist/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/dist/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/dist/node_modules/humanize-ms/LICENSE +0 -17
- package/dist/node_modules/humanize-ms/index.js +0 -24
- package/dist/node_modules/humanize-ms/package.json +0 -37
- package/dist/node_modules/infer-owner/index.js +0 -71
- package/dist/node_modules/infer-owner/package.json +0 -26
- package/dist/node_modules/inflight/inflight.js +0 -54
- package/dist/node_modules/inflight/package.json +0 -29
- package/dist/node_modules/inherits/LICENSE +0 -16
- package/dist/node_modules/inherits/inherits.js +0 -9
- package/dist/node_modules/inherits/inherits_browser.js +0 -27
- package/dist/node_modules/inherits/package.json +0 -29
- package/dist/node_modules/lru-cache/index.js +0 -1227
- package/dist/node_modules/lru-cache/index.mjs +0 -1227
- package/dist/node_modules/make-fetch-happen/lib/agent.js +0 -214
- package/dist/node_modules/make-fetch-happen/lib/dns.js +0 -49
- package/dist/node_modules/minimatch/minimatch.js +0 -947
- package/dist/node_modules/node-gyp/.github/workflows/release-please-v9.yml +0 -57
- package/dist/node_modules/node-gyp/.github/workflows/release-please.yml +0 -56
- package/dist/node_modules/node-gyp/.github/workflows/tests.yml +0 -59
- package/dist/node_modules/node-gyp/.github/workflows/visual-studio.yml +0 -37
- package/dist/node_modules/node-gyp/gyp/.flake8 +0 -4
- package/dist/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml +0 -36
- package/dist/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml +0 -45
- package/dist/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml +0 -32
- package/dist/node_modules/node-gyp/gyp/.github/workflows/release-please.yml +0 -16
- package/dist/node_modules/node-gyp/gyp/tools/README +0 -15
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/README +0 -5
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +0 -27
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +0 -226
- package/dist/node_modules/node-gyp/gyp/tools/emacs/README +0 -12
- package/dist/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +0 -63
- package/dist/node_modules/node-gyp/gyp/tools/emacs/gyp.el +0 -275
- package/dist/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +0 -7
- package/dist/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +0 -1105
- package/dist/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +0 -1107
- package/dist/node_modules/node-gyp/gyp/tools/graphviz.py +0 -102
- package/dist/node_modules/node-gyp/gyp/tools/pretty_gyp.py +0 -156
- package/dist/node_modules/node-gyp/gyp/tools/pretty_sln.py +0 -181
- package/dist/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +0 -339
- package/dist/node_modules/node-gyp/update-gyp.py +0 -64
- package/dist/node_modules/npmlog/lib/log.js +0 -404
- package/dist/node_modules/npmlog/package.json +0 -51
- package/dist/node_modules/once/once.js +0 -42
- package/dist/node_modules/once/package.json +0 -33
- package/dist/node_modules/path-is-absolute/index.js +0 -20
- package/dist/node_modules/path-is-absolute/license +0 -21
- package/dist/node_modules/path-is-absolute/package.json +0 -43
- package/dist/node_modules/promise-inflight/LICENSE +0 -14
- package/dist/node_modules/promise-inflight/inflight.js +0 -36
- package/dist/node_modules/promise-inflight/package.json +0 -24
- package/dist/node_modules/readable-stream/LICENSE +0 -47
- package/dist/node_modules/readable-stream/errors-browser.js +0 -127
- package/dist/node_modules/readable-stream/errors.js +0 -116
- package/dist/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/dist/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/dist/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/dist/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/dist/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/dist/node_modules/readable-stream/package.json +0 -68
- package/dist/node_modules/readable-stream/readable-browser.js +0 -9
- package/dist/node_modules/readable-stream/readable.js +0 -16
- package/dist/node_modules/rimraf/LICENSE +0 -15
- package/dist/node_modules/rimraf/bin.js +0 -68
- package/dist/node_modules/rimraf/package.json +0 -32
- package/dist/node_modules/rimraf/rimraf.js +0 -360
- package/dist/node_modules/safe-buffer/index.js +0 -65
- package/dist/node_modules/safe-buffer/package.json +0 -51
- package/dist/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
- package/dist/node_modules/semver/node_modules/lru-cache/index.js +0 -334
- package/dist/node_modules/semver/node_modules/lru-cache/package.json +0 -34
- package/dist/node_modules/set-blocking/index.js +0 -7
- package/dist/node_modules/set-blocking/package.json +0 -42
- package/dist/node_modules/signal-exit/index.js +0 -202
- package/dist/node_modules/signal-exit/signals.js +0 -53
- package/dist/node_modules/string_decoder/LICENSE +0 -48
- package/dist/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/dist/node_modules/string_decoder/package.json +0 -34
- package/dist/node_modules/util-deprecate/LICENSE +0 -24
- package/dist/node_modules/util-deprecate/browser.js +0 -67
- package/dist/node_modules/util-deprecate/node.js +0 -6
- package/dist/node_modules/util-deprecate/package.json +0 -27
- package/dist/node_modules/wide-align/LICENSE +0 -14
- package/dist/node_modules/wide-align/align.js +0 -65
- package/dist/node_modules/wide-align/package.json +0 -33
- package/dist/node_modules/wrappy/LICENSE +0 -15
- package/dist/node_modules/wrappy/package.json +0 -29
- package/dist/node_modules/wrappy/wrappy.js +0 -33
- package/dist/scripts/zsh.sh +0 -18
- /package/dist/node_modules/@npmcli/fs/lib/{errors.js → cp/errors.js} +0 -0
- /package/dist/node_modules/{cacache/node_modules/brace-expansion → brace-expansion}/.github/FUNDING.yml +0 -0
- /package/dist/node_modules/{color-support → cacache/node_modules/fs-minipass}/LICENSE +0 -0
- /package/dist/node_modules/{minipass → fs-minipass/node_modules/minipass}/index.js +0 -0
- /package/dist/node_modules/{once → node-gyp/node_modules/which}/LICENSE +0 -0
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
var consoleControl = require('console-control-strings')
|
|
3
|
-
var renderTemplate = require('./render-template.js')
|
|
4
|
-
var validate = require('aproba')
|
|
5
|
-
|
|
6
|
-
var Plumbing = module.exports = function (theme, template, width) {
|
|
7
|
-
if (!width) {
|
|
8
|
-
width = 80
|
|
9
|
-
}
|
|
10
|
-
validate('OAN', [theme, template, width])
|
|
11
|
-
this.showing = false
|
|
12
|
-
this.theme = theme
|
|
13
|
-
this.width = width
|
|
14
|
-
this.template = template
|
|
15
|
-
}
|
|
16
|
-
Plumbing.prototype = {}
|
|
17
|
-
|
|
18
|
-
Plumbing.prototype.setTheme = function (theme) {
|
|
19
|
-
validate('O', [theme])
|
|
20
|
-
this.theme = theme
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
Plumbing.prototype.setTemplate = function (template) {
|
|
24
|
-
validate('A', [template])
|
|
25
|
-
this.template = template
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
Plumbing.prototype.setWidth = function (width) {
|
|
29
|
-
validate('N', [width])
|
|
30
|
-
this.width = width
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
Plumbing.prototype.hide = function () {
|
|
34
|
-
return consoleControl.gotoSOL() + consoleControl.eraseLine()
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
Plumbing.prototype.hideCursor = consoleControl.hideCursor
|
|
38
|
-
|
|
39
|
-
Plumbing.prototype.showCursor = consoleControl.showCursor
|
|
40
|
-
|
|
41
|
-
Plumbing.prototype.show = function (status) {
|
|
42
|
-
var values = Object.create(this.theme)
|
|
43
|
-
for (var key in status) {
|
|
44
|
-
values[key] = status[key]
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return renderTemplate(this.width, this.template, values).trim() +
|
|
48
|
-
consoleControl.color('reset') +
|
|
49
|
-
consoleControl.eraseLine() + consoleControl.gotoSOL()
|
|
50
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
var validate = require('aproba')
|
|
3
|
-
var renderTemplate = require('./render-template.js')
|
|
4
|
-
var wideTruncate = require('./wide-truncate')
|
|
5
|
-
var stringWidth = require('string-width')
|
|
6
|
-
|
|
7
|
-
module.exports = function (theme, width, completed) {
|
|
8
|
-
validate('ONN', [theme, width, completed])
|
|
9
|
-
if (completed < 0) {
|
|
10
|
-
completed = 0
|
|
11
|
-
}
|
|
12
|
-
if (completed > 1) {
|
|
13
|
-
completed = 1
|
|
14
|
-
}
|
|
15
|
-
if (width <= 0) {
|
|
16
|
-
return ''
|
|
17
|
-
}
|
|
18
|
-
var sofar = Math.round(width * completed)
|
|
19
|
-
var rest = width - sofar
|
|
20
|
-
var template = [
|
|
21
|
-
{ type: 'complete', value: repeat(theme.complete, sofar), length: sofar },
|
|
22
|
-
{ type: 'remaining', value: repeat(theme.remaining, rest), length: rest },
|
|
23
|
-
]
|
|
24
|
-
return renderTemplate(width, template, theme)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// lodash's way of repeating
|
|
28
|
-
function repeat (string, width) {
|
|
29
|
-
var result = ''
|
|
30
|
-
var n = width
|
|
31
|
-
do {
|
|
32
|
-
if (n % 2) {
|
|
33
|
-
result += string
|
|
34
|
-
}
|
|
35
|
-
n = Math.floor(n / 2)
|
|
36
|
-
/* eslint no-self-assign: 0 */
|
|
37
|
-
string += string
|
|
38
|
-
} while (n && stringWidth(result) < width)
|
|
39
|
-
|
|
40
|
-
return wideTruncate(result, width)
|
|
41
|
-
}
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
var align = require('wide-align')
|
|
3
|
-
var validate = require('aproba')
|
|
4
|
-
var wideTruncate = require('./wide-truncate')
|
|
5
|
-
var error = require('./error')
|
|
6
|
-
var TemplateItem = require('./template-item')
|
|
7
|
-
|
|
8
|
-
function renderValueWithValues (values) {
|
|
9
|
-
return function (item) {
|
|
10
|
-
return renderValue(item, values)
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
var renderTemplate = module.exports = function (width, template, values) {
|
|
15
|
-
var items = prepareItems(width, template, values)
|
|
16
|
-
var rendered = items.map(renderValueWithValues(values)).join('')
|
|
17
|
-
return align.left(wideTruncate(rendered, width), width)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function preType (item) {
|
|
21
|
-
var cappedTypeName = item.type[0].toUpperCase() + item.type.slice(1)
|
|
22
|
-
return 'pre' + cappedTypeName
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function postType (item) {
|
|
26
|
-
var cappedTypeName = item.type[0].toUpperCase() + item.type.slice(1)
|
|
27
|
-
return 'post' + cappedTypeName
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function hasPreOrPost (item, values) {
|
|
31
|
-
if (!item.type) {
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
return values[preType(item)] || values[postType(item)]
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function generatePreAndPost (baseItem, parentValues) {
|
|
38
|
-
var item = Object.assign({}, baseItem)
|
|
39
|
-
var values = Object.create(parentValues)
|
|
40
|
-
var template = []
|
|
41
|
-
var pre = preType(item)
|
|
42
|
-
var post = postType(item)
|
|
43
|
-
if (values[pre]) {
|
|
44
|
-
template.push({ value: values[pre] })
|
|
45
|
-
values[pre] = null
|
|
46
|
-
}
|
|
47
|
-
item.minLength = null
|
|
48
|
-
item.length = null
|
|
49
|
-
item.maxLength = null
|
|
50
|
-
template.push(item)
|
|
51
|
-
values[item.type] = values[item.type]
|
|
52
|
-
if (values[post]) {
|
|
53
|
-
template.push({ value: values[post] })
|
|
54
|
-
values[post] = null
|
|
55
|
-
}
|
|
56
|
-
return function ($1, $2, length) {
|
|
57
|
-
return renderTemplate(length, template, values)
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function prepareItems (width, template, values) {
|
|
62
|
-
function cloneAndObjectify (item, index, arr) {
|
|
63
|
-
var cloned = new TemplateItem(item, width)
|
|
64
|
-
var type = cloned.type
|
|
65
|
-
if (cloned.value == null) {
|
|
66
|
-
if (!(type in values)) {
|
|
67
|
-
if (cloned.default == null) {
|
|
68
|
-
throw new error.MissingTemplateValue(cloned, values)
|
|
69
|
-
} else {
|
|
70
|
-
cloned.value = cloned.default
|
|
71
|
-
}
|
|
72
|
-
} else {
|
|
73
|
-
cloned.value = values[type]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
if (cloned.value == null || cloned.value === '') {
|
|
77
|
-
return null
|
|
78
|
-
}
|
|
79
|
-
cloned.index = index
|
|
80
|
-
cloned.first = index === 0
|
|
81
|
-
cloned.last = index === arr.length - 1
|
|
82
|
-
if (hasPreOrPost(cloned, values)) {
|
|
83
|
-
cloned.value = generatePreAndPost(cloned, values)
|
|
84
|
-
}
|
|
85
|
-
return cloned
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
var output = template.map(cloneAndObjectify).filter(function (item) {
|
|
89
|
-
return item != null
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
var remainingSpace = width
|
|
93
|
-
var variableCount = output.length
|
|
94
|
-
|
|
95
|
-
function consumeSpace (length) {
|
|
96
|
-
if (length > remainingSpace) {
|
|
97
|
-
length = remainingSpace
|
|
98
|
-
}
|
|
99
|
-
remainingSpace -= length
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
function finishSizing (item, length) {
|
|
103
|
-
if (item.finished) {
|
|
104
|
-
throw new error.Internal('Tried to finish template item that was already finished')
|
|
105
|
-
}
|
|
106
|
-
if (length === Infinity) {
|
|
107
|
-
throw new error.Internal('Length of template item cannot be infinity')
|
|
108
|
-
}
|
|
109
|
-
if (length != null) {
|
|
110
|
-
item.length = length
|
|
111
|
-
}
|
|
112
|
-
item.minLength = null
|
|
113
|
-
item.maxLength = null
|
|
114
|
-
--variableCount
|
|
115
|
-
item.finished = true
|
|
116
|
-
if (item.length == null) {
|
|
117
|
-
item.length = item.getBaseLength()
|
|
118
|
-
}
|
|
119
|
-
if (item.length == null) {
|
|
120
|
-
throw new error.Internal('Finished template items must have a length')
|
|
121
|
-
}
|
|
122
|
-
consumeSpace(item.getLength())
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
output.forEach(function (item) {
|
|
126
|
-
if (!item.kerning) {
|
|
127
|
-
return
|
|
128
|
-
}
|
|
129
|
-
var prevPadRight = item.first ? 0 : output[item.index - 1].padRight
|
|
130
|
-
if (!item.first && prevPadRight < item.kerning) {
|
|
131
|
-
item.padLeft = item.kerning - prevPadRight
|
|
132
|
-
}
|
|
133
|
-
if (!item.last) {
|
|
134
|
-
item.padRight = item.kerning
|
|
135
|
-
}
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
// Finish any that have a fixed (literal or intuited) length
|
|
139
|
-
output.forEach(function (item) {
|
|
140
|
-
if (item.getBaseLength() == null) {
|
|
141
|
-
return
|
|
142
|
-
}
|
|
143
|
-
finishSizing(item)
|
|
144
|
-
})
|
|
145
|
-
|
|
146
|
-
var resized = 0
|
|
147
|
-
var resizing
|
|
148
|
-
var hunkSize
|
|
149
|
-
do {
|
|
150
|
-
resizing = false
|
|
151
|
-
hunkSize = Math.round(remainingSpace / variableCount)
|
|
152
|
-
output.forEach(function (item) {
|
|
153
|
-
if (item.finished) {
|
|
154
|
-
return
|
|
155
|
-
}
|
|
156
|
-
if (!item.maxLength) {
|
|
157
|
-
return
|
|
158
|
-
}
|
|
159
|
-
if (item.getMaxLength() < hunkSize) {
|
|
160
|
-
finishSizing(item, item.maxLength)
|
|
161
|
-
resizing = true
|
|
162
|
-
}
|
|
163
|
-
})
|
|
164
|
-
} while (resizing && resized++ < output.length)
|
|
165
|
-
if (resizing) {
|
|
166
|
-
throw new error.Internal('Resize loop iterated too many times while determining maxLength')
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
resized = 0
|
|
170
|
-
do {
|
|
171
|
-
resizing = false
|
|
172
|
-
hunkSize = Math.round(remainingSpace / variableCount)
|
|
173
|
-
output.forEach(function (item) {
|
|
174
|
-
if (item.finished) {
|
|
175
|
-
return
|
|
176
|
-
}
|
|
177
|
-
if (!item.minLength) {
|
|
178
|
-
return
|
|
179
|
-
}
|
|
180
|
-
if (item.getMinLength() >= hunkSize) {
|
|
181
|
-
finishSizing(item, item.minLength)
|
|
182
|
-
resizing = true
|
|
183
|
-
}
|
|
184
|
-
})
|
|
185
|
-
} while (resizing && resized++ < output.length)
|
|
186
|
-
if (resizing) {
|
|
187
|
-
throw new error.Internal('Resize loop iterated too many times while determining minLength')
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
hunkSize = Math.round(remainingSpace / variableCount)
|
|
191
|
-
output.forEach(function (item) {
|
|
192
|
-
if (item.finished) {
|
|
193
|
-
return
|
|
194
|
-
}
|
|
195
|
-
finishSizing(item, hunkSize)
|
|
196
|
-
})
|
|
197
|
-
|
|
198
|
-
return output
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
function renderFunction (item, values, length) {
|
|
202
|
-
validate('OON', arguments)
|
|
203
|
-
if (item.type) {
|
|
204
|
-
return item.value(values, values[item.type + 'Theme'] || {}, length)
|
|
205
|
-
} else {
|
|
206
|
-
return item.value(values, {}, length)
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
function renderValue (item, values) {
|
|
211
|
-
var length = item.getBaseLength()
|
|
212
|
-
var value = typeof item.value === 'function' ? renderFunction(item, values, length) : item.value
|
|
213
|
-
if (value == null || value === '') {
|
|
214
|
-
return ''
|
|
215
|
-
}
|
|
216
|
-
var alignWith = align[item.align] || align.left
|
|
217
|
-
var leftPadding = item.padLeft ? align.left('', item.padLeft) : ''
|
|
218
|
-
var rightPadding = item.padRight ? align.right('', item.padRight) : ''
|
|
219
|
-
var truncated = wideTruncate(String(value), length)
|
|
220
|
-
var aligned = alignWith(truncated, length)
|
|
221
|
-
return leftPadding + aligned + rightPadding
|
|
222
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
var stringWidth = require('string-width')
|
|
3
|
-
|
|
4
|
-
module.exports = TemplateItem
|
|
5
|
-
|
|
6
|
-
function isPercent (num) {
|
|
7
|
-
if (typeof num !== 'string') {
|
|
8
|
-
return false
|
|
9
|
-
}
|
|
10
|
-
return num.slice(-1) === '%'
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function percent (num) {
|
|
14
|
-
return Number(num.slice(0, -1)) / 100
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
function TemplateItem (values, outputLength) {
|
|
18
|
-
this.overallOutputLength = outputLength
|
|
19
|
-
this.finished = false
|
|
20
|
-
this.type = null
|
|
21
|
-
this.value = null
|
|
22
|
-
this.length = null
|
|
23
|
-
this.maxLength = null
|
|
24
|
-
this.minLength = null
|
|
25
|
-
this.kerning = null
|
|
26
|
-
this.align = 'left'
|
|
27
|
-
this.padLeft = 0
|
|
28
|
-
this.padRight = 0
|
|
29
|
-
this.index = null
|
|
30
|
-
this.first = null
|
|
31
|
-
this.last = null
|
|
32
|
-
if (typeof values === 'string') {
|
|
33
|
-
this.value = values
|
|
34
|
-
} else {
|
|
35
|
-
for (var prop in values) {
|
|
36
|
-
this[prop] = values[prop]
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
// Realize percents
|
|
40
|
-
if (isPercent(this.length)) {
|
|
41
|
-
this.length = Math.round(this.overallOutputLength * percent(this.length))
|
|
42
|
-
}
|
|
43
|
-
if (isPercent(this.minLength)) {
|
|
44
|
-
this.minLength = Math.round(this.overallOutputLength * percent(this.minLength))
|
|
45
|
-
}
|
|
46
|
-
if (isPercent(this.maxLength)) {
|
|
47
|
-
this.maxLength = Math.round(this.overallOutputLength * percent(this.maxLength))
|
|
48
|
-
}
|
|
49
|
-
return this
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
TemplateItem.prototype = {}
|
|
53
|
-
|
|
54
|
-
TemplateItem.prototype.getBaseLength = function () {
|
|
55
|
-
var length = this.length
|
|
56
|
-
if (
|
|
57
|
-
length == null &&
|
|
58
|
-
typeof this.value === 'string' &&
|
|
59
|
-
this.maxLength == null &&
|
|
60
|
-
this.minLength == null
|
|
61
|
-
) {
|
|
62
|
-
length = stringWidth(this.value)
|
|
63
|
-
}
|
|
64
|
-
return length
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
TemplateItem.prototype.getLength = function () {
|
|
68
|
-
var length = this.getBaseLength()
|
|
69
|
-
if (length == null) {
|
|
70
|
-
return null
|
|
71
|
-
}
|
|
72
|
-
return length + this.padLeft + this.padRight
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
TemplateItem.prototype.getMaxLength = function () {
|
|
76
|
-
if (this.maxLength == null) {
|
|
77
|
-
return null
|
|
78
|
-
}
|
|
79
|
-
return this.maxLength + this.padLeft + this.padRight
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
TemplateItem.prototype.getMinLength = function () {
|
|
83
|
-
if (this.minLength == null) {
|
|
84
|
-
return null
|
|
85
|
-
}
|
|
86
|
-
return this.minLength + this.padLeft + this.padRight
|
|
87
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
module.exports = function () {
|
|
4
|
-
return ThemeSetProto.newThemeSet()
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
var ThemeSetProto = {}
|
|
8
|
-
|
|
9
|
-
ThemeSetProto.baseTheme = require('./base-theme.js')
|
|
10
|
-
|
|
11
|
-
ThemeSetProto.newTheme = function (parent, theme) {
|
|
12
|
-
if (!theme) {
|
|
13
|
-
theme = parent
|
|
14
|
-
parent = this.baseTheme
|
|
15
|
-
}
|
|
16
|
-
return Object.assign({}, parent, theme)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
ThemeSetProto.getThemeNames = function () {
|
|
20
|
-
return Object.keys(this.themes)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
ThemeSetProto.addTheme = function (name, parent, theme) {
|
|
24
|
-
this.themes[name] = this.newTheme(parent, theme)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
ThemeSetProto.addToAllThemes = function (theme) {
|
|
28
|
-
var themes = this.themes
|
|
29
|
-
Object.keys(themes).forEach(function (name) {
|
|
30
|
-
Object.assign(themes[name], theme)
|
|
31
|
-
})
|
|
32
|
-
Object.assign(this.baseTheme, theme)
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
ThemeSetProto.getTheme = function (name) {
|
|
36
|
-
if (!this.themes[name]) {
|
|
37
|
-
throw this.newMissingThemeError(name)
|
|
38
|
-
}
|
|
39
|
-
return this.themes[name]
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
ThemeSetProto.setDefault = function (opts, name) {
|
|
43
|
-
if (name == null) {
|
|
44
|
-
name = opts
|
|
45
|
-
opts = {}
|
|
46
|
-
}
|
|
47
|
-
var platform = opts.platform == null ? 'fallback' : opts.platform
|
|
48
|
-
var hasUnicode = !!opts.hasUnicode
|
|
49
|
-
var hasColor = !!opts.hasColor
|
|
50
|
-
if (!this.defaults[platform]) {
|
|
51
|
-
this.defaults[platform] = { true: {}, false: {} }
|
|
52
|
-
}
|
|
53
|
-
this.defaults[platform][hasUnicode][hasColor] = name
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
ThemeSetProto.getDefault = function (opts) {
|
|
57
|
-
if (!opts) {
|
|
58
|
-
opts = {}
|
|
59
|
-
}
|
|
60
|
-
var platformName = opts.platform || process.platform
|
|
61
|
-
var platform = this.defaults[platformName] || this.defaults.fallback
|
|
62
|
-
var hasUnicode = !!opts.hasUnicode
|
|
63
|
-
var hasColor = !!opts.hasColor
|
|
64
|
-
if (!platform) {
|
|
65
|
-
throw this.newMissingDefaultThemeError(platformName, hasUnicode, hasColor)
|
|
66
|
-
}
|
|
67
|
-
if (!platform[hasUnicode][hasColor]) {
|
|
68
|
-
if (hasUnicode && hasColor && platform[!hasUnicode][hasColor]) {
|
|
69
|
-
hasUnicode = false
|
|
70
|
-
} else if (hasUnicode && hasColor && platform[hasUnicode][!hasColor]) {
|
|
71
|
-
hasColor = false
|
|
72
|
-
} else if (hasUnicode && hasColor && platform[!hasUnicode][!hasColor]) {
|
|
73
|
-
hasUnicode = false
|
|
74
|
-
hasColor = false
|
|
75
|
-
} else if (hasUnicode && !hasColor && platform[!hasUnicode][hasColor]) {
|
|
76
|
-
hasUnicode = false
|
|
77
|
-
} else if (!hasUnicode && hasColor && platform[hasUnicode][!hasColor]) {
|
|
78
|
-
hasColor = false
|
|
79
|
-
} else if (platform === this.defaults.fallback) {
|
|
80
|
-
throw this.newMissingDefaultThemeError(platformName, hasUnicode, hasColor)
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (platform[hasUnicode][hasColor]) {
|
|
84
|
-
return this.getTheme(platform[hasUnicode][hasColor])
|
|
85
|
-
} else {
|
|
86
|
-
return this.getDefault(Object.assign({}, opts, { platform: 'fallback' }))
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
ThemeSetProto.newMissingThemeError = function newMissingThemeError (name) {
|
|
91
|
-
var err = new Error('Could not find a gauge theme named "' + name + '"')
|
|
92
|
-
Error.captureStackTrace.call(err, newMissingThemeError)
|
|
93
|
-
err.theme = name
|
|
94
|
-
err.code = 'EMISSINGTHEME'
|
|
95
|
-
return err
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
ThemeSetProto.newMissingDefaultThemeError =
|
|
99
|
-
function newMissingDefaultThemeError (platformName, hasUnicode, hasColor) {
|
|
100
|
-
var err = new Error(
|
|
101
|
-
'Could not find a gauge theme for your platform/unicode/color use combo:\n' +
|
|
102
|
-
' platform = ' + platformName + '\n' +
|
|
103
|
-
' hasUnicode = ' + hasUnicode + '\n' +
|
|
104
|
-
' hasColor = ' + hasColor)
|
|
105
|
-
Error.captureStackTrace.call(err, newMissingDefaultThemeError)
|
|
106
|
-
err.platform = platformName
|
|
107
|
-
err.hasUnicode = hasUnicode
|
|
108
|
-
err.hasColor = hasColor
|
|
109
|
-
err.code = 'EMISSINGTHEME'
|
|
110
|
-
return err
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
ThemeSetProto.newThemeSet = function () {
|
|
114
|
-
var themeset = function (opts) {
|
|
115
|
-
return themeset.getDefault(opts)
|
|
116
|
-
}
|
|
117
|
-
return Object.assign(themeset, ThemeSetProto, {
|
|
118
|
-
themes: Object.assign({}, this.themes),
|
|
119
|
-
baseTheme: Object.assign({}, this.baseTheme),
|
|
120
|
-
defaults: JSON.parse(JSON.stringify(this.defaults || {})),
|
|
121
|
-
})
|
|
122
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
var color = require('console-control-strings').color
|
|
3
|
-
var ThemeSet = require('./theme-set.js')
|
|
4
|
-
|
|
5
|
-
var themes = module.exports = new ThemeSet()
|
|
6
|
-
|
|
7
|
-
themes.addTheme('ASCII', {
|
|
8
|
-
preProgressbar: '[',
|
|
9
|
-
postProgressbar: ']',
|
|
10
|
-
progressbarTheme: {
|
|
11
|
-
complete: '#',
|
|
12
|
-
remaining: '.',
|
|
13
|
-
},
|
|
14
|
-
activityIndicatorTheme: '-\\|/',
|
|
15
|
-
preSubsection: '>',
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
themes.addTheme('colorASCII', themes.getTheme('ASCII'), {
|
|
19
|
-
progressbarTheme: {
|
|
20
|
-
preComplete: color('bgBrightWhite', 'brightWhite'),
|
|
21
|
-
complete: '#',
|
|
22
|
-
postComplete: color('reset'),
|
|
23
|
-
preRemaining: color('bgBrightBlack', 'brightBlack'),
|
|
24
|
-
remaining: '.',
|
|
25
|
-
postRemaining: color('reset'),
|
|
26
|
-
},
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
themes.addTheme('brailleSpinner', {
|
|
30
|
-
preProgressbar: '(',
|
|
31
|
-
postProgressbar: ')',
|
|
32
|
-
progressbarTheme: {
|
|
33
|
-
complete: '#',
|
|
34
|
-
remaining: '⠂',
|
|
35
|
-
},
|
|
36
|
-
activityIndicatorTheme: '⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏',
|
|
37
|
-
preSubsection: '>',
|
|
38
|
-
})
|
|
39
|
-
|
|
40
|
-
themes.addTheme('colorBrailleSpinner', themes.getTheme('brailleSpinner'), {
|
|
41
|
-
progressbarTheme: {
|
|
42
|
-
preComplete: color('bgBrightWhite', 'brightWhite'),
|
|
43
|
-
complete: '#',
|
|
44
|
-
postComplete: color('reset'),
|
|
45
|
-
preRemaining: color('bgBrightBlack', 'brightBlack'),
|
|
46
|
-
remaining: '⠂',
|
|
47
|
-
postRemaining: color('reset'),
|
|
48
|
-
},
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
themes.setDefault({}, 'ASCII')
|
|
52
|
-
themes.setDefault({ hasColor: true }, 'colorASCII')
|
|
53
|
-
themes.setDefault({ platform: 'darwin', hasUnicode: true }, 'brailleSpinner')
|
|
54
|
-
themes.setDefault({ platform: 'darwin', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
|
|
55
|
-
themes.setDefault({ platform: 'linux', hasUnicode: true }, 'brailleSpinner')
|
|
56
|
-
themes.setDefault({ platform: 'linux', hasUnicode: true, hasColor: true }, 'colorBrailleSpinner')
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
var stringWidth = require('string-width')
|
|
3
|
-
var stripAnsi = require('strip-ansi')
|
|
4
|
-
|
|
5
|
-
module.exports = wideTruncate
|
|
6
|
-
|
|
7
|
-
function wideTruncate (str, target) {
|
|
8
|
-
if (stringWidth(str) === 0) {
|
|
9
|
-
return str
|
|
10
|
-
}
|
|
11
|
-
if (target <= 0) {
|
|
12
|
-
return ''
|
|
13
|
-
}
|
|
14
|
-
if (stringWidth(str) <= target) {
|
|
15
|
-
return str
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// We compute the number of bytes of ansi sequences here and add
|
|
19
|
-
// that to our initial truncation to ensure that we don't slice one
|
|
20
|
-
// that we want to keep in half.
|
|
21
|
-
var noAnsi = stripAnsi(str)
|
|
22
|
-
var ansiSize = str.length + noAnsi.length
|
|
23
|
-
var truncated = str.slice(0, target + ansiSize)
|
|
24
|
-
|
|
25
|
-
// we have to shrink the result to account for our ansi sequence buffer
|
|
26
|
-
// (if an ansi sequence was truncated) and double width characters.
|
|
27
|
-
while (stringWidth(truncated) > target) {
|
|
28
|
-
truncated = truncated.slice(0, -1)
|
|
29
|
-
}
|
|
30
|
-
return truncated
|
|
31
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gauge",
|
|
3
|
-
"version": "4.0.4",
|
|
4
|
-
"description": "A terminal based horizontal gauge",
|
|
5
|
-
"main": "lib",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "tap",
|
|
8
|
-
"lint": "eslint \"**/*.js\"",
|
|
9
|
-
"postlint": "template-oss-check",
|
|
10
|
-
"lintfix": "npm run lint -- --fix",
|
|
11
|
-
"preversion": "npm test",
|
|
12
|
-
"postversion": "npm publish",
|
|
13
|
-
"prepublishOnly": "git push origin --follow-tags",
|
|
14
|
-
"snap": "tap",
|
|
15
|
-
"posttest": "npm run lint",
|
|
16
|
-
"template-oss-apply": "template-oss-apply --force"
|
|
17
|
-
},
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "https://github.com/npm/gauge.git"
|
|
21
|
-
},
|
|
22
|
-
"keywords": [
|
|
23
|
-
"progressbar",
|
|
24
|
-
"progress",
|
|
25
|
-
"gauge"
|
|
26
|
-
],
|
|
27
|
-
"author": "GitHub Inc.",
|
|
28
|
-
"license": "ISC",
|
|
29
|
-
"bugs": {
|
|
30
|
-
"url": "https://github.com/npm/gauge/issues"
|
|
31
|
-
},
|
|
32
|
-
"homepage": "https://github.com/npm/gauge",
|
|
33
|
-
"dependencies": {
|
|
34
|
-
"aproba": "^1.0.3 || ^2.0.0",
|
|
35
|
-
"color-support": "^1.1.3",
|
|
36
|
-
"console-control-strings": "^1.1.0",
|
|
37
|
-
"has-unicode": "^2.0.1",
|
|
38
|
-
"signal-exit": "^3.0.7",
|
|
39
|
-
"string-width": "^4.2.3",
|
|
40
|
-
"strip-ansi": "^6.0.1",
|
|
41
|
-
"wide-align": "^1.1.5"
|
|
42
|
-
},
|
|
43
|
-
"devDependencies": {
|
|
44
|
-
"@npmcli/eslint-config": "^3.0.1",
|
|
45
|
-
"@npmcli/template-oss": "3.2.0",
|
|
46
|
-
"readable-stream": "^3.6.0",
|
|
47
|
-
"tap": "^16.0.1"
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"bin/",
|
|
51
|
-
"lib/"
|
|
52
|
-
],
|
|
53
|
-
"engines": {
|
|
54
|
-
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
|
|
55
|
-
},
|
|
56
|
-
"tap": {
|
|
57
|
-
"branches": 79,
|
|
58
|
-
"statements": 89,
|
|
59
|
-
"functions": 92,
|
|
60
|
-
"lines": 90
|
|
61
|
-
},
|
|
62
|
-
"templateOSS": {
|
|
63
|
-
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
64
|
-
"version": "3.2.0"
|
|
65
|
-
}
|
|
66
|
-
}
|