pxnpm 3.0.8 → 4.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/LICENSE +3 -2
- package/README.md +223 -48
- package/bin/pnpm.cjs +26 -0
- package/bin/pnpx.cjs +5 -0
- package/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/.modules.yaml +317 -0
- package/dist/node_modules/.pnpm/lock.yaml +952 -0
- package/dist/node_modules/@gar/promisify/index.js +36 -0
- package/dist/node_modules/@gar/promisify/package.json +32 -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/common/owner-sync.js +96 -0
- package/dist/node_modules/@npmcli/fs/lib/common/owner.js +96 -0
- package/dist/node_modules/@npmcli/fs/lib/copy-file.js +16 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/LICENSE +15 -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/errors.js +129 -0
- package/dist/node_modules/@npmcli/fs/lib/fs.js +14 -0
- package/dist/node_modules/@npmcli/fs/lib/index.js +12 -0
- package/dist/node_modules/@npmcli/fs/lib/mkdir.js +19 -0
- package/dist/node_modules/@npmcli/fs/lib/mkdtemp.js +23 -0
- package/dist/node_modules/@npmcli/fs/lib/rm/index.js +22 -0
- package/dist/node_modules/@npmcli/fs/lib/rm/polyfill.js +239 -0
- package/dist/node_modules/@npmcli/fs/lib/with-owner-sync.js +21 -0
- package/dist/node_modules/@npmcli/fs/lib/with-owner.js +21 -0
- package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +41 -0
- package/dist/node_modules/@npmcli/fs/lib/write-file.js +14 -0
- package/dist/node_modules/@npmcli/fs/package.json +50 -0
- package/dist/node_modules/@npmcli/move-file/lib/index.js +185 -0
- package/dist/node_modules/@npmcli/move-file/package.json +47 -0
- package/dist/node_modules/@tootallnate/once/LICENSE +21 -0
- package/dist/node_modules/@tootallnate/once/dist/index.js +24 -0
- package/dist/node_modules/@tootallnate/once/dist/index.js.map +1 -0
- package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js +3 -0
- package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map +1 -0
- package/dist/node_modules/@tootallnate/once/dist/types.js +3 -0
- package/dist/node_modules/@tootallnate/once/dist/types.js.map +1 -0
- package/dist/node_modules/@tootallnate/once/package.json +52 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/abbrev.js +61 -0
- package/dist/node_modules/abbrev/package.json +21 -0
- package/dist/node_modules/agent-base/dist/src/index.js +203 -0
- package/dist/node_modules/agent-base/dist/src/index.js.map +1 -0
- package/dist/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/dist/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- package/dist/node_modules/agent-base/package.json +64 -0
- package/dist/node_modules/agentkeepalive/LICENSE +23 -0
- package/dist/node_modules/agentkeepalive/browser.js +5 -0
- package/dist/node_modules/agentkeepalive/index.js +5 -0
- package/dist/node_modules/agentkeepalive/lib/agent.js +402 -0
- package/dist/node_modules/agentkeepalive/lib/constants.js +14 -0
- package/dist/node_modules/agentkeepalive/lib/https_agent.js +51 -0
- package/dist/node_modules/agentkeepalive/package.json +56 -0
- package/dist/node_modules/aggregate-error/index.js +47 -0
- package/dist/node_modules/aggregate-error/license +9 -0
- package/dist/node_modules/aggregate-error/package.json +41 -0
- package/dist/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/aproba/LICENSE +14 -0
- package/dist/node_modules/aproba/index.js +105 -0
- package/dist/node_modules/aproba/package.json +35 -0
- package/dist/node_modules/are-we-there-yet/lib/index.js +4 -0
- package/dist/node_modules/are-we-there-yet/lib/tracker-base.js +11 -0
- package/dist/node_modules/are-we-there-yet/lib/tracker-group.js +116 -0
- package/dist/node_modules/are-we-there-yet/lib/tracker-stream.js +36 -0
- package/dist/node_modules/are-we-there-yet/lib/tracker.js +32 -0
- package/dist/node_modules/are-we-there-yet/package.json +56 -0
- package/dist/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/dist/node_modules/balanced-match/index.js +62 -0
- package/dist/node_modules/balanced-match/package.json +48 -0
- package/dist/node_modules/brace-expansion/LICENSE +21 -0
- package/dist/node_modules/brace-expansion/index.js +201 -0
- package/dist/node_modules/brace-expansion/package.json +47 -0
- package/dist/node_modules/cacache/lib/content/path.js +29 -0
- package/dist/node_modules/cacache/lib/content/read.js +241 -0
- package/dist/node_modules/cacache/lib/content/rm.js +20 -0
- package/dist/node_modules/cacache/lib/content/write.js +189 -0
- package/dist/node_modules/cacache/lib/entry-index.js +404 -0
- package/dist/node_modules/cacache/lib/get.js +225 -0
- package/dist/node_modules/cacache/lib/index.js +45 -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/fix-owner.js +145 -0
- package/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/dist/node_modules/cacache/lib/util/move-file.js +56 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +33 -0
- package/dist/node_modules/cacache/lib/verify.js +257 -0
- package/dist/node_modules/cacache/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/dist/node_modules/cacache/node_modules/brace-expansion/LICENSE +21 -0
- package/dist/node_modules/cacache/node_modules/brace-expansion/index.js +203 -0
- package/dist/node_modules/cacache/node_modules/brace-expansion/package.json +46 -0
- package/dist/node_modules/cacache/node_modules/glob/LICENSE +15 -0
- package/dist/node_modules/cacache/node_modules/glob/common.js +244 -0
- package/dist/node_modules/cacache/node_modules/glob/glob.js +790 -0
- package/dist/node_modules/cacache/node_modules/glob/package.json +55 -0
- package/dist/node_modules/cacache/node_modules/glob/sync.js +486 -0
- package/dist/node_modules/cacache/node_modules/minimatch/LICENSE +15 -0
- package/dist/node_modules/cacache/node_modules/minimatch/lib/path.js +4 -0
- package/dist/node_modules/cacache/node_modules/minimatch/minimatch.js +944 -0
- package/dist/node_modules/cacache/node_modules/minimatch/package.json +35 -0
- package/dist/node_modules/cacache/package.json +84 -0
- package/dist/node_modules/chownr/LICENSE +15 -0
- package/dist/node_modules/chownr/chownr.js +167 -0
- package/dist/node_modules/chownr/package.json +32 -0
- package/dist/node_modules/clean-stack/index.js +40 -0
- package/dist/node_modules/clean-stack/license +9 -0
- package/dist/node_modules/clean-stack/package.json +39 -0
- package/dist/node_modules/color-support/LICENSE +15 -0
- package/dist/node_modules/color-support/bin.js +3 -0
- package/dist/node_modules/color-support/browser.js +14 -0
- package/dist/node_modules/color-support/index.js +134 -0
- package/dist/node_modules/color-support/package.json +36 -0
- package/dist/node_modules/concat-map/LICENSE +18 -0
- package/dist/node_modules/concat-map/README.markdown +62 -0
- package/dist/node_modules/concat-map/index.js +13 -0
- package/dist/node_modules/concat-map/package.json +43 -0
- package/dist/node_modules/console-control-strings/LICENSE +13 -0
- package/dist/node_modules/console-control-strings/README.md~ +140 -0
- package/dist/node_modules/console-control-strings/index.js +125 -0
- package/dist/node_modules/console-control-strings/package.json +27 -0
- package/dist/node_modules/debug/LICENSE +20 -0
- package/dist/node_modules/debug/node_modules/ms/index.js +162 -0
- package/dist/node_modules/debug/node_modules/ms/package.json +37 -0
- package/dist/node_modules/debug/package.json +59 -0
- package/dist/node_modules/debug/src/browser.js +269 -0
- package/dist/node_modules/debug/src/common.js +274 -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/delegates/License +20 -0
- package/dist/node_modules/delegates/index.js +121 -0
- package/dist/node_modules/delegates/package.json +13 -0
- package/dist/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/node_modules/emoji-regex/es2015/index.js +6 -0
- package/dist/node_modules/emoji-regex/es2015/text.js +6 -0
- package/dist/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/emoji-regex/package.json +50 -0
- package/dist/node_modules/emoji-regex/text.js +6 -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 +118 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/dist/options.js.map +1 -0
- package/dist/node_modules/exponential-backoff/package.json +61 -0
- package/dist/node_modules/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/fs-minipass/index.js +422 -0
- package/dist/node_modules/fs-minipass/package.json +39 -0
- package/dist/node_modules/fs.realpath/LICENSE +43 -0
- package/dist/node_modules/fs.realpath/index.js +66 -0
- package/dist/node_modules/fs.realpath/old.js +303 -0
- package/dist/node_modules/fs.realpath/package.json +26 -0
- package/dist/node_modules/gauge/lib/base-theme.js +18 -0
- package/dist/node_modules/gauge/lib/error.js +24 -0
- package/dist/node_modules/gauge/lib/has-color.js +4 -0
- package/dist/node_modules/gauge/lib/index.js +289 -0
- package/dist/node_modules/gauge/lib/plumbing.js +50 -0
- package/dist/node_modules/gauge/lib/process.js +3 -0
- package/dist/node_modules/gauge/lib/progress-bar.js +41 -0
- package/dist/node_modules/gauge/lib/render-template.js +222 -0
- package/dist/node_modules/gauge/lib/set-immediate.js +7 -0
- package/dist/node_modules/gauge/lib/set-interval.js +3 -0
- package/dist/node_modules/gauge/lib/spin.js +5 -0
- package/dist/node_modules/gauge/lib/template-item.js +87 -0
- package/dist/node_modules/gauge/lib/theme-set.js +122 -0
- package/dist/node_modules/gauge/lib/themes.js +56 -0
- package/dist/node_modules/gauge/lib/wide-truncate.js +31 -0
- package/dist/node_modules/gauge/package.json +66 -0
- package/dist/node_modules/glob/LICENSE +21 -0
- package/dist/node_modules/glob/common.js +238 -0
- package/dist/node_modules/glob/glob.js +790 -0
- package/dist/node_modules/glob/package.json +55 -0
- package/dist/node_modules/glob/sync.js +486 -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/has-unicode/LICENSE +14 -0
- package/dist/node_modules/has-unicode/index.js +16 -0
- package/dist/node_modules/has-unicode/package.json +30 -0
- package/dist/node_modules/http-cache-semantics/LICENSE +9 -0
- package/dist/node_modules/http-cache-semantics/index.js +674 -0
- package/dist/node_modules/http-cache-semantics/package.json +18 -0
- package/dist/node_modules/http-proxy-agent/dist/agent.js +145 -0
- package/dist/node_modules/http-proxy-agent/dist/agent.js.map +1 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +14 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js.map +1 -0
- package/dist/node_modules/http-proxy-agent/package.json +57 -0
- package/dist/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/dist/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- package/dist/node_modules/https-proxy-agent/package.json +56 -0
- package/dist/node_modules/humanize-ms/LICENSE +17 -0
- package/dist/node_modules/humanize-ms/index.js +24 -0
- package/dist/node_modules/humanize-ms/package.json +37 -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/indent-string/index.js +35 -0
- package/dist/node_modules/indent-string/license +9 -0
- package/dist/node_modules/indent-string/package.json +37 -0
- package/dist/node_modules/infer-owner/LICENSE +15 -0
- package/dist/node_modules/infer-owner/index.js +71 -0
- package/dist/node_modules/infer-owner/package.json +26 -0
- package/dist/node_modules/inflight/LICENSE +15 -0
- package/dist/node_modules/inflight/inflight.js +54 -0
- package/dist/node_modules/inflight/package.json +29 -0
- package/dist/node_modules/inherits/LICENSE +16 -0
- package/dist/node_modules/inherits/inherits.js +9 -0
- package/dist/node_modules/inherits/inherits_browser.js +27 -0
- package/dist/node_modules/inherits/package.json +29 -0
- package/dist/node_modules/ip-address/LICENSE +19 -0
- package/dist/node_modules/ip-address/dist/address-error.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/address-error.js +14 -0
- package/dist/node_modules/ip-address/dist/address-error.js.map +1 -0
- package/dist/node_modules/ip-address/dist/common.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/common.js +26 -0
- package/dist/node_modules/ip-address/dist/common.js.map +1 -0
- package/dist/node_modules/ip-address/dist/ip-address.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/ip-address.js +35 -0
- package/dist/node_modules/ip-address/dist/ip-address.js.map +1 -0
- package/dist/node_modules/ip-address/dist/ipv4.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/ipv4.js +326 -0
- package/dist/node_modules/ip-address/dist/ipv4.js.map +1 -0
- package/dist/node_modules/ip-address/dist/ipv6.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/ipv6.js +998 -0
- package/dist/node_modules/ip-address/dist/ipv6.js.map +1 -0
- package/dist/node_modules/ip-address/dist/v4/constants.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/dist/node_modules/ip-address/dist/v4/constants.js.map +1 -0
- package/dist/node_modules/ip-address/dist/v6/constants.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/dist/node_modules/ip-address/dist/v6/constants.js.map +1 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.js +48 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.js.map +1 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.d.ts.map +1 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +96 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js.map +1 -0
- package/dist/node_modules/ip-address/package.json +87 -0
- package/dist/node_modules/is-fullwidth-code-point/index.js +50 -0
- package/dist/node_modules/is-fullwidth-code-point/license +9 -0
- package/dist/node_modules/is-fullwidth-code-point/package.json +42 -0
- package/dist/node_modules/is-lambda/LICENSE +21 -0
- package/dist/node_modules/is-lambda/index.js +6 -0
- package/dist/node_modules/is-lambda/package.json +35 -0
- package/dist/node_modules/is-lambda/test.js +16 -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/jsbn/LICENSE +40 -0
- package/dist/node_modules/jsbn/example.html +11 -0
- package/dist/node_modules/jsbn/example.js +5 -0
- package/dist/node_modules/jsbn/index.js +1361 -0
- package/dist/node_modules/jsbn/package.json +21 -0
- package/dist/node_modules/lru-cache/LICENSE +15 -0
- package/dist/node_modules/lru-cache/index.js +1227 -0
- package/dist/node_modules/lru-cache/index.mjs +1227 -0
- package/dist/node_modules/lru-cache/package.json +96 -0
- package/dist/node_modules/make-fetch-happen/LICENSE +16 -0
- package/dist/node_modules/make-fetch-happen/lib/agent.js +214 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +444 -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/dns.js +49 -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 +52 -0
- package/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +121 -0
- package/dist/node_modules/make-fetch-happen/package.json +79 -0
- package/dist/node_modules/minimatch/LICENSE +15 -0
- package/dist/node_modules/minimatch/minimatch.js +947 -0
- package/dist/node_modules/minimatch/package.json +33 -0
- package/dist/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass/package.json +56 -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 +29 -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 +365 -0
- package/dist/node_modules/minipass-fetch/lib/request.js +281 -0
- package/dist/node_modules/minipass-fetch/lib/response.js +90 -0
- package/dist/node_modules/minipass-fetch/package.json +67 -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/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/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/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/constants.js +115 -0
- package/dist/node_modules/minizlib/index.js +348 -0
- package/dist/node_modules/minizlib/package.json +42 -0
- package/dist/node_modules/mkdirp/LICENSE +21 -0
- package/dist/node_modules/mkdirp/bin/cmd.js +68 -0
- package/dist/node_modules/mkdirp/index.js +31 -0
- package/dist/node_modules/mkdirp/lib/find-made.js +29 -0
- package/dist/node_modules/mkdirp/lib/mkdirp-manual.js +64 -0
- package/dist/node_modules/mkdirp/lib/mkdirp-native.js +39 -0
- package/dist/node_modules/mkdirp/lib/opts-arg.js +23 -0
- package/dist/node_modules/mkdirp/lib/path-arg.js +29 -0
- package/dist/node_modules/mkdirp/lib/use-native.js +10 -0
- package/dist/node_modules/mkdirp/package.json +44 -0
- package/dist/node_modules/mkdirp/readme.markdown +266 -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 +82 -0
- package/dist/node_modules/negotiator/lib/charset.js +169 -0
- package/dist/node_modules/negotiator/lib/encoding.js +184 -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 +42 -0
- package/dist/node_modules/node-gyp/.github/workflows/release-please-v9.yml +57 -0
- package/dist/node_modules/node-gyp/.github/workflows/release-please.yml +56 -0
- package/dist/node_modules/node-gyp/.github/workflows/tests.yml +59 -0
- package/dist/node_modules/node-gyp/.github/workflows/visual-studio.yml +37 -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 +140 -0
- package/dist/node_modules/node-gyp/gyp/.flake8 +4 -0
- package/dist/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml +36 -0
- package/dist/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml +45 -0
- package/dist/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml +32 -0
- package/dist/node_modules/node-gyp/gyp/.github/workflows/release-please.yml +16 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -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 +367 -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 +1270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1547 -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 +153 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +271 -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 +690 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +661 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +78 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +165 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +109 -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 +808 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1173 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1321 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +120 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +103 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +464 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +89 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +58 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2714 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3981 -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 +2936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1394 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +25 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3130 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +98 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +771 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1271 -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 +374 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1939 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +302 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3197 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +65 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +41 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +261 -0
- package/dist/node_modules/node-gyp/gyp/tools/README +15 -0
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/README +5 -0
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +27 -0
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +226 -0
- package/dist/node_modules/node-gyp/gyp/tools/emacs/README +12 -0
- package/dist/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +63 -0
- package/dist/node_modules/node-gyp/gyp/tools/emacs/gyp.el +275 -0
- package/dist/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +7 -0
- package/dist/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +1105 -0
- package/dist/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +1107 -0
- package/dist/node_modules/node-gyp/gyp/tools/graphviz.py +102 -0
- package/dist/node_modules/node-gyp/gyp/tools/pretty_gyp.py +156 -0
- package/dist/node_modules/node-gyp/gyp/tools/pretty_sln.py +181 -0
- package/dist/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +339 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +213 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +360 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +147 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +344 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +463 -0
- package/dist/node_modules/node-gyp/lib/install.js +458 -0
- package/dist/node_modules/node-gyp/lib/list.js +27 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +215 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +147 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +13 -0
- package/dist/node_modules/node-gyp/lib/remove.js +46 -0
- package/dist/node_modules/node-gyp/lib/util.js +64 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/package.json +51 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +39 -0
- package/dist/node_modules/node-gyp/update-gyp.py +64 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +56 -0
- package/dist/node_modules/nopt/lib/nopt.js +515 -0
- package/dist/node_modules/nopt/package.json +53 -0
- package/dist/node_modules/npmlog/lib/log.js +404 -0
- package/dist/node_modules/npmlog/package.json +51 -0
- package/dist/node_modules/once/LICENSE +15 -0
- package/dist/node_modules/once/once.js +42 -0
- package/dist/node_modules/once/package.json +33 -0
- package/dist/node_modules/p-map/index.js +81 -0
- package/dist/node_modules/p-map/license +9 -0
- package/dist/node_modules/p-map/package.json +53 -0
- package/dist/node_modules/path-is-absolute/index.js +20 -0
- package/dist/node_modules/path-is-absolute/license +21 -0
- package/dist/node_modules/path-is-absolute/package.json +43 -0
- package/dist/node_modules/promise-inflight/LICENSE +14 -0
- package/dist/node_modules/promise-inflight/inflight.js +36 -0
- package/dist/node_modules/promise-inflight/package.json +24 -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/readable-stream/LICENSE +47 -0
- package/dist/node_modules/readable-stream/errors-browser.js +127 -0
- package/dist/node_modules/readable-stream/errors.js +116 -0
- package/dist/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +126 -0
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +37 -0
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +1027 -0
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +190 -0
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +641 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +180 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +183 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +96 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +86 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/from.js +52 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +86 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/state.js +22 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/dist/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/dist/node_modules/readable-stream/package.json +68 -0
- package/dist/node_modules/readable-stream/readable-browser.js +9 -0
- package/dist/node_modules/readable-stream/readable.js +16 -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/rimraf/LICENSE +15 -0
- package/dist/node_modules/rimraf/bin.js +68 -0
- package/dist/node_modules/rimraf/package.json +32 -0
- package/dist/node_modules/rimraf/rimraf.js +360 -0
- package/dist/node_modules/safe-buffer/LICENSE +21 -0
- package/dist/node_modules/safe-buffer/index.js +65 -0
- package/dist/node_modules/safe-buffer/package.json +51 -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 +197 -0
- package/dist/node_modules/semver/classes/comparator.js +141 -0
- package/dist/node_modules/semver/classes/index.js +5 -0
- package/dist/node_modules/semver/classes/range.js +539 -0
- package/dist/node_modules/semver/classes/semver.js +302 -0
- package/dist/node_modules/semver/functions/clean.js +6 -0
- package/dist/node_modules/semver/functions/cmp.js +52 -0
- package/dist/node_modules/semver/functions/coerce.js +52 -0
- package/dist/node_modules/semver/functions/compare-build.js +7 -0
- package/dist/node_modules/semver/functions/compare-loose.js +3 -0
- package/dist/node_modules/semver/functions/compare.js +5 -0
- package/dist/node_modules/semver/functions/diff.js +65 -0
- package/dist/node_modules/semver/functions/eq.js +3 -0
- package/dist/node_modules/semver/functions/gt.js +3 -0
- package/dist/node_modules/semver/functions/gte.js +3 -0
- package/dist/node_modules/semver/functions/inc.js +19 -0
- package/dist/node_modules/semver/functions/lt.js +3 -0
- package/dist/node_modules/semver/functions/lte.js +3 -0
- package/dist/node_modules/semver/functions/major.js +3 -0
- package/dist/node_modules/semver/functions/minor.js +3 -0
- package/dist/node_modules/semver/functions/neq.js +3 -0
- package/dist/node_modules/semver/functions/parse.js +16 -0
- package/dist/node_modules/semver/functions/patch.js +3 -0
- package/dist/node_modules/semver/functions/prerelease.js +6 -0
- package/dist/node_modules/semver/functions/rcompare.js +3 -0
- package/dist/node_modules/semver/functions/rsort.js +3 -0
- package/dist/node_modules/semver/functions/satisfies.js +10 -0
- package/dist/node_modules/semver/functions/sort.js +3 -0
- package/dist/node_modules/semver/functions/valid.js +6 -0
- package/dist/node_modules/semver/index.js +89 -0
- package/dist/node_modules/semver/internal/constants.js +35 -0
- package/dist/node_modules/semver/internal/debug.js +9 -0
- package/dist/node_modules/semver/internal/identifiers.js +23 -0
- package/dist/node_modules/semver/internal/parse-options.js +15 -0
- package/dist/node_modules/semver/internal/re.js +212 -0
- package/dist/node_modules/semver/node_modules/lru-cache/LICENSE +15 -0
- package/dist/node_modules/semver/node_modules/lru-cache/index.js +334 -0
- package/dist/node_modules/semver/node_modules/lru-cache/package.json +34 -0
- package/dist/node_modules/semver/package.json +87 -0
- package/dist/node_modules/semver/preload.js +2 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +4 -0
- package/dist/node_modules/semver/ranges/intersects.js +7 -0
- package/dist/node_modules/semver/ranges/ltr.js +4 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/dist/node_modules/semver/ranges/min-version.js +61 -0
- package/dist/node_modules/semver/ranges/outside.js +80 -0
- package/dist/node_modules/semver/ranges/simplify.js +47 -0
- package/dist/node_modules/semver/ranges/subset.js +247 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +8 -0
- package/dist/node_modules/semver/ranges/valid.js +11 -0
- package/dist/node_modules/set-blocking/LICENSE.txt +14 -0
- package/dist/node_modules/set-blocking/index.js +7 -0
- package/dist/node_modules/set-blocking/package.json +42 -0
- package/dist/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dist/node_modules/signal-exit/index.js +202 -0
- package/dist/node_modules/signal-exit/package.json +38 -0
- package/dist/node_modules/signal-exit/signals.js +53 -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/smartbuffer.js.map +1 -0
- package/dist/node_modules/smart-buffer/build/utils.js +108 -0
- package/dist/node_modules/smart-buffer/build/utils.js.map +1 -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/client/socksclient.js.map +1 -0
- package/dist/node_modules/socks/build/common/constants.js +108 -0
- package/dist/node_modules/socks/build/common/constants.js.map +1 -0
- package/dist/node_modules/socks/build/common/helpers.js +162 -0
- package/dist/node_modules/socks/build/common/helpers.js.map +1 -0
- package/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/dist/node_modules/socks/build/common/receivebuffer.js.map +1 -0
- package/dist/node_modules/socks/build/common/util.js +25 -0
- package/dist/node_modules/socks/build/common/util.js.map +1 -0
- package/dist/node_modules/socks/build/index.js +18 -0
- package/dist/node_modules/socks/build/index.js.map +1 -0
- package/dist/node_modules/socks/package.json +58 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +197 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -0
- package/dist/node_modules/socks-proxy-agent/package.json +181 -0
- package/dist/node_modules/sprintf-js/LICENSE +24 -0
- package/dist/node_modules/sprintf-js/dist/angular-sprintf.min.js +3 -0
- package/dist/node_modules/sprintf-js/dist/angular-sprintf.min.js.map +1 -0
- package/dist/node_modules/sprintf-js/dist/sprintf.min.js +3 -0
- package/dist/node_modules/sprintf-js/dist/sprintf.min.js.map +1 -0
- package/dist/node_modules/sprintf-js/package.json +35 -0
- package/dist/node_modules/sprintf-js/src/angular-sprintf.js +24 -0
- package/dist/node_modules/sprintf-js/src/sprintf.js +231 -0
- package/dist/node_modules/ssri/lib/index.js +524 -0
- package/dist/node_modules/ssri/package.json +63 -0
- package/dist/node_modules/string-width/index.js +47 -0
- package/dist/node_modules/string-width/license +9 -0
- package/dist/node_modules/string-width/package.json +56 -0
- package/dist/node_modules/string_decoder/LICENSE +48 -0
- package/dist/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/dist/node_modules/string_decoder/package.json +34 -0
- package/dist/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/strip-ansi/package.json +54 -0
- package/dist/node_modules/tar/LICENSE +15 -0
- package/dist/node_modules/tar/index.js +18 -0
- package/dist/node_modules/tar/lib/create.js +111 -0
- package/dist/node_modules/tar/lib/extract.js +113 -0
- package/dist/node_modules/tar/lib/get-write-flag.js +20 -0
- package/dist/node_modules/tar/lib/header.js +304 -0
- package/dist/node_modules/tar/lib/high-level-opt.js +29 -0
- package/dist/node_modules/tar/lib/large-numbers.js +104 -0
- package/dist/node_modules/tar/lib/list.js +139 -0
- package/dist/node_modules/tar/lib/mkdir.js +229 -0
- package/dist/node_modules/tar/lib/mode-fix.js +27 -0
- package/dist/node_modules/tar/lib/normalize-unicode.js +12 -0
- package/dist/node_modules/tar/lib/normalize-windows-path.js +8 -0
- package/dist/node_modules/tar/lib/pack.js +432 -0
- package/dist/node_modules/tar/lib/parse.js +552 -0
- package/dist/node_modules/tar/lib/path-reservations.js +156 -0
- package/dist/node_modules/tar/lib/pax.js +150 -0
- package/dist/node_modules/tar/lib/read-entry.js +107 -0
- package/dist/node_modules/tar/lib/replace.js +246 -0
- package/dist/node_modules/tar/lib/strip-absolute-path.js +24 -0
- package/dist/node_modules/tar/lib/strip-trailing-slashes.js +13 -0
- package/dist/node_modules/tar/lib/types.js +44 -0
- package/dist/node_modules/tar/lib/unpack.js +906 -0
- package/dist/node_modules/tar/lib/update.js +40 -0
- package/dist/node_modules/tar/lib/warn-mixin.js +24 -0
- package/dist/node_modules/tar/lib/winchars.js +23 -0
- package/dist/node_modules/tar/lib/write-entry.js +546 -0
- package/dist/node_modules/tar/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/tar/node_modules/minipass/index.js +702 -0
- package/dist/node_modules/tar/node_modules/minipass/index.mjs +702 -0
- package/dist/node_modules/tar/node_modules/minipass/package.json +76 -0
- package/dist/node_modules/tar/package.json +70 -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 +48 -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 +44 -0
- package/dist/node_modules/util-deprecate/LICENSE +24 -0
- package/dist/node_modules/util-deprecate/browser.js +67 -0
- package/dist/node_modules/util-deprecate/node.js +6 -0
- package/dist/node_modules/util-deprecate/package.json +27 -0
- package/dist/node_modules/v8-compile-cache/LICENSE +21 -0
- 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/wide-align/LICENSE +14 -0
- package/dist/node_modules/wide-align/align.js +65 -0
- package/dist/node_modules/wide-align/package.json +33 -0
- package/dist/node_modules/wrappy/LICENSE +15 -0
- package/dist/node_modules/wrappy/package.json +29 -0
- package/dist/node_modules/wrappy/wrappy.js +33 -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.cjs +218856 -0
- package/dist/pnpmrc +4 -0
- package/dist/reflink.darwin-arm64-MYEHQQCP.node +0 -0
- package/dist/reflink.darwin-x64-CDTBYYIZ.node +0 -0
- package/dist/reflink.win32-arm64-msvc-IYGSKCGJ.node +0 -0
- package/dist/reflink.win32-x64-msvc-5E6AAURT.node +0 -0
- package/dist/scripts/bash.sh +30 -0
- package/dist/scripts/fish.sh +22 -0
- package/dist/scripts/zsh.sh +18 -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 +16631 -0
- package/package.json +162 -57
- package/bin/pxnpm +0 -27
- package/bin/pxnpm-check +0 -38
- package/bin/pxnpm-doc +0 -46
- package/bin/pxnpm-search +0 -9
- package/bin/pxnpm-sync +0 -175
- package/bin/pxnpm-update +0 -26
- package/bin/pxnpm-user +0 -10
- package/bin/pxnpm-web +0 -8
- package/lib/config.js +0 -138
- package/lib/help.js +0 -40
- package/lib/origin_npm.js +0 -113
- package/lib/parse_argv.js +0 -150
- package/lib/utils.js +0 -16
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const Module = require('module');
|
|
4
|
+
const crypto = require('crypto');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const vm = require('vm');
|
|
8
|
+
const os = require('os');
|
|
9
|
+
|
|
10
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
11
|
+
|
|
12
|
+
//------------------------------------------------------------------------------
|
|
13
|
+
// FileSystemBlobStore
|
|
14
|
+
//------------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
class FileSystemBlobStore {
|
|
17
|
+
constructor(directory, prefix) {
|
|
18
|
+
const name = prefix ? slashEscape(prefix + '.') : '';
|
|
19
|
+
this._blobFilename = path.join(directory, name + 'BLOB');
|
|
20
|
+
this._mapFilename = path.join(directory, name + 'MAP');
|
|
21
|
+
this._lockFilename = path.join(directory, name + 'LOCK');
|
|
22
|
+
this._directory = directory;
|
|
23
|
+
this._load();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
has(key, invalidationKey) {
|
|
27
|
+
if (hasOwnProperty.call(this._memoryBlobs, key)) {
|
|
28
|
+
return this._invalidationKeys[key] === invalidationKey;
|
|
29
|
+
} else if (hasOwnProperty.call(this._storedMap, key)) {
|
|
30
|
+
return this._storedMap[key][0] === invalidationKey;
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
get(key, invalidationKey) {
|
|
36
|
+
if (hasOwnProperty.call(this._memoryBlobs, key)) {
|
|
37
|
+
if (this._invalidationKeys[key] === invalidationKey) {
|
|
38
|
+
return this._memoryBlobs[key];
|
|
39
|
+
}
|
|
40
|
+
} else if (hasOwnProperty.call(this._storedMap, key)) {
|
|
41
|
+
const mapping = this._storedMap[key];
|
|
42
|
+
if (mapping[0] === invalidationKey) {
|
|
43
|
+
return this._storedBlob.slice(mapping[1], mapping[2]);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
set(key, invalidationKey, buffer) {
|
|
49
|
+
this._invalidationKeys[key] = invalidationKey;
|
|
50
|
+
this._memoryBlobs[key] = buffer;
|
|
51
|
+
this._dirty = true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
delete(key) {
|
|
55
|
+
if (hasOwnProperty.call(this._memoryBlobs, key)) {
|
|
56
|
+
this._dirty = true;
|
|
57
|
+
delete this._memoryBlobs[key];
|
|
58
|
+
}
|
|
59
|
+
if (hasOwnProperty.call(this._invalidationKeys, key)) {
|
|
60
|
+
this._dirty = true;
|
|
61
|
+
delete this._invalidationKeys[key];
|
|
62
|
+
}
|
|
63
|
+
if (hasOwnProperty.call(this._storedMap, key)) {
|
|
64
|
+
this._dirty = true;
|
|
65
|
+
delete this._storedMap[key];
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
isDirty() {
|
|
70
|
+
return this._dirty;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
save() {
|
|
74
|
+
const dump = this._getDump();
|
|
75
|
+
const blobToStore = Buffer.concat(dump[0]);
|
|
76
|
+
const mapToStore = JSON.stringify(dump[1]);
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
mkdirpSync(this._directory);
|
|
80
|
+
fs.writeFileSync(this._lockFilename, 'LOCK', {flag: 'wx'});
|
|
81
|
+
} catch (error) {
|
|
82
|
+
// Swallow the exception if we fail to acquire the lock.
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
try {
|
|
87
|
+
fs.writeFileSync(this._blobFilename, blobToStore);
|
|
88
|
+
fs.writeFileSync(this._mapFilename, mapToStore);
|
|
89
|
+
} finally {
|
|
90
|
+
fs.unlinkSync(this._lockFilename);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
return true;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
_load() {
|
|
97
|
+
try {
|
|
98
|
+
this._storedBlob = fs.readFileSync(this._blobFilename);
|
|
99
|
+
this._storedMap = JSON.parse(fs.readFileSync(this._mapFilename));
|
|
100
|
+
} catch (e) {
|
|
101
|
+
this._storedBlob = Buffer.alloc(0);
|
|
102
|
+
this._storedMap = {};
|
|
103
|
+
}
|
|
104
|
+
this._dirty = false;
|
|
105
|
+
this._memoryBlobs = {};
|
|
106
|
+
this._invalidationKeys = {};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
_getDump() {
|
|
110
|
+
const buffers = [];
|
|
111
|
+
const newMap = {};
|
|
112
|
+
let offset = 0;
|
|
113
|
+
|
|
114
|
+
function push(key, invalidationKey, buffer) {
|
|
115
|
+
buffers.push(buffer);
|
|
116
|
+
newMap[key] = [invalidationKey, offset, offset + buffer.length];
|
|
117
|
+
offset += buffer.length;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
for (const key of Object.keys(this._memoryBlobs)) {
|
|
121
|
+
const buffer = this._memoryBlobs[key];
|
|
122
|
+
const invalidationKey = this._invalidationKeys[key];
|
|
123
|
+
push(key, invalidationKey, buffer);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
for (const key of Object.keys(this._storedMap)) {
|
|
127
|
+
if (hasOwnProperty.call(newMap, key)) continue;
|
|
128
|
+
const mapping = this._storedMap[key];
|
|
129
|
+
const buffer = this._storedBlob.slice(mapping[1], mapping[2]);
|
|
130
|
+
push(key, mapping[0], buffer);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return [buffers, newMap];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
//------------------------------------------------------------------------------
|
|
138
|
+
// NativeCompileCache
|
|
139
|
+
//------------------------------------------------------------------------------
|
|
140
|
+
|
|
141
|
+
class NativeCompileCache {
|
|
142
|
+
constructor() {
|
|
143
|
+
this._cacheStore = null;
|
|
144
|
+
this._previousModuleCompile = null;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
setCacheStore(cacheStore) {
|
|
148
|
+
this._cacheStore = cacheStore;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
install() {
|
|
152
|
+
const self = this;
|
|
153
|
+
const hasRequireResolvePaths = typeof require.resolve.paths === 'function';
|
|
154
|
+
this._previousModuleCompile = Module.prototype._compile;
|
|
155
|
+
Module.prototype._compile = function(content, filename) {
|
|
156
|
+
const mod = this;
|
|
157
|
+
|
|
158
|
+
function require(id) {
|
|
159
|
+
return mod.require(id);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// https://github.com/nodejs/node/blob/v10.15.3/lib/internal/modules/cjs/helpers.js#L28
|
|
163
|
+
function resolve(request, options) {
|
|
164
|
+
return Module._resolveFilename(request, mod, false, options);
|
|
165
|
+
}
|
|
166
|
+
require.resolve = resolve;
|
|
167
|
+
|
|
168
|
+
// https://github.com/nodejs/node/blob/v10.15.3/lib/internal/modules/cjs/helpers.js#L37
|
|
169
|
+
// resolve.resolve.paths was added in v8.9.0
|
|
170
|
+
if (hasRequireResolvePaths) {
|
|
171
|
+
resolve.paths = function paths(request) {
|
|
172
|
+
return Module._resolveLookupPaths(request, mod, true);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
require.main = process.mainModule;
|
|
177
|
+
|
|
178
|
+
// Enable support to add extra extension types
|
|
179
|
+
require.extensions = Module._extensions;
|
|
180
|
+
require.cache = Module._cache;
|
|
181
|
+
|
|
182
|
+
const dirname = path.dirname(filename);
|
|
183
|
+
|
|
184
|
+
const compiledWrapper = self._moduleCompile(filename, content);
|
|
185
|
+
|
|
186
|
+
// We skip the debugger setup because by the time we run, node has already
|
|
187
|
+
// done that itself.
|
|
188
|
+
|
|
189
|
+
// `Buffer` is included for Electron.
|
|
190
|
+
// See https://github.com/zertosh/v8-compile-cache/pull/10#issuecomment-518042543
|
|
191
|
+
const args = [mod.exports, require, mod, filename, dirname, process, global, Buffer];
|
|
192
|
+
return compiledWrapper.apply(mod.exports, args);
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
uninstall() {
|
|
197
|
+
Module.prototype._compile = this._previousModuleCompile;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
_moduleCompile(filename, content) {
|
|
201
|
+
// https://github.com/nodejs/node/blob/v7.5.0/lib/module.js#L511
|
|
202
|
+
|
|
203
|
+
// Remove shebang
|
|
204
|
+
var contLen = content.length;
|
|
205
|
+
if (contLen >= 2) {
|
|
206
|
+
if (content.charCodeAt(0) === 35/*#*/ &&
|
|
207
|
+
content.charCodeAt(1) === 33/*!*/) {
|
|
208
|
+
if (contLen === 2) {
|
|
209
|
+
// Exact match
|
|
210
|
+
content = '';
|
|
211
|
+
} else {
|
|
212
|
+
// Find end of shebang line and slice it off
|
|
213
|
+
var i = 2;
|
|
214
|
+
for (; i < contLen; ++i) {
|
|
215
|
+
var code = content.charCodeAt(i);
|
|
216
|
+
if (code === 10/*\n*/ || code === 13/*\r*/) break;
|
|
217
|
+
}
|
|
218
|
+
if (i === contLen) {
|
|
219
|
+
content = '';
|
|
220
|
+
} else {
|
|
221
|
+
// Note that this actually includes the newline character(s) in the
|
|
222
|
+
// new output. This duplicates the behavior of the regular
|
|
223
|
+
// expression that was previously used to replace the shebang line
|
|
224
|
+
content = content.slice(i);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// create wrapper function
|
|
231
|
+
var wrapper = Module.wrap(content);
|
|
232
|
+
|
|
233
|
+
var invalidationKey = crypto
|
|
234
|
+
.createHash('sha1')
|
|
235
|
+
.update(content, 'utf8')
|
|
236
|
+
.digest('hex');
|
|
237
|
+
|
|
238
|
+
var buffer = this._cacheStore.get(filename, invalidationKey);
|
|
239
|
+
|
|
240
|
+
var script = new vm.Script(wrapper, {
|
|
241
|
+
filename: filename,
|
|
242
|
+
lineOffset: 0,
|
|
243
|
+
displayErrors: true,
|
|
244
|
+
cachedData: buffer,
|
|
245
|
+
produceCachedData: true,
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
if (script.cachedDataProduced) {
|
|
249
|
+
this._cacheStore.set(filename, invalidationKey, script.cachedData);
|
|
250
|
+
} else if (script.cachedDataRejected) {
|
|
251
|
+
this._cacheStore.delete(filename);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
var compiledWrapper = script.runInThisContext({
|
|
255
|
+
filename: filename,
|
|
256
|
+
lineOffset: 0,
|
|
257
|
+
columnOffset: 0,
|
|
258
|
+
displayErrors: true,
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
return compiledWrapper;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
//------------------------------------------------------------------------------
|
|
266
|
+
// utilities
|
|
267
|
+
//
|
|
268
|
+
// https://github.com/substack/node-mkdirp/blob/f2003bb/index.js#L55-L98
|
|
269
|
+
// https://github.com/zertosh/slash-escape/blob/e7ebb99/slash-escape.js
|
|
270
|
+
//------------------------------------------------------------------------------
|
|
271
|
+
|
|
272
|
+
function mkdirpSync(p_) {
|
|
273
|
+
_mkdirpSync(path.resolve(p_), 0o777);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
function _mkdirpSync(p, mode) {
|
|
277
|
+
try {
|
|
278
|
+
fs.mkdirSync(p, mode);
|
|
279
|
+
} catch (err0) {
|
|
280
|
+
if (err0.code === 'ENOENT') {
|
|
281
|
+
_mkdirpSync(path.dirname(p));
|
|
282
|
+
_mkdirpSync(p);
|
|
283
|
+
} else {
|
|
284
|
+
try {
|
|
285
|
+
const stat = fs.statSync(p);
|
|
286
|
+
if (!stat.isDirectory()) { throw err0; }
|
|
287
|
+
} catch (err1) {
|
|
288
|
+
throw err0;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function slashEscape(str) {
|
|
295
|
+
const ESCAPE_LOOKUP = {
|
|
296
|
+
'\\': 'zB',
|
|
297
|
+
':': 'zC',
|
|
298
|
+
'/': 'zS',
|
|
299
|
+
'\x00': 'z0',
|
|
300
|
+
'z': 'zZ',
|
|
301
|
+
};
|
|
302
|
+
const ESCAPE_REGEX = /[\\:/\x00z]/g; // eslint-disable-line no-control-regex
|
|
303
|
+
return str.replace(ESCAPE_REGEX, match => ESCAPE_LOOKUP[match]);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function supportsCachedData() {
|
|
307
|
+
const script = new vm.Script('""', {produceCachedData: true});
|
|
308
|
+
// chakracore, as of v1.7.1.0, returns `false`.
|
|
309
|
+
return script.cachedDataProduced === true;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
function getCacheDir() {
|
|
313
|
+
const v8_compile_cache_cache_dir = process.env.V8_COMPILE_CACHE_CACHE_DIR;
|
|
314
|
+
if (v8_compile_cache_cache_dir) {
|
|
315
|
+
return v8_compile_cache_cache_dir;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
// Avoid cache ownership issues on POSIX systems.
|
|
319
|
+
const dirname = typeof process.getuid === 'function'
|
|
320
|
+
? 'v8-compile-cache-' + process.getuid()
|
|
321
|
+
: 'v8-compile-cache';
|
|
322
|
+
// Avoid cache incompatibility issues with Rosetta on Apple Silicon.
|
|
323
|
+
const arch = process.arch;
|
|
324
|
+
const version = typeof process.versions.v8 === 'string'
|
|
325
|
+
? process.versions.v8
|
|
326
|
+
: typeof process.versions.chakracore === 'string'
|
|
327
|
+
? 'chakracore-' + process.versions.chakracore
|
|
328
|
+
: 'node-' + process.version;
|
|
329
|
+
const cacheDir = path.join(os.tmpdir(), dirname, arch, version);
|
|
330
|
+
return cacheDir;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function getMainName() {
|
|
334
|
+
// `require.main.filename` is undefined or null when:
|
|
335
|
+
// * node -e 'require("v8-compile-cache")'
|
|
336
|
+
// * node -r 'v8-compile-cache'
|
|
337
|
+
// * Or, requiring from the REPL.
|
|
338
|
+
const mainName = require.main && typeof require.main.filename === 'string'
|
|
339
|
+
? require.main.filename
|
|
340
|
+
: process.cwd();
|
|
341
|
+
return mainName;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
//------------------------------------------------------------------------------
|
|
345
|
+
// main
|
|
346
|
+
//------------------------------------------------------------------------------
|
|
347
|
+
|
|
348
|
+
if (!process.env.DISABLE_V8_COMPILE_CACHE && supportsCachedData()) {
|
|
349
|
+
const cacheDir = getCacheDir();
|
|
350
|
+
const prefix = getMainName();
|
|
351
|
+
const blobStore = new FileSystemBlobStore(cacheDir, prefix);
|
|
352
|
+
|
|
353
|
+
const nativeCompileCache = new NativeCompileCache();
|
|
354
|
+
nativeCompileCache.setCacheStore(blobStore);
|
|
355
|
+
nativeCompileCache.install();
|
|
356
|
+
|
|
357
|
+
process.once('exit', () => {
|
|
358
|
+
if (blobStore.isDirty()) {
|
|
359
|
+
blobStore.save();
|
|
360
|
+
}
|
|
361
|
+
nativeCompileCache.uninstall();
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
module.exports.__TEST__ = {
|
|
366
|
+
FileSystemBlobStore,
|
|
367
|
+
NativeCompileCache,
|
|
368
|
+
mkdirpSync,
|
|
369
|
+
slashEscape,
|
|
370
|
+
supportsCachedData,
|
|
371
|
+
getCacheDir,
|
|
372
|
+
getMainName,
|
|
373
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
The ISC License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Isaac Z. Schlueter and Contributors
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
+
copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
10
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
11
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
12
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
13
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
14
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
15
|
+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var which = require("../")
|
|
3
|
+
if (process.argv.length < 3)
|
|
4
|
+
usage()
|
|
5
|
+
|
|
6
|
+
function usage () {
|
|
7
|
+
console.error('usage: which [-as] program ...')
|
|
8
|
+
process.exit(1)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
var all = false
|
|
12
|
+
var silent = false
|
|
13
|
+
var dashdash = false
|
|
14
|
+
var args = process.argv.slice(2).filter(function (arg) {
|
|
15
|
+
if (dashdash || !/^-/.test(arg))
|
|
16
|
+
return true
|
|
17
|
+
|
|
18
|
+
if (arg === '--') {
|
|
19
|
+
dashdash = true
|
|
20
|
+
return false
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
var flags = arg.substr(1).split('')
|
|
24
|
+
for (var f = 0; f < flags.length; f++) {
|
|
25
|
+
var flag = flags[f]
|
|
26
|
+
switch (flag) {
|
|
27
|
+
case 's':
|
|
28
|
+
silent = true
|
|
29
|
+
break
|
|
30
|
+
case 'a':
|
|
31
|
+
all = true
|
|
32
|
+
break
|
|
33
|
+
default:
|
|
34
|
+
console.error('which: illegal option -- ' + flag)
|
|
35
|
+
usage()
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
process.exit(args.reduce(function (pv, current) {
|
|
42
|
+
try {
|
|
43
|
+
var f = which.sync(current, { all: all })
|
|
44
|
+
if (all)
|
|
45
|
+
f = f.join('\n')
|
|
46
|
+
if (!silent)
|
|
47
|
+
console.log(f)
|
|
48
|
+
return pv;
|
|
49
|
+
} catch (e) {
|
|
50
|
+
return 1;
|
|
51
|
+
}
|
|
52
|
+
}, 0))
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me)",
|
|
3
|
+
"name": "which",
|
|
4
|
+
"description": "Like which(1) unix command. Find the first instance of an executable in the PATH.",
|
|
5
|
+
"version": "2.0.2",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git://github.com/isaacs/node-which.git"
|
|
9
|
+
},
|
|
10
|
+
"main": "which.js",
|
|
11
|
+
"bin": {
|
|
12
|
+
"node-which": "./bin/node-which"
|
|
13
|
+
},
|
|
14
|
+
"license": "ISC",
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"isexe": "^2.0.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"mkdirp": "^0.5.0",
|
|
20
|
+
"rimraf": "^2.6.2",
|
|
21
|
+
"tap": "^14.6.9"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "tap",
|
|
25
|
+
"preversion": "npm test",
|
|
26
|
+
"postversion": "npm publish",
|
|
27
|
+
"prepublish": "npm run changelog",
|
|
28
|
+
"prechangelog": "bash gen-changelog.sh",
|
|
29
|
+
"changelog": "git add CHANGELOG.md",
|
|
30
|
+
"postchangelog": "git commit -m 'update changelog - '${npm_package_version}",
|
|
31
|
+
"postpublish": "git push origin --follow-tags"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"which.js",
|
|
35
|
+
"bin/node-which"
|
|
36
|
+
],
|
|
37
|
+
"tap": {
|
|
38
|
+
"check-coverage": true
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">= 8"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
const isWindows = process.platform === 'win32' ||
|
|
2
|
+
process.env.OSTYPE === 'cygwin' ||
|
|
3
|
+
process.env.OSTYPE === 'msys'
|
|
4
|
+
|
|
5
|
+
const path = require('path')
|
|
6
|
+
const COLON = isWindows ? ';' : ':'
|
|
7
|
+
const isexe = require('isexe')
|
|
8
|
+
|
|
9
|
+
const getNotFoundError = (cmd) =>
|
|
10
|
+
Object.assign(new Error(`not found: ${cmd}`), { code: 'ENOENT' })
|
|
11
|
+
|
|
12
|
+
const getPathInfo = (cmd, opt) => {
|
|
13
|
+
const colon = opt.colon || COLON
|
|
14
|
+
|
|
15
|
+
// If it has a slash, then we don't bother searching the pathenv.
|
|
16
|
+
// just check the file itself, and that's it.
|
|
17
|
+
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? ['']
|
|
18
|
+
: (
|
|
19
|
+
[
|
|
20
|
+
// windows always checks the cwd first
|
|
21
|
+
...(isWindows ? [process.cwd()] : []),
|
|
22
|
+
...(opt.path || process.env.PATH ||
|
|
23
|
+
/* istanbul ignore next: very unusual */ '').split(colon),
|
|
24
|
+
]
|
|
25
|
+
)
|
|
26
|
+
const pathExtExe = isWindows
|
|
27
|
+
? opt.pathExt || process.env.PATHEXT || '.EXE;.CMD;.BAT;.COM'
|
|
28
|
+
: ''
|
|
29
|
+
const pathExt = isWindows ? pathExtExe.split(colon) : ['']
|
|
30
|
+
|
|
31
|
+
if (isWindows) {
|
|
32
|
+
if (cmd.indexOf('.') !== -1 && pathExt[0] !== '')
|
|
33
|
+
pathExt.unshift('')
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return {
|
|
37
|
+
pathEnv,
|
|
38
|
+
pathExt,
|
|
39
|
+
pathExtExe,
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const which = (cmd, opt, cb) => {
|
|
44
|
+
if (typeof opt === 'function') {
|
|
45
|
+
cb = opt
|
|
46
|
+
opt = {}
|
|
47
|
+
}
|
|
48
|
+
if (!opt)
|
|
49
|
+
opt = {}
|
|
50
|
+
|
|
51
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)
|
|
52
|
+
const found = []
|
|
53
|
+
|
|
54
|
+
const step = i => new Promise((resolve, reject) => {
|
|
55
|
+
if (i === pathEnv.length)
|
|
56
|
+
return opt.all && found.length ? resolve(found)
|
|
57
|
+
: reject(getNotFoundError(cmd))
|
|
58
|
+
|
|
59
|
+
const ppRaw = pathEnv[i]
|
|
60
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw
|
|
61
|
+
|
|
62
|
+
const pCmd = path.join(pathPart, cmd)
|
|
63
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd
|
|
64
|
+
: pCmd
|
|
65
|
+
|
|
66
|
+
resolve(subStep(p, i, 0))
|
|
67
|
+
})
|
|
68
|
+
|
|
69
|
+
const subStep = (p, i, ii) => new Promise((resolve, reject) => {
|
|
70
|
+
if (ii === pathExt.length)
|
|
71
|
+
return resolve(step(i + 1))
|
|
72
|
+
const ext = pathExt[ii]
|
|
73
|
+
isexe(p + ext, { pathExt: pathExtExe }, (er, is) => {
|
|
74
|
+
if (!er && is) {
|
|
75
|
+
if (opt.all)
|
|
76
|
+
found.push(p + ext)
|
|
77
|
+
else
|
|
78
|
+
return resolve(p + ext)
|
|
79
|
+
}
|
|
80
|
+
return resolve(subStep(p, i, ii + 1))
|
|
81
|
+
})
|
|
82
|
+
})
|
|
83
|
+
|
|
84
|
+
return cb ? step(0).then(res => cb(null, res), cb) : step(0)
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const whichSync = (cmd, opt) => {
|
|
88
|
+
opt = opt || {}
|
|
89
|
+
|
|
90
|
+
const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt)
|
|
91
|
+
const found = []
|
|
92
|
+
|
|
93
|
+
for (let i = 0; i < pathEnv.length; i ++) {
|
|
94
|
+
const ppRaw = pathEnv[i]
|
|
95
|
+
const pathPart = /^".*"$/.test(ppRaw) ? ppRaw.slice(1, -1) : ppRaw
|
|
96
|
+
|
|
97
|
+
const pCmd = path.join(pathPart, cmd)
|
|
98
|
+
const p = !pathPart && /^\.[\\\/]/.test(cmd) ? cmd.slice(0, 2) + pCmd
|
|
99
|
+
: pCmd
|
|
100
|
+
|
|
101
|
+
for (let j = 0; j < pathExt.length; j ++) {
|
|
102
|
+
const cur = p + pathExt[j]
|
|
103
|
+
try {
|
|
104
|
+
const is = isexe.sync(cur, { pathExt: pathExtExe })
|
|
105
|
+
if (is) {
|
|
106
|
+
if (opt.all)
|
|
107
|
+
found.push(cur)
|
|
108
|
+
else
|
|
109
|
+
return cur
|
|
110
|
+
}
|
|
111
|
+
} catch (ex) {}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (opt.all && found.length)
|
|
116
|
+
return found
|
|
117
|
+
|
|
118
|
+
if (opt.nothrow)
|
|
119
|
+
return null
|
|
120
|
+
|
|
121
|
+
throw getNotFoundError(cmd)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
module.exports = which
|
|
125
|
+
which.sync = whichSync
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Copyright (c) 2015, Rebecca Turner <me@re-becca.org>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
13
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
var stringWidth = require('string-width')
|
|
3
|
+
|
|
4
|
+
exports.center = alignCenter
|
|
5
|
+
exports.left = alignLeft
|
|
6
|
+
exports.right = alignRight
|
|
7
|
+
|
|
8
|
+
// lodash's way of generating pad characters.
|
|
9
|
+
|
|
10
|
+
function createPadding (width) {
|
|
11
|
+
var result = ''
|
|
12
|
+
var string = ' '
|
|
13
|
+
var n = width
|
|
14
|
+
do {
|
|
15
|
+
if (n % 2) {
|
|
16
|
+
result += string;
|
|
17
|
+
}
|
|
18
|
+
n = Math.floor(n / 2);
|
|
19
|
+
string += string;
|
|
20
|
+
} while (n);
|
|
21
|
+
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function alignLeft (str, width) {
|
|
26
|
+
var trimmed = str.trimRight()
|
|
27
|
+
if (trimmed.length === 0 && str.length >= width) return str
|
|
28
|
+
var padding = ''
|
|
29
|
+
var strWidth = stringWidth(trimmed)
|
|
30
|
+
|
|
31
|
+
if (strWidth < width) {
|
|
32
|
+
padding = createPadding(width - strWidth)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return trimmed + padding
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function alignRight (str, width) {
|
|
39
|
+
var trimmed = str.trimLeft()
|
|
40
|
+
if (trimmed.length === 0 && str.length >= width) return str
|
|
41
|
+
var padding = ''
|
|
42
|
+
var strWidth = stringWidth(trimmed)
|
|
43
|
+
|
|
44
|
+
if (strWidth < width) {
|
|
45
|
+
padding = createPadding(width - strWidth)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return padding + trimmed
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function alignCenter (str, width) {
|
|
52
|
+
var trimmed = str.trim()
|
|
53
|
+
if (trimmed.length === 0 && str.length >= width) return str
|
|
54
|
+
var padLeft = ''
|
|
55
|
+
var padRight = ''
|
|
56
|
+
var strWidth = stringWidth(trimmed)
|
|
57
|
+
|
|
58
|
+
if (strWidth < width) {
|
|
59
|
+
var padLeftBy = parseInt((width - strWidth) / 2, 10)
|
|
60
|
+
padLeft = createPadding(padLeftBy)
|
|
61
|
+
padRight = createPadding(width - (strWidth + padLeftBy))
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return padLeft + trimmed + padRight
|
|
65
|
+
}
|