pxnpm 4.1.16 → 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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@isaacs/cliui",
|
|
3
|
+
"version": "8.0.2",
|
|
4
|
+
"description": "easily create complex multi-column command-line-interfaces",
|
|
5
|
+
"main": "build/index.cjs",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": [
|
|
8
|
+
{
|
|
9
|
+
"import": "./index.mjs",
|
|
10
|
+
"require": "./build/index.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./build/index.cjs"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"module": "./index.mjs",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"check": "standardx '**/*.ts' && standardx '**/*.js' && standardx '**/*.cjs'",
|
|
19
|
+
"fix": "standardx --fix '**/*.ts' && standardx --fix '**/*.js' && standardx --fix '**/*.cjs'",
|
|
20
|
+
"pretest": "rimraf build && tsc -p tsconfig.test.json && cross-env NODE_ENV=test npm run build:cjs",
|
|
21
|
+
"test": "c8 mocha ./test/*.cjs",
|
|
22
|
+
"test:esm": "c8 mocha ./test/**/*.mjs",
|
|
23
|
+
"postest": "check",
|
|
24
|
+
"coverage": "c8 report --check-coverage",
|
|
25
|
+
"precompile": "rimraf build",
|
|
26
|
+
"compile": "tsc",
|
|
27
|
+
"postcompile": "npm run build:cjs",
|
|
28
|
+
"build:cjs": "rollup -c",
|
|
29
|
+
"prepare": "npm run compile"
|
|
30
|
+
},
|
|
31
|
+
"repository": "yargs/cliui",
|
|
32
|
+
"standard": {
|
|
33
|
+
"ignore": [
|
|
34
|
+
"**/example/**"
|
|
35
|
+
],
|
|
36
|
+
"globals": [
|
|
37
|
+
"it"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"keywords": [
|
|
41
|
+
"cli",
|
|
42
|
+
"command-line",
|
|
43
|
+
"layout",
|
|
44
|
+
"design",
|
|
45
|
+
"console",
|
|
46
|
+
"wrap",
|
|
47
|
+
"table"
|
|
48
|
+
],
|
|
49
|
+
"author": "Ben Coe <ben@npmjs.com>",
|
|
50
|
+
"license": "ISC",
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"string-width": "^5.1.2",
|
|
53
|
+
"string-width-cjs": "npm:string-width@^4.2.0",
|
|
54
|
+
"strip-ansi": "^7.0.1",
|
|
55
|
+
"strip-ansi-cjs": "npm:strip-ansi@^6.0.1",
|
|
56
|
+
"wrap-ansi": "^8.1.0",
|
|
57
|
+
"wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@types/node": "^14.0.27",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
62
|
+
"@typescript-eslint/parser": "^4.0.0",
|
|
63
|
+
"c8": "^7.3.0",
|
|
64
|
+
"chai": "^4.2.0",
|
|
65
|
+
"chalk": "^4.1.0",
|
|
66
|
+
"cross-env": "^7.0.2",
|
|
67
|
+
"eslint": "^7.6.0",
|
|
68
|
+
"eslint-plugin-import": "^2.22.0",
|
|
69
|
+
"eslint-plugin-node": "^11.1.0",
|
|
70
|
+
"gts": "^3.0.0",
|
|
71
|
+
"mocha": "^10.0.0",
|
|
72
|
+
"rimraf": "^3.0.2",
|
|
73
|
+
"rollup": "^2.23.1",
|
|
74
|
+
"rollup-plugin-ts": "^3.0.2",
|
|
75
|
+
"standardx": "^7.0.0",
|
|
76
|
+
"typescript": "^4.0.0"
|
|
77
|
+
},
|
|
78
|
+
"files": [
|
|
79
|
+
"build",
|
|
80
|
+
"index.mjs",
|
|
81
|
+
"!*.d.ts"
|
|
82
|
+
],
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=12"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const net = require('net')
|
|
4
|
+
const tls = require('tls')
|
|
5
|
+
const { once } = require('events')
|
|
6
|
+
const timers = require('timers/promises')
|
|
7
|
+
const { normalizeOptions, cacheOptions } = require('./options')
|
|
8
|
+
const { getProxy, getProxyAgent, proxyCache } = require('./proxy.js')
|
|
9
|
+
const Errors = require('./errors.js')
|
|
10
|
+
const { Agent: AgentBase } = require('agent-base')
|
|
11
|
+
|
|
12
|
+
module.exports = class Agent extends AgentBase {
|
|
13
|
+
#options
|
|
14
|
+
#timeouts
|
|
15
|
+
#proxy
|
|
16
|
+
#noProxy
|
|
17
|
+
#ProxyAgent
|
|
18
|
+
|
|
19
|
+
constructor (options = {}) {
|
|
20
|
+
const { timeouts, proxy, noProxy, ...normalizedOptions } = normalizeOptions(options)
|
|
21
|
+
|
|
22
|
+
super(normalizedOptions)
|
|
23
|
+
|
|
24
|
+
this.#options = normalizedOptions
|
|
25
|
+
this.#timeouts = timeouts
|
|
26
|
+
|
|
27
|
+
if (proxy) {
|
|
28
|
+
this.#proxy = new URL(proxy)
|
|
29
|
+
this.#noProxy = noProxy
|
|
30
|
+
this.#ProxyAgent = getProxyAgent(proxy)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
get proxy () {
|
|
35
|
+
return this.#proxy ? { url: this.#proxy } : {}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#getProxy (options) {
|
|
39
|
+
if (!this.#proxy) {
|
|
40
|
+
return
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const proxy = getProxy(`${options.protocol}//${options.host}:${options.port}`, {
|
|
44
|
+
proxy: this.#proxy,
|
|
45
|
+
noProxy: this.#noProxy,
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
if (!proxy) {
|
|
49
|
+
return
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const cacheKey = cacheOptions({
|
|
53
|
+
...options,
|
|
54
|
+
...this.#options,
|
|
55
|
+
timeouts: this.#timeouts,
|
|
56
|
+
proxy,
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
if (proxyCache.has(cacheKey)) {
|
|
60
|
+
return proxyCache.get(cacheKey)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let ProxyAgent = this.#ProxyAgent
|
|
64
|
+
if (Array.isArray(ProxyAgent)) {
|
|
65
|
+
ProxyAgent = this.isSecureEndpoint(options) ? ProxyAgent[1] : ProxyAgent[0]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const proxyAgent = new ProxyAgent(proxy, {
|
|
69
|
+
...this.#options,
|
|
70
|
+
socketOptions: { family: this.#options.family },
|
|
71
|
+
})
|
|
72
|
+
proxyCache.set(cacheKey, proxyAgent)
|
|
73
|
+
|
|
74
|
+
return proxyAgent
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// takes an array of promises and races them against the connection timeout
|
|
78
|
+
// which will throw the necessary error if it is hit. This will return the
|
|
79
|
+
// result of the promise race.
|
|
80
|
+
async #timeoutConnection ({ promises, options, timeout }, ac = new AbortController()) {
|
|
81
|
+
if (timeout) {
|
|
82
|
+
const connectionTimeout = timers.setTimeout(timeout, null, { signal: ac.signal })
|
|
83
|
+
.then(() => {
|
|
84
|
+
throw new Errors.ConnectionTimeoutError(`${options.host}:${options.port}`)
|
|
85
|
+
}).catch((err) => {
|
|
86
|
+
if (err.name === 'AbortError') {
|
|
87
|
+
return
|
|
88
|
+
}
|
|
89
|
+
throw err
|
|
90
|
+
})
|
|
91
|
+
promises.push(connectionTimeout)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
let result
|
|
95
|
+
try {
|
|
96
|
+
result = await Promise.race(promises)
|
|
97
|
+
ac.abort()
|
|
98
|
+
} catch (err) {
|
|
99
|
+
ac.abort()
|
|
100
|
+
throw err
|
|
101
|
+
}
|
|
102
|
+
return result
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
async connect (request, options) {
|
|
106
|
+
// if the connection does not have its own lookup function
|
|
107
|
+
// set, then use the one from our options
|
|
108
|
+
options.lookup ??= this.#options.lookup
|
|
109
|
+
|
|
110
|
+
let socket
|
|
111
|
+
let timeout = this.#timeouts.connection
|
|
112
|
+
const isSecureEndpoint = this.isSecureEndpoint(options)
|
|
113
|
+
|
|
114
|
+
const proxy = this.#getProxy(options)
|
|
115
|
+
if (proxy) {
|
|
116
|
+
// some of the proxies will wait for the socket to fully connect before
|
|
117
|
+
// returning so we have to await this while also racing it against the
|
|
118
|
+
// connection timeout.
|
|
119
|
+
const start = Date.now()
|
|
120
|
+
socket = await this.#timeoutConnection({
|
|
121
|
+
options,
|
|
122
|
+
timeout,
|
|
123
|
+
promises: [proxy.connect(request, options)],
|
|
124
|
+
})
|
|
125
|
+
// see how much time proxy.connect took and subtract it from
|
|
126
|
+
// the timeout
|
|
127
|
+
if (timeout) {
|
|
128
|
+
timeout = timeout - (Date.now() - start)
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
socket = (isSecureEndpoint ? tls : net).connect(options)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
socket.setKeepAlive(this.keepAlive, this.keepAliveMsecs)
|
|
135
|
+
socket.setNoDelay(this.keepAlive)
|
|
136
|
+
|
|
137
|
+
const abortController = new AbortController()
|
|
138
|
+
const { signal } = abortController
|
|
139
|
+
|
|
140
|
+
const connectPromise = socket[isSecureEndpoint ? 'secureConnecting' : 'connecting']
|
|
141
|
+
? once(socket, isSecureEndpoint ? 'secureConnect' : 'connect', { signal })
|
|
142
|
+
: Promise.resolve()
|
|
143
|
+
|
|
144
|
+
await this.#timeoutConnection({
|
|
145
|
+
options,
|
|
146
|
+
timeout,
|
|
147
|
+
promises: [
|
|
148
|
+
connectPromise,
|
|
149
|
+
once(socket, 'error', { signal }).then((err) => {
|
|
150
|
+
throw err[0]
|
|
151
|
+
}),
|
|
152
|
+
],
|
|
153
|
+
}, abortController)
|
|
154
|
+
|
|
155
|
+
if (this.#timeouts.idle) {
|
|
156
|
+
socket.setTimeout(this.#timeouts.idle, () => {
|
|
157
|
+
socket.destroy(new Errors.IdleTimeoutError(`${options.host}:${options.port}`))
|
|
158
|
+
})
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return socket
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
addRequest (request, options) {
|
|
165
|
+
const proxy = this.#getProxy(options)
|
|
166
|
+
// it would be better to call proxy.addRequest here but this causes the
|
|
167
|
+
// http-proxy-agent to call its super.addRequest which causes the request
|
|
168
|
+
// to be added to the agent twice. since we only support 3 agents
|
|
169
|
+
// currently (see the required agents in proxy.js) we have manually
|
|
170
|
+
// checked that the only public methods we need to call are called in the
|
|
171
|
+
// next block. this could change in the future and presumably we would get
|
|
172
|
+
// failing tests until we have properly called the necessary methods on
|
|
173
|
+
// each of our proxy agents
|
|
174
|
+
if (proxy?.setRequestProps) {
|
|
175
|
+
proxy.setRequestProps(request, options)
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
request.setHeader('connection', this.keepAlive ? 'keep-alive' : 'close')
|
|
179
|
+
|
|
180
|
+
if (this.#timeouts.response) {
|
|
181
|
+
let responseTimeout
|
|
182
|
+
request.once('finish', () => {
|
|
183
|
+
setTimeout(() => {
|
|
184
|
+
request.destroy(new Errors.ResponseTimeoutError(request, this.#proxy))
|
|
185
|
+
}, this.#timeouts.response)
|
|
186
|
+
})
|
|
187
|
+
request.once('response', () => {
|
|
188
|
+
clearTimeout(responseTimeout)
|
|
189
|
+
})
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
if (this.#timeouts.transfer) {
|
|
193
|
+
let transferTimeout
|
|
194
|
+
request.once('response', (res) => {
|
|
195
|
+
setTimeout(() => {
|
|
196
|
+
res.destroy(new Errors.TransferTimeoutError(request, this.#proxy))
|
|
197
|
+
}, this.#timeouts.transfer)
|
|
198
|
+
res.once('close', () => {
|
|
199
|
+
clearTimeout(transferTimeout)
|
|
200
|
+
})
|
|
201
|
+
})
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
return super.addRequest(request, options)
|
|
205
|
+
}
|
|
206
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { LRUCache } = require('lru-cache')
|
|
4
|
+
const dns = require('dns')
|
|
5
|
+
|
|
6
|
+
// this is a factory so that each request can have its own opts (i.e. ttl)
|
|
7
|
+
// while still sharing the cache across all requests
|
|
8
|
+
const cache = new LRUCache({ max: 50 })
|
|
9
|
+
|
|
10
|
+
const getOptions = ({
|
|
11
|
+
family = 0,
|
|
12
|
+
hints = dns.ADDRCONFIG,
|
|
13
|
+
all = false,
|
|
14
|
+
verbatim = undefined,
|
|
15
|
+
ttl = 5 * 60 * 1000,
|
|
16
|
+
lookup = dns.lookup,
|
|
17
|
+
}) => ({
|
|
18
|
+
// hints and lookup are returned since both are top level properties to (net|tls).connect
|
|
19
|
+
hints,
|
|
20
|
+
lookup: (hostname, ...args) => {
|
|
21
|
+
const callback = args.pop() // callback is always last arg
|
|
22
|
+
const lookupOptions = args[0] ?? {}
|
|
23
|
+
|
|
24
|
+
const options = {
|
|
25
|
+
family,
|
|
26
|
+
hints,
|
|
27
|
+
all,
|
|
28
|
+
verbatim,
|
|
29
|
+
...(typeof lookupOptions === 'number' ? { family: lookupOptions } : lookupOptions),
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const key = JSON.stringify({ hostname, ...options })
|
|
33
|
+
|
|
34
|
+
if (cache.has(key)) {
|
|
35
|
+
const cached = cache.get(key)
|
|
36
|
+
return process.nextTick(callback, null, ...cached)
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
lookup(hostname, options, (err, ...result) => {
|
|
40
|
+
if (err) {
|
|
41
|
+
return callback(err)
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
cache.set(key, result, { ttl })
|
|
45
|
+
return callback(null, ...result)
|
|
46
|
+
})
|
|
47
|
+
},
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
module.exports = {
|
|
51
|
+
cache,
|
|
52
|
+
getOptions,
|
|
53
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
class InvalidProxyProtocolError extends Error {
|
|
4
|
+
constructor (url) {
|
|
5
|
+
super(`Invalid protocol \`${url.protocol}\` connecting to proxy \`${url.host}\``)
|
|
6
|
+
this.code = 'EINVALIDPROXY'
|
|
7
|
+
this.proxy = url
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class ConnectionTimeoutError extends Error {
|
|
12
|
+
constructor (host) {
|
|
13
|
+
super(`Timeout connecting to host \`${host}\``)
|
|
14
|
+
this.code = 'ECONNECTIONTIMEOUT'
|
|
15
|
+
this.host = host
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class IdleTimeoutError extends Error {
|
|
20
|
+
constructor (host) {
|
|
21
|
+
super(`Idle timeout reached for host \`${host}\``)
|
|
22
|
+
this.code = 'EIDLETIMEOUT'
|
|
23
|
+
this.host = host
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
class ResponseTimeoutError extends Error {
|
|
28
|
+
constructor (request, proxy) {
|
|
29
|
+
let msg = 'Response timeout '
|
|
30
|
+
if (proxy) {
|
|
31
|
+
msg += `from proxy \`${proxy.host}\` `
|
|
32
|
+
}
|
|
33
|
+
msg += `connecting to host \`${request.host}\``
|
|
34
|
+
super(msg)
|
|
35
|
+
this.code = 'ERESPONSETIMEOUT'
|
|
36
|
+
this.proxy = proxy
|
|
37
|
+
this.request = request
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class TransferTimeoutError extends Error {
|
|
42
|
+
constructor (request, proxy) {
|
|
43
|
+
let msg = 'Transfer timeout '
|
|
44
|
+
if (proxy) {
|
|
45
|
+
msg += `from proxy \`${proxy.host}\` `
|
|
46
|
+
}
|
|
47
|
+
msg += `for \`${request.host}\``
|
|
48
|
+
super(msg)
|
|
49
|
+
this.code = 'ETRANSFERTIMEOUT'
|
|
50
|
+
this.proxy = proxy
|
|
51
|
+
this.request = request
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
module.exports = {
|
|
56
|
+
InvalidProxyProtocolError,
|
|
57
|
+
ConnectionTimeoutError,
|
|
58
|
+
IdleTimeoutError,
|
|
59
|
+
ResponseTimeoutError,
|
|
60
|
+
TransferTimeoutError,
|
|
61
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { LRUCache } = require('lru-cache')
|
|
4
|
+
const { normalizeOptions, cacheOptions } = require('./options')
|
|
5
|
+
const { getProxy, proxyCache } = require('./proxy.js')
|
|
6
|
+
const dns = require('./dns.js')
|
|
7
|
+
const Agent = require('./agents.js')
|
|
8
|
+
|
|
9
|
+
const agentCache = new LRUCache({ max: 20 })
|
|
10
|
+
|
|
11
|
+
const getAgent = (url, { agent, proxy, noProxy, ...options } = {}) => {
|
|
12
|
+
// false has meaning so this can't be a simple truthiness check
|
|
13
|
+
if (agent != null) {
|
|
14
|
+
return agent
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
url = new URL(url)
|
|
18
|
+
|
|
19
|
+
const proxyForUrl = getProxy(url, { proxy, noProxy })
|
|
20
|
+
const normalizedOptions = {
|
|
21
|
+
...normalizeOptions(options),
|
|
22
|
+
proxy: proxyForUrl,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const cacheKey = cacheOptions({
|
|
26
|
+
...normalizedOptions,
|
|
27
|
+
secureEndpoint: url.protocol === 'https:',
|
|
28
|
+
})
|
|
29
|
+
|
|
30
|
+
if (agentCache.has(cacheKey)) {
|
|
31
|
+
return agentCache.get(cacheKey)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const newAgent = new Agent(normalizedOptions)
|
|
35
|
+
agentCache.set(cacheKey, newAgent)
|
|
36
|
+
|
|
37
|
+
return newAgent
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
module.exports = {
|
|
41
|
+
getAgent,
|
|
42
|
+
Agent,
|
|
43
|
+
// these are exported for backwards compatability
|
|
44
|
+
HttpAgent: Agent,
|
|
45
|
+
HttpsAgent: Agent,
|
|
46
|
+
cache: {
|
|
47
|
+
proxy: proxyCache,
|
|
48
|
+
agent: agentCache,
|
|
49
|
+
dns: dns.cache,
|
|
50
|
+
clear: () => {
|
|
51
|
+
proxyCache.clear()
|
|
52
|
+
agentCache.clear()
|
|
53
|
+
dns.cache.clear()
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const dns = require('./dns')
|
|
4
|
+
|
|
5
|
+
const normalizeOptions = (opts) => {
|
|
6
|
+
const family = parseInt(opts.family ?? '0', 10)
|
|
7
|
+
const keepAlive = opts.keepAlive ?? true
|
|
8
|
+
|
|
9
|
+
const normalized = {
|
|
10
|
+
// nodejs http agent options. these are all the defaults
|
|
11
|
+
// but kept here to increase the likelihood of cache hits
|
|
12
|
+
// https://nodejs.org/api/http.html#new-agentoptions
|
|
13
|
+
keepAliveMsecs: keepAlive ? 1000 : undefined,
|
|
14
|
+
maxSockets: opts.maxSockets ?? 15,
|
|
15
|
+
maxTotalSockets: Infinity,
|
|
16
|
+
maxFreeSockets: keepAlive ? 256 : undefined,
|
|
17
|
+
scheduling: 'fifo',
|
|
18
|
+
// then spread the rest of the options
|
|
19
|
+
...opts,
|
|
20
|
+
// we already set these to their defaults that we want
|
|
21
|
+
family,
|
|
22
|
+
keepAlive,
|
|
23
|
+
// our custom timeout options
|
|
24
|
+
timeouts: {
|
|
25
|
+
// the standard timeout option is mapped to our idle timeout
|
|
26
|
+
// and then deleted below
|
|
27
|
+
idle: opts.timeout ?? 0,
|
|
28
|
+
connection: 0,
|
|
29
|
+
response: 0,
|
|
30
|
+
transfer: 0,
|
|
31
|
+
...opts.timeouts,
|
|
32
|
+
},
|
|
33
|
+
// get the dns options that go at the top level of socket connection
|
|
34
|
+
...dns.getOptions({ family, ...opts.dns }),
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// remove timeout since we already used it to set our own idle timeout
|
|
38
|
+
delete normalized.timeout
|
|
39
|
+
|
|
40
|
+
return normalized
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const createKey = (obj) => {
|
|
44
|
+
let key = ''
|
|
45
|
+
const sorted = Object.entries(obj).sort((a, b) => a[0] - b[0])
|
|
46
|
+
for (let [k, v] of sorted) {
|
|
47
|
+
if (v == null) {
|
|
48
|
+
v = 'null'
|
|
49
|
+
} else if (v instanceof URL) {
|
|
50
|
+
v = v.toString()
|
|
51
|
+
} else if (typeof v === 'object') {
|
|
52
|
+
v = createKey(v)
|
|
53
|
+
}
|
|
54
|
+
key += `${k}:${v}:`
|
|
55
|
+
}
|
|
56
|
+
return key
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const cacheOptions = ({ secureEndpoint, ...options }) => createKey({
|
|
60
|
+
secureEndpoint: !!secureEndpoint,
|
|
61
|
+
// socket connect options
|
|
62
|
+
family: options.family,
|
|
63
|
+
hints: options.hints,
|
|
64
|
+
localAddress: options.localAddress,
|
|
65
|
+
// tls specific connect options
|
|
66
|
+
strictSsl: secureEndpoint ? !!options.rejectUnauthorized : false,
|
|
67
|
+
ca: secureEndpoint ? options.ca : null,
|
|
68
|
+
cert: secureEndpoint ? options.cert : null,
|
|
69
|
+
key: secureEndpoint ? options.key : null,
|
|
70
|
+
// http agent options
|
|
71
|
+
keepAlive: options.keepAlive,
|
|
72
|
+
keepAliveMsecs: options.keepAliveMsecs,
|
|
73
|
+
maxSockets: options.maxSockets,
|
|
74
|
+
maxTotalSockets: options.maxTotalSockets,
|
|
75
|
+
maxFreeSockets: options.maxFreeSockets,
|
|
76
|
+
scheduling: options.scheduling,
|
|
77
|
+
// timeout options
|
|
78
|
+
timeouts: options.timeouts,
|
|
79
|
+
// proxy
|
|
80
|
+
proxy: options.proxy,
|
|
81
|
+
})
|
|
82
|
+
|
|
83
|
+
module.exports = {
|
|
84
|
+
normalizeOptions,
|
|
85
|
+
cacheOptions,
|
|
86
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { HttpProxyAgent } = require('http-proxy-agent')
|
|
4
|
+
const { HttpsProxyAgent } = require('https-proxy-agent')
|
|
5
|
+
const { SocksProxyAgent } = require('socks-proxy-agent')
|
|
6
|
+
const { LRUCache } = require('lru-cache')
|
|
7
|
+
const { InvalidProxyProtocolError } = require('./errors.js')
|
|
8
|
+
|
|
9
|
+
const PROXY_CACHE = new LRUCache({ max: 20 })
|
|
10
|
+
|
|
11
|
+
const SOCKS_PROTOCOLS = new Set(SocksProxyAgent.protocols)
|
|
12
|
+
|
|
13
|
+
const PROXY_ENV_KEYS = new Set(['https_proxy', 'http_proxy', 'proxy', 'no_proxy'])
|
|
14
|
+
|
|
15
|
+
const PROXY_ENV = Object.entries(process.env).reduce((acc, [key, value]) => {
|
|
16
|
+
key = key.toLowerCase()
|
|
17
|
+
if (PROXY_ENV_KEYS.has(key)) {
|
|
18
|
+
acc[key] = value
|
|
19
|
+
}
|
|
20
|
+
return acc
|
|
21
|
+
}, {})
|
|
22
|
+
|
|
23
|
+
const getProxyAgent = (url) => {
|
|
24
|
+
url = new URL(url)
|
|
25
|
+
|
|
26
|
+
const protocol = url.protocol.slice(0, -1)
|
|
27
|
+
if (SOCKS_PROTOCOLS.has(protocol)) {
|
|
28
|
+
return SocksProxyAgent
|
|
29
|
+
}
|
|
30
|
+
if (protocol === 'https' || protocol === 'http') {
|
|
31
|
+
return [HttpProxyAgent, HttpsProxyAgent]
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
throw new InvalidProxyProtocolError(url)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const isNoProxy = (url, noProxy) => {
|
|
38
|
+
if (typeof noProxy === 'string') {
|
|
39
|
+
noProxy = noProxy.split(',').map((p) => p.trim()).filter(Boolean)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (!noProxy || !noProxy.length) {
|
|
43
|
+
return false
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const hostSegments = url.hostname.split('.').reverse()
|
|
47
|
+
|
|
48
|
+
return noProxy.some((no) => {
|
|
49
|
+
const noSegments = no.split('.').filter(Boolean).reverse()
|
|
50
|
+
if (!noSegments.length) {
|
|
51
|
+
return false
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
for (let i = 0; i < noSegments.length; i++) {
|
|
55
|
+
if (hostSegments[i] !== noSegments[i]) {
|
|
56
|
+
return false
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return true
|
|
61
|
+
})
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const getProxy = (url, { proxy, noProxy }) => {
|
|
65
|
+
url = new URL(url)
|
|
66
|
+
|
|
67
|
+
if (!proxy) {
|
|
68
|
+
proxy = url.protocol === 'https:'
|
|
69
|
+
? PROXY_ENV.https_proxy
|
|
70
|
+
: PROXY_ENV.https_proxy || PROXY_ENV.http_proxy || PROXY_ENV.proxy
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (!noProxy) {
|
|
74
|
+
noProxy = PROXY_ENV.no_proxy
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (!proxy || isNoProxy(url, noProxy)) {
|
|
78
|
+
return null
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return new URL(proxy)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
module.exports = {
|
|
85
|
+
getProxyAgent,
|
|
86
|
+
getProxy,
|
|
87
|
+
proxyCache: PROXY_CACHE,
|
|
88
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@npmcli/agent",
|
|
3
|
+
"version": "2.2.2",
|
|
4
|
+
"description": "the http/https agent used by the npm cli",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"gencerts": "bash scripts/create-cert.sh",
|
|
8
|
+
"test": "tap",
|
|
9
|
+
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
|
|
10
|
+
"postlint": "template-oss-check",
|
|
11
|
+
"template-oss-apply": "template-oss-apply --force",
|
|
12
|
+
"lintfix": "npm run lint -- --fix",
|
|
13
|
+
"snap": "tap",
|
|
14
|
+
"posttest": "npm run lint"
|
|
15
|
+
},
|
|
16
|
+
"author": "GitHub Inc.",
|
|
17
|
+
"license": "ISC",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/npm/agent/issues"
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://github.com/npm/agent#readme",
|
|
22
|
+
"files": [
|
|
23
|
+
"bin/",
|
|
24
|
+
"lib/"
|
|
25
|
+
],
|
|
26
|
+
"engines": {
|
|
27
|
+
"node": "^16.14.0 || >=18.0.0"
|
|
28
|
+
},
|
|
29
|
+
"templateOSS": {
|
|
30
|
+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
31
|
+
"version": "4.21.3",
|
|
32
|
+
"publish": "true"
|
|
33
|
+
},
|
|
34
|
+
"dependencies": {
|
|
35
|
+
"agent-base": "^7.1.0",
|
|
36
|
+
"http-proxy-agent": "^7.0.0",
|
|
37
|
+
"https-proxy-agent": "^7.0.1",
|
|
38
|
+
"lru-cache": "^10.0.1",
|
|
39
|
+
"socks-proxy-agent": "^8.0.3"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@npmcli/eslint-config": "^4.0.0",
|
|
43
|
+
"@npmcli/template-oss": "4.21.3",
|
|
44
|
+
"minipass-fetch": "^3.0.3",
|
|
45
|
+
"nock": "^13.2.7",
|
|
46
|
+
"semver": "^7.5.4",
|
|
47
|
+
"simple-socks": "^3.1.0",
|
|
48
|
+
"tap": "^16.3.0"
|
|
49
|
+
},
|
|
50
|
+
"repository": {
|
|
51
|
+
"type": "git",
|
|
52
|
+
"url": "https://github.com/npm/agent.git"
|
|
53
|
+
},
|
|
54
|
+
"tap": {
|
|
55
|
+
"nyc-arg": [
|
|
56
|
+
"--exclude",
|
|
57
|
+
"tap-snapshots/**"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|