pxnpm 3.0.7 → 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,180 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _Object$setPrototypeO;
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
var finished = require('./end-of-stream');
|
|
8
|
+
var kLastResolve = Symbol('lastResolve');
|
|
9
|
+
var kLastReject = Symbol('lastReject');
|
|
10
|
+
var kError = Symbol('error');
|
|
11
|
+
var kEnded = Symbol('ended');
|
|
12
|
+
var kLastPromise = Symbol('lastPromise');
|
|
13
|
+
var kHandlePromise = Symbol('handlePromise');
|
|
14
|
+
var kStream = Symbol('stream');
|
|
15
|
+
function createIterResult(value, done) {
|
|
16
|
+
return {
|
|
17
|
+
value: value,
|
|
18
|
+
done: done
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function readAndResolve(iter) {
|
|
22
|
+
var resolve = iter[kLastResolve];
|
|
23
|
+
if (resolve !== null) {
|
|
24
|
+
var data = iter[kStream].read();
|
|
25
|
+
// we defer if data is null
|
|
26
|
+
// we can be expecting either 'end' or
|
|
27
|
+
// 'error'
|
|
28
|
+
if (data !== null) {
|
|
29
|
+
iter[kLastPromise] = null;
|
|
30
|
+
iter[kLastResolve] = null;
|
|
31
|
+
iter[kLastReject] = null;
|
|
32
|
+
resolve(createIterResult(data, false));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function onReadable(iter) {
|
|
37
|
+
// we wait for the next tick, because it might
|
|
38
|
+
// emit an error with process.nextTick
|
|
39
|
+
process.nextTick(readAndResolve, iter);
|
|
40
|
+
}
|
|
41
|
+
function wrapForNext(lastPromise, iter) {
|
|
42
|
+
return function (resolve, reject) {
|
|
43
|
+
lastPromise.then(function () {
|
|
44
|
+
if (iter[kEnded]) {
|
|
45
|
+
resolve(createIterResult(undefined, true));
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
iter[kHandlePromise](resolve, reject);
|
|
49
|
+
}, reject);
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
var AsyncIteratorPrototype = Object.getPrototypeOf(function () {});
|
|
53
|
+
var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
|
|
54
|
+
get stream() {
|
|
55
|
+
return this[kStream];
|
|
56
|
+
},
|
|
57
|
+
next: function next() {
|
|
58
|
+
var _this = this;
|
|
59
|
+
// if we have detected an error in the meanwhile
|
|
60
|
+
// reject straight away
|
|
61
|
+
var error = this[kError];
|
|
62
|
+
if (error !== null) {
|
|
63
|
+
return Promise.reject(error);
|
|
64
|
+
}
|
|
65
|
+
if (this[kEnded]) {
|
|
66
|
+
return Promise.resolve(createIterResult(undefined, true));
|
|
67
|
+
}
|
|
68
|
+
if (this[kStream].destroyed) {
|
|
69
|
+
// We need to defer via nextTick because if .destroy(err) is
|
|
70
|
+
// called, the error will be emitted via nextTick, and
|
|
71
|
+
// we cannot guarantee that there is no error lingering around
|
|
72
|
+
// waiting to be emitted.
|
|
73
|
+
return new Promise(function (resolve, reject) {
|
|
74
|
+
process.nextTick(function () {
|
|
75
|
+
if (_this[kError]) {
|
|
76
|
+
reject(_this[kError]);
|
|
77
|
+
} else {
|
|
78
|
+
resolve(createIterResult(undefined, true));
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// if we have multiple next() calls
|
|
85
|
+
// we will wait for the previous Promise to finish
|
|
86
|
+
// this logic is optimized to support for await loops,
|
|
87
|
+
// where next() is only called once at a time
|
|
88
|
+
var lastPromise = this[kLastPromise];
|
|
89
|
+
var promise;
|
|
90
|
+
if (lastPromise) {
|
|
91
|
+
promise = new Promise(wrapForNext(lastPromise, this));
|
|
92
|
+
} else {
|
|
93
|
+
// fast path needed to support multiple this.push()
|
|
94
|
+
// without triggering the next() queue
|
|
95
|
+
var data = this[kStream].read();
|
|
96
|
+
if (data !== null) {
|
|
97
|
+
return Promise.resolve(createIterResult(data, false));
|
|
98
|
+
}
|
|
99
|
+
promise = new Promise(this[kHandlePromise]);
|
|
100
|
+
}
|
|
101
|
+
this[kLastPromise] = promise;
|
|
102
|
+
return promise;
|
|
103
|
+
}
|
|
104
|
+
}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {
|
|
105
|
+
return this;
|
|
106
|
+
}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
|
|
107
|
+
var _this2 = this;
|
|
108
|
+
// destroy(err, cb) is a private API
|
|
109
|
+
// we can guarantee we have that here, because we control the
|
|
110
|
+
// Readable class this is attached to
|
|
111
|
+
return new Promise(function (resolve, reject) {
|
|
112
|
+
_this2[kStream].destroy(null, function (err) {
|
|
113
|
+
if (err) {
|
|
114
|
+
reject(err);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
resolve(createIterResult(undefined, true));
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
}), _Object$setPrototypeO), AsyncIteratorPrototype);
|
|
121
|
+
var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
|
|
122
|
+
var _Object$create;
|
|
123
|
+
var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
|
|
124
|
+
value: stream,
|
|
125
|
+
writable: true
|
|
126
|
+
}), _defineProperty(_Object$create, kLastResolve, {
|
|
127
|
+
value: null,
|
|
128
|
+
writable: true
|
|
129
|
+
}), _defineProperty(_Object$create, kLastReject, {
|
|
130
|
+
value: null,
|
|
131
|
+
writable: true
|
|
132
|
+
}), _defineProperty(_Object$create, kError, {
|
|
133
|
+
value: null,
|
|
134
|
+
writable: true
|
|
135
|
+
}), _defineProperty(_Object$create, kEnded, {
|
|
136
|
+
value: stream._readableState.endEmitted,
|
|
137
|
+
writable: true
|
|
138
|
+
}), _defineProperty(_Object$create, kHandlePromise, {
|
|
139
|
+
value: function value(resolve, reject) {
|
|
140
|
+
var data = iterator[kStream].read();
|
|
141
|
+
if (data) {
|
|
142
|
+
iterator[kLastPromise] = null;
|
|
143
|
+
iterator[kLastResolve] = null;
|
|
144
|
+
iterator[kLastReject] = null;
|
|
145
|
+
resolve(createIterResult(data, false));
|
|
146
|
+
} else {
|
|
147
|
+
iterator[kLastResolve] = resolve;
|
|
148
|
+
iterator[kLastReject] = reject;
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
writable: true
|
|
152
|
+
}), _Object$create));
|
|
153
|
+
iterator[kLastPromise] = null;
|
|
154
|
+
finished(stream, function (err) {
|
|
155
|
+
if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {
|
|
156
|
+
var reject = iterator[kLastReject];
|
|
157
|
+
// reject if we are waiting for data in the Promise
|
|
158
|
+
// returned by next() and store the error
|
|
159
|
+
if (reject !== null) {
|
|
160
|
+
iterator[kLastPromise] = null;
|
|
161
|
+
iterator[kLastResolve] = null;
|
|
162
|
+
iterator[kLastReject] = null;
|
|
163
|
+
reject(err);
|
|
164
|
+
}
|
|
165
|
+
iterator[kError] = err;
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
var resolve = iterator[kLastResolve];
|
|
169
|
+
if (resolve !== null) {
|
|
170
|
+
iterator[kLastPromise] = null;
|
|
171
|
+
iterator[kLastResolve] = null;
|
|
172
|
+
iterator[kLastReject] = null;
|
|
173
|
+
resolve(createIterResult(undefined, true));
|
|
174
|
+
}
|
|
175
|
+
iterator[kEnded] = true;
|
|
176
|
+
});
|
|
177
|
+
stream.on('readable', onReadable.bind(null, iterator));
|
|
178
|
+
return iterator;
|
|
179
|
+
};
|
|
180
|
+
module.exports = createReadableStreamAsyncIterator;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
7
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
8
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
var _require = require('buffer'),
|
|
12
|
+
Buffer = _require.Buffer;
|
|
13
|
+
var _require2 = require('util'),
|
|
14
|
+
inspect = _require2.inspect;
|
|
15
|
+
var custom = inspect && inspect.custom || 'inspect';
|
|
16
|
+
function copyBuffer(src, target, offset) {
|
|
17
|
+
Buffer.prototype.copy.call(src, target, offset);
|
|
18
|
+
}
|
|
19
|
+
module.exports = /*#__PURE__*/function () {
|
|
20
|
+
function BufferList() {
|
|
21
|
+
_classCallCheck(this, BufferList);
|
|
22
|
+
this.head = null;
|
|
23
|
+
this.tail = null;
|
|
24
|
+
this.length = 0;
|
|
25
|
+
}
|
|
26
|
+
_createClass(BufferList, [{
|
|
27
|
+
key: "push",
|
|
28
|
+
value: function push(v) {
|
|
29
|
+
var entry = {
|
|
30
|
+
data: v,
|
|
31
|
+
next: null
|
|
32
|
+
};
|
|
33
|
+
if (this.length > 0) this.tail.next = entry;else this.head = entry;
|
|
34
|
+
this.tail = entry;
|
|
35
|
+
++this.length;
|
|
36
|
+
}
|
|
37
|
+
}, {
|
|
38
|
+
key: "unshift",
|
|
39
|
+
value: function unshift(v) {
|
|
40
|
+
var entry = {
|
|
41
|
+
data: v,
|
|
42
|
+
next: this.head
|
|
43
|
+
};
|
|
44
|
+
if (this.length === 0) this.tail = entry;
|
|
45
|
+
this.head = entry;
|
|
46
|
+
++this.length;
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
key: "shift",
|
|
50
|
+
value: function shift() {
|
|
51
|
+
if (this.length === 0) return;
|
|
52
|
+
var ret = this.head.data;
|
|
53
|
+
if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
|
|
54
|
+
--this.length;
|
|
55
|
+
return ret;
|
|
56
|
+
}
|
|
57
|
+
}, {
|
|
58
|
+
key: "clear",
|
|
59
|
+
value: function clear() {
|
|
60
|
+
this.head = this.tail = null;
|
|
61
|
+
this.length = 0;
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
key: "join",
|
|
65
|
+
value: function join(s) {
|
|
66
|
+
if (this.length === 0) return '';
|
|
67
|
+
var p = this.head;
|
|
68
|
+
var ret = '' + p.data;
|
|
69
|
+
while (p = p.next) ret += s + p.data;
|
|
70
|
+
return ret;
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
key: "concat",
|
|
74
|
+
value: function concat(n) {
|
|
75
|
+
if (this.length === 0) return Buffer.alloc(0);
|
|
76
|
+
var ret = Buffer.allocUnsafe(n >>> 0);
|
|
77
|
+
var p = this.head;
|
|
78
|
+
var i = 0;
|
|
79
|
+
while (p) {
|
|
80
|
+
copyBuffer(p.data, ret, i);
|
|
81
|
+
i += p.data.length;
|
|
82
|
+
p = p.next;
|
|
83
|
+
}
|
|
84
|
+
return ret;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Consumes a specified amount of bytes or characters from the buffered data.
|
|
88
|
+
}, {
|
|
89
|
+
key: "consume",
|
|
90
|
+
value: function consume(n, hasStrings) {
|
|
91
|
+
var ret;
|
|
92
|
+
if (n < this.head.data.length) {
|
|
93
|
+
// `slice` is the same for buffers and strings.
|
|
94
|
+
ret = this.head.data.slice(0, n);
|
|
95
|
+
this.head.data = this.head.data.slice(n);
|
|
96
|
+
} else if (n === this.head.data.length) {
|
|
97
|
+
// First chunk is a perfect match.
|
|
98
|
+
ret = this.shift();
|
|
99
|
+
} else {
|
|
100
|
+
// Result spans more than one buffer.
|
|
101
|
+
ret = hasStrings ? this._getString(n) : this._getBuffer(n);
|
|
102
|
+
}
|
|
103
|
+
return ret;
|
|
104
|
+
}
|
|
105
|
+
}, {
|
|
106
|
+
key: "first",
|
|
107
|
+
value: function first() {
|
|
108
|
+
return this.head.data;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Consumes a specified amount of characters from the buffered data.
|
|
112
|
+
}, {
|
|
113
|
+
key: "_getString",
|
|
114
|
+
value: function _getString(n) {
|
|
115
|
+
var p = this.head;
|
|
116
|
+
var c = 1;
|
|
117
|
+
var ret = p.data;
|
|
118
|
+
n -= ret.length;
|
|
119
|
+
while (p = p.next) {
|
|
120
|
+
var str = p.data;
|
|
121
|
+
var nb = n > str.length ? str.length : n;
|
|
122
|
+
if (nb === str.length) ret += str;else ret += str.slice(0, n);
|
|
123
|
+
n -= nb;
|
|
124
|
+
if (n === 0) {
|
|
125
|
+
if (nb === str.length) {
|
|
126
|
+
++c;
|
|
127
|
+
if (p.next) this.head = p.next;else this.head = this.tail = null;
|
|
128
|
+
} else {
|
|
129
|
+
this.head = p;
|
|
130
|
+
p.data = str.slice(nb);
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
133
|
+
}
|
|
134
|
+
++c;
|
|
135
|
+
}
|
|
136
|
+
this.length -= c;
|
|
137
|
+
return ret;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Consumes a specified amount of bytes from the buffered data.
|
|
141
|
+
}, {
|
|
142
|
+
key: "_getBuffer",
|
|
143
|
+
value: function _getBuffer(n) {
|
|
144
|
+
var ret = Buffer.allocUnsafe(n);
|
|
145
|
+
var p = this.head;
|
|
146
|
+
var c = 1;
|
|
147
|
+
p.data.copy(ret);
|
|
148
|
+
n -= p.data.length;
|
|
149
|
+
while (p = p.next) {
|
|
150
|
+
var buf = p.data;
|
|
151
|
+
var nb = n > buf.length ? buf.length : n;
|
|
152
|
+
buf.copy(ret, ret.length - n, 0, nb);
|
|
153
|
+
n -= nb;
|
|
154
|
+
if (n === 0) {
|
|
155
|
+
if (nb === buf.length) {
|
|
156
|
+
++c;
|
|
157
|
+
if (p.next) this.head = p.next;else this.head = this.tail = null;
|
|
158
|
+
} else {
|
|
159
|
+
this.head = p;
|
|
160
|
+
p.data = buf.slice(nb);
|
|
161
|
+
}
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
++c;
|
|
165
|
+
}
|
|
166
|
+
this.length -= c;
|
|
167
|
+
return ret;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Make sure the linked list only shows the minimal necessary information.
|
|
171
|
+
}, {
|
|
172
|
+
key: custom,
|
|
173
|
+
value: function value(_, options) {
|
|
174
|
+
return inspect(this, _objectSpread(_objectSpread({}, options), {}, {
|
|
175
|
+
// Only inspect one level.
|
|
176
|
+
depth: 0,
|
|
177
|
+
// It should not recurse.
|
|
178
|
+
customInspect: false
|
|
179
|
+
}));
|
|
180
|
+
}
|
|
181
|
+
}]);
|
|
182
|
+
return BufferList;
|
|
183
|
+
}();
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// undocumented cb() API, needed for core, not for public API
|
|
4
|
+
function destroy(err, cb) {
|
|
5
|
+
var _this = this;
|
|
6
|
+
var readableDestroyed = this._readableState && this._readableState.destroyed;
|
|
7
|
+
var writableDestroyed = this._writableState && this._writableState.destroyed;
|
|
8
|
+
if (readableDestroyed || writableDestroyed) {
|
|
9
|
+
if (cb) {
|
|
10
|
+
cb(err);
|
|
11
|
+
} else if (err) {
|
|
12
|
+
if (!this._writableState) {
|
|
13
|
+
process.nextTick(emitErrorNT, this, err);
|
|
14
|
+
} else if (!this._writableState.errorEmitted) {
|
|
15
|
+
this._writableState.errorEmitted = true;
|
|
16
|
+
process.nextTick(emitErrorNT, this, err);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// we set destroyed to true before firing error callbacks in order
|
|
23
|
+
// to make it re-entrance safe in case destroy() is called within callbacks
|
|
24
|
+
|
|
25
|
+
if (this._readableState) {
|
|
26
|
+
this._readableState.destroyed = true;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// if this is a duplex stream mark the writable part as destroyed as well
|
|
30
|
+
if (this._writableState) {
|
|
31
|
+
this._writableState.destroyed = true;
|
|
32
|
+
}
|
|
33
|
+
this._destroy(err || null, function (err) {
|
|
34
|
+
if (!cb && err) {
|
|
35
|
+
if (!_this._writableState) {
|
|
36
|
+
process.nextTick(emitErrorAndCloseNT, _this, err);
|
|
37
|
+
} else if (!_this._writableState.errorEmitted) {
|
|
38
|
+
_this._writableState.errorEmitted = true;
|
|
39
|
+
process.nextTick(emitErrorAndCloseNT, _this, err);
|
|
40
|
+
} else {
|
|
41
|
+
process.nextTick(emitCloseNT, _this);
|
|
42
|
+
}
|
|
43
|
+
} else if (cb) {
|
|
44
|
+
process.nextTick(emitCloseNT, _this);
|
|
45
|
+
cb(err);
|
|
46
|
+
} else {
|
|
47
|
+
process.nextTick(emitCloseNT, _this);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
return this;
|
|
51
|
+
}
|
|
52
|
+
function emitErrorAndCloseNT(self, err) {
|
|
53
|
+
emitErrorNT(self, err);
|
|
54
|
+
emitCloseNT(self);
|
|
55
|
+
}
|
|
56
|
+
function emitCloseNT(self) {
|
|
57
|
+
if (self._writableState && !self._writableState.emitClose) return;
|
|
58
|
+
if (self._readableState && !self._readableState.emitClose) return;
|
|
59
|
+
self.emit('close');
|
|
60
|
+
}
|
|
61
|
+
function undestroy() {
|
|
62
|
+
if (this._readableState) {
|
|
63
|
+
this._readableState.destroyed = false;
|
|
64
|
+
this._readableState.reading = false;
|
|
65
|
+
this._readableState.ended = false;
|
|
66
|
+
this._readableState.endEmitted = false;
|
|
67
|
+
}
|
|
68
|
+
if (this._writableState) {
|
|
69
|
+
this._writableState.destroyed = false;
|
|
70
|
+
this._writableState.ended = false;
|
|
71
|
+
this._writableState.ending = false;
|
|
72
|
+
this._writableState.finalCalled = false;
|
|
73
|
+
this._writableState.prefinished = false;
|
|
74
|
+
this._writableState.finished = false;
|
|
75
|
+
this._writableState.errorEmitted = false;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function emitErrorNT(self, err) {
|
|
79
|
+
self.emit('error', err);
|
|
80
|
+
}
|
|
81
|
+
function errorOrDestroy(stream, err) {
|
|
82
|
+
// We have tests that rely on errors being emitted
|
|
83
|
+
// in the same tick, so changing this is semver major.
|
|
84
|
+
// For now when you opt-in to autoDestroy we allow
|
|
85
|
+
// the error to be emitted nextTick. In a future
|
|
86
|
+
// semver major update we should change the default to this.
|
|
87
|
+
|
|
88
|
+
var rState = stream._readableState;
|
|
89
|
+
var wState = stream._writableState;
|
|
90
|
+
if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);
|
|
91
|
+
}
|
|
92
|
+
module.exports = {
|
|
93
|
+
destroy: destroy,
|
|
94
|
+
undestroy: undestroy,
|
|
95
|
+
errorOrDestroy: errorOrDestroy
|
|
96
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Ported from https://github.com/mafintosh/end-of-stream with
|
|
2
|
+
// permission from the author, Mathias Buus (@mafintosh).
|
|
3
|
+
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
7
|
+
function once(callback) {
|
|
8
|
+
var called = false;
|
|
9
|
+
return function () {
|
|
10
|
+
if (called) return;
|
|
11
|
+
called = true;
|
|
12
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
13
|
+
args[_key] = arguments[_key];
|
|
14
|
+
}
|
|
15
|
+
callback.apply(this, args);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function noop() {}
|
|
19
|
+
function isRequest(stream) {
|
|
20
|
+
return stream.setHeader && typeof stream.abort === 'function';
|
|
21
|
+
}
|
|
22
|
+
function eos(stream, opts, callback) {
|
|
23
|
+
if (typeof opts === 'function') return eos(stream, null, opts);
|
|
24
|
+
if (!opts) opts = {};
|
|
25
|
+
callback = once(callback || noop);
|
|
26
|
+
var readable = opts.readable || opts.readable !== false && stream.readable;
|
|
27
|
+
var writable = opts.writable || opts.writable !== false && stream.writable;
|
|
28
|
+
var onlegacyfinish = function onlegacyfinish() {
|
|
29
|
+
if (!stream.writable) onfinish();
|
|
30
|
+
};
|
|
31
|
+
var writableEnded = stream._writableState && stream._writableState.finished;
|
|
32
|
+
var onfinish = function onfinish() {
|
|
33
|
+
writable = false;
|
|
34
|
+
writableEnded = true;
|
|
35
|
+
if (!readable) callback.call(stream);
|
|
36
|
+
};
|
|
37
|
+
var readableEnded = stream._readableState && stream._readableState.endEmitted;
|
|
38
|
+
var onend = function onend() {
|
|
39
|
+
readable = false;
|
|
40
|
+
readableEnded = true;
|
|
41
|
+
if (!writable) callback.call(stream);
|
|
42
|
+
};
|
|
43
|
+
var onerror = function onerror(err) {
|
|
44
|
+
callback.call(stream, err);
|
|
45
|
+
};
|
|
46
|
+
var onclose = function onclose() {
|
|
47
|
+
var err;
|
|
48
|
+
if (readable && !readableEnded) {
|
|
49
|
+
if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
50
|
+
return callback.call(stream, err);
|
|
51
|
+
}
|
|
52
|
+
if (writable && !writableEnded) {
|
|
53
|
+
if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
|
|
54
|
+
return callback.call(stream, err);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var onrequest = function onrequest() {
|
|
58
|
+
stream.req.on('finish', onfinish);
|
|
59
|
+
};
|
|
60
|
+
if (isRequest(stream)) {
|
|
61
|
+
stream.on('complete', onfinish);
|
|
62
|
+
stream.on('abort', onclose);
|
|
63
|
+
if (stream.req) onrequest();else stream.on('request', onrequest);
|
|
64
|
+
} else if (writable && !stream._writableState) {
|
|
65
|
+
// legacy streams
|
|
66
|
+
stream.on('end', onlegacyfinish);
|
|
67
|
+
stream.on('close', onlegacyfinish);
|
|
68
|
+
}
|
|
69
|
+
stream.on('end', onend);
|
|
70
|
+
stream.on('finish', onfinish);
|
|
71
|
+
if (opts.error !== false) stream.on('error', onerror);
|
|
72
|
+
stream.on('close', onclose);
|
|
73
|
+
return function () {
|
|
74
|
+
stream.removeListener('complete', onfinish);
|
|
75
|
+
stream.removeListener('abort', onclose);
|
|
76
|
+
stream.removeListener('request', onrequest);
|
|
77
|
+
if (stream.req) stream.req.removeListener('finish', onfinish);
|
|
78
|
+
stream.removeListener('end', onlegacyfinish);
|
|
79
|
+
stream.removeListener('close', onlegacyfinish);
|
|
80
|
+
stream.removeListener('finish', onfinish);
|
|
81
|
+
stream.removeListener('end', onend);
|
|
82
|
+
stream.removeListener('error', onerror);
|
|
83
|
+
stream.removeListener('close', onclose);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
module.exports = eos;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
9
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
|
+
var ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE;
|
|
11
|
+
function from(Readable, iterable, opts) {
|
|
12
|
+
var iterator;
|
|
13
|
+
if (iterable && typeof iterable.next === 'function') {
|
|
14
|
+
iterator = iterable;
|
|
15
|
+
} else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable);
|
|
16
|
+
var readable = new Readable(_objectSpread({
|
|
17
|
+
objectMode: true
|
|
18
|
+
}, opts));
|
|
19
|
+
// Reading boolean to protect against _read
|
|
20
|
+
// being called before last iteration completion.
|
|
21
|
+
var reading = false;
|
|
22
|
+
readable._read = function () {
|
|
23
|
+
if (!reading) {
|
|
24
|
+
reading = true;
|
|
25
|
+
next();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
function next() {
|
|
29
|
+
return _next2.apply(this, arguments);
|
|
30
|
+
}
|
|
31
|
+
function _next2() {
|
|
32
|
+
_next2 = _asyncToGenerator(function* () {
|
|
33
|
+
try {
|
|
34
|
+
var _yield$iterator$next = yield iterator.next(),
|
|
35
|
+
value = _yield$iterator$next.value,
|
|
36
|
+
done = _yield$iterator$next.done;
|
|
37
|
+
if (done) {
|
|
38
|
+
readable.push(null);
|
|
39
|
+
} else if (readable.push(yield value)) {
|
|
40
|
+
next();
|
|
41
|
+
} else {
|
|
42
|
+
reading = false;
|
|
43
|
+
}
|
|
44
|
+
} catch (err) {
|
|
45
|
+
readable.destroy(err);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return _next2.apply(this, arguments);
|
|
49
|
+
}
|
|
50
|
+
return readable;
|
|
51
|
+
}
|
|
52
|
+
module.exports = from;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Ported from https://github.com/mafintosh/pump with
|
|
2
|
+
// permission from the author, Mathias Buus (@mafintosh).
|
|
3
|
+
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var eos;
|
|
7
|
+
function once(callback) {
|
|
8
|
+
var called = false;
|
|
9
|
+
return function () {
|
|
10
|
+
if (called) return;
|
|
11
|
+
called = true;
|
|
12
|
+
callback.apply(void 0, arguments);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
var _require$codes = require('../../../errors').codes,
|
|
16
|
+
ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
|
|
17
|
+
ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
|
|
18
|
+
function noop(err) {
|
|
19
|
+
// Rethrow the error if it exists to avoid swallowing it
|
|
20
|
+
if (err) throw err;
|
|
21
|
+
}
|
|
22
|
+
function isRequest(stream) {
|
|
23
|
+
return stream.setHeader && typeof stream.abort === 'function';
|
|
24
|
+
}
|
|
25
|
+
function destroyer(stream, reading, writing, callback) {
|
|
26
|
+
callback = once(callback);
|
|
27
|
+
var closed = false;
|
|
28
|
+
stream.on('close', function () {
|
|
29
|
+
closed = true;
|
|
30
|
+
});
|
|
31
|
+
if (eos === undefined) eos = require('./end-of-stream');
|
|
32
|
+
eos(stream, {
|
|
33
|
+
readable: reading,
|
|
34
|
+
writable: writing
|
|
35
|
+
}, function (err) {
|
|
36
|
+
if (err) return callback(err);
|
|
37
|
+
closed = true;
|
|
38
|
+
callback();
|
|
39
|
+
});
|
|
40
|
+
var destroyed = false;
|
|
41
|
+
return function (err) {
|
|
42
|
+
if (closed) return;
|
|
43
|
+
if (destroyed) return;
|
|
44
|
+
destroyed = true;
|
|
45
|
+
|
|
46
|
+
// request.destroy just do .end - .abort is what we want
|
|
47
|
+
if (isRequest(stream)) return stream.abort();
|
|
48
|
+
if (typeof stream.destroy === 'function') return stream.destroy();
|
|
49
|
+
callback(err || new ERR_STREAM_DESTROYED('pipe'));
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function call(fn) {
|
|
53
|
+
fn();
|
|
54
|
+
}
|
|
55
|
+
function pipe(from, to) {
|
|
56
|
+
return from.pipe(to);
|
|
57
|
+
}
|
|
58
|
+
function popCallback(streams) {
|
|
59
|
+
if (!streams.length) return noop;
|
|
60
|
+
if (typeof streams[streams.length - 1] !== 'function') return noop;
|
|
61
|
+
return streams.pop();
|
|
62
|
+
}
|
|
63
|
+
function pipeline() {
|
|
64
|
+
for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
65
|
+
streams[_key] = arguments[_key];
|
|
66
|
+
}
|
|
67
|
+
var callback = popCallback(streams);
|
|
68
|
+
if (Array.isArray(streams[0])) streams = streams[0];
|
|
69
|
+
if (streams.length < 2) {
|
|
70
|
+
throw new ERR_MISSING_ARGS('streams');
|
|
71
|
+
}
|
|
72
|
+
var error;
|
|
73
|
+
var destroys = streams.map(function (stream, i) {
|
|
74
|
+
var reading = i < streams.length - 1;
|
|
75
|
+
var writing = i > 0;
|
|
76
|
+
return destroyer(stream, reading, writing, function (err) {
|
|
77
|
+
if (!error) error = err;
|
|
78
|
+
if (err) destroys.forEach(call);
|
|
79
|
+
if (reading) return;
|
|
80
|
+
destroys.forEach(call);
|
|
81
|
+
callback(error);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
return streams.reduce(pipe);
|
|
85
|
+
}
|
|
86
|
+
module.exports = pipeline;
|