pxnpm 3.0.8 → 4.0.1
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 +161 -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,225 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const Collect = require('minipass-collect')
|
|
4
|
+
const Minipass = require('minipass')
|
|
5
|
+
const Pipeline = require('minipass-pipeline')
|
|
6
|
+
|
|
7
|
+
const index = require('./entry-index')
|
|
8
|
+
const memo = require('./memoization')
|
|
9
|
+
const read = require('./content/read')
|
|
10
|
+
|
|
11
|
+
async function getData (cache, key, opts = {}) {
|
|
12
|
+
const { integrity, memoize, size } = opts
|
|
13
|
+
const memoized = memo.get(cache, key, opts)
|
|
14
|
+
if (memoized && memoize !== false) {
|
|
15
|
+
return {
|
|
16
|
+
metadata: memoized.entry.metadata,
|
|
17
|
+
data: memoized.data,
|
|
18
|
+
integrity: memoized.entry.integrity,
|
|
19
|
+
size: memoized.entry.size,
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const entry = await index.find(cache, key, opts)
|
|
24
|
+
if (!entry) {
|
|
25
|
+
throw new index.NotFoundError(cache, key)
|
|
26
|
+
}
|
|
27
|
+
const data = await read(cache, entry.integrity, { integrity, size })
|
|
28
|
+
if (memoize) {
|
|
29
|
+
memo.put(cache, entry, data, opts)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return {
|
|
33
|
+
data,
|
|
34
|
+
metadata: entry.metadata,
|
|
35
|
+
size: entry.size,
|
|
36
|
+
integrity: entry.integrity,
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
module.exports = getData
|
|
40
|
+
|
|
41
|
+
async function getDataByDigest (cache, key, opts = {}) {
|
|
42
|
+
const { integrity, memoize, size } = opts
|
|
43
|
+
const memoized = memo.get.byDigest(cache, key, opts)
|
|
44
|
+
if (memoized && memoize !== false) {
|
|
45
|
+
return memoized
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const res = await read(cache, key, { integrity, size })
|
|
49
|
+
if (memoize) {
|
|
50
|
+
memo.put.byDigest(cache, key, res, opts)
|
|
51
|
+
}
|
|
52
|
+
return res
|
|
53
|
+
}
|
|
54
|
+
module.exports.byDigest = getDataByDigest
|
|
55
|
+
|
|
56
|
+
function getDataSync (cache, key, opts = {}) {
|
|
57
|
+
const { integrity, memoize, size } = opts
|
|
58
|
+
const memoized = memo.get(cache, key, opts)
|
|
59
|
+
|
|
60
|
+
if (memoized && memoize !== false) {
|
|
61
|
+
return {
|
|
62
|
+
metadata: memoized.entry.metadata,
|
|
63
|
+
data: memoized.data,
|
|
64
|
+
integrity: memoized.entry.integrity,
|
|
65
|
+
size: memoized.entry.size,
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
const entry = index.find.sync(cache, key, opts)
|
|
69
|
+
if (!entry) {
|
|
70
|
+
throw new index.NotFoundError(cache, key)
|
|
71
|
+
}
|
|
72
|
+
const data = read.sync(cache, entry.integrity, {
|
|
73
|
+
integrity: integrity,
|
|
74
|
+
size: size,
|
|
75
|
+
})
|
|
76
|
+
const res = {
|
|
77
|
+
metadata: entry.metadata,
|
|
78
|
+
data: data,
|
|
79
|
+
size: entry.size,
|
|
80
|
+
integrity: entry.integrity,
|
|
81
|
+
}
|
|
82
|
+
if (memoize) {
|
|
83
|
+
memo.put(cache, entry, res.data, opts)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return res
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
module.exports.sync = getDataSync
|
|
90
|
+
|
|
91
|
+
function getDataByDigestSync (cache, digest, opts = {}) {
|
|
92
|
+
const { integrity, memoize, size } = opts
|
|
93
|
+
const memoized = memo.get.byDigest(cache, digest, opts)
|
|
94
|
+
|
|
95
|
+
if (memoized && memoize !== false) {
|
|
96
|
+
return memoized
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
const res = read.sync(cache, digest, {
|
|
100
|
+
integrity: integrity,
|
|
101
|
+
size: size,
|
|
102
|
+
})
|
|
103
|
+
if (memoize) {
|
|
104
|
+
memo.put.byDigest(cache, digest, res, opts)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
return res
|
|
108
|
+
}
|
|
109
|
+
module.exports.sync.byDigest = getDataByDigestSync
|
|
110
|
+
|
|
111
|
+
const getMemoizedStream = (memoized) => {
|
|
112
|
+
const stream = new Minipass()
|
|
113
|
+
stream.on('newListener', function (ev, cb) {
|
|
114
|
+
ev === 'metadata' && cb(memoized.entry.metadata)
|
|
115
|
+
ev === 'integrity' && cb(memoized.entry.integrity)
|
|
116
|
+
ev === 'size' && cb(memoized.entry.size)
|
|
117
|
+
})
|
|
118
|
+
stream.end(memoized.data)
|
|
119
|
+
return stream
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function getStream (cache, key, opts = {}) {
|
|
123
|
+
const { memoize, size } = opts
|
|
124
|
+
const memoized = memo.get(cache, key, opts)
|
|
125
|
+
if (memoized && memoize !== false) {
|
|
126
|
+
return getMemoizedStream(memoized)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const stream = new Pipeline()
|
|
130
|
+
// Set all this up to run on the stream and then just return the stream
|
|
131
|
+
Promise.resolve().then(async () => {
|
|
132
|
+
const entry = await index.find(cache, key)
|
|
133
|
+
if (!entry) {
|
|
134
|
+
throw new index.NotFoundError(cache, key)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
stream.emit('metadata', entry.metadata)
|
|
138
|
+
stream.emit('integrity', entry.integrity)
|
|
139
|
+
stream.emit('size', entry.size)
|
|
140
|
+
stream.on('newListener', function (ev, cb) {
|
|
141
|
+
ev === 'metadata' && cb(entry.metadata)
|
|
142
|
+
ev === 'integrity' && cb(entry.integrity)
|
|
143
|
+
ev === 'size' && cb(entry.size)
|
|
144
|
+
})
|
|
145
|
+
|
|
146
|
+
const src = read.readStream(
|
|
147
|
+
cache,
|
|
148
|
+
entry.integrity,
|
|
149
|
+
{ ...opts, size: typeof size !== 'number' ? entry.size : size }
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
if (memoize) {
|
|
153
|
+
const memoStream = new Collect.PassThrough()
|
|
154
|
+
memoStream.on('collect', data => memo.put(cache, entry, data, opts))
|
|
155
|
+
stream.unshift(memoStream)
|
|
156
|
+
}
|
|
157
|
+
stream.unshift(src)
|
|
158
|
+
return stream
|
|
159
|
+
}).catch((err) => stream.emit('error', err))
|
|
160
|
+
|
|
161
|
+
return stream
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
module.exports.stream = getStream
|
|
165
|
+
|
|
166
|
+
function getStreamDigest (cache, integrity, opts = {}) {
|
|
167
|
+
const { memoize } = opts
|
|
168
|
+
const memoized = memo.get.byDigest(cache, integrity, opts)
|
|
169
|
+
if (memoized && memoize !== false) {
|
|
170
|
+
const stream = new Minipass()
|
|
171
|
+
stream.end(memoized)
|
|
172
|
+
return stream
|
|
173
|
+
} else {
|
|
174
|
+
const stream = read.readStream(cache, integrity, opts)
|
|
175
|
+
if (!memoize) {
|
|
176
|
+
return stream
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const memoStream = new Collect.PassThrough()
|
|
180
|
+
memoStream.on('collect', data => memo.put.byDigest(
|
|
181
|
+
cache,
|
|
182
|
+
integrity,
|
|
183
|
+
data,
|
|
184
|
+
opts
|
|
185
|
+
))
|
|
186
|
+
return new Pipeline(stream, memoStream)
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
module.exports.stream.byDigest = getStreamDigest
|
|
191
|
+
|
|
192
|
+
function info (cache, key, opts = {}) {
|
|
193
|
+
const { memoize } = opts
|
|
194
|
+
const memoized = memo.get(cache, key, opts)
|
|
195
|
+
if (memoized && memoize !== false) {
|
|
196
|
+
return Promise.resolve(memoized.entry)
|
|
197
|
+
} else {
|
|
198
|
+
return index.find(cache, key)
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
module.exports.info = info
|
|
202
|
+
|
|
203
|
+
async function copy (cache, key, dest, opts = {}) {
|
|
204
|
+
const entry = await index.find(cache, key, opts)
|
|
205
|
+
if (!entry) {
|
|
206
|
+
throw new index.NotFoundError(cache, key)
|
|
207
|
+
}
|
|
208
|
+
await read.copy(cache, entry.integrity, dest, opts)
|
|
209
|
+
return {
|
|
210
|
+
metadata: entry.metadata,
|
|
211
|
+
size: entry.size,
|
|
212
|
+
integrity: entry.integrity,
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
module.exports.copy = copy
|
|
217
|
+
|
|
218
|
+
async function copyByDigest (cache, key, dest, opts = {}) {
|
|
219
|
+
await read.copy(cache, key, dest, opts)
|
|
220
|
+
return key
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
module.exports.copy.byDigest = copyByDigest
|
|
224
|
+
|
|
225
|
+
module.exports.hasContent = read.hasContent
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const get = require('./get.js')
|
|
4
|
+
const put = require('./put.js')
|
|
5
|
+
const rm = require('./rm.js')
|
|
6
|
+
const verify = require('./verify.js')
|
|
7
|
+
const { clearMemoized } = require('./memoization.js')
|
|
8
|
+
const tmp = require('./util/tmp.js')
|
|
9
|
+
const index = require('./entry-index.js')
|
|
10
|
+
|
|
11
|
+
module.exports.index = {}
|
|
12
|
+
module.exports.index.compact = index.compact
|
|
13
|
+
module.exports.index.insert = index.insert
|
|
14
|
+
|
|
15
|
+
module.exports.ls = index.ls
|
|
16
|
+
module.exports.ls.stream = index.lsStream
|
|
17
|
+
|
|
18
|
+
module.exports.get = get
|
|
19
|
+
module.exports.get.byDigest = get.byDigest
|
|
20
|
+
module.exports.get.sync = get.sync
|
|
21
|
+
module.exports.get.sync.byDigest = get.sync.byDigest
|
|
22
|
+
module.exports.get.stream = get.stream
|
|
23
|
+
module.exports.get.stream.byDigest = get.stream.byDigest
|
|
24
|
+
module.exports.get.copy = get.copy
|
|
25
|
+
module.exports.get.copy.byDigest = get.copy.byDigest
|
|
26
|
+
module.exports.get.info = get.info
|
|
27
|
+
module.exports.get.hasContent = get.hasContent
|
|
28
|
+
module.exports.get.hasContent.sync = get.hasContent.sync
|
|
29
|
+
|
|
30
|
+
module.exports.put = put
|
|
31
|
+
module.exports.put.stream = put.stream
|
|
32
|
+
|
|
33
|
+
module.exports.rm = rm.entry
|
|
34
|
+
module.exports.rm.all = rm.all
|
|
35
|
+
module.exports.rm.entry = module.exports.rm
|
|
36
|
+
module.exports.rm.content = rm.content
|
|
37
|
+
|
|
38
|
+
module.exports.clearMemoized = clearMemoized
|
|
39
|
+
|
|
40
|
+
module.exports.tmp = {}
|
|
41
|
+
module.exports.tmp.mkdir = tmp.mkdir
|
|
42
|
+
module.exports.tmp.withTmp = tmp.withTmp
|
|
43
|
+
|
|
44
|
+
module.exports.verify = verify
|
|
45
|
+
module.exports.verify.lastRun = verify.lastRun
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const LRU = require('lru-cache')
|
|
4
|
+
|
|
5
|
+
const MEMOIZED = new LRU({
|
|
6
|
+
max: 500,
|
|
7
|
+
maxSize: 50 * 1024 * 1024, // 50MB
|
|
8
|
+
ttl: 3 * 60 * 1000, // 3 minutes
|
|
9
|
+
sizeCalculation: (entry, key) => key.startsWith('key:') ? entry.data.length : entry.length,
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
module.exports.clearMemoized = clearMemoized
|
|
13
|
+
|
|
14
|
+
function clearMemoized () {
|
|
15
|
+
const old = {}
|
|
16
|
+
MEMOIZED.forEach((v, k) => {
|
|
17
|
+
old[k] = v
|
|
18
|
+
})
|
|
19
|
+
MEMOIZED.clear()
|
|
20
|
+
return old
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
module.exports.put = put
|
|
24
|
+
|
|
25
|
+
function put (cache, entry, data, opts) {
|
|
26
|
+
pickMem(opts).set(`key:${cache}:${entry.key}`, { entry, data })
|
|
27
|
+
putDigest(cache, entry.integrity, data, opts)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
module.exports.put.byDigest = putDigest
|
|
31
|
+
|
|
32
|
+
function putDigest (cache, integrity, data, opts) {
|
|
33
|
+
pickMem(opts).set(`digest:${cache}:${integrity}`, data)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
module.exports.get = get
|
|
37
|
+
|
|
38
|
+
function get (cache, key, opts) {
|
|
39
|
+
return pickMem(opts).get(`key:${cache}:${key}`)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
module.exports.get.byDigest = getDigest
|
|
43
|
+
|
|
44
|
+
function getDigest (cache, integrity, opts) {
|
|
45
|
+
return pickMem(opts).get(`digest:${cache}:${integrity}`)
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
class ObjProxy {
|
|
49
|
+
constructor (obj) {
|
|
50
|
+
this.obj = obj
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
get (key) {
|
|
54
|
+
return this.obj[key]
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
set (key, val) {
|
|
58
|
+
this.obj[key] = val
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
function pickMem (opts) {
|
|
63
|
+
if (!opts || !opts.memoize) {
|
|
64
|
+
return MEMOIZED
|
|
65
|
+
} else if (opts.memoize.get && opts.memoize.set) {
|
|
66
|
+
return opts.memoize
|
|
67
|
+
} else if (typeof opts.memoize === 'object') {
|
|
68
|
+
return new ObjProxy(opts.memoize)
|
|
69
|
+
} else {
|
|
70
|
+
return MEMOIZED
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const index = require('./entry-index')
|
|
4
|
+
const memo = require('./memoization')
|
|
5
|
+
const write = require('./content/write')
|
|
6
|
+
const Flush = require('minipass-flush')
|
|
7
|
+
const { PassThrough } = require('minipass-collect')
|
|
8
|
+
const Pipeline = require('minipass-pipeline')
|
|
9
|
+
|
|
10
|
+
const putOpts = (opts) => ({
|
|
11
|
+
algorithms: ['sha512'],
|
|
12
|
+
...opts,
|
|
13
|
+
})
|
|
14
|
+
|
|
15
|
+
module.exports = putData
|
|
16
|
+
|
|
17
|
+
async function putData (cache, key, data, opts = {}) {
|
|
18
|
+
const { memoize } = opts
|
|
19
|
+
opts = putOpts(opts)
|
|
20
|
+
const res = await write(cache, data, opts)
|
|
21
|
+
const entry = await index.insert(cache, key, res.integrity, { ...opts, size: res.size })
|
|
22
|
+
if (memoize) {
|
|
23
|
+
memo.put(cache, entry, data, opts)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return res.integrity
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports.stream = putStream
|
|
30
|
+
|
|
31
|
+
function putStream (cache, key, opts = {}) {
|
|
32
|
+
const { memoize } = opts
|
|
33
|
+
opts = putOpts(opts)
|
|
34
|
+
let integrity
|
|
35
|
+
let size
|
|
36
|
+
let error
|
|
37
|
+
|
|
38
|
+
let memoData
|
|
39
|
+
const pipeline = new Pipeline()
|
|
40
|
+
// first item in the pipeline is the memoizer, because we need
|
|
41
|
+
// that to end first and get the collected data.
|
|
42
|
+
if (memoize) {
|
|
43
|
+
const memoizer = new PassThrough().on('collect', data => {
|
|
44
|
+
memoData = data
|
|
45
|
+
})
|
|
46
|
+
pipeline.push(memoizer)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// contentStream is a write-only, not a passthrough
|
|
50
|
+
// no data comes out of it.
|
|
51
|
+
const contentStream = write.stream(cache, opts)
|
|
52
|
+
.on('integrity', (int) => {
|
|
53
|
+
integrity = int
|
|
54
|
+
})
|
|
55
|
+
.on('size', (s) => {
|
|
56
|
+
size = s
|
|
57
|
+
})
|
|
58
|
+
.on('error', (err) => {
|
|
59
|
+
error = err
|
|
60
|
+
})
|
|
61
|
+
|
|
62
|
+
pipeline.push(contentStream)
|
|
63
|
+
|
|
64
|
+
// last but not least, we write the index and emit hash and size,
|
|
65
|
+
// and memoize if we're doing that
|
|
66
|
+
pipeline.push(new Flush({
|
|
67
|
+
async flush () {
|
|
68
|
+
if (!error) {
|
|
69
|
+
const entry = await index.insert(cache, key, integrity, { ...opts, size })
|
|
70
|
+
if (memoize && memoData) {
|
|
71
|
+
memo.put(cache, entry, memoData, opts)
|
|
72
|
+
}
|
|
73
|
+
pipeline.emit('integrity', integrity)
|
|
74
|
+
pipeline.emit('size', size)
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
}))
|
|
78
|
+
|
|
79
|
+
return pipeline
|
|
80
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const util = require('util')
|
|
4
|
+
|
|
5
|
+
const index = require('./entry-index')
|
|
6
|
+
const memo = require('./memoization')
|
|
7
|
+
const path = require('path')
|
|
8
|
+
const rimraf = util.promisify(require('rimraf'))
|
|
9
|
+
const rmContent = require('./content/rm')
|
|
10
|
+
|
|
11
|
+
module.exports = entry
|
|
12
|
+
module.exports.entry = entry
|
|
13
|
+
|
|
14
|
+
function entry (cache, key, opts) {
|
|
15
|
+
memo.clearMemoized()
|
|
16
|
+
return index.delete(cache, key, opts)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports.content = content
|
|
20
|
+
|
|
21
|
+
function content (cache, integrity) {
|
|
22
|
+
memo.clearMemoized()
|
|
23
|
+
return rmContent(cache, integrity)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports.all = all
|
|
27
|
+
|
|
28
|
+
function all (cache) {
|
|
29
|
+
memo.clearMemoized()
|
|
30
|
+
return rimraf(path.join(cache, '*(content-*|index-*)'))
|
|
31
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const util = require('util')
|
|
4
|
+
|
|
5
|
+
const chownr = util.promisify(require('chownr'))
|
|
6
|
+
const mkdirp = require('mkdirp')
|
|
7
|
+
const inflight = require('promise-inflight')
|
|
8
|
+
const inferOwner = require('infer-owner')
|
|
9
|
+
|
|
10
|
+
// Memoize getuid()/getgid() calls.
|
|
11
|
+
// patch process.setuid/setgid to invalidate cached value on change
|
|
12
|
+
const self = { uid: null, gid: null }
|
|
13
|
+
const getSelf = () => {
|
|
14
|
+
if (typeof self.uid !== 'number') {
|
|
15
|
+
self.uid = process.getuid()
|
|
16
|
+
const setuid = process.setuid
|
|
17
|
+
process.setuid = (uid) => {
|
|
18
|
+
self.uid = null
|
|
19
|
+
process.setuid = setuid
|
|
20
|
+
return process.setuid(uid)
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (typeof self.gid !== 'number') {
|
|
24
|
+
self.gid = process.getgid()
|
|
25
|
+
const setgid = process.setgid
|
|
26
|
+
process.setgid = (gid) => {
|
|
27
|
+
self.gid = null
|
|
28
|
+
process.setgid = setgid
|
|
29
|
+
return process.setgid(gid)
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
module.exports.chownr = fixOwner
|
|
35
|
+
|
|
36
|
+
async function fixOwner (cache, filepath) {
|
|
37
|
+
if (!process.getuid) {
|
|
38
|
+
// This platform doesn't need ownership fixing
|
|
39
|
+
return
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
getSelf()
|
|
43
|
+
if (self.uid !== 0) {
|
|
44
|
+
// almost certainly can't chown anyway
|
|
45
|
+
return
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const { uid, gid } = await inferOwner(cache)
|
|
49
|
+
|
|
50
|
+
// No need to override if it's already what we used.
|
|
51
|
+
if (self.uid === uid && self.gid === gid) {
|
|
52
|
+
return
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return inflight('fixOwner: fixing ownership on ' + filepath, () =>
|
|
56
|
+
chownr(
|
|
57
|
+
filepath,
|
|
58
|
+
typeof uid === 'number' ? uid : self.uid,
|
|
59
|
+
typeof gid === 'number' ? gid : self.gid
|
|
60
|
+
).catch((err) => {
|
|
61
|
+
if (err.code === 'ENOENT') {
|
|
62
|
+
return null
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
throw err
|
|
66
|
+
})
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
module.exports.chownr.sync = fixOwnerSync
|
|
71
|
+
|
|
72
|
+
function fixOwnerSync (cache, filepath) {
|
|
73
|
+
if (!process.getuid) {
|
|
74
|
+
// This platform doesn't need ownership fixing
|
|
75
|
+
return
|
|
76
|
+
}
|
|
77
|
+
const { uid, gid } = inferOwner.sync(cache)
|
|
78
|
+
getSelf()
|
|
79
|
+
if (self.uid !== 0) {
|
|
80
|
+
// almost certainly can't chown anyway
|
|
81
|
+
return
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (self.uid === uid && self.gid === gid) {
|
|
85
|
+
// No need to override if it's already what we used.
|
|
86
|
+
return
|
|
87
|
+
}
|
|
88
|
+
try {
|
|
89
|
+
chownr.sync(
|
|
90
|
+
filepath,
|
|
91
|
+
typeof uid === 'number' ? uid : self.uid,
|
|
92
|
+
typeof gid === 'number' ? gid : self.gid
|
|
93
|
+
)
|
|
94
|
+
} catch (err) {
|
|
95
|
+
// only catch ENOENT, any other error is a problem.
|
|
96
|
+
if (err.code === 'ENOENT') {
|
|
97
|
+
return null
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
throw err
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
module.exports.mkdirfix = mkdirfix
|
|
105
|
+
|
|
106
|
+
async function mkdirfix (cache, p, cb) {
|
|
107
|
+
// we have to infer the owner _before_ making the directory, even though
|
|
108
|
+
// we aren't going to use the results, since the cache itself might not
|
|
109
|
+
// exist yet. If we mkdirp it, then our current uid/gid will be assumed
|
|
110
|
+
// to be correct if it creates the cache folder in the process.
|
|
111
|
+
await inferOwner(cache)
|
|
112
|
+
try {
|
|
113
|
+
const made = await mkdirp(p)
|
|
114
|
+
if (made) {
|
|
115
|
+
await fixOwner(cache, made)
|
|
116
|
+
return made
|
|
117
|
+
}
|
|
118
|
+
} catch (err) {
|
|
119
|
+
if (err.code === 'EEXIST') {
|
|
120
|
+
await fixOwner(cache, p)
|
|
121
|
+
return null
|
|
122
|
+
}
|
|
123
|
+
throw err
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
module.exports.mkdirfix.sync = mkdirfixSync
|
|
128
|
+
|
|
129
|
+
function mkdirfixSync (cache, p) {
|
|
130
|
+
try {
|
|
131
|
+
inferOwner.sync(cache)
|
|
132
|
+
const made = mkdirp.sync(p)
|
|
133
|
+
if (made) {
|
|
134
|
+
fixOwnerSync(cache, made)
|
|
135
|
+
return made
|
|
136
|
+
}
|
|
137
|
+
} catch (err) {
|
|
138
|
+
if (err.code === 'EEXIST') {
|
|
139
|
+
fixOwnerSync(cache, p)
|
|
140
|
+
return null
|
|
141
|
+
} else {
|
|
142
|
+
throw err
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const fs = require('@npmcli/fs')
|
|
4
|
+
const move = require('@npmcli/move-file')
|
|
5
|
+
const pinflight = require('promise-inflight')
|
|
6
|
+
|
|
7
|
+
module.exports = moveFile
|
|
8
|
+
|
|
9
|
+
async function moveFile (src, dest) {
|
|
10
|
+
const isWindows = process.platform === 'win32'
|
|
11
|
+
|
|
12
|
+
// This isn't quite an fs.rename -- the assumption is that
|
|
13
|
+
// if `dest` already exists, and we get certain errors while
|
|
14
|
+
// trying to move it, we should just not bother.
|
|
15
|
+
//
|
|
16
|
+
// In the case of cache corruption, users will receive an
|
|
17
|
+
// EINTEGRITY error elsewhere, and can remove the offending
|
|
18
|
+
// content their own way.
|
|
19
|
+
//
|
|
20
|
+
// Note that, as the name suggests, this strictly only supports file moves.
|
|
21
|
+
try {
|
|
22
|
+
await fs.link(src, dest)
|
|
23
|
+
} catch (err) {
|
|
24
|
+
if (isWindows && err.code === 'EPERM') {
|
|
25
|
+
// XXX This is a really weird way to handle this situation, as it
|
|
26
|
+
// results in the src file being deleted even though the dest
|
|
27
|
+
// might not exist. Since we pretty much always write files to
|
|
28
|
+
// deterministic locations based on content hash, this is likely
|
|
29
|
+
// ok (or at worst, just ends in a future cache miss). But it would
|
|
30
|
+
// be worth investigating at some time in the future if this is
|
|
31
|
+
// really what we want to do here.
|
|
32
|
+
} else if (err.code === 'EEXIST' || err.code === 'EBUSY') {
|
|
33
|
+
// file already exists, so whatever
|
|
34
|
+
} else {
|
|
35
|
+
throw err
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
await Promise.all([
|
|
40
|
+
fs.unlink(src),
|
|
41
|
+
!isWindows && fs.chmod(dest, '0444'),
|
|
42
|
+
])
|
|
43
|
+
} catch (e) {
|
|
44
|
+
return pinflight('cacache-move-file:' + dest, async () => {
|
|
45
|
+
await fs.stat(dest).catch((err) => {
|
|
46
|
+
if (err.code !== 'ENOENT') {
|
|
47
|
+
// Something else is wrong here. Bail bail bail
|
|
48
|
+
throw err
|
|
49
|
+
}
|
|
50
|
+
})
|
|
51
|
+
// file doesn't already exist! let's try a rename -> copy fallback
|
|
52
|
+
// only delete if it successfully copies
|
|
53
|
+
return move(src, dest)
|
|
54
|
+
})
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const fs = require('@npmcli/fs')
|
|
4
|
+
|
|
5
|
+
const fixOwner = require('./fix-owner')
|
|
6
|
+
const path = require('path')
|
|
7
|
+
|
|
8
|
+
module.exports.mkdir = mktmpdir
|
|
9
|
+
|
|
10
|
+
async function mktmpdir (cache, opts = {}) {
|
|
11
|
+
const { tmpPrefix } = opts
|
|
12
|
+
const tmpDir = path.join(cache, 'tmp')
|
|
13
|
+
await fs.mkdir(tmpDir, { recursive: true, owner: 'inherit' })
|
|
14
|
+
// do not use path.join(), it drops the trailing / if tmpPrefix is unset
|
|
15
|
+
const target = `${tmpDir}${path.sep}${tmpPrefix || ''}`
|
|
16
|
+
return fs.mkdtemp(target, { owner: 'inherit' })
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module.exports.withTmp = withTmp
|
|
20
|
+
|
|
21
|
+
function withTmp (cache, opts, cb) {
|
|
22
|
+
if (!cb) {
|
|
23
|
+
cb = opts
|
|
24
|
+
opts = {}
|
|
25
|
+
}
|
|
26
|
+
return fs.withTempDir(path.join(cache, 'tmp'), cb, opts)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module.exports.fix = fixtmpdir
|
|
30
|
+
|
|
31
|
+
function fixtmpdir (cache) {
|
|
32
|
+
return fixOwner(cache, path.join(cache, 'tmp'))
|
|
33
|
+
}
|