@pnpm/exe 11.0.0-alpha.5 → 11.0.0-alpha.7
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/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-regex/index.js +16 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/ansi-styles/index.js +170 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/eastasianwidth/index.js +307 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/emoji-regex/index.js +7 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.js +322 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/index.min.js +12 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/string-width/index.js +49 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/strip-ansi/index.js +8 -0
- package/dist/node_modules/@isaacs/cliui/dist/commonjs/wrap-ansi/index.js +176 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-regex/index.js +12 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/ansi-styles/index.js +167 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/eastasianwidth/index.js +299 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/emoji-regex/index.js +3 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/index.js +317 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/index.min.js +12 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/string-width/index.js +46 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/strip-ansi/index.js +4 -0
- package/dist/node_modules/@isaacs/cliui/dist/esm/wrap-ansi/index.js +172 -0
- package/dist/node_modules/@isaacs/cliui/package.json +163 -0
- package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -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/common/get-options.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/common/node.js +9 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +129 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/index.js +22 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +428 -0
- package/dist/node_modules/@npmcli/fs/lib/index.js +13 -0
- 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 +39 -0
- package/dist/node_modules/@npmcli/fs/package.json +54 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/lib/index.js +53 -0
- package/dist/node_modules/abbrev/package.json +45 -0
- package/dist/node_modules/agent-base/LICENSE +22 -0
- package/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/dist/node_modules/agent-base/dist/index.js +178 -0
- package/dist/node_modules/agent-base/package.json +46 -0
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/dist/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/dist/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/dist/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/dist/node_modules/balanced-match/package.json +71 -0
- package/dist/node_modules/brace-expansion/LICENSE +23 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +199 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.js +195 -0
- package/dist/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/dist/node_modules/brace-expansion/package.json +64 -0
- package/dist/node_modules/cacache/lib/content/path.js +29 -0
- package/dist/node_modules/cacache/lib/content/read.js +165 -0
- package/dist/node_modules/cacache/lib/content/rm.js +18 -0
- package/dist/node_modules/cacache/lib/content/write.js +206 -0
- package/dist/node_modules/cacache/lib/entry-index.js +336 -0
- package/dist/node_modules/cacache/lib/get.js +170 -0
- package/dist/node_modules/cacache/lib/index.js +42 -0
- package/dist/node_modules/cacache/lib/memoization.js +72 -0
- package/dist/node_modules/cacache/lib/put.js +80 -0
- package/dist/node_modules/cacache/lib/rm.js +31 -0
- package/dist/node_modules/cacache/lib/util/glob.js +7 -0
- package/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +26 -0
- package/dist/node_modules/cacache/lib/verify.js +258 -0
- package/dist/node_modules/cacache/package.json +83 -0
- package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/cross-spawn/LICENSE +21 -0
- 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 +47 -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/LICENSE +20 -0
- package/dist/node_modules/debug/package.json +64 -0
- package/dist/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/debug/src/common.js +292 -0
- package/dist/node_modules/debug/src/index.js +10 -0
- package/dist/node_modules/debug/src/node.js +263 -0
- package/dist/node_modules/encoding/.prettierrc.js +8 -0
- package/dist/node_modules/encoding/LICENSE +16 -0
- package/dist/node_modules/encoding/lib/encoding.js +83 -0
- package/dist/node_modules/encoding/package.json +18 -0
- package/dist/node_modules/env-paths/index.js +74 -0
- package/dist/node_modules/env-paths/license +9 -0
- package/dist/node_modules/env-paths/package.json +45 -0
- package/dist/node_modules/err-code/.eslintrc.json +7 -0
- package/dist/node_modules/err-code/bower.json +30 -0
- package/dist/node_modules/err-code/index.js +47 -0
- package/dist/node_modules/err-code/index.umd.js +51 -0
- package/dist/node_modules/err-code/package.json +34 -0
- package/dist/node_modules/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/package.json +62 -0
- package/dist/node_modules/fdir/LICENSE +7 -0
- package/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/dist/node_modules/fdir/package.json +103 -0
- package/dist/node_modules/foreground-child/LICENSE +15 -0
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.js +123 -0
- package/dist/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/dist/node_modules/foreground-child/dist/esm/index.js +115 -0
- package/dist/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/dist/node_modules/foreground-child/package.json +106 -0
- package/dist/node_modules/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/fs-minipass/package.json +54 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/dist/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/dist/node_modules/glob/dist/esm/bin.mjs +346 -0
- package/dist/node_modules/glob/dist/esm/glob.js +243 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +215 -0
- package/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/dist/node_modules/glob/package.json +97 -0
- package/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/dist/node_modules/graceful-fs/clone.js +23 -0
- package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/dist/node_modules/graceful-fs/package.json +53 -0
- package/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/dist/node_modules/http-cache-semantics/LICENSE +9 -0
- package/dist/node_modules/http-cache-semantics/index.js +928 -0
- package/dist/node_modules/http-cache-semantics/package.json +22 -0
- package/dist/node_modules/http-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/dist/node_modules/http-proxy-agent/package.json +47 -0
- package/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/dist/node_modules/https-proxy-agent/package.json +50 -0
- package/dist/node_modules/iconv-lite/.github/dependabot.yml +11 -0
- package/dist/node_modules/iconv-lite/.idea/codeStyles/Project.xml +47 -0
- package/dist/node_modules/iconv-lite/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/dist/node_modules/iconv-lite/.idea/iconv-lite.iml +12 -0
- package/dist/node_modules/iconv-lite/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/dist/node_modules/iconv-lite/.idea/modules.xml +8 -0
- package/dist/node_modules/iconv-lite/.idea/vcs.xml +6 -0
- package/dist/node_modules/iconv-lite/LICENSE +21 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +597 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +188 -0
- package/dist/node_modules/iconv-lite/encodings/index.js +23 -0
- package/dist/node_modules/iconv-lite/encodings/internal.js +198 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +179 -0
- package/dist/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/dist/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/dist/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/dist/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/dist/node_modules/iconv-lite/encodings/tables/gbk-added.json +56 -0
- package/dist/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/dist/node_modules/iconv-lite/encodings/utf16.js +197 -0
- package/dist/node_modules/iconv-lite/encodings/utf32.js +319 -0
- package/dist/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/dist/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/dist/node_modules/iconv-lite/lib/index.js +180 -0
- package/dist/node_modules/iconv-lite/lib/streams.js +109 -0
- package/dist/node_modules/iconv-lite/package.json +44 -0
- package/dist/node_modules/imurmurhash/imurmurhash.js +138 -0
- package/dist/node_modules/imurmurhash/imurmurhash.min.js +12 -0
- package/dist/node_modules/imurmurhash/package.json +40 -0
- package/dist/node_modules/ip-address/LICENSE +19 -0
- package/dist/node_modules/ip-address/dist/address-error.js +12 -0
- package/dist/node_modules/ip-address/dist/common.js +46 -0
- package/dist/node_modules/ip-address/dist/ip-address.js +35 -0
- package/dist/node_modules/ip-address/dist/ipv4.js +360 -0
- package/dist/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/dist/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/dist/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/dist/node_modules/ip-address/package.json +78 -0
- package/dist/node_modules/isexe/LICENSE +15 -0
- package/dist/node_modules/isexe/index.js +57 -0
- package/dist/node_modules/isexe/mode.js +41 -0
- package/dist/node_modules/isexe/package.json +31 -0
- package/dist/node_modules/isexe/windows.js +42 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.js +944 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.min.js +33 -0
- package/dist/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/esm/index.js +936 -0
- package/dist/node_modules/jackspeak/dist/esm/index.min.js +33 -0
- package/dist/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/dist/node_modules/jackspeak/package.json +115 -0
- package/dist/node_modules/lru-cache/LICENSE +15 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/lru-cache/package.json +116 -0
- package/dist/node_modules/make-fetch-happen/LICENSE +16 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +471 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/errors.js +11 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/index.js +49 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/key.js +17 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/policy.js +161 -0
- package/dist/node_modules/make-fetch-happen/lib/fetch.js +118 -0
- package/dist/node_modules/make-fetch-happen/lib/index.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/options.js +59 -0
- package/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +132 -0
- package/dist/node_modules/make-fetch-happen/package.json +74 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +601 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js +1035 -0
- package/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js +597 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/dist/node_modules/minimatch/dist/esm/index.js +1022 -0
- package/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/dist/node_modules/minimatch/package.json +67 -0
- package/dist/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1018 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +82 -0
- package/dist/node_modules/minipass-collect/LICENSE +15 -0
- package/dist/node_modules/minipass-collect/index.js +71 -0
- package/dist/node_modules/minipass-collect/package.json +30 -0
- package/dist/node_modules/minipass-fetch/LICENSE +28 -0
- package/dist/node_modules/minipass-fetch/lib/abort-error.js +17 -0
- package/dist/node_modules/minipass-fetch/lib/blob.js +97 -0
- package/dist/node_modules/minipass-fetch/lib/body.js +350 -0
- package/dist/node_modules/minipass-fetch/lib/fetch-error.js +32 -0
- package/dist/node_modules/minipass-fetch/lib/headers.js +267 -0
- package/dist/node_modules/minipass-fetch/lib/index.js +376 -0
- package/dist/node_modules/minipass-fetch/lib/request.js +282 -0
- package/dist/node_modules/minipass-fetch/lib/response.js +90 -0
- package/dist/node_modules/minipass-fetch/package.json +70 -0
- package/dist/node_modules/minipass-flush/LICENSE +15 -0
- package/dist/node_modules/minipass-flush/index.js +39 -0
- 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-flush/package.json +39 -0
- package/dist/node_modules/minipass-pipeline/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/index.js +128 -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-pipeline/package.json +29 -0
- package/dist/node_modules/minipass-sized/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/index.js +67 -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/minipass-sized/package-lock.json +3464 -0
- package/dist/node_modules/minipass-sized/package.json +39 -0
- package/dist/node_modules/minizlib/LICENSE +26 -0
- package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/minizlib/package.json +80 -0
- package/dist/node_modules/ms/index.js +162 -0
- package/dist/node_modules/ms/package.json +38 -0
- package/dist/node_modules/negotiator/LICENSE +24 -0
- package/dist/node_modules/negotiator/index.js +83 -0
- package/dist/node_modules/negotiator/lib/charset.js +169 -0
- package/dist/node_modules/negotiator/lib/encoding.js +205 -0
- package/dist/node_modules/negotiator/lib/language.js +179 -0
- package/dist/node_modules/negotiator/lib/mediaType.js +294 -0
- package/dist/node_modules/negotiator/package.json +43 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/LICENSE +24 -0
- package/dist/node_modules/node-gyp/addon.gypi +204 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +138 -0
- package/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/data/win/large-pdb-shim.cc +12 -0
- package/dist/node_modules/node-gyp/gyp/gyp +8 -0
- package/dist/node_modules/node-gyp/gyp/gyp.bat +5 -0
- package/dist/node_modules/node-gyp/gyp/gyp_main.py +45 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +365 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +206 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +1283 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSToolFile.py +59 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUserFile.py +152 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +574 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +707 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/flock_tool.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/__init__.py +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +805 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs_test.py +44 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +2957 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/ninja_syntax.py +174 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/simple_copy.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +371 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- 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 +107 -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 +251 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +824 -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 +114 -0
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +310 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +600 -0
- package/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +146 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.js +16 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/options.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/posix.js +62 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/esm/win32.js +58 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +78 -0
- package/dist/node_modules/node-gyp/node_modules/which/LICENSE +15 -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 +52 -0
- package/dist/node_modules/node-gyp/package.json +52 -0
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +52 -0
- package/dist/node_modules/p-map/index.js +283 -0
- package/dist/node_modules/p-map/license +9 -0
- package/dist/node_modules/p-map/package.json +57 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +134 -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.js +129 -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.js +2018 -0
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1589 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1585 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/package.json +101 -0
- package/dist/node_modules/path-scurry/package.json +88 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/index.js +17 -0
- package/dist/node_modules/picomatch/lib/constants.js +180 -0
- package/dist/node_modules/picomatch/lib/parse.js +1085 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +341 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/node_modules/picomatch/package.json +83 -0
- package/dist/node_modules/picomatch/posix.js +3 -0
- package/dist/node_modules/proc-log/LICENSE +15 -0
- package/dist/node_modules/proc-log/lib/index.js +153 -0
- package/dist/node_modules/proc-log/package.json +46 -0
- package/dist/node_modules/promise-retry/LICENSE +19 -0
- package/dist/node_modules/promise-retry/index.js +52 -0
- package/dist/node_modules/promise-retry/package.json +37 -0
- package/dist/node_modules/retry/License +21 -0
- package/dist/node_modules/retry/equation.gif +0 -0
- package/dist/node_modules/retry/index.js +1 -0
- package/dist/node_modules/retry/lib/retry.js +100 -0
- package/dist/node_modules/retry/lib/retry_operation.js +158 -0
- package/dist/node_modules/retry/package.json +32 -0
- package/dist/node_modules/safer-buffer/LICENSE +21 -0
- package/dist/node_modules/safer-buffer/dangerous.js +58 -0
- package/dist/node_modules/safer-buffer/package.json +34 -0
- package/dist/node_modules/safer-buffer/safer.js +77 -0
- package/dist/node_modules/safer-buffer/tests.js +406 -0
- package/dist/node_modules/semver/LICENSE +15 -0
- package/dist/node_modules/semver/bin/semver.js +191 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +557 -0
- package/dist/node_modules/semver/classes/semver.js +333 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +91 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -0
- 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 +16 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dist/node_modules/signal-exit/package.json +106 -0
- package/dist/node_modules/smart-buffer/.prettierrc.yaml +5 -0
- package/dist/node_modules/smart-buffer/LICENSE +20 -0
- package/dist/node_modules/smart-buffer/build/smartbuffer.js +1233 -0
- package/dist/node_modules/smart-buffer/build/utils.js +108 -0
- package/dist/node_modules/smart-buffer/package.json +79 -0
- package/dist/node_modules/socks/.eslintrc.cjs +11 -0
- package/dist/node_modules/socks/.prettierrc.yaml +7 -0
- package/dist/node_modules/socks/LICENSE +20 -0
- package/dist/node_modules/socks/build/client/socksclient.js +793 -0
- package/dist/node_modules/socks/build/common/constants.js +108 -0
- package/dist/node_modules/socks/build/common/helpers.js +167 -0
- package/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/dist/node_modules/socks/build/common/util.js +25 -0
- package/dist/node_modules/socks/build/index.js +18 -0
- package/dist/node_modules/socks/package.json +58 -0
- package/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/dist/node_modules/socks-proxy-agent/package.json +142 -0
- package/dist/node_modules/ssri/lib/index.js +580 -0
- package/dist/node_modules/ssri/package.json +66 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +83 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +325 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +150 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +61 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +188 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +516 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +620 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +140 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +232 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +50 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +957 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +699 -0
- package/dist/node_modules/tar/dist/esm/create.js +77 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +23 -0
- package/dist/node_modules/tar/dist/esm/header.js +288 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.js +110 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +57 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +180 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.js +474 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.js +616 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.js +154 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/esm/replace.js +226 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.js +45 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +916 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +657 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/dist/node_modules/tar/package.json +292 -0
- package/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/dist/node_modules/tinyglobby/dist/index.cjs +350 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +147 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +147 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +318 -0
- package/dist/node_modules/tinyglobby/package.json +73 -0
- package/dist/node_modules/unique-filename/LICENSE +5 -0
- package/dist/node_modules/unique-filename/lib/index.js +7 -0
- package/dist/node_modules/unique-filename/package.json +53 -0
- package/dist/node_modules/unique-slug/LICENSE +15 -0
- package/dist/node_modules/unique-slug/lib/index.js +11 -0
- package/dist/node_modules/unique-slug/package.json +49 -0
- package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
- package/dist/node_modules/v8-compile-cache/package.json +34 -0
- package/dist/node_modules/v8-compile-cache/v8-compile-cache.js +373 -0
- package/dist/node_modules/which/LICENSE +15 -0
- package/dist/node_modules/which/bin/node-which +52 -0
- package/dist/node_modules/which/package.json +43 -0
- package/dist/node_modules/which/which.js +125 -0
- package/dist/node_modules/yallist/LICENSE +15 -0
- package/dist/node_modules/yallist/iterator.js +8 -0
- package/dist/node_modules/yallist/package.json +29 -0
- package/dist/node_modules/yallist/yallist.js +426 -0
- package/dist/pnpm.mjs +231795 -0
- package/dist/pnpmrc +2 -0
- package/dist/templates/completion.bash +31 -0
- package/dist/templates/completion.fish +22 -0
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/vendor/fastlist-0.3.0-x64.exe +0 -0
- package/dist/vendor/fastlist-0.3.0-x86.exe +0 -0
- package/dist/worker.js +11930 -0
- package/package.json +17 -9
- package/setup.js +2 -1
- package/CHANGELOG.md +0 -15
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { createWriteStream, promises: fs } = require('graceful-fs')
|
|
4
|
+
const os = require('os')
|
|
5
|
+
const { backOff } = require('exponential-backoff')
|
|
6
|
+
const tar = require('tar')
|
|
7
|
+
const path = require('path')
|
|
8
|
+
const { Transform, promises: { pipeline } } = require('stream')
|
|
9
|
+
const crypto = require('crypto')
|
|
10
|
+
const log = require('./log')
|
|
11
|
+
const semver = require('semver')
|
|
12
|
+
const { download } = require('./download')
|
|
13
|
+
const processRelease = require('./process-release')
|
|
14
|
+
|
|
15
|
+
const win = process.platform === 'win32'
|
|
16
|
+
|
|
17
|
+
async function install (gyp, argv) {
|
|
18
|
+
log.stdout()
|
|
19
|
+
const release = processRelease(argv, gyp, process.version, process.release)
|
|
20
|
+
// Detecting target_arch based on logic from create-cnfig-gyp.js. Used on Windows only.
|
|
21
|
+
const arch = win ? (gyp.opts.target_arch || gyp.opts.arch || process.arch || 'ia32') : ''
|
|
22
|
+
// Used to prevent downloading tarball if only new node.lib is required on Windows.
|
|
23
|
+
let shouldDownloadTarball = true
|
|
24
|
+
|
|
25
|
+
// Determine which node dev files version we are installing
|
|
26
|
+
log.verbose('install', 'input version string %j', release.version)
|
|
27
|
+
|
|
28
|
+
if (!release.semver) {
|
|
29
|
+
// could not parse the version string with semver
|
|
30
|
+
throw new Error('Invalid version number: ' + release.version)
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (semver.lt(release.version, '0.8.0')) {
|
|
34
|
+
throw new Error('Minimum target version is `0.8.0` or greater. Got: ' + release.version)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// 0.x.y-pre versions are not published yet and cannot be installed. Bail.
|
|
38
|
+
if (release.semver.prerelease[0] === 'pre') {
|
|
39
|
+
log.verbose('detected "pre" node version', release.version)
|
|
40
|
+
if (!gyp.opts.nodedir) {
|
|
41
|
+
throw new Error('"pre" versions of node cannot be installed, use the --nodedir flag instead')
|
|
42
|
+
}
|
|
43
|
+
log.verbose('--nodedir flag was passed; skipping install', gyp.opts.nodedir)
|
|
44
|
+
return
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// flatten version into String
|
|
48
|
+
log.verbose('install', 'installing version: %s', release.versionDir)
|
|
49
|
+
|
|
50
|
+
// the directory where the dev files will be installed
|
|
51
|
+
const devDir = path.resolve(gyp.devDir, release.versionDir)
|
|
52
|
+
|
|
53
|
+
// If '--ensure' was passed, then don't *always* install the version;
|
|
54
|
+
// check if it is already installed, and only install when needed
|
|
55
|
+
if (gyp.opts.ensure) {
|
|
56
|
+
log.verbose('install', '--ensure was passed, so won\'t reinstall if already installed')
|
|
57
|
+
try {
|
|
58
|
+
await fs.stat(devDir)
|
|
59
|
+
} catch (err) {
|
|
60
|
+
if (err.code === 'ENOENT') {
|
|
61
|
+
log.verbose('install', 'version not already installed, continuing with install', release.version)
|
|
62
|
+
try {
|
|
63
|
+
return await go()
|
|
64
|
+
} catch (err) {
|
|
65
|
+
return rollback(err)
|
|
66
|
+
}
|
|
67
|
+
} else if (err.code === 'EACCES') {
|
|
68
|
+
return eaccesFallback(err)
|
|
69
|
+
}
|
|
70
|
+
throw err
|
|
71
|
+
}
|
|
72
|
+
log.verbose('install', 'version is already installed, need to check "installVersion"')
|
|
73
|
+
const installVersionFile = path.resolve(devDir, 'installVersion')
|
|
74
|
+
let installVersion = 0
|
|
75
|
+
try {
|
|
76
|
+
const ver = await fs.readFile(installVersionFile, 'ascii')
|
|
77
|
+
installVersion = parseInt(ver, 10) || 0
|
|
78
|
+
} catch (err) {
|
|
79
|
+
if (err.code !== 'ENOENT') {
|
|
80
|
+
throw err
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
log.verbose('got "installVersion"', installVersion)
|
|
84
|
+
log.verbose('needs "installVersion"', gyp.package.installVersion)
|
|
85
|
+
if (installVersion < gyp.package.installVersion) {
|
|
86
|
+
log.verbose('install', 'version is no good; reinstalling')
|
|
87
|
+
try {
|
|
88
|
+
return await go()
|
|
89
|
+
} catch (err) {
|
|
90
|
+
return rollback(err)
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
log.verbose('install', 'version is good')
|
|
94
|
+
if (win) {
|
|
95
|
+
log.verbose('on Windows; need to check node.lib')
|
|
96
|
+
const nodeLibPath = path.resolve(devDir, arch, 'node.lib')
|
|
97
|
+
try {
|
|
98
|
+
await fs.stat(nodeLibPath)
|
|
99
|
+
} catch (err) {
|
|
100
|
+
if (err.code === 'ENOENT') {
|
|
101
|
+
log.verbose('install', `version not already installed for ${arch}, continuing with install`, release.version)
|
|
102
|
+
try {
|
|
103
|
+
shouldDownloadTarball = false
|
|
104
|
+
return await go()
|
|
105
|
+
} catch (err) {
|
|
106
|
+
return rollback(err)
|
|
107
|
+
}
|
|
108
|
+
} else if (err.code === 'EACCES') {
|
|
109
|
+
return eaccesFallback(err)
|
|
110
|
+
}
|
|
111
|
+
throw err
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
} else {
|
|
115
|
+
try {
|
|
116
|
+
return await go()
|
|
117
|
+
} catch (err) {
|
|
118
|
+
return rollback(err)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
async function copyDirectory (src, dest) {
|
|
123
|
+
try {
|
|
124
|
+
await fs.stat(src)
|
|
125
|
+
} catch {
|
|
126
|
+
throw new Error(`Missing source directory for copy: ${src}`)
|
|
127
|
+
}
|
|
128
|
+
await fs.mkdir(dest, { recursive: true })
|
|
129
|
+
const entries = await fs.readdir(src, { withFileTypes: true })
|
|
130
|
+
for (const entry of entries) {
|
|
131
|
+
if (entry.isDirectory()) {
|
|
132
|
+
await copyDirectory(path.join(src, entry.name), path.join(dest, entry.name))
|
|
133
|
+
} else if (entry.isFile()) {
|
|
134
|
+
// with parallel installs, copying files may cause file errors on
|
|
135
|
+
// Windows so use an exponential backoff to resolve collisions
|
|
136
|
+
await backOff(async () => {
|
|
137
|
+
try {
|
|
138
|
+
await fs.copyFile(path.join(src, entry.name), path.join(dest, entry.name))
|
|
139
|
+
} catch (err) {
|
|
140
|
+
// if ensure, check if file already exists and that's good enough
|
|
141
|
+
if (gyp.opts.ensure && err.code === 'EBUSY') {
|
|
142
|
+
try {
|
|
143
|
+
await fs.stat(path.join(dest, entry.name))
|
|
144
|
+
return
|
|
145
|
+
} catch {}
|
|
146
|
+
}
|
|
147
|
+
throw err
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
} else {
|
|
151
|
+
throw new Error('Unexpected file directory entry type')
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
async function go () {
|
|
157
|
+
log.verbose('ensuring devDir is created', devDir)
|
|
158
|
+
|
|
159
|
+
// first create the dir for the node dev files
|
|
160
|
+
try {
|
|
161
|
+
const created = await fs.mkdir(devDir, { recursive: true })
|
|
162
|
+
|
|
163
|
+
if (created) {
|
|
164
|
+
log.verbose('created devDir', created)
|
|
165
|
+
}
|
|
166
|
+
} catch (err) {
|
|
167
|
+
if (err.code === 'EACCES') {
|
|
168
|
+
return eaccesFallback(err)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
throw err
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// now download the node tarball
|
|
175
|
+
const tarPath = gyp.opts.tarball
|
|
176
|
+
let extractErrors = false
|
|
177
|
+
let extractCount = 0
|
|
178
|
+
const contentShasums = {}
|
|
179
|
+
const expectShasums = {}
|
|
180
|
+
|
|
181
|
+
// checks if a file to be extracted from the tarball is valid.
|
|
182
|
+
// only .h header files and the gyp files get extracted
|
|
183
|
+
function isValid (path) {
|
|
184
|
+
const isValid = valid(path)
|
|
185
|
+
if (isValid) {
|
|
186
|
+
log.verbose('extracted file from tarball', path)
|
|
187
|
+
extractCount++
|
|
188
|
+
} else {
|
|
189
|
+
// invalid
|
|
190
|
+
log.silly('ignoring from tarball', path)
|
|
191
|
+
}
|
|
192
|
+
return isValid
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
function onwarn (code, message) {
|
|
196
|
+
extractErrors = true
|
|
197
|
+
log.error('error while extracting tarball', code, message)
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// download the tarball and extract!
|
|
201
|
+
// Ommited on Windows if only new node.lib is required
|
|
202
|
+
|
|
203
|
+
// there can be file errors from tar if parallel installs
|
|
204
|
+
// are happening (not uncommon with multiple native modules) so
|
|
205
|
+
// extract the tarball to a temp directory first and then copy over
|
|
206
|
+
const tarExtractDir = await fs.mkdtemp(path.join(os.tmpdir(), 'node-gyp-tmp-'))
|
|
207
|
+
|
|
208
|
+
try {
|
|
209
|
+
if (shouldDownloadTarball) {
|
|
210
|
+
if (tarPath) {
|
|
211
|
+
await tar.extract({
|
|
212
|
+
file: tarPath,
|
|
213
|
+
strip: 1,
|
|
214
|
+
filter: isValid,
|
|
215
|
+
onwarn,
|
|
216
|
+
cwd: tarExtractDir
|
|
217
|
+
})
|
|
218
|
+
} else {
|
|
219
|
+
try {
|
|
220
|
+
const res = await download(gyp, release.tarballUrl)
|
|
221
|
+
|
|
222
|
+
if (res.status !== 200) {
|
|
223
|
+
throw new Error(`${res.status} response downloading ${release.tarballUrl}`)
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
await pipeline(
|
|
227
|
+
res.body,
|
|
228
|
+
// content checksum
|
|
229
|
+
new ShaSum((_, checksum) => {
|
|
230
|
+
const filename = path.basename(release.tarballUrl).trim()
|
|
231
|
+
contentShasums[filename] = checksum
|
|
232
|
+
log.verbose('content checksum', filename, checksum)
|
|
233
|
+
}),
|
|
234
|
+
tar.extract({
|
|
235
|
+
strip: 1,
|
|
236
|
+
cwd: tarExtractDir,
|
|
237
|
+
filter: isValid,
|
|
238
|
+
onwarn
|
|
239
|
+
})
|
|
240
|
+
)
|
|
241
|
+
} catch (err) {
|
|
242
|
+
// something went wrong downloading the tarball?
|
|
243
|
+
if (err.code === 'ENOTFOUND') {
|
|
244
|
+
throw new Error('This is most likely not a problem with node-gyp or the package itself and\n' +
|
|
245
|
+
'is related to network connectivity. In most cases you are behind a proxy or have bad \n' +
|
|
246
|
+
'network settings.')
|
|
247
|
+
}
|
|
248
|
+
throw err
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// invoked after the tarball has finished being extracted
|
|
253
|
+
if (extractErrors || extractCount === 0) {
|
|
254
|
+
throw new Error('There was a fatal problem while downloading/extracting the tarball')
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
log.verbose('tarball', 'done parsing tarball')
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const installVersionPath = path.resolve(tarExtractDir, 'installVersion')
|
|
261
|
+
await Promise.all([
|
|
262
|
+
// need to download node.lib
|
|
263
|
+
...(win ? [downloadNodeLib()] : []),
|
|
264
|
+
// write the "installVersion" file
|
|
265
|
+
fs.writeFile(installVersionPath, gyp.package.installVersion + '\n'),
|
|
266
|
+
// Only download SHASUMS.txt if we downloaded something in need of SHA verification
|
|
267
|
+
...(!tarPath || win ? [downloadShasums()] : [])
|
|
268
|
+
])
|
|
269
|
+
|
|
270
|
+
log.verbose('download contents checksum', JSON.stringify(contentShasums))
|
|
271
|
+
// check content shasums
|
|
272
|
+
for (const k in contentShasums) {
|
|
273
|
+
log.verbose('validating download checksum for ' + k, '(%s == %s)', contentShasums[k], expectShasums[k])
|
|
274
|
+
if (contentShasums[k] !== expectShasums[k]) {
|
|
275
|
+
throw new Error(k + ' local checksum ' + contentShasums[k] + ' not match remote ' + expectShasums[k])
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
// copy over the files from the temp tarball extract directory to devDir
|
|
280
|
+
await copyDirectory(tarExtractDir, devDir)
|
|
281
|
+
} finally {
|
|
282
|
+
try {
|
|
283
|
+
// try to cleanup temp dir
|
|
284
|
+
await fs.rm(tarExtractDir, { recursive: true, maxRetries: 3 })
|
|
285
|
+
} catch {
|
|
286
|
+
log.warn('failed to clean up temp tarball extract directory')
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
async function downloadShasums () {
|
|
291
|
+
log.verbose('check download content checksum, need to download `SHASUMS256.txt`...')
|
|
292
|
+
log.verbose('checksum url', release.shasumsUrl)
|
|
293
|
+
|
|
294
|
+
const res = await download(gyp, release.shasumsUrl)
|
|
295
|
+
|
|
296
|
+
if (res.status !== 200) {
|
|
297
|
+
throw new Error(`${res.status} status code downloading checksum`)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
for (const line of (await res.text()).trim().split('\n')) {
|
|
301
|
+
const items = line.trim().split(/\s+/)
|
|
302
|
+
if (items.length !== 2) {
|
|
303
|
+
return
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// 0035d18e2dcf9aad669b1c7c07319e17abfe3762 ./node-v0.11.4.tar.gz
|
|
307
|
+
const name = items[1].replace(/^\.\//, '')
|
|
308
|
+
expectShasums[name] = items[0]
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
log.verbose('checksum data', JSON.stringify(expectShasums))
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
async function downloadNodeLib () {
|
|
315
|
+
log.verbose('on Windows; need to download `' + release.name + '.lib`...')
|
|
316
|
+
const dir = path.resolve(tarExtractDir, arch)
|
|
317
|
+
const targetLibPath = path.resolve(dir, release.name + '.lib')
|
|
318
|
+
const { libUrl, libPath } = release[arch]
|
|
319
|
+
const name = `${arch} ${release.name}.lib`
|
|
320
|
+
log.verbose(name, 'dir', dir)
|
|
321
|
+
log.verbose(name, 'url', libUrl)
|
|
322
|
+
|
|
323
|
+
await fs.mkdir(dir, { recursive: true })
|
|
324
|
+
log.verbose('streaming', name, 'to:', targetLibPath)
|
|
325
|
+
|
|
326
|
+
const res = await download(gyp, libUrl)
|
|
327
|
+
|
|
328
|
+
// Since only required node.lib is downloaded throw error if it is not fetched
|
|
329
|
+
if (res.status !== 200) {
|
|
330
|
+
throw new Error(`${res.status} status code downloading ${name}`)
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
return pipeline(
|
|
334
|
+
res.body,
|
|
335
|
+
new ShaSum((_, checksum) => {
|
|
336
|
+
contentShasums[libPath] = checksum
|
|
337
|
+
log.verbose('content checksum', libPath, checksum)
|
|
338
|
+
}),
|
|
339
|
+
createWriteStream(targetLibPath)
|
|
340
|
+
)
|
|
341
|
+
} // downloadNodeLib()
|
|
342
|
+
} // go()
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Checks if a given filename is "valid" for this installation.
|
|
346
|
+
*/
|
|
347
|
+
|
|
348
|
+
function valid (file) {
|
|
349
|
+
// header files
|
|
350
|
+
const extname = path.extname(file)
|
|
351
|
+
return extname === '.h' || extname === '.gypi'
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
async function rollback (err) {
|
|
355
|
+
log.warn('install', 'got an error, rolling back install')
|
|
356
|
+
// roll-back the install if anything went wrong
|
|
357
|
+
await gyp.commands.remove([release.versionDir])
|
|
358
|
+
throw err
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* The EACCES fallback is a workaround for npm's `sudo` behavior, where
|
|
363
|
+
* it drops the permissions before invoking any child processes (like
|
|
364
|
+
* node-gyp). So what happens is the "nobody" user doesn't have
|
|
365
|
+
* permission to create the dev dir. As a fallback, make the tmpdir() be
|
|
366
|
+
* the dev dir for this installation. This is not ideal, but at least
|
|
367
|
+
* the compilation will succeed...
|
|
368
|
+
*/
|
|
369
|
+
|
|
370
|
+
async function eaccesFallback (err) {
|
|
371
|
+
const noretry = '--node_gyp_internal_noretry'
|
|
372
|
+
if (argv.indexOf(noretry) !== -1) {
|
|
373
|
+
throw err
|
|
374
|
+
}
|
|
375
|
+
const tmpdir = os.tmpdir()
|
|
376
|
+
gyp.devDir = path.resolve(tmpdir, '.node-gyp')
|
|
377
|
+
let userString = ''
|
|
378
|
+
try {
|
|
379
|
+
// os.userInfo can fail on some systems, it's not critical here
|
|
380
|
+
userString = ` ("${os.userInfo().username}")`
|
|
381
|
+
} catch (e) {}
|
|
382
|
+
log.warn('EACCES', 'current user%s does not have permission to access the dev dir "%s"', userString, devDir)
|
|
383
|
+
log.warn('EACCES', 'attempting to reinstall using temporary dev dir "%s"', gyp.devDir)
|
|
384
|
+
if (process.cwd() === tmpdir) {
|
|
385
|
+
log.verbose('tmpdir == cwd', 'automatically will remove dev files after to save disk space')
|
|
386
|
+
gyp.todo.push({ name: 'remove', args: argv })
|
|
387
|
+
}
|
|
388
|
+
return gyp.commands.install([noretry].concat(argv))
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
class ShaSum extends Transform {
|
|
393
|
+
constructor (callback) {
|
|
394
|
+
super()
|
|
395
|
+
this._callback = callback
|
|
396
|
+
this._digester = crypto.createHash('sha256')
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
_transform (chunk, _, callback) {
|
|
400
|
+
this._digester.update(chunk)
|
|
401
|
+
callback(null, chunk)
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
_flush (callback) {
|
|
405
|
+
this._callback(null, this._digester.digest('hex'))
|
|
406
|
+
callback()
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
module.exports = install
|
|
411
|
+
module.exports.usage = 'Install node development files for the specified node version.'
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const fs = require('graceful-fs').promises
|
|
4
|
+
const log = require('./log')
|
|
5
|
+
|
|
6
|
+
async function list (gyp, args) {
|
|
7
|
+
const devDir = gyp.devDir
|
|
8
|
+
log.verbose('list', 'using node-gyp dir:', devDir)
|
|
9
|
+
|
|
10
|
+
let versions = []
|
|
11
|
+
try {
|
|
12
|
+
const dir = await fs.readdir(devDir)
|
|
13
|
+
if (Array.isArray(dir)) {
|
|
14
|
+
versions = dir.filter((v) => v !== 'current')
|
|
15
|
+
}
|
|
16
|
+
} catch (err) {
|
|
17
|
+
if (err && err.code !== 'ENOENT') {
|
|
18
|
+
throw err
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return versions
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
module.exports = list
|
|
26
|
+
module.exports.usage = 'Prints a listing of the currently installed node development files'
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const { log } = require('proc-log')
|
|
4
|
+
const { format } = require('util')
|
|
5
|
+
|
|
6
|
+
// helper to emit log messages with a predefined prefix
|
|
7
|
+
const withPrefix = (prefix) => log.LEVELS.reduce((acc, level) => {
|
|
8
|
+
acc[level] = (...args) => log[level](prefix, ...args)
|
|
9
|
+
return acc
|
|
10
|
+
}, {})
|
|
11
|
+
|
|
12
|
+
// very basic ansi color generator
|
|
13
|
+
const COLORS = {
|
|
14
|
+
wrap: (str, colors) => {
|
|
15
|
+
const codes = colors.filter(c => typeof c === 'number')
|
|
16
|
+
return `\x1b[${codes.join(';')}m${str}\x1b[0m`
|
|
17
|
+
},
|
|
18
|
+
inverse: 7,
|
|
19
|
+
fg: {
|
|
20
|
+
black: 30,
|
|
21
|
+
red: 31,
|
|
22
|
+
green: 32,
|
|
23
|
+
yellow: 33,
|
|
24
|
+
blue: 34,
|
|
25
|
+
magenta: 35,
|
|
26
|
+
cyan: 36,
|
|
27
|
+
white: 37
|
|
28
|
+
},
|
|
29
|
+
bg: {
|
|
30
|
+
black: 40,
|
|
31
|
+
red: 41,
|
|
32
|
+
green: 42,
|
|
33
|
+
yellow: 43,
|
|
34
|
+
blue: 44,
|
|
35
|
+
magenta: 45,
|
|
36
|
+
cyan: 46,
|
|
37
|
+
white: 47
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class Logger {
|
|
42
|
+
#buffer = []
|
|
43
|
+
#paused = null
|
|
44
|
+
#level = null
|
|
45
|
+
#stream = null
|
|
46
|
+
|
|
47
|
+
// ordered from loudest to quietest
|
|
48
|
+
#levels = [{
|
|
49
|
+
id: 'silly',
|
|
50
|
+
display: 'sill',
|
|
51
|
+
style: { inverse: true }
|
|
52
|
+
}, {
|
|
53
|
+
id: 'verbose',
|
|
54
|
+
display: 'verb',
|
|
55
|
+
style: { fg: 'cyan', bg: 'black' }
|
|
56
|
+
}, {
|
|
57
|
+
id: 'info',
|
|
58
|
+
style: { fg: 'green' }
|
|
59
|
+
}, {
|
|
60
|
+
id: 'http',
|
|
61
|
+
style: { fg: 'green', bg: 'black' }
|
|
62
|
+
}, {
|
|
63
|
+
id: 'notice',
|
|
64
|
+
style: { fg: 'cyan', bg: 'black' }
|
|
65
|
+
}, {
|
|
66
|
+
id: 'warn',
|
|
67
|
+
display: 'WARN',
|
|
68
|
+
style: { fg: 'black', bg: 'yellow' }
|
|
69
|
+
}, {
|
|
70
|
+
id: 'error',
|
|
71
|
+
display: 'ERR!',
|
|
72
|
+
style: { fg: 'red', bg: 'black' }
|
|
73
|
+
}]
|
|
74
|
+
|
|
75
|
+
constructor (stream) {
|
|
76
|
+
process.on('log', (...args) => this.#onLog(...args))
|
|
77
|
+
this.#levels = new Map(this.#levels.map((level, index) => [level.id, { ...level, index }]))
|
|
78
|
+
this.level = 'info'
|
|
79
|
+
this.stream = stream
|
|
80
|
+
log.pause()
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
get stream () {
|
|
84
|
+
return this.#stream
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
set stream (stream) {
|
|
88
|
+
this.#stream = stream
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
get level () {
|
|
92
|
+
return this.#levels.get(this.#level) ?? null
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
set level (level) {
|
|
96
|
+
this.#level = this.#levels.get(level)?.id ?? null
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
isVisible (level) {
|
|
100
|
+
return this.level?.index <= this.#levels.get(level)?.index ?? -1
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#onLog (...args) {
|
|
104
|
+
const [level] = args
|
|
105
|
+
|
|
106
|
+
if (level === 'pause') {
|
|
107
|
+
this.#paused = true
|
|
108
|
+
return
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (level === 'resume') {
|
|
112
|
+
this.#paused = false
|
|
113
|
+
this.#buffer.forEach((b) => this.#log(...b))
|
|
114
|
+
this.#buffer.length = 0
|
|
115
|
+
return
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (this.#paused) {
|
|
119
|
+
this.#buffer.push(args)
|
|
120
|
+
return
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
this.#log(...args)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#color (str, { fg, bg, inverse }) {
|
|
127
|
+
if (!this.#stream?.isTTY) {
|
|
128
|
+
return str
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
return COLORS.wrap(str, [
|
|
132
|
+
COLORS.fg[fg],
|
|
133
|
+
COLORS.bg[bg],
|
|
134
|
+
inverse && COLORS.inverse
|
|
135
|
+
])
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#log (levelId, msgPrefix, ...args) {
|
|
139
|
+
if (!this.isVisible(levelId) || typeof this.#stream?.write !== 'function') {
|
|
140
|
+
return
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
const level = this.#levels.get(levelId)
|
|
144
|
+
|
|
145
|
+
const prefixParts = [
|
|
146
|
+
this.#color('gyp', { fg: 'white', bg: 'black' }),
|
|
147
|
+
this.#color(level.display ?? level.id, level.style)
|
|
148
|
+
]
|
|
149
|
+
if (msgPrefix) {
|
|
150
|
+
prefixParts.push(this.#color(msgPrefix, { fg: 'magenta' }))
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const prefix = prefixParts.join(' ').trim() + ' '
|
|
154
|
+
const lines = format(...args).split(/\r?\n/).map(l => prefix + l.trim())
|
|
155
|
+
|
|
156
|
+
this.#stream.write(lines.join('\n') + '\n')
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// used to suppress logs in tests
|
|
161
|
+
const NULL_LOGGER = !!process.env.NODE_GYP_NULL_LOGGER
|
|
162
|
+
|
|
163
|
+
module.exports = {
|
|
164
|
+
logger: new Logger(NULL_LOGGER ? null : process.stderr),
|
|
165
|
+
stdout: NULL_LOGGER ? () => {} : (...args) => console.log(...args),
|
|
166
|
+
withPrefix,
|
|
167
|
+
...log
|
|
168
|
+
}
|