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,552 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// this[BUFFER] is the remainder of a chunk if we're waiting for
|
|
4
|
+
// the full 512 bytes of a header to come in. We will Buffer.concat()
|
|
5
|
+
// it to the next write(), which is a mem copy, but a small one.
|
|
6
|
+
//
|
|
7
|
+
// this[QUEUE] is a Yallist of entries that haven't been emitted
|
|
8
|
+
// yet this can only get filled up if the user keeps write()ing after
|
|
9
|
+
// a write() returns false, or does a write() with more than one entry
|
|
10
|
+
//
|
|
11
|
+
// We don't buffer chunks, we always parse them and either create an
|
|
12
|
+
// entry, or push it into the active entry. The ReadEntry class knows
|
|
13
|
+
// to throw data away if .ignore=true
|
|
14
|
+
//
|
|
15
|
+
// Shift entry off the buffer when it emits 'end', and emit 'entry' for
|
|
16
|
+
// the next one in the list.
|
|
17
|
+
//
|
|
18
|
+
// At any time, we're pushing body chunks into the entry at WRITEENTRY,
|
|
19
|
+
// and waiting for 'end' on the entry at READENTRY
|
|
20
|
+
//
|
|
21
|
+
// ignored entries get .resume() called on them straight away
|
|
22
|
+
|
|
23
|
+
const warner = require('./warn-mixin.js')
|
|
24
|
+
const Header = require('./header.js')
|
|
25
|
+
const EE = require('events')
|
|
26
|
+
const Yallist = require('yallist')
|
|
27
|
+
const maxMetaEntrySize = 1024 * 1024
|
|
28
|
+
const Entry = require('./read-entry.js')
|
|
29
|
+
const Pax = require('./pax.js')
|
|
30
|
+
const zlib = require('minizlib')
|
|
31
|
+
const { nextTick } = require('process')
|
|
32
|
+
|
|
33
|
+
const gzipHeader = Buffer.from([0x1f, 0x8b])
|
|
34
|
+
const STATE = Symbol('state')
|
|
35
|
+
const WRITEENTRY = Symbol('writeEntry')
|
|
36
|
+
const READENTRY = Symbol('readEntry')
|
|
37
|
+
const NEXTENTRY = Symbol('nextEntry')
|
|
38
|
+
const PROCESSENTRY = Symbol('processEntry')
|
|
39
|
+
const EX = Symbol('extendedHeader')
|
|
40
|
+
const GEX = Symbol('globalExtendedHeader')
|
|
41
|
+
const META = Symbol('meta')
|
|
42
|
+
const EMITMETA = Symbol('emitMeta')
|
|
43
|
+
const BUFFER = Symbol('buffer')
|
|
44
|
+
const QUEUE = Symbol('queue')
|
|
45
|
+
const ENDED = Symbol('ended')
|
|
46
|
+
const EMITTEDEND = Symbol('emittedEnd')
|
|
47
|
+
const EMIT = Symbol('emit')
|
|
48
|
+
const UNZIP = Symbol('unzip')
|
|
49
|
+
const CONSUMECHUNK = Symbol('consumeChunk')
|
|
50
|
+
const CONSUMECHUNKSUB = Symbol('consumeChunkSub')
|
|
51
|
+
const CONSUMEBODY = Symbol('consumeBody')
|
|
52
|
+
const CONSUMEMETA = Symbol('consumeMeta')
|
|
53
|
+
const CONSUMEHEADER = Symbol('consumeHeader')
|
|
54
|
+
const CONSUMING = Symbol('consuming')
|
|
55
|
+
const BUFFERCONCAT = Symbol('bufferConcat')
|
|
56
|
+
const MAYBEEND = Symbol('maybeEnd')
|
|
57
|
+
const WRITING = Symbol('writing')
|
|
58
|
+
const ABORTED = Symbol('aborted')
|
|
59
|
+
const DONE = Symbol('onDone')
|
|
60
|
+
const SAW_VALID_ENTRY = Symbol('sawValidEntry')
|
|
61
|
+
const SAW_NULL_BLOCK = Symbol('sawNullBlock')
|
|
62
|
+
const SAW_EOF = Symbol('sawEOF')
|
|
63
|
+
const CLOSESTREAM = Symbol('closeStream')
|
|
64
|
+
|
|
65
|
+
const noop = _ => true
|
|
66
|
+
|
|
67
|
+
module.exports = warner(class Parser extends EE {
|
|
68
|
+
constructor (opt) {
|
|
69
|
+
opt = opt || {}
|
|
70
|
+
super(opt)
|
|
71
|
+
|
|
72
|
+
this.file = opt.file || ''
|
|
73
|
+
|
|
74
|
+
// set to boolean false when an entry starts. 1024 bytes of \0
|
|
75
|
+
// is technically a valid tarball, albeit a boring one.
|
|
76
|
+
this[SAW_VALID_ENTRY] = null
|
|
77
|
+
|
|
78
|
+
// these BADARCHIVE errors can't be detected early. listen on DONE.
|
|
79
|
+
this.on(DONE, _ => {
|
|
80
|
+
if (this[STATE] === 'begin' || this[SAW_VALID_ENTRY] === false) {
|
|
81
|
+
// either less than 1 block of data, or all entries were invalid.
|
|
82
|
+
// Either way, probably not even a tarball.
|
|
83
|
+
this.warn('TAR_BAD_ARCHIVE', 'Unrecognized archive format')
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
|
|
87
|
+
if (opt.ondone) {
|
|
88
|
+
this.on(DONE, opt.ondone)
|
|
89
|
+
} else {
|
|
90
|
+
this.on(DONE, _ => {
|
|
91
|
+
this.emit('prefinish')
|
|
92
|
+
this.emit('finish')
|
|
93
|
+
this.emit('end')
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
this.strict = !!opt.strict
|
|
98
|
+
this.maxMetaEntrySize = opt.maxMetaEntrySize || maxMetaEntrySize
|
|
99
|
+
this.filter = typeof opt.filter === 'function' ? opt.filter : noop
|
|
100
|
+
// Unlike gzip, brotli doesn't have any magic bytes to identify it
|
|
101
|
+
// Users need to explicitly tell us they're extracting a brotli file
|
|
102
|
+
// Or we infer from the file extension
|
|
103
|
+
const isTBR = (opt.file && (
|
|
104
|
+
opt.file.endsWith('.tar.br') || opt.file.endsWith('.tbr')))
|
|
105
|
+
// if it's a tbr file it MIGHT be brotli, but we don't know until
|
|
106
|
+
// we look at it and verify it's not a valid tar file.
|
|
107
|
+
this.brotli = !opt.gzip && opt.brotli !== undefined ? opt.brotli
|
|
108
|
+
: isTBR ? undefined
|
|
109
|
+
: false
|
|
110
|
+
|
|
111
|
+
// have to set this so that streams are ok piping into it
|
|
112
|
+
this.writable = true
|
|
113
|
+
this.readable = false
|
|
114
|
+
|
|
115
|
+
this[QUEUE] = new Yallist()
|
|
116
|
+
this[BUFFER] = null
|
|
117
|
+
this[READENTRY] = null
|
|
118
|
+
this[WRITEENTRY] = null
|
|
119
|
+
this[STATE] = 'begin'
|
|
120
|
+
this[META] = ''
|
|
121
|
+
this[EX] = null
|
|
122
|
+
this[GEX] = null
|
|
123
|
+
this[ENDED] = false
|
|
124
|
+
this[UNZIP] = null
|
|
125
|
+
this[ABORTED] = false
|
|
126
|
+
this[SAW_NULL_BLOCK] = false
|
|
127
|
+
this[SAW_EOF] = false
|
|
128
|
+
|
|
129
|
+
this.on('end', () => this[CLOSESTREAM]())
|
|
130
|
+
|
|
131
|
+
if (typeof opt.onwarn === 'function') {
|
|
132
|
+
this.on('warn', opt.onwarn)
|
|
133
|
+
}
|
|
134
|
+
if (typeof opt.onentry === 'function') {
|
|
135
|
+
this.on('entry', opt.onentry)
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
[CONSUMEHEADER] (chunk, position) {
|
|
140
|
+
if (this[SAW_VALID_ENTRY] === null) {
|
|
141
|
+
this[SAW_VALID_ENTRY] = false
|
|
142
|
+
}
|
|
143
|
+
let header
|
|
144
|
+
try {
|
|
145
|
+
header = new Header(chunk, position, this[EX], this[GEX])
|
|
146
|
+
} catch (er) {
|
|
147
|
+
return this.warn('TAR_ENTRY_INVALID', er)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if (header.nullBlock) {
|
|
151
|
+
if (this[SAW_NULL_BLOCK]) {
|
|
152
|
+
this[SAW_EOF] = true
|
|
153
|
+
// ending an archive with no entries. pointless, but legal.
|
|
154
|
+
if (this[STATE] === 'begin') {
|
|
155
|
+
this[STATE] = 'header'
|
|
156
|
+
}
|
|
157
|
+
this[EMIT]('eof')
|
|
158
|
+
} else {
|
|
159
|
+
this[SAW_NULL_BLOCK] = true
|
|
160
|
+
this[EMIT]('nullBlock')
|
|
161
|
+
}
|
|
162
|
+
} else {
|
|
163
|
+
this[SAW_NULL_BLOCK] = false
|
|
164
|
+
if (!header.cksumValid) {
|
|
165
|
+
this.warn('TAR_ENTRY_INVALID', 'checksum failure', { header })
|
|
166
|
+
} else if (!header.path) {
|
|
167
|
+
this.warn('TAR_ENTRY_INVALID', 'path is required', { header })
|
|
168
|
+
} else {
|
|
169
|
+
const type = header.type
|
|
170
|
+
if (/^(Symbolic)?Link$/.test(type) && !header.linkpath) {
|
|
171
|
+
this.warn('TAR_ENTRY_INVALID', 'linkpath required', { header })
|
|
172
|
+
} else if (!/^(Symbolic)?Link$/.test(type) && header.linkpath) {
|
|
173
|
+
this.warn('TAR_ENTRY_INVALID', 'linkpath forbidden', { header })
|
|
174
|
+
} else {
|
|
175
|
+
const entry = this[WRITEENTRY] = new Entry(header, this[EX], this[GEX])
|
|
176
|
+
|
|
177
|
+
// we do this for meta & ignored entries as well, because they
|
|
178
|
+
// are still valid tar, or else we wouldn't know to ignore them
|
|
179
|
+
if (!this[SAW_VALID_ENTRY]) {
|
|
180
|
+
if (entry.remain) {
|
|
181
|
+
// this might be the one!
|
|
182
|
+
const onend = () => {
|
|
183
|
+
if (!entry.invalid) {
|
|
184
|
+
this[SAW_VALID_ENTRY] = true
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
entry.on('end', onend)
|
|
188
|
+
} else {
|
|
189
|
+
this[SAW_VALID_ENTRY] = true
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (entry.meta) {
|
|
194
|
+
if (entry.size > this.maxMetaEntrySize) {
|
|
195
|
+
entry.ignore = true
|
|
196
|
+
this[EMIT]('ignoredEntry', entry)
|
|
197
|
+
this[STATE] = 'ignore'
|
|
198
|
+
entry.resume()
|
|
199
|
+
} else if (entry.size > 0) {
|
|
200
|
+
this[META] = ''
|
|
201
|
+
entry.on('data', c => this[META] += c)
|
|
202
|
+
this[STATE] = 'meta'
|
|
203
|
+
}
|
|
204
|
+
} else {
|
|
205
|
+
this[EX] = null
|
|
206
|
+
entry.ignore = entry.ignore || !this.filter(entry.path, entry)
|
|
207
|
+
|
|
208
|
+
if (entry.ignore) {
|
|
209
|
+
// probably valid, just not something we care about
|
|
210
|
+
this[EMIT]('ignoredEntry', entry)
|
|
211
|
+
this[STATE] = entry.remain ? 'ignore' : 'header'
|
|
212
|
+
entry.resume()
|
|
213
|
+
} else {
|
|
214
|
+
if (entry.remain) {
|
|
215
|
+
this[STATE] = 'body'
|
|
216
|
+
} else {
|
|
217
|
+
this[STATE] = 'header'
|
|
218
|
+
entry.end()
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
if (!this[READENTRY]) {
|
|
222
|
+
this[QUEUE].push(entry)
|
|
223
|
+
this[NEXTENTRY]()
|
|
224
|
+
} else {
|
|
225
|
+
this[QUEUE].push(entry)
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
[CLOSESTREAM] () {
|
|
235
|
+
nextTick(() => this.emit('close'))
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
[PROCESSENTRY] (entry) {
|
|
239
|
+
let go = true
|
|
240
|
+
|
|
241
|
+
if (!entry) {
|
|
242
|
+
this[READENTRY] = null
|
|
243
|
+
go = false
|
|
244
|
+
} else if (Array.isArray(entry)) {
|
|
245
|
+
this.emit.apply(this, entry)
|
|
246
|
+
} else {
|
|
247
|
+
this[READENTRY] = entry
|
|
248
|
+
this.emit('entry', entry)
|
|
249
|
+
if (!entry.emittedEnd) {
|
|
250
|
+
entry.on('end', _ => this[NEXTENTRY]())
|
|
251
|
+
go = false
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return go
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
[NEXTENTRY] () {
|
|
259
|
+
do {} while (this[PROCESSENTRY](this[QUEUE].shift()))
|
|
260
|
+
|
|
261
|
+
if (!this[QUEUE].length) {
|
|
262
|
+
// At this point, there's nothing in the queue, but we may have an
|
|
263
|
+
// entry which is being consumed (readEntry).
|
|
264
|
+
// If we don't, then we definitely can handle more data.
|
|
265
|
+
// If we do, and either it's flowing, or it has never had any data
|
|
266
|
+
// written to it, then it needs more.
|
|
267
|
+
// The only other possibility is that it has returned false from a
|
|
268
|
+
// write() call, so we wait for the next drain to continue.
|
|
269
|
+
const re = this[READENTRY]
|
|
270
|
+
const drainNow = !re || re.flowing || re.size === re.remain
|
|
271
|
+
if (drainNow) {
|
|
272
|
+
if (!this[WRITING]) {
|
|
273
|
+
this.emit('drain')
|
|
274
|
+
}
|
|
275
|
+
} else {
|
|
276
|
+
re.once('drain', _ => this.emit('drain'))
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
[CONSUMEBODY] (chunk, position) {
|
|
282
|
+
// write up to but no more than writeEntry.blockRemain
|
|
283
|
+
const entry = this[WRITEENTRY]
|
|
284
|
+
const br = entry.blockRemain
|
|
285
|
+
const c = (br >= chunk.length && position === 0) ? chunk
|
|
286
|
+
: chunk.slice(position, position + br)
|
|
287
|
+
|
|
288
|
+
entry.write(c)
|
|
289
|
+
|
|
290
|
+
if (!entry.blockRemain) {
|
|
291
|
+
this[STATE] = 'header'
|
|
292
|
+
this[WRITEENTRY] = null
|
|
293
|
+
entry.end()
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
return c.length
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
[CONSUMEMETA] (chunk, position) {
|
|
300
|
+
const entry = this[WRITEENTRY]
|
|
301
|
+
const ret = this[CONSUMEBODY](chunk, position)
|
|
302
|
+
|
|
303
|
+
// if we finished, then the entry is reset
|
|
304
|
+
if (!this[WRITEENTRY]) {
|
|
305
|
+
this[EMITMETA](entry)
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return ret
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
[EMIT] (ev, data, extra) {
|
|
312
|
+
if (!this[QUEUE].length && !this[READENTRY]) {
|
|
313
|
+
this.emit(ev, data, extra)
|
|
314
|
+
} else {
|
|
315
|
+
this[QUEUE].push([ev, data, extra])
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
[EMITMETA] (entry) {
|
|
320
|
+
this[EMIT]('meta', this[META])
|
|
321
|
+
switch (entry.type) {
|
|
322
|
+
case 'ExtendedHeader':
|
|
323
|
+
case 'OldExtendedHeader':
|
|
324
|
+
this[EX] = Pax.parse(this[META], this[EX], false)
|
|
325
|
+
break
|
|
326
|
+
|
|
327
|
+
case 'GlobalExtendedHeader':
|
|
328
|
+
this[GEX] = Pax.parse(this[META], this[GEX], true)
|
|
329
|
+
break
|
|
330
|
+
|
|
331
|
+
case 'NextFileHasLongPath':
|
|
332
|
+
case 'OldGnuLongPath':
|
|
333
|
+
this[EX] = this[EX] || Object.create(null)
|
|
334
|
+
this[EX].path = this[META].replace(/\0.*/, '')
|
|
335
|
+
break
|
|
336
|
+
|
|
337
|
+
case 'NextFileHasLongLinkpath':
|
|
338
|
+
this[EX] = this[EX] || Object.create(null)
|
|
339
|
+
this[EX].linkpath = this[META].replace(/\0.*/, '')
|
|
340
|
+
break
|
|
341
|
+
|
|
342
|
+
/* istanbul ignore next */
|
|
343
|
+
default: throw new Error('unknown meta: ' + entry.type)
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
abort (error) {
|
|
348
|
+
this[ABORTED] = true
|
|
349
|
+
this.emit('abort', error)
|
|
350
|
+
// always throws, even in non-strict mode
|
|
351
|
+
this.warn('TAR_ABORT', error, { recoverable: false })
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
write (chunk) {
|
|
355
|
+
if (this[ABORTED]) {
|
|
356
|
+
return
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
// first write, might be gzipped
|
|
360
|
+
const needSniff = this[UNZIP] === null ||
|
|
361
|
+
this.brotli === undefined && this[UNZIP] === false
|
|
362
|
+
if (needSniff && chunk) {
|
|
363
|
+
if (this[BUFFER]) {
|
|
364
|
+
chunk = Buffer.concat([this[BUFFER], chunk])
|
|
365
|
+
this[BUFFER] = null
|
|
366
|
+
}
|
|
367
|
+
if (chunk.length < gzipHeader.length) {
|
|
368
|
+
this[BUFFER] = chunk
|
|
369
|
+
return true
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
// look for gzip header
|
|
373
|
+
for (let i = 0; this[UNZIP] === null && i < gzipHeader.length; i++) {
|
|
374
|
+
if (chunk[i] !== gzipHeader[i]) {
|
|
375
|
+
this[UNZIP] = false
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
const maybeBrotli = this.brotli === undefined
|
|
380
|
+
if (this[UNZIP] === false && maybeBrotli) {
|
|
381
|
+
// read the first header to see if it's a valid tar file. If so,
|
|
382
|
+
// we can safely assume that it's not actually brotli, despite the
|
|
383
|
+
// .tbr or .tar.br file extension.
|
|
384
|
+
// if we ended before getting a full chunk, yes, def brotli
|
|
385
|
+
if (chunk.length < 512) {
|
|
386
|
+
if (this[ENDED]) {
|
|
387
|
+
this.brotli = true
|
|
388
|
+
} else {
|
|
389
|
+
this[BUFFER] = chunk
|
|
390
|
+
return true
|
|
391
|
+
}
|
|
392
|
+
} else {
|
|
393
|
+
// if it's tar, it's pretty reliably not brotli, chances of
|
|
394
|
+
// that happening are astronomical.
|
|
395
|
+
try {
|
|
396
|
+
new Header(chunk.slice(0, 512))
|
|
397
|
+
this.brotli = false
|
|
398
|
+
} catch (_) {
|
|
399
|
+
this.brotli = true
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
if (this[UNZIP] === null || (this[UNZIP] === false && this.brotli)) {
|
|
405
|
+
const ended = this[ENDED]
|
|
406
|
+
this[ENDED] = false
|
|
407
|
+
this[UNZIP] = this[UNZIP] === null
|
|
408
|
+
? new zlib.Unzip()
|
|
409
|
+
: new zlib.BrotliDecompress()
|
|
410
|
+
this[UNZIP].on('data', chunk => this[CONSUMECHUNK](chunk))
|
|
411
|
+
this[UNZIP].on('error', er => this.abort(er))
|
|
412
|
+
this[UNZIP].on('end', _ => {
|
|
413
|
+
this[ENDED] = true
|
|
414
|
+
this[CONSUMECHUNK]()
|
|
415
|
+
})
|
|
416
|
+
this[WRITING] = true
|
|
417
|
+
const ret = this[UNZIP][ended ? 'end' : 'write'](chunk)
|
|
418
|
+
this[WRITING] = false
|
|
419
|
+
return ret
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
this[WRITING] = true
|
|
424
|
+
if (this[UNZIP]) {
|
|
425
|
+
this[UNZIP].write(chunk)
|
|
426
|
+
} else {
|
|
427
|
+
this[CONSUMECHUNK](chunk)
|
|
428
|
+
}
|
|
429
|
+
this[WRITING] = false
|
|
430
|
+
|
|
431
|
+
// return false if there's a queue, or if the current entry isn't flowing
|
|
432
|
+
const ret =
|
|
433
|
+
this[QUEUE].length ? false :
|
|
434
|
+
this[READENTRY] ? this[READENTRY].flowing :
|
|
435
|
+
true
|
|
436
|
+
|
|
437
|
+
// if we have no queue, then that means a clogged READENTRY
|
|
438
|
+
if (!ret && !this[QUEUE].length) {
|
|
439
|
+
this[READENTRY].once('drain', _ => this.emit('drain'))
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
return ret
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
[BUFFERCONCAT] (c) {
|
|
446
|
+
if (c && !this[ABORTED]) {
|
|
447
|
+
this[BUFFER] = this[BUFFER] ? Buffer.concat([this[BUFFER], c]) : c
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
[MAYBEEND] () {
|
|
452
|
+
if (this[ENDED] &&
|
|
453
|
+
!this[EMITTEDEND] &&
|
|
454
|
+
!this[ABORTED] &&
|
|
455
|
+
!this[CONSUMING]) {
|
|
456
|
+
this[EMITTEDEND] = true
|
|
457
|
+
const entry = this[WRITEENTRY]
|
|
458
|
+
if (entry && entry.blockRemain) {
|
|
459
|
+
// truncated, likely a damaged file
|
|
460
|
+
const have = this[BUFFER] ? this[BUFFER].length : 0
|
|
461
|
+
this.warn('TAR_BAD_ARCHIVE', `Truncated input (needed ${
|
|
462
|
+
entry.blockRemain} more bytes, only ${have} available)`, { entry })
|
|
463
|
+
if (this[BUFFER]) {
|
|
464
|
+
entry.write(this[BUFFER])
|
|
465
|
+
}
|
|
466
|
+
entry.end()
|
|
467
|
+
}
|
|
468
|
+
this[EMIT](DONE)
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
[CONSUMECHUNK] (chunk) {
|
|
473
|
+
if (this[CONSUMING]) {
|
|
474
|
+
this[BUFFERCONCAT](chunk)
|
|
475
|
+
} else if (!chunk && !this[BUFFER]) {
|
|
476
|
+
this[MAYBEEND]()
|
|
477
|
+
} else {
|
|
478
|
+
this[CONSUMING] = true
|
|
479
|
+
if (this[BUFFER]) {
|
|
480
|
+
this[BUFFERCONCAT](chunk)
|
|
481
|
+
const c = this[BUFFER]
|
|
482
|
+
this[BUFFER] = null
|
|
483
|
+
this[CONSUMECHUNKSUB](c)
|
|
484
|
+
} else {
|
|
485
|
+
this[CONSUMECHUNKSUB](chunk)
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
while (this[BUFFER] &&
|
|
489
|
+
this[BUFFER].length >= 512 &&
|
|
490
|
+
!this[ABORTED] &&
|
|
491
|
+
!this[SAW_EOF]) {
|
|
492
|
+
const c = this[BUFFER]
|
|
493
|
+
this[BUFFER] = null
|
|
494
|
+
this[CONSUMECHUNKSUB](c)
|
|
495
|
+
}
|
|
496
|
+
this[CONSUMING] = false
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
if (!this[BUFFER] || this[ENDED]) {
|
|
500
|
+
this[MAYBEEND]()
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
[CONSUMECHUNKSUB] (chunk) {
|
|
505
|
+
// we know that we are in CONSUMING mode, so anything written goes into
|
|
506
|
+
// the buffer. Advance the position and put any remainder in the buffer.
|
|
507
|
+
let position = 0
|
|
508
|
+
const length = chunk.length
|
|
509
|
+
while (position + 512 <= length && !this[ABORTED] && !this[SAW_EOF]) {
|
|
510
|
+
switch (this[STATE]) {
|
|
511
|
+
case 'begin':
|
|
512
|
+
case 'header':
|
|
513
|
+
this[CONSUMEHEADER](chunk, position)
|
|
514
|
+
position += 512
|
|
515
|
+
break
|
|
516
|
+
|
|
517
|
+
case 'ignore':
|
|
518
|
+
case 'body':
|
|
519
|
+
position += this[CONSUMEBODY](chunk, position)
|
|
520
|
+
break
|
|
521
|
+
|
|
522
|
+
case 'meta':
|
|
523
|
+
position += this[CONSUMEMETA](chunk, position)
|
|
524
|
+
break
|
|
525
|
+
|
|
526
|
+
/* istanbul ignore next */
|
|
527
|
+
default:
|
|
528
|
+
throw new Error('invalid state: ' + this[STATE])
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
if (position < length) {
|
|
533
|
+
if (this[BUFFER]) {
|
|
534
|
+
this[BUFFER] = Buffer.concat([chunk.slice(position), this[BUFFER]])
|
|
535
|
+
} else {
|
|
536
|
+
this[BUFFER] = chunk.slice(position)
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
end (chunk) {
|
|
542
|
+
if (!this[ABORTED]) {
|
|
543
|
+
if (this[UNZIP]) {
|
|
544
|
+
this[UNZIP].end(chunk)
|
|
545
|
+
} else {
|
|
546
|
+
this[ENDED] = true
|
|
547
|
+
if (this.brotli === undefined) chunk = chunk || Buffer.alloc(0)
|
|
548
|
+
this.write(chunk)
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
})
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
// A path exclusive reservation system
|
|
2
|
+
// reserve([list, of, paths], fn)
|
|
3
|
+
// When the fn is first in line for all its paths, it
|
|
4
|
+
// is called with a cb that clears the reservation.
|
|
5
|
+
//
|
|
6
|
+
// Used by async unpack to avoid clobbering paths in use,
|
|
7
|
+
// while still allowing maximal safe parallelization.
|
|
8
|
+
|
|
9
|
+
const assert = require('assert')
|
|
10
|
+
const normalize = require('./normalize-unicode.js')
|
|
11
|
+
const stripSlashes = require('./strip-trailing-slashes.js')
|
|
12
|
+
const { join } = require('path')
|
|
13
|
+
|
|
14
|
+
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform
|
|
15
|
+
const isWindows = platform === 'win32'
|
|
16
|
+
|
|
17
|
+
module.exports = () => {
|
|
18
|
+
// path => [function or Set]
|
|
19
|
+
// A Set object means a directory reservation
|
|
20
|
+
// A fn is a direct reservation on that path
|
|
21
|
+
const queues = new Map()
|
|
22
|
+
|
|
23
|
+
// fn => {paths:[path,...], dirs:[path, ...]}
|
|
24
|
+
const reservations = new Map()
|
|
25
|
+
|
|
26
|
+
// return a set of parent dirs for a given path
|
|
27
|
+
// '/a/b/c/d' -> ['/', '/a', '/a/b', '/a/b/c', '/a/b/c/d']
|
|
28
|
+
const getDirs = path => {
|
|
29
|
+
const dirs = path.split('/').slice(0, -1).reduce((set, path) => {
|
|
30
|
+
if (set.length) {
|
|
31
|
+
path = join(set[set.length - 1], path)
|
|
32
|
+
}
|
|
33
|
+
set.push(path || '/')
|
|
34
|
+
return set
|
|
35
|
+
}, [])
|
|
36
|
+
return dirs
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// functions currently running
|
|
40
|
+
const running = new Set()
|
|
41
|
+
|
|
42
|
+
// return the queues for each path the function cares about
|
|
43
|
+
// fn => {paths, dirs}
|
|
44
|
+
const getQueues = fn => {
|
|
45
|
+
const res = reservations.get(fn)
|
|
46
|
+
/* istanbul ignore if - unpossible */
|
|
47
|
+
if (!res) {
|
|
48
|
+
throw new Error('function does not have any path reservations')
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
paths: res.paths.map(path => queues.get(path)),
|
|
52
|
+
dirs: [...res.dirs].map(path => queues.get(path)),
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// check if fn is first in line for all its paths, and is
|
|
57
|
+
// included in the first set for all its dir queues
|
|
58
|
+
const check = fn => {
|
|
59
|
+
const { paths, dirs } = getQueues(fn)
|
|
60
|
+
return paths.every(q => q[0] === fn) &&
|
|
61
|
+
dirs.every(q => q[0] instanceof Set && q[0].has(fn))
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// run the function if it's first in line and not already running
|
|
65
|
+
const run = fn => {
|
|
66
|
+
if (running.has(fn) || !check(fn)) {
|
|
67
|
+
return false
|
|
68
|
+
}
|
|
69
|
+
running.add(fn)
|
|
70
|
+
fn(() => clear(fn))
|
|
71
|
+
return true
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
const clear = fn => {
|
|
75
|
+
if (!running.has(fn)) {
|
|
76
|
+
return false
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const { paths, dirs } = reservations.get(fn)
|
|
80
|
+
const next = new Set()
|
|
81
|
+
|
|
82
|
+
paths.forEach(path => {
|
|
83
|
+
const q = queues.get(path)
|
|
84
|
+
assert.equal(q[0], fn)
|
|
85
|
+
if (q.length === 1) {
|
|
86
|
+
queues.delete(path)
|
|
87
|
+
} else {
|
|
88
|
+
q.shift()
|
|
89
|
+
if (typeof q[0] === 'function') {
|
|
90
|
+
next.add(q[0])
|
|
91
|
+
} else {
|
|
92
|
+
q[0].forEach(fn => next.add(fn))
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
dirs.forEach(dir => {
|
|
98
|
+
const q = queues.get(dir)
|
|
99
|
+
assert(q[0] instanceof Set)
|
|
100
|
+
if (q[0].size === 1 && q.length === 1) {
|
|
101
|
+
queues.delete(dir)
|
|
102
|
+
} else if (q[0].size === 1) {
|
|
103
|
+
q.shift()
|
|
104
|
+
|
|
105
|
+
// must be a function or else the Set would've been reused
|
|
106
|
+
next.add(q[0])
|
|
107
|
+
} else {
|
|
108
|
+
q[0].delete(fn)
|
|
109
|
+
}
|
|
110
|
+
})
|
|
111
|
+
running.delete(fn)
|
|
112
|
+
|
|
113
|
+
next.forEach(fn => run(fn))
|
|
114
|
+
return true
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
const reserve = (paths, fn) => {
|
|
118
|
+
// collide on matches across case and unicode normalization
|
|
119
|
+
// On windows, thanks to the magic of 8.3 shortnames, it is fundamentally
|
|
120
|
+
// impossible to determine whether two paths refer to the same thing on
|
|
121
|
+
// disk, without asking the kernel for a shortname.
|
|
122
|
+
// So, we just pretend that every path matches every other path here,
|
|
123
|
+
// effectively removing all parallelization on windows.
|
|
124
|
+
paths = isWindows ? ['win32 parallelization disabled'] : paths.map(p => {
|
|
125
|
+
// don't need normPath, because we skip this entirely for windows
|
|
126
|
+
return stripSlashes(join(normalize(p))).toLowerCase()
|
|
127
|
+
})
|
|
128
|
+
|
|
129
|
+
const dirs = new Set(
|
|
130
|
+
paths.map(path => getDirs(path)).reduce((a, b) => a.concat(b))
|
|
131
|
+
)
|
|
132
|
+
reservations.set(fn, { dirs, paths })
|
|
133
|
+
paths.forEach(path => {
|
|
134
|
+
const q = queues.get(path)
|
|
135
|
+
if (!q) {
|
|
136
|
+
queues.set(path, [fn])
|
|
137
|
+
} else {
|
|
138
|
+
q.push(fn)
|
|
139
|
+
}
|
|
140
|
+
})
|
|
141
|
+
dirs.forEach(dir => {
|
|
142
|
+
const q = queues.get(dir)
|
|
143
|
+
if (!q) {
|
|
144
|
+
queues.set(dir, [new Set([fn])])
|
|
145
|
+
} else if (q[q.length - 1] instanceof Set) {
|
|
146
|
+
q[q.length - 1].add(fn)
|
|
147
|
+
} else {
|
|
148
|
+
q.push(new Set([fn]))
|
|
149
|
+
}
|
|
150
|
+
})
|
|
151
|
+
|
|
152
|
+
return run(fn)
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return { check, reserve }
|
|
156
|
+
}
|