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,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "minipass-sized",
|
|
3
|
+
"version": "1.0.3",
|
|
4
|
+
"description": "A Minipass stream that raises an error if you get a different number of bytes than expected",
|
|
5
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "tap",
|
|
9
|
+
"snap": "tap",
|
|
10
|
+
"preversion": "npm test",
|
|
11
|
+
"postversion": "npm publish",
|
|
12
|
+
"postpublish": "git push origin --follow-tags"
|
|
13
|
+
},
|
|
14
|
+
"tap": {
|
|
15
|
+
"check-coverage": true
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"tap": "^14.6.4"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"minipass": "^3.0.0"
|
|
22
|
+
},
|
|
23
|
+
"main": "index.js",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"minipass",
|
|
26
|
+
"size",
|
|
27
|
+
"length"
|
|
28
|
+
],
|
|
29
|
+
"directories": {
|
|
30
|
+
"test": "test"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/isaacs/minipass-sized.git"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">=8"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Minizlib was created by Isaac Z. Schlueter.
|
|
2
|
+
It is a derivative work of the Node.js project.
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Copyright Isaac Z. Schlueter and Contributors
|
|
6
|
+
Copyright Node.js contributors. All rights reserved.
|
|
7
|
+
Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
8
|
+
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a
|
|
10
|
+
copy of this software and associated documentation files (the "Software"),
|
|
11
|
+
to deal in the Software without restriction, including without limitation
|
|
12
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
13
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
|
14
|
+
Software is furnished to do so, subject to the following conditions:
|
|
15
|
+
|
|
16
|
+
The above copyright notice and this permission notice shall be included in
|
|
17
|
+
all copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
20
|
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
21
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
22
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
23
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
24
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
25
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
26
|
+
"""
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// Update with any zlib constants that are added or changed in the future.
|
|
2
|
+
// Node v6 didn't export this, so we just hard code the version and rely
|
|
3
|
+
// on all the other hard-coded values from zlib v4736. When node v6
|
|
4
|
+
// support drops, we can just export the realZlibConstants object.
|
|
5
|
+
const realZlibConstants = require('zlib').constants ||
|
|
6
|
+
/* istanbul ignore next */ { ZLIB_VERNUM: 4736 }
|
|
7
|
+
|
|
8
|
+
module.exports = Object.freeze(Object.assign(Object.create(null), {
|
|
9
|
+
Z_NO_FLUSH: 0,
|
|
10
|
+
Z_PARTIAL_FLUSH: 1,
|
|
11
|
+
Z_SYNC_FLUSH: 2,
|
|
12
|
+
Z_FULL_FLUSH: 3,
|
|
13
|
+
Z_FINISH: 4,
|
|
14
|
+
Z_BLOCK: 5,
|
|
15
|
+
Z_OK: 0,
|
|
16
|
+
Z_STREAM_END: 1,
|
|
17
|
+
Z_NEED_DICT: 2,
|
|
18
|
+
Z_ERRNO: -1,
|
|
19
|
+
Z_STREAM_ERROR: -2,
|
|
20
|
+
Z_DATA_ERROR: -3,
|
|
21
|
+
Z_MEM_ERROR: -4,
|
|
22
|
+
Z_BUF_ERROR: -5,
|
|
23
|
+
Z_VERSION_ERROR: -6,
|
|
24
|
+
Z_NO_COMPRESSION: 0,
|
|
25
|
+
Z_BEST_SPEED: 1,
|
|
26
|
+
Z_BEST_COMPRESSION: 9,
|
|
27
|
+
Z_DEFAULT_COMPRESSION: -1,
|
|
28
|
+
Z_FILTERED: 1,
|
|
29
|
+
Z_HUFFMAN_ONLY: 2,
|
|
30
|
+
Z_RLE: 3,
|
|
31
|
+
Z_FIXED: 4,
|
|
32
|
+
Z_DEFAULT_STRATEGY: 0,
|
|
33
|
+
DEFLATE: 1,
|
|
34
|
+
INFLATE: 2,
|
|
35
|
+
GZIP: 3,
|
|
36
|
+
GUNZIP: 4,
|
|
37
|
+
DEFLATERAW: 5,
|
|
38
|
+
INFLATERAW: 6,
|
|
39
|
+
UNZIP: 7,
|
|
40
|
+
BROTLI_DECODE: 8,
|
|
41
|
+
BROTLI_ENCODE: 9,
|
|
42
|
+
Z_MIN_WINDOWBITS: 8,
|
|
43
|
+
Z_MAX_WINDOWBITS: 15,
|
|
44
|
+
Z_DEFAULT_WINDOWBITS: 15,
|
|
45
|
+
Z_MIN_CHUNK: 64,
|
|
46
|
+
Z_MAX_CHUNK: Infinity,
|
|
47
|
+
Z_DEFAULT_CHUNK: 16384,
|
|
48
|
+
Z_MIN_MEMLEVEL: 1,
|
|
49
|
+
Z_MAX_MEMLEVEL: 9,
|
|
50
|
+
Z_DEFAULT_MEMLEVEL: 8,
|
|
51
|
+
Z_MIN_LEVEL: -1,
|
|
52
|
+
Z_MAX_LEVEL: 9,
|
|
53
|
+
Z_DEFAULT_LEVEL: -1,
|
|
54
|
+
BROTLI_OPERATION_PROCESS: 0,
|
|
55
|
+
BROTLI_OPERATION_FLUSH: 1,
|
|
56
|
+
BROTLI_OPERATION_FINISH: 2,
|
|
57
|
+
BROTLI_OPERATION_EMIT_METADATA: 3,
|
|
58
|
+
BROTLI_MODE_GENERIC: 0,
|
|
59
|
+
BROTLI_MODE_TEXT: 1,
|
|
60
|
+
BROTLI_MODE_FONT: 2,
|
|
61
|
+
BROTLI_DEFAULT_MODE: 0,
|
|
62
|
+
BROTLI_MIN_QUALITY: 0,
|
|
63
|
+
BROTLI_MAX_QUALITY: 11,
|
|
64
|
+
BROTLI_DEFAULT_QUALITY: 11,
|
|
65
|
+
BROTLI_MIN_WINDOW_BITS: 10,
|
|
66
|
+
BROTLI_MAX_WINDOW_BITS: 24,
|
|
67
|
+
BROTLI_LARGE_MAX_WINDOW_BITS: 30,
|
|
68
|
+
BROTLI_DEFAULT_WINDOW: 22,
|
|
69
|
+
BROTLI_MIN_INPUT_BLOCK_BITS: 16,
|
|
70
|
+
BROTLI_MAX_INPUT_BLOCK_BITS: 24,
|
|
71
|
+
BROTLI_PARAM_MODE: 0,
|
|
72
|
+
BROTLI_PARAM_QUALITY: 1,
|
|
73
|
+
BROTLI_PARAM_LGWIN: 2,
|
|
74
|
+
BROTLI_PARAM_LGBLOCK: 3,
|
|
75
|
+
BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING: 4,
|
|
76
|
+
BROTLI_PARAM_SIZE_HINT: 5,
|
|
77
|
+
BROTLI_PARAM_LARGE_WINDOW: 6,
|
|
78
|
+
BROTLI_PARAM_NPOSTFIX: 7,
|
|
79
|
+
BROTLI_PARAM_NDIRECT: 8,
|
|
80
|
+
BROTLI_DECODER_RESULT_ERROR: 0,
|
|
81
|
+
BROTLI_DECODER_RESULT_SUCCESS: 1,
|
|
82
|
+
BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT: 2,
|
|
83
|
+
BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT: 3,
|
|
84
|
+
BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION: 0,
|
|
85
|
+
BROTLI_DECODER_PARAM_LARGE_WINDOW: 1,
|
|
86
|
+
BROTLI_DECODER_NO_ERROR: 0,
|
|
87
|
+
BROTLI_DECODER_SUCCESS: 1,
|
|
88
|
+
BROTLI_DECODER_NEEDS_MORE_INPUT: 2,
|
|
89
|
+
BROTLI_DECODER_NEEDS_MORE_OUTPUT: 3,
|
|
90
|
+
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE: -1,
|
|
91
|
+
BROTLI_DECODER_ERROR_FORMAT_RESERVED: -2,
|
|
92
|
+
BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE: -3,
|
|
93
|
+
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET: -4,
|
|
94
|
+
BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME: -5,
|
|
95
|
+
BROTLI_DECODER_ERROR_FORMAT_CL_SPACE: -6,
|
|
96
|
+
BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE: -7,
|
|
97
|
+
BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT: -8,
|
|
98
|
+
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1: -9,
|
|
99
|
+
BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2: -10,
|
|
100
|
+
BROTLI_DECODER_ERROR_FORMAT_TRANSFORM: -11,
|
|
101
|
+
BROTLI_DECODER_ERROR_FORMAT_DICTIONARY: -12,
|
|
102
|
+
BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS: -13,
|
|
103
|
+
BROTLI_DECODER_ERROR_FORMAT_PADDING_1: -14,
|
|
104
|
+
BROTLI_DECODER_ERROR_FORMAT_PADDING_2: -15,
|
|
105
|
+
BROTLI_DECODER_ERROR_FORMAT_DISTANCE: -16,
|
|
106
|
+
BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET: -19,
|
|
107
|
+
BROTLI_DECODER_ERROR_INVALID_ARGUMENTS: -20,
|
|
108
|
+
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES: -21,
|
|
109
|
+
BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS: -22,
|
|
110
|
+
BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP: -25,
|
|
111
|
+
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1: -26,
|
|
112
|
+
BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2: -27,
|
|
113
|
+
BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES: -30,
|
|
114
|
+
BROTLI_DECODER_ERROR_UNREACHABLE: -31,
|
|
115
|
+
}, realZlibConstants))
|
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const assert = require('assert')
|
|
4
|
+
const Buffer = require('buffer').Buffer
|
|
5
|
+
const realZlib = require('zlib')
|
|
6
|
+
|
|
7
|
+
const constants = exports.constants = require('./constants.js')
|
|
8
|
+
const Minipass = require('minipass')
|
|
9
|
+
|
|
10
|
+
const OriginalBufferConcat = Buffer.concat
|
|
11
|
+
|
|
12
|
+
const _superWrite = Symbol('_superWrite')
|
|
13
|
+
class ZlibError extends Error {
|
|
14
|
+
constructor (err) {
|
|
15
|
+
super('zlib: ' + err.message)
|
|
16
|
+
this.code = err.code
|
|
17
|
+
this.errno = err.errno
|
|
18
|
+
/* istanbul ignore if */
|
|
19
|
+
if (!this.code)
|
|
20
|
+
this.code = 'ZLIB_ERROR'
|
|
21
|
+
|
|
22
|
+
this.message = 'zlib: ' + err.message
|
|
23
|
+
Error.captureStackTrace(this, this.constructor)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
get name () {
|
|
27
|
+
return 'ZlibError'
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// the Zlib class they all inherit from
|
|
32
|
+
// This thing manages the queue of requests, and returns
|
|
33
|
+
// true or false if there is anything in the queue when
|
|
34
|
+
// you call the .write() method.
|
|
35
|
+
const _opts = Symbol('opts')
|
|
36
|
+
const _flushFlag = Symbol('flushFlag')
|
|
37
|
+
const _finishFlushFlag = Symbol('finishFlushFlag')
|
|
38
|
+
const _fullFlushFlag = Symbol('fullFlushFlag')
|
|
39
|
+
const _handle = Symbol('handle')
|
|
40
|
+
const _onError = Symbol('onError')
|
|
41
|
+
const _sawError = Symbol('sawError')
|
|
42
|
+
const _level = Symbol('level')
|
|
43
|
+
const _strategy = Symbol('strategy')
|
|
44
|
+
const _ended = Symbol('ended')
|
|
45
|
+
const _defaultFullFlush = Symbol('_defaultFullFlush')
|
|
46
|
+
|
|
47
|
+
class ZlibBase extends Minipass {
|
|
48
|
+
constructor (opts, mode) {
|
|
49
|
+
if (!opts || typeof opts !== 'object')
|
|
50
|
+
throw new TypeError('invalid options for ZlibBase constructor')
|
|
51
|
+
|
|
52
|
+
super(opts)
|
|
53
|
+
this[_sawError] = false
|
|
54
|
+
this[_ended] = false
|
|
55
|
+
this[_opts] = opts
|
|
56
|
+
|
|
57
|
+
this[_flushFlag] = opts.flush
|
|
58
|
+
this[_finishFlushFlag] = opts.finishFlush
|
|
59
|
+
// this will throw if any options are invalid for the class selected
|
|
60
|
+
try {
|
|
61
|
+
this[_handle] = new realZlib[mode](opts)
|
|
62
|
+
} catch (er) {
|
|
63
|
+
// make sure that all errors get decorated properly
|
|
64
|
+
throw new ZlibError(er)
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
this[_onError] = (err) => {
|
|
68
|
+
// no sense raising multiple errors, since we abort on the first one.
|
|
69
|
+
if (this[_sawError])
|
|
70
|
+
return
|
|
71
|
+
|
|
72
|
+
this[_sawError] = true
|
|
73
|
+
|
|
74
|
+
// there is no way to cleanly recover.
|
|
75
|
+
// continuing only obscures problems.
|
|
76
|
+
this.close()
|
|
77
|
+
this.emit('error', err)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
this[_handle].on('error', er => this[_onError](new ZlibError(er)))
|
|
81
|
+
this.once('end', () => this.close)
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
close () {
|
|
85
|
+
if (this[_handle]) {
|
|
86
|
+
this[_handle].close()
|
|
87
|
+
this[_handle] = null
|
|
88
|
+
this.emit('close')
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
reset () {
|
|
93
|
+
if (!this[_sawError]) {
|
|
94
|
+
assert(this[_handle], 'zlib binding closed')
|
|
95
|
+
return this[_handle].reset()
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
flush (flushFlag) {
|
|
100
|
+
if (this.ended)
|
|
101
|
+
return
|
|
102
|
+
|
|
103
|
+
if (typeof flushFlag !== 'number')
|
|
104
|
+
flushFlag = this[_fullFlushFlag]
|
|
105
|
+
this.write(Object.assign(Buffer.alloc(0), { [_flushFlag]: flushFlag }))
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
end (chunk, encoding, cb) {
|
|
109
|
+
if (chunk)
|
|
110
|
+
this.write(chunk, encoding)
|
|
111
|
+
this.flush(this[_finishFlushFlag])
|
|
112
|
+
this[_ended] = true
|
|
113
|
+
return super.end(null, null, cb)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
get ended () {
|
|
117
|
+
return this[_ended]
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
write (chunk, encoding, cb) {
|
|
121
|
+
// process the chunk using the sync process
|
|
122
|
+
// then super.write() all the outputted chunks
|
|
123
|
+
if (typeof encoding === 'function')
|
|
124
|
+
cb = encoding, encoding = 'utf8'
|
|
125
|
+
|
|
126
|
+
if (typeof chunk === 'string')
|
|
127
|
+
chunk = Buffer.from(chunk, encoding)
|
|
128
|
+
|
|
129
|
+
if (this[_sawError])
|
|
130
|
+
return
|
|
131
|
+
assert(this[_handle], 'zlib binding closed')
|
|
132
|
+
|
|
133
|
+
// _processChunk tries to .close() the native handle after it's done, so we
|
|
134
|
+
// intercept that by temporarily making it a no-op.
|
|
135
|
+
const nativeHandle = this[_handle]._handle
|
|
136
|
+
const originalNativeClose = nativeHandle.close
|
|
137
|
+
nativeHandle.close = () => {}
|
|
138
|
+
const originalClose = this[_handle].close
|
|
139
|
+
this[_handle].close = () => {}
|
|
140
|
+
// It also calls `Buffer.concat()` at the end, which may be convenient
|
|
141
|
+
// for some, but which we are not interested in as it slows us down.
|
|
142
|
+
Buffer.concat = (args) => args
|
|
143
|
+
let result
|
|
144
|
+
try {
|
|
145
|
+
const flushFlag = typeof chunk[_flushFlag] === 'number'
|
|
146
|
+
? chunk[_flushFlag] : this[_flushFlag]
|
|
147
|
+
result = this[_handle]._processChunk(chunk, flushFlag)
|
|
148
|
+
// if we don't throw, reset it back how it was
|
|
149
|
+
Buffer.concat = OriginalBufferConcat
|
|
150
|
+
} catch (err) {
|
|
151
|
+
// or if we do, put Buffer.concat() back before we emit error
|
|
152
|
+
// Error events call into user code, which may call Buffer.concat()
|
|
153
|
+
Buffer.concat = OriginalBufferConcat
|
|
154
|
+
this[_onError](new ZlibError(err))
|
|
155
|
+
} finally {
|
|
156
|
+
if (this[_handle]) {
|
|
157
|
+
// Core zlib resets `_handle` to null after attempting to close the
|
|
158
|
+
// native handle. Our no-op handler prevented actual closure, but we
|
|
159
|
+
// need to restore the `._handle` property.
|
|
160
|
+
this[_handle]._handle = nativeHandle
|
|
161
|
+
nativeHandle.close = originalNativeClose
|
|
162
|
+
this[_handle].close = originalClose
|
|
163
|
+
// `_processChunk()` adds an 'error' listener. If we don't remove it
|
|
164
|
+
// after each call, these handlers start piling up.
|
|
165
|
+
this[_handle].removeAllListeners('error')
|
|
166
|
+
// make sure OUR error listener is still attached tho
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (this[_handle])
|
|
171
|
+
this[_handle].on('error', er => this[_onError](new ZlibError(er)))
|
|
172
|
+
|
|
173
|
+
let writeReturn
|
|
174
|
+
if (result) {
|
|
175
|
+
if (Array.isArray(result) && result.length > 0) {
|
|
176
|
+
// The first buffer is always `handle._outBuffer`, which would be
|
|
177
|
+
// re-used for later invocations; so, we always have to copy that one.
|
|
178
|
+
writeReturn = this[_superWrite](Buffer.from(result[0]))
|
|
179
|
+
for (let i = 1; i < result.length; i++) {
|
|
180
|
+
writeReturn = this[_superWrite](result[i])
|
|
181
|
+
}
|
|
182
|
+
} else {
|
|
183
|
+
writeReturn = this[_superWrite](Buffer.from(result))
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (cb)
|
|
188
|
+
cb()
|
|
189
|
+
return writeReturn
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
[_superWrite] (data) {
|
|
193
|
+
return super.write(data)
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
class Zlib extends ZlibBase {
|
|
198
|
+
constructor (opts, mode) {
|
|
199
|
+
opts = opts || {}
|
|
200
|
+
|
|
201
|
+
opts.flush = opts.flush || constants.Z_NO_FLUSH
|
|
202
|
+
opts.finishFlush = opts.finishFlush || constants.Z_FINISH
|
|
203
|
+
super(opts, mode)
|
|
204
|
+
|
|
205
|
+
this[_fullFlushFlag] = constants.Z_FULL_FLUSH
|
|
206
|
+
this[_level] = opts.level
|
|
207
|
+
this[_strategy] = opts.strategy
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
params (level, strategy) {
|
|
211
|
+
if (this[_sawError])
|
|
212
|
+
return
|
|
213
|
+
|
|
214
|
+
if (!this[_handle])
|
|
215
|
+
throw new Error('cannot switch params when binding is closed')
|
|
216
|
+
|
|
217
|
+
// no way to test this without also not supporting params at all
|
|
218
|
+
/* istanbul ignore if */
|
|
219
|
+
if (!this[_handle].params)
|
|
220
|
+
throw new Error('not supported in this implementation')
|
|
221
|
+
|
|
222
|
+
if (this[_level] !== level || this[_strategy] !== strategy) {
|
|
223
|
+
this.flush(constants.Z_SYNC_FLUSH)
|
|
224
|
+
assert(this[_handle], 'zlib binding closed')
|
|
225
|
+
// .params() calls .flush(), but the latter is always async in the
|
|
226
|
+
// core zlib. We override .flush() temporarily to intercept that and
|
|
227
|
+
// flush synchronously.
|
|
228
|
+
const origFlush = this[_handle].flush
|
|
229
|
+
this[_handle].flush = (flushFlag, cb) => {
|
|
230
|
+
this.flush(flushFlag)
|
|
231
|
+
cb()
|
|
232
|
+
}
|
|
233
|
+
try {
|
|
234
|
+
this[_handle].params(level, strategy)
|
|
235
|
+
} finally {
|
|
236
|
+
this[_handle].flush = origFlush
|
|
237
|
+
}
|
|
238
|
+
/* istanbul ignore else */
|
|
239
|
+
if (this[_handle]) {
|
|
240
|
+
this[_level] = level
|
|
241
|
+
this[_strategy] = strategy
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// minimal 2-byte header
|
|
248
|
+
class Deflate extends Zlib {
|
|
249
|
+
constructor (opts) {
|
|
250
|
+
super(opts, 'Deflate')
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
class Inflate extends Zlib {
|
|
255
|
+
constructor (opts) {
|
|
256
|
+
super(opts, 'Inflate')
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// gzip - bigger header, same deflate compression
|
|
261
|
+
const _portable = Symbol('_portable')
|
|
262
|
+
class Gzip extends Zlib {
|
|
263
|
+
constructor (opts) {
|
|
264
|
+
super(opts, 'Gzip')
|
|
265
|
+
this[_portable] = opts && !!opts.portable
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
[_superWrite] (data) {
|
|
269
|
+
if (!this[_portable])
|
|
270
|
+
return super[_superWrite](data)
|
|
271
|
+
|
|
272
|
+
// we'll always get the header emitted in one first chunk
|
|
273
|
+
// overwrite the OS indicator byte with 0xFF
|
|
274
|
+
this[_portable] = false
|
|
275
|
+
data[9] = 255
|
|
276
|
+
return super[_superWrite](data)
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
class Gunzip extends Zlib {
|
|
281
|
+
constructor (opts) {
|
|
282
|
+
super(opts, 'Gunzip')
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
// raw - no header
|
|
287
|
+
class DeflateRaw extends Zlib {
|
|
288
|
+
constructor (opts) {
|
|
289
|
+
super(opts, 'DeflateRaw')
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
class InflateRaw extends Zlib {
|
|
294
|
+
constructor (opts) {
|
|
295
|
+
super(opts, 'InflateRaw')
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
// auto-detect header.
|
|
300
|
+
class Unzip extends Zlib {
|
|
301
|
+
constructor (opts) {
|
|
302
|
+
super(opts, 'Unzip')
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
class Brotli extends ZlibBase {
|
|
307
|
+
constructor (opts, mode) {
|
|
308
|
+
opts = opts || {}
|
|
309
|
+
|
|
310
|
+
opts.flush = opts.flush || constants.BROTLI_OPERATION_PROCESS
|
|
311
|
+
opts.finishFlush = opts.finishFlush || constants.BROTLI_OPERATION_FINISH
|
|
312
|
+
|
|
313
|
+
super(opts, mode)
|
|
314
|
+
|
|
315
|
+
this[_fullFlushFlag] = constants.BROTLI_OPERATION_FLUSH
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
class BrotliCompress extends Brotli {
|
|
320
|
+
constructor (opts) {
|
|
321
|
+
super(opts, 'BrotliCompress')
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
class BrotliDecompress extends Brotli {
|
|
326
|
+
constructor (opts) {
|
|
327
|
+
super(opts, 'BrotliDecompress')
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
exports.Deflate = Deflate
|
|
332
|
+
exports.Inflate = Inflate
|
|
333
|
+
exports.Gzip = Gzip
|
|
334
|
+
exports.Gunzip = Gunzip
|
|
335
|
+
exports.DeflateRaw = DeflateRaw
|
|
336
|
+
exports.InflateRaw = InflateRaw
|
|
337
|
+
exports.Unzip = Unzip
|
|
338
|
+
/* istanbul ignore else */
|
|
339
|
+
if (typeof realZlib.BrotliCompress === 'function') {
|
|
340
|
+
exports.BrotliCompress = BrotliCompress
|
|
341
|
+
exports.BrotliDecompress = BrotliDecompress
|
|
342
|
+
} else {
|
|
343
|
+
exports.BrotliCompress = exports.BrotliDecompress = class {
|
|
344
|
+
constructor () {
|
|
345
|
+
throw new Error('Brotli is not supported in this version of Node.js')
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "minizlib",
|
|
3
|
+
"version": "2.1.2",
|
|
4
|
+
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"minipass": "^3.0.0",
|
|
8
|
+
"yallist": "^4.0.0"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "tap test/*.js --100 -J",
|
|
12
|
+
"preversion": "npm test",
|
|
13
|
+
"postversion": "npm publish",
|
|
14
|
+
"postpublish": "git push origin --all; git push origin --tags"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/isaacs/minizlib.git"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"zlib",
|
|
22
|
+
"gzip",
|
|
23
|
+
"gunzip",
|
|
24
|
+
"deflate",
|
|
25
|
+
"inflate",
|
|
26
|
+
"compression",
|
|
27
|
+
"zip",
|
|
28
|
+
"unzip"
|
|
29
|
+
],
|
|
30
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"tap": "^14.6.9"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"index.js",
|
|
37
|
+
"constants.js"
|
|
38
|
+
],
|
|
39
|
+
"engines": {
|
|
40
|
+
"node": ">= 8"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright James Halliday (mail@substack.net) and Isaac Z. Schlueter (i@izs.me)
|
|
2
|
+
|
|
3
|
+
This project is free software released under the MIT license:
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const usage = () => `
|
|
4
|
+
usage: mkdirp [DIR1,DIR2..] {OPTIONS}
|
|
5
|
+
|
|
6
|
+
Create each supplied directory including any necessary parent directories
|
|
7
|
+
that don't yet exist.
|
|
8
|
+
|
|
9
|
+
If the directory already exists, do nothing.
|
|
10
|
+
|
|
11
|
+
OPTIONS are:
|
|
12
|
+
|
|
13
|
+
-m<mode> If a directory needs to be created, set the mode as an octal
|
|
14
|
+
--mode=<mode> permission string.
|
|
15
|
+
|
|
16
|
+
-v --version Print the mkdirp version number
|
|
17
|
+
|
|
18
|
+
-h --help Print this helpful banner
|
|
19
|
+
|
|
20
|
+
-p --print Print the first directories created for each path provided
|
|
21
|
+
|
|
22
|
+
--manual Use manual implementation, even if native is available
|
|
23
|
+
`
|
|
24
|
+
|
|
25
|
+
const dirs = []
|
|
26
|
+
const opts = {}
|
|
27
|
+
let print = false
|
|
28
|
+
let dashdash = false
|
|
29
|
+
let manual = false
|
|
30
|
+
for (const arg of process.argv.slice(2)) {
|
|
31
|
+
if (dashdash)
|
|
32
|
+
dirs.push(arg)
|
|
33
|
+
else if (arg === '--')
|
|
34
|
+
dashdash = true
|
|
35
|
+
else if (arg === '--manual')
|
|
36
|
+
manual = true
|
|
37
|
+
else if (/^-h/.test(arg) || /^--help/.test(arg)) {
|
|
38
|
+
console.log(usage())
|
|
39
|
+
process.exit(0)
|
|
40
|
+
} else if (arg === '-v' || arg === '--version') {
|
|
41
|
+
console.log(require('../package.json').version)
|
|
42
|
+
process.exit(0)
|
|
43
|
+
} else if (arg === '-p' || arg === '--print') {
|
|
44
|
+
print = true
|
|
45
|
+
} else if (/^-m/.test(arg) || /^--mode=/.test(arg)) {
|
|
46
|
+
const mode = parseInt(arg.replace(/^(-m|--mode=)/, ''), 8)
|
|
47
|
+
if (isNaN(mode)) {
|
|
48
|
+
console.error(`invalid mode argument: ${arg}\nMust be an octal number.`)
|
|
49
|
+
process.exit(1)
|
|
50
|
+
}
|
|
51
|
+
opts.mode = mode
|
|
52
|
+
} else
|
|
53
|
+
dirs.push(arg)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const mkdirp = require('../')
|
|
57
|
+
const impl = manual ? mkdirp.manual : mkdirp
|
|
58
|
+
if (dirs.length === 0)
|
|
59
|
+
console.error(usage())
|
|
60
|
+
|
|
61
|
+
Promise.all(dirs.map(dir => impl(dir, opts)))
|
|
62
|
+
.then(made => print ? made.forEach(m => m && console.log(m)) : null)
|
|
63
|
+
.catch(er => {
|
|
64
|
+
console.error(er.message)
|
|
65
|
+
if (er.code)
|
|
66
|
+
console.error(' code: ' + er.code)
|
|
67
|
+
process.exit(1)
|
|
68
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const optsArg = require('./lib/opts-arg.js')
|
|
2
|
+
const pathArg = require('./lib/path-arg.js')
|
|
3
|
+
|
|
4
|
+
const {mkdirpNative, mkdirpNativeSync} = require('./lib/mkdirp-native.js')
|
|
5
|
+
const {mkdirpManual, mkdirpManualSync} = require('./lib/mkdirp-manual.js')
|
|
6
|
+
const {useNative, useNativeSync} = require('./lib/use-native.js')
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
const mkdirp = (path, opts) => {
|
|
10
|
+
path = pathArg(path)
|
|
11
|
+
opts = optsArg(opts)
|
|
12
|
+
return useNative(opts)
|
|
13
|
+
? mkdirpNative(path, opts)
|
|
14
|
+
: mkdirpManual(path, opts)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const mkdirpSync = (path, opts) => {
|
|
18
|
+
path = pathArg(path)
|
|
19
|
+
opts = optsArg(opts)
|
|
20
|
+
return useNativeSync(opts)
|
|
21
|
+
? mkdirpNativeSync(path, opts)
|
|
22
|
+
: mkdirpManualSync(path, opts)
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
mkdirp.sync = mkdirpSync
|
|
26
|
+
mkdirp.native = (path, opts) => mkdirpNative(pathArg(path), optsArg(opts))
|
|
27
|
+
mkdirp.manual = (path, opts) => mkdirpManual(pathArg(path), optsArg(opts))
|
|
28
|
+
mkdirp.nativeSync = (path, opts) => mkdirpNativeSync(pathArg(path), optsArg(opts))
|
|
29
|
+
mkdirp.manualSync = (path, opts) => mkdirpManualSync(pathArg(path), optsArg(opts))
|
|
30
|
+
|
|
31
|
+
module.exports = mkdirp
|