@pnpm/exe 11.0.0-dev.1005 → 11.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node-gyp-bin/node-gyp +6 -0
- package/dist/node-gyp-bin/node-gyp.cmd +5 -0
- package/dist/node_modules/@gar/promise-retry/LICENSE +20 -0
- package/dist/node_modules/@gar/promise-retry/lib/index.js +62 -0
- package/dist/node_modules/@gar/promise-retry/lib/retry.js +109 -0
- package/dist/node_modules/@gar/promise-retry/package.json +45 -0
- package/dist/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/dist/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/dist/node_modules/@npmcli/agent/lib/agents.js +206 -0
- package/dist/node_modules/@npmcli/agent/lib/dns.js +53 -0
- package/dist/node_modules/@npmcli/agent/lib/errors.js +61 -0
- package/dist/node_modules/@npmcli/agent/lib/index.js +56 -0
- package/dist/node_modules/@npmcli/agent/lib/options.js +86 -0
- package/dist/node_modules/@npmcli/agent/lib/proxy.js +88 -0
- package/dist/node_modules/@npmcli/agent/package.json +60 -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/cp/LICENSE +15 -0
- package/dist/node_modules/@npmcli/fs/lib/cp/errors.js +129 -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/index.js +13 -0
- package/dist/node_modules/@npmcli/fs/lib/move-file.js +78 -0
- package/dist/node_modules/@npmcli/fs/lib/readdir-scoped.js +20 -0
- package/dist/node_modules/@npmcli/fs/lib/with-temp-dir.js +39 -0
- package/dist/node_modules/@npmcli/fs/package.json +54 -0
- package/dist/node_modules/@npmcli/redact/LICENSE +21 -0
- package/dist/node_modules/@npmcli/redact/lib/deep-map.js +71 -0
- package/dist/node_modules/@npmcli/redact/lib/error.js +28 -0
- package/dist/node_modules/@npmcli/redact/lib/index.js +44 -0
- package/dist/node_modules/@npmcli/redact/lib/matchers.js +88 -0
- package/dist/node_modules/@npmcli/redact/lib/server.js +59 -0
- package/dist/node_modules/@npmcli/redact/lib/utils.js +202 -0
- package/dist/node_modules/@npmcli/redact/package.json +52 -0
- package/dist/node_modules/abbrev/LICENSE +46 -0
- package/dist/node_modules/abbrev/lib/index.js +53 -0
- package/dist/node_modules/abbrev/package.json +41 -0
- package/dist/node_modules/agent-base/LICENSE +22 -0
- package/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/dist/node_modules/agent-base/dist/index.js +178 -0
- package/dist/node_modules/agent-base/package.json +46 -0
- package/dist/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/dist/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/dist/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/dist/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/dist/node_modules/balanced-match/package.json +68 -0
- package/dist/node_modules/brace-expansion/LICENSE +23 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/index.js +201 -0
- package/dist/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/dist/node_modules/brace-expansion/dist/esm/index.js +197 -0
- package/dist/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/dist/node_modules/brace-expansion/package.json +64 -0
- package/dist/node_modules/cacache/lib/content/path.js +29 -0
- package/dist/node_modules/cacache/lib/content/read.js +165 -0
- package/dist/node_modules/cacache/lib/content/rm.js +18 -0
- package/dist/node_modules/cacache/lib/content/write.js +206 -0
- package/dist/node_modules/cacache/lib/entry-index.js +336 -0
- package/dist/node_modules/cacache/lib/get.js +170 -0
- package/dist/node_modules/cacache/lib/index.js +42 -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/glob.js +7 -0
- package/dist/node_modules/cacache/lib/util/hash-to-segments.js +7 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +32 -0
- package/dist/node_modules/cacache/lib/verify.js +258 -0
- package/dist/node_modules/cacache/package.json +81 -0
- package/dist/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/dist/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/dist/node_modules/chownr/dist/esm/index.js +85 -0
- package/dist/node_modules/chownr/dist/esm/package.json +3 -0
- package/dist/node_modules/chownr/package.json +69 -0
- package/dist/node_modules/debug/LICENSE +20 -0
- package/dist/node_modules/debug/package.json +64 -0
- package/dist/node_modules/debug/src/browser.js +272 -0
- package/dist/node_modules/debug/src/common.js +292 -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/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/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +124 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/package.json +62 -0
- package/dist/node_modules/fdir/LICENSE +7 -0
- package/dist/node_modules/fdir/dist/index.cjs +588 -0
- package/dist/node_modules/fdir/dist/index.d.cts +155 -0
- package/dist/node_modules/fdir/dist/index.d.mts +155 -0
- package/dist/node_modules/fdir/dist/index.mjs +570 -0
- package/dist/node_modules/fdir/package.json +103 -0
- package/dist/node_modules/fs-minipass/LICENSE +15 -0
- package/dist/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/fs-minipass/package.json +54 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/dist/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/dist/node_modules/glob/dist/esm/glob.js +244 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/dist/node_modules/glob/dist/esm/index.min.js +4 -0
- package/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +219 -0
- package/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/dist/node_modules/glob/package.json +98 -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/http-cache-semantics/LICENSE +9 -0
- package/dist/node_modules/http-cache-semantics/index.js +928 -0
- package/dist/node_modules/http-cache-semantics/package.json +22 -0
- package/dist/node_modules/http-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +148 -0
- package/dist/node_modules/http-proxy-agent/package.json +47 -0
- package/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +180 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +101 -0
- package/dist/node_modules/https-proxy-agent/package.json +50 -0
- package/dist/node_modules/iconv-lite/LICENSE +21 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-codec.js +532 -0
- package/dist/node_modules/iconv-lite/encodings/dbcs-data.js +185 -0
- package/dist/node_modules/iconv-lite/encodings/index.js +23 -0
- package/dist/node_modules/iconv-lite/encodings/internal.js +218 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-codec.js +75 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/dist/node_modules/iconv-lite/encodings/sbcs-data.js +178 -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 +187 -0
- package/dist/node_modules/iconv-lite/encodings/utf32.js +307 -0
- package/dist/node_modules/iconv-lite/encodings/utf7.js +283 -0
- package/dist/node_modules/iconv-lite/lib/bom-handling.js +48 -0
- package/dist/node_modules/iconv-lite/lib/helpers/merge-exports.js +13 -0
- package/dist/node_modules/iconv-lite/lib/index.js +182 -0
- package/dist/node_modules/iconv-lite/lib/streams.js +105 -0
- package/dist/node_modules/iconv-lite/package.json +70 -0
- package/dist/node_modules/ip-address/LICENSE +19 -0
- package/dist/node_modules/ip-address/dist/address-error.js +12 -0
- package/dist/node_modules/ip-address/dist/common.js +46 -0
- package/dist/node_modules/ip-address/dist/ip-address.js +35 -0
- package/dist/node_modules/ip-address/dist/ipv4.js +360 -0
- package/dist/node_modules/ip-address/dist/ipv6.js +1003 -0
- package/dist/node_modules/ip-address/dist/v4/constants.js +8 -0
- package/dist/node_modules/ip-address/dist/v6/constants.js +76 -0
- package/dist/node_modules/ip-address/dist/v6/helpers.js +45 -0
- package/dist/node_modules/ip-address/dist/v6/regular-expressions.js +95 -0
- package/dist/node_modules/ip-address/package.json +78 -0
- package/dist/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/dist/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/dist/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/dist/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/dist/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/dist/node_modules/isexe/dist/esm/index.js +16 -0
- package/dist/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/dist/node_modules/isexe/dist/esm/options.js +2 -0
- package/dist/node_modules/isexe/dist/esm/package.json +3 -0
- package/dist/node_modules/isexe/dist/esm/posix.js +62 -0
- package/dist/node_modules/isexe/dist/esm/win32.js +58 -0
- package/dist/node_modules/isexe/package.json +78 -0
- package/dist/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +10 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1692 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +7 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.js +1688 -0
- package/dist/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/lru-cache/package.json +126 -0
- package/dist/node_modules/make-fetch-happen/LICENSE +16 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +471 -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/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 +59 -0
- package/dist/node_modules/make-fetch-happen/lib/pipeline.js +41 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +134 -0
- package/dist/node_modules/make-fetch-happen/package.json +75 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/dist/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/dist/node_modules/minimatch/package.json +73 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1020 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +77 -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 +30 -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 +360 -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 +376 -0
- package/dist/node_modules/minipass-fetch/lib/request.js +282 -0
- package/dist/node_modules/minipass-fetch/lib/response.js +90 -0
- package/dist/node_modules/minipass-fetch/package.json +70 -0
- package/dist/node_modules/minipass-flush/index.js +39 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-flush/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minipass-flush/package.json +42 -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/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-pipeline/node_modules/minipass/package.json +56 -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/dist/commonjs/index.js +69 -0
- package/dist/node_modules/minipass-sized/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass-sized/dist/esm/index.js +64 -0
- package/dist/node_modules/minipass-sized/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass-sized/package.json +69 -0
- package/dist/node_modules/minizlib/LICENSE +26 -0
- package/dist/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/dist/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/dist/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/dist/node_modules/minizlib/dist/esm/index.js +363 -0
- package/dist/node_modules/minizlib/dist/esm/package.json +3 -0
- package/dist/node_modules/minizlib/package.json +80 -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 +83 -0
- package/dist/node_modules/negotiator/lib/charset.js +169 -0
- package/dist/node_modules/negotiator/lib/encoding.js +205 -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 +43 -0
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -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 +145 -0
- package/dist/node_modules/node-gyp/eslint.config.js +3 -0
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/LICENSE +28 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -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 +365 -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 +1283 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings_test.py +1545 -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 +152 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSUtil.py +270 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py +599 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +707 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +725 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +186 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +170 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +113 -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 +805 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +1169 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +1316 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +128 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/dump_dependency_json.py +104 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +461 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypd.py +88 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +55 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +2755 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +3970 -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 +2956 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +67 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +1389 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode_test.py +26 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +3097 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input_test.py +99 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/mac_tool.py +765 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +1255 -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 +371 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +1936 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +54 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_ninja.py +301 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +3180 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xml_fix.py +64 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE +3 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.APACHE +177 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/LICENSE.BSD +23 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/__init__.py +15 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_elffile.py +107 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_manylinux.py +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_musllinux.py +83 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_parser.py +359 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_structures.py +61 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/_tokenizer.py +192 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/markers.py +251 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +824 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/py.typed +0 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/requirements.py +90 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/specifiers.py +1030 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/tags.py +553 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/utils.py +172 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/version.py +563 -0
- package/dist/node_modules/node-gyp/gyp/pyproject.toml +114 -0
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/gyp/test_gyp.py +260 -0
- package/dist/node_modules/node-gyp/lib/Find-VisualStudio.cs +250 -0
- package/dist/node_modules/node-gyp/lib/build.js +230 -0
- package/dist/node_modules/node-gyp/lib/clean.js +15 -0
- package/dist/node_modules/node-gyp/lib/configure.js +328 -0
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +153 -0
- package/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +63 -0
- package/dist/node_modules/node-gyp/lib/find-python.js +304 -0
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +606 -0
- package/dist/node_modules/node-gyp/lib/install.js +411 -0
- package/dist/node_modules/node-gyp/lib/list.js +26 -0
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +199 -0
- package/dist/node_modules/node-gyp/lib/process-release.js +146 -0
- package/dist/node_modules/node-gyp/lib/rebuild.js +12 -0
- package/dist/node_modules/node-gyp/lib/remove.js +43 -0
- package/dist/node_modules/node-gyp/lib/util.js +81 -0
- package/dist/node_modules/node-gyp/macOS_Catalina_acid_test.sh +21 -0
- package/dist/node_modules/node-gyp/package.json +52 -0
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/node-gyp/src/win_delay_load_hook.cc +41 -0
- package/dist/node_modules/nopt/LICENSE +15 -0
- package/dist/node_modules/nopt/bin/nopt.js +29 -0
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/dist/node_modules/nopt/lib/nopt.js +34 -0
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +52 -0
- package/dist/node_modules/p-map/index.js +283 -0
- package/dist/node_modules/p-map/license +9 -0
- package/dist/node_modules/p-map/package.json +57 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/package.json +72 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/index.js +17 -0
- package/dist/node_modules/picomatch/lib/constants.js +184 -0
- package/dist/node_modules/picomatch/lib/parse.js +1386 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +349 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +72 -0
- package/dist/node_modules/picomatch/package.json +82 -0
- package/dist/node_modules/picomatch/posix.js +3 -0
- package/dist/node_modules/proc-log/LICENSE +15 -0
- package/dist/node_modules/proc-log/lib/index.js +158 -0
- package/dist/node_modules/proc-log/package.json +46 -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 +191 -0
- package/dist/node_modules/semver/classes/comparator.js +143 -0
- package/dist/node_modules/semver/classes/index.js +7 -0
- package/dist/node_modules/semver/classes/range.js +557 -0
- package/dist/node_modules/semver/classes/semver.js +333 -0
- package/dist/node_modules/semver/functions/clean.js +8 -0
- package/dist/node_modules/semver/functions/cmp.js +54 -0
- package/dist/node_modules/semver/functions/coerce.js +62 -0
- package/dist/node_modules/semver/functions/compare-build.js +9 -0
- package/dist/node_modules/semver/functions/compare-loose.js +5 -0
- package/dist/node_modules/semver/functions/compare.js +7 -0
- package/dist/node_modules/semver/functions/diff.js +60 -0
- package/dist/node_modules/semver/functions/eq.js +5 -0
- package/dist/node_modules/semver/functions/gt.js +5 -0
- package/dist/node_modules/semver/functions/gte.js +5 -0
- package/dist/node_modules/semver/functions/inc.js +21 -0
- package/dist/node_modules/semver/functions/lt.js +5 -0
- package/dist/node_modules/semver/functions/lte.js +5 -0
- package/dist/node_modules/semver/functions/major.js +5 -0
- package/dist/node_modules/semver/functions/minor.js +5 -0
- package/dist/node_modules/semver/functions/neq.js +5 -0
- package/dist/node_modules/semver/functions/parse.js +18 -0
- package/dist/node_modules/semver/functions/patch.js +5 -0
- package/dist/node_modules/semver/functions/prerelease.js +8 -0
- package/dist/node_modules/semver/functions/rcompare.js +5 -0
- package/dist/node_modules/semver/functions/rsort.js +5 -0
- package/dist/node_modules/semver/functions/satisfies.js +12 -0
- package/dist/node_modules/semver/functions/sort.js +5 -0
- package/dist/node_modules/semver/functions/valid.js +8 -0
- package/dist/node_modules/semver/index.js +91 -0
- package/dist/node_modules/semver/internal/constants.js +37 -0
- package/dist/node_modules/semver/internal/debug.js +11 -0
- package/dist/node_modules/semver/internal/identifiers.js +29 -0
- package/dist/node_modules/semver/internal/lrucache.js +42 -0
- package/dist/node_modules/semver/internal/parse-options.js +17 -0
- package/dist/node_modules/semver/internal/re.js +223 -0
- package/dist/node_modules/semver/package.json +78 -0
- package/dist/node_modules/semver/preload.js +4 -0
- package/dist/node_modules/semver/range.bnf +16 -0
- package/dist/node_modules/semver/ranges/gtr.js +6 -0
- package/dist/node_modules/semver/ranges/intersects.js +9 -0
- package/dist/node_modules/semver/ranges/ltr.js +6 -0
- package/dist/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/dist/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/dist/node_modules/semver/ranges/min-version.js +63 -0
- package/dist/node_modules/semver/ranges/outside.js +82 -0
- package/dist/node_modules/semver/ranges/simplify.js +49 -0
- package/dist/node_modules/semver/ranges/subset.js +249 -0
- package/dist/node_modules/semver/ranges/to-comparators.js +10 -0
- package/dist/node_modules/semver/ranges/valid.js +13 -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/utils.js +108 -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/common/constants.js +108 -0
- package/dist/node_modules/socks/build/common/helpers.js +167 -0
- package/dist/node_modules/socks/build/common/receivebuffer.js +43 -0
- package/dist/node_modules/socks/build/common/util.js +25 -0
- package/dist/node_modules/socks/build/index.js +18 -0
- package/dist/node_modules/socks/package.json +58 -0
- package/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +195 -0
- package/dist/node_modules/socks-proxy-agent/package.json +142 -0
- package/dist/node_modules/ssri/lib/index.js +550 -0
- package/dist/node_modules/ssri/package.json +66 -0
- package/dist/node_modules/tar/dist/commonjs/create.js +82 -0
- package/dist/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/dist/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/dist/node_modules/tar/dist/commonjs/header.js +312 -0
- package/dist/node_modules/tar/dist/commonjs/index.js +64 -0
- package/dist/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/dist/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/dist/node_modules/tar/dist/commonjs/list.js +145 -0
- package/dist/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/dist/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/dist/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/dist/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/dist/node_modules/tar/dist/commonjs/options.js +66 -0
- package/dist/node_modules/tar/dist/commonjs/pack.js +511 -0
- package/dist/node_modules/tar/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/dist/commonjs/parse.js +610 -0
- package/dist/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/dist/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/dist/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/dist/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/dist/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/dist/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/dist/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/dist/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/dist/node_modules/tar/dist/commonjs/types.js +50 -0
- package/dist/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/dist/node_modules/tar/dist/commonjs/update.js +33 -0
- package/dist/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/dist/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/dist/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/dist/node_modules/tar/dist/esm/create.js +76 -0
- package/dist/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/dist/node_modules/tar/dist/esm/extract.js +49 -0
- package/dist/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/dist/node_modules/tar/dist/esm/header.js +275 -0
- package/dist/node_modules/tar/dist/esm/index.js +20 -0
- package/dist/node_modules/tar/dist/esm/index.min.js +4 -0
- package/dist/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/dist/node_modules/tar/dist/esm/list.js +105 -0
- package/dist/node_modules/tar/dist/esm/make-command.js +48 -0
- package/dist/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/dist/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/dist/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/dist/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/dist/node_modules/tar/dist/esm/options.js +54 -0
- package/dist/node_modules/tar/dist/esm/pack.js +469 -0
- package/dist/node_modules/tar/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/dist/esm/parse.js +606 -0
- package/dist/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/dist/node_modules/tar/dist/esm/pax.js +154 -0
- package/dist/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/dist/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/dist/node_modules/tar/dist/esm/replace.js +221 -0
- package/dist/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/dist/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/dist/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/dist/node_modules/tar/dist/esm/types.js +45 -0
- package/dist/node_modules/tar/dist/esm/unpack.js +891 -0
- package/dist/node_modules/tar/dist/esm/update.js +30 -0
- package/dist/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/dist/node_modules/tar/dist/esm/winchars.js +9 -0
- package/dist/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/dist/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/dist/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/dist/node_modules/tar/package.json +297 -0
- package/dist/node_modules/tinyglobby/LICENSE +21 -0
- package/dist/node_modules/tinyglobby/dist/index.cjs +334 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +148 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +306 -0
- package/dist/node_modules/tinyglobby/package.json +73 -0
- package/{LICENSE → dist/node_modules/v8-compile-cache/LICENSE} +1 -2
- 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/which.js +52 -0
- package/dist/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/which/package.json +52 -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.mjs +267218 -0
- package/dist/pnpmrc +2 -0
- package/dist/templates/completion.bash +31 -0
- package/dist/templates/completion.fish +22 -0
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -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 +10958 -0
- package/package.json +34 -11
- package/pn +2 -0
- package/pn.cmd +2 -0
- package/pn.ps1 +1 -0
- package/pnpx +2 -0
- package/pnpx.cmd +2 -0
- package/pnpx.ps1 +1 -0
- package/pnx +2 -0
- package/pnx.cmd +2 -0
- package/pnx.ps1 +1 -0
- package/prepare.js +26 -3
- package/setup.js +22 -11
- package/CHANGELOG.md +0 -15
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const modeFix = (mode, isDir, portable) => {
|
|
2
|
+
mode &= 0o7777;
|
|
3
|
+
// in portable mode, use the minimum reasonable umask
|
|
4
|
+
// if this system creates files with 0o664 by default
|
|
5
|
+
// (as some linux distros do), then we'll write the
|
|
6
|
+
// archive with 0o644 instead. Also, don't ever create
|
|
7
|
+
// a file that is not readable/writable by the owner.
|
|
8
|
+
if (portable) {
|
|
9
|
+
mode = (mode | 0o600) & ~0o22;
|
|
10
|
+
}
|
|
11
|
+
// if dirs are readable, then they should be listable
|
|
12
|
+
if (isDir) {
|
|
13
|
+
if (mode & 0o400) {
|
|
14
|
+
mode |= 0o100;
|
|
15
|
+
}
|
|
16
|
+
if (mode & 0o40) {
|
|
17
|
+
mode |= 0o10;
|
|
18
|
+
}
|
|
19
|
+
if (mode & 0o4) {
|
|
20
|
+
mode |= 0o1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return mode;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=mode-fix.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// warning: extremely hot code path.
|
|
2
|
+
// This has been meticulously optimized for use
|
|
3
|
+
// within npm install on large package trees.
|
|
4
|
+
// Do not edit without careful benchmarking.
|
|
5
|
+
const normalizeCache = Object.create(null);
|
|
6
|
+
// Limit the size of this. Very low-sophistication LRU cache
|
|
7
|
+
const MAX = 10000;
|
|
8
|
+
const cache = new Set();
|
|
9
|
+
export const normalizeUnicode = (s) => {
|
|
10
|
+
if (!cache.has(s)) {
|
|
11
|
+
// shake out identical accents and ligatures
|
|
12
|
+
normalizeCache[s] = s
|
|
13
|
+
.normalize('NFD')
|
|
14
|
+
.toLocaleLowerCase('en')
|
|
15
|
+
.toLocaleUpperCase('en');
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
cache.delete(s);
|
|
19
|
+
}
|
|
20
|
+
cache.add(s);
|
|
21
|
+
const ret = normalizeCache[s];
|
|
22
|
+
let i = cache.size - MAX;
|
|
23
|
+
// only prune when we're 10% over the max
|
|
24
|
+
if (i > MAX / 10) {
|
|
25
|
+
for (const s of cache) {
|
|
26
|
+
cache.delete(s);
|
|
27
|
+
delete normalizeCache[s];
|
|
28
|
+
if (--i <= 0)
|
|
29
|
+
break;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return ret;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=normalize-unicode.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// on windows, either \ or / are valid directory separators.
|
|
2
|
+
// on unix, \ is a valid character in filenames.
|
|
3
|
+
// so, on windows, and only on windows, we replace all \ chars with /,
|
|
4
|
+
// so that we can use / as our one and only directory separator char.
|
|
5
|
+
const platform = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
|
|
6
|
+
export const normalizeWindowsPath = platform !== 'win32' ?
|
|
7
|
+
(p) => p
|
|
8
|
+
: (p) => p && p.replaceAll(/\\/g, '/');
|
|
9
|
+
//# sourceMappingURL=normalize-windows-path.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// turn tar(1) style args like `C` into the more verbose things like `cwd`
|
|
2
|
+
const argmap = new Map([
|
|
3
|
+
['C', 'cwd'],
|
|
4
|
+
['f', 'file'],
|
|
5
|
+
['z', 'gzip'],
|
|
6
|
+
['P', 'preservePaths'],
|
|
7
|
+
['U', 'unlink'],
|
|
8
|
+
['strip-components', 'strip'],
|
|
9
|
+
['stripComponents', 'strip'],
|
|
10
|
+
['keep-newer', 'newer'],
|
|
11
|
+
['keepNewer', 'newer'],
|
|
12
|
+
['keep-newer-files', 'newer'],
|
|
13
|
+
['keepNewerFiles', 'newer'],
|
|
14
|
+
['k', 'keep'],
|
|
15
|
+
['keep-existing', 'keep'],
|
|
16
|
+
['keepExisting', 'keep'],
|
|
17
|
+
['m', 'noMtime'],
|
|
18
|
+
['no-mtime', 'noMtime'],
|
|
19
|
+
['p', 'preserveOwner'],
|
|
20
|
+
['L', 'follow'],
|
|
21
|
+
['h', 'follow'],
|
|
22
|
+
['onentry', 'onReadEntry'],
|
|
23
|
+
]);
|
|
24
|
+
export const isSyncFile = (o) => !!o.sync && !!o.file;
|
|
25
|
+
export const isAsyncFile = (o) => !o.sync && !!o.file;
|
|
26
|
+
export const isSyncNoFile = (o) => !!o.sync && !o.file;
|
|
27
|
+
export const isAsyncNoFile = (o) => !o.sync && !o.file;
|
|
28
|
+
export const isSync = (o) => !!o.sync;
|
|
29
|
+
export const isAsync = (o) => !o.sync;
|
|
30
|
+
export const isFile = (o) => !!o.file;
|
|
31
|
+
export const isNoFile = (o) => !o.file;
|
|
32
|
+
const dealiasKey = (k) => {
|
|
33
|
+
const d = argmap.get(k);
|
|
34
|
+
if (d)
|
|
35
|
+
return d;
|
|
36
|
+
return k;
|
|
37
|
+
};
|
|
38
|
+
export const dealias = (opt = {}) => {
|
|
39
|
+
if (!opt)
|
|
40
|
+
return {};
|
|
41
|
+
const result = {};
|
|
42
|
+
for (const [key, v] of Object.entries(opt)) {
|
|
43
|
+
// TS doesn't know that aliases are going to always be the same type
|
|
44
|
+
const k = dealiasKey(key);
|
|
45
|
+
result[k] = v;
|
|
46
|
+
}
|
|
47
|
+
// affordance for deprecated noChmod -> chmod
|
|
48
|
+
if (result.chmod === undefined && result.noChmod === false) {
|
|
49
|
+
result.chmod = true;
|
|
50
|
+
}
|
|
51
|
+
delete result.noChmod;
|
|
52
|
+
return result;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=options.js.map
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
// A readable tar stream creator
|
|
2
|
+
// Technically, this is a transform stream that you write paths into,
|
|
3
|
+
// and tar format comes out of.
|
|
4
|
+
// The `add()` method is like `write()` but returns this,
|
|
5
|
+
// and end() return `this` as well, so you can
|
|
6
|
+
// do `new Pack(opt).add('files').add('dir').end().pipe(output)
|
|
7
|
+
// You could also do something like:
|
|
8
|
+
// streamOfPaths().pipe(new Pack()).pipe(new fs.WriteStream('out.tar'))
|
|
9
|
+
import fs from 'fs';
|
|
10
|
+
import { WriteEntry, WriteEntrySync, WriteEntryTar, } from './write-entry.js';
|
|
11
|
+
export class PackJob {
|
|
12
|
+
path;
|
|
13
|
+
absolute;
|
|
14
|
+
entry;
|
|
15
|
+
stat;
|
|
16
|
+
readdir;
|
|
17
|
+
pending = false;
|
|
18
|
+
ignore = false;
|
|
19
|
+
piped = false;
|
|
20
|
+
constructor(path, absolute) {
|
|
21
|
+
this.path = path || './';
|
|
22
|
+
this.absolute = absolute;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
import { Minipass } from 'minipass';
|
|
26
|
+
import * as zlib from 'minizlib';
|
|
27
|
+
import { Yallist } from 'yallist';
|
|
28
|
+
import { ReadEntry } from './read-entry.js';
|
|
29
|
+
import { warnMethod } from './warn-method.js';
|
|
30
|
+
const EOF = Buffer.alloc(1024);
|
|
31
|
+
const ONSTAT = Symbol('onStat');
|
|
32
|
+
const ENDED = Symbol('ended');
|
|
33
|
+
const QUEUE = Symbol('queue');
|
|
34
|
+
const CURRENT = Symbol('current');
|
|
35
|
+
const PROCESS = Symbol('process');
|
|
36
|
+
const PROCESSING = Symbol('processing');
|
|
37
|
+
const PROCESSJOB = Symbol('processJob');
|
|
38
|
+
const JOBS = Symbol('jobs');
|
|
39
|
+
const JOBDONE = Symbol('jobDone');
|
|
40
|
+
const ADDFSENTRY = Symbol('addFSEntry');
|
|
41
|
+
const ADDTARENTRY = Symbol('addTarEntry');
|
|
42
|
+
const STAT = Symbol('stat');
|
|
43
|
+
const READDIR = Symbol('readdir');
|
|
44
|
+
const ONREADDIR = Symbol('onreaddir');
|
|
45
|
+
const PIPE = Symbol('pipe');
|
|
46
|
+
const ENTRY = Symbol('entry');
|
|
47
|
+
const ENTRYOPT = Symbol('entryOpt');
|
|
48
|
+
const WRITEENTRYCLASS = Symbol('writeEntryClass');
|
|
49
|
+
const WRITE = Symbol('write');
|
|
50
|
+
const ONDRAIN = Symbol('ondrain');
|
|
51
|
+
import path from 'path';
|
|
52
|
+
import { normalizeWindowsPath } from './normalize-windows-path.js';
|
|
53
|
+
export class Pack extends Minipass {
|
|
54
|
+
sync = false;
|
|
55
|
+
opt;
|
|
56
|
+
cwd;
|
|
57
|
+
maxReadSize;
|
|
58
|
+
preservePaths;
|
|
59
|
+
strict;
|
|
60
|
+
noPax;
|
|
61
|
+
prefix;
|
|
62
|
+
linkCache;
|
|
63
|
+
statCache;
|
|
64
|
+
file;
|
|
65
|
+
portable;
|
|
66
|
+
zip;
|
|
67
|
+
readdirCache;
|
|
68
|
+
noDirRecurse;
|
|
69
|
+
follow;
|
|
70
|
+
noMtime;
|
|
71
|
+
mtime;
|
|
72
|
+
filter;
|
|
73
|
+
jobs;
|
|
74
|
+
[WRITEENTRYCLASS];
|
|
75
|
+
onWriteEntry;
|
|
76
|
+
// Note: we actually DO need a linked list here, because we
|
|
77
|
+
// shift() to update the head of the list where we start, but still
|
|
78
|
+
// while that happens, need to know what the next item in the queue
|
|
79
|
+
// will be. Since we do multiple jobs in parallel, it's not as simple
|
|
80
|
+
// as just an Array.shift(), since that would lose the information about
|
|
81
|
+
// the next job in the list. We could add a .next field on the PackJob
|
|
82
|
+
// class, but then we'd have to be tracking the tail of the queue the
|
|
83
|
+
// whole time, and Yallist just does that for us anyway.
|
|
84
|
+
[QUEUE];
|
|
85
|
+
[JOBS] = 0;
|
|
86
|
+
[PROCESSING] = false;
|
|
87
|
+
[ENDED] = false;
|
|
88
|
+
constructor(opt = {}) {
|
|
89
|
+
super();
|
|
90
|
+
this.opt = opt;
|
|
91
|
+
this.file = opt.file || '';
|
|
92
|
+
this.cwd = opt.cwd || process.cwd();
|
|
93
|
+
this.maxReadSize = opt.maxReadSize;
|
|
94
|
+
this.preservePaths = !!opt.preservePaths;
|
|
95
|
+
this.strict = !!opt.strict;
|
|
96
|
+
this.noPax = !!opt.noPax;
|
|
97
|
+
this.prefix = normalizeWindowsPath(opt.prefix || '');
|
|
98
|
+
this.linkCache = opt.linkCache || new Map();
|
|
99
|
+
this.statCache = opt.statCache || new Map();
|
|
100
|
+
this.readdirCache = opt.readdirCache || new Map();
|
|
101
|
+
this.onWriteEntry = opt.onWriteEntry;
|
|
102
|
+
this[WRITEENTRYCLASS] = WriteEntry;
|
|
103
|
+
if (typeof opt.onwarn === 'function') {
|
|
104
|
+
this.on('warn', opt.onwarn);
|
|
105
|
+
}
|
|
106
|
+
this.portable = !!opt.portable;
|
|
107
|
+
if (opt.gzip || opt.brotli || opt.zstd) {
|
|
108
|
+
if ((opt.gzip ? 1 : 0) + (opt.brotli ? 1 : 0) + (opt.zstd ? 1 : 0) >
|
|
109
|
+
1) {
|
|
110
|
+
throw new TypeError('gzip, brotli, zstd are mutually exclusive');
|
|
111
|
+
}
|
|
112
|
+
if (opt.gzip) {
|
|
113
|
+
if (typeof opt.gzip !== 'object') {
|
|
114
|
+
opt.gzip = {};
|
|
115
|
+
}
|
|
116
|
+
if (this.portable) {
|
|
117
|
+
opt.gzip.portable = true;
|
|
118
|
+
}
|
|
119
|
+
this.zip = new zlib.Gzip(opt.gzip);
|
|
120
|
+
}
|
|
121
|
+
if (opt.brotli) {
|
|
122
|
+
if (typeof opt.brotli !== 'object') {
|
|
123
|
+
opt.brotli = {};
|
|
124
|
+
}
|
|
125
|
+
this.zip = new zlib.BrotliCompress(opt.brotli);
|
|
126
|
+
}
|
|
127
|
+
if (opt.zstd) {
|
|
128
|
+
if (typeof opt.zstd !== 'object') {
|
|
129
|
+
opt.zstd = {};
|
|
130
|
+
}
|
|
131
|
+
this.zip = new zlib.ZstdCompress(opt.zstd);
|
|
132
|
+
}
|
|
133
|
+
/* c8 ignore next */
|
|
134
|
+
if (!this.zip)
|
|
135
|
+
throw new Error('impossible');
|
|
136
|
+
const zip = this.zip;
|
|
137
|
+
zip.on('data', chunk => super.write(chunk));
|
|
138
|
+
zip.on('end', () => super.end());
|
|
139
|
+
zip.on('drain', () => this[ONDRAIN]());
|
|
140
|
+
this.on('resume', () => zip.resume());
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
this.on('drain', this[ONDRAIN]);
|
|
144
|
+
}
|
|
145
|
+
this.noDirRecurse = !!opt.noDirRecurse;
|
|
146
|
+
this.follow = !!opt.follow;
|
|
147
|
+
this.noMtime = !!opt.noMtime;
|
|
148
|
+
if (opt.mtime)
|
|
149
|
+
this.mtime = opt.mtime;
|
|
150
|
+
this.filter =
|
|
151
|
+
typeof opt.filter === 'function' ? opt.filter : () => true;
|
|
152
|
+
this[QUEUE] = new Yallist();
|
|
153
|
+
this[JOBS] = 0;
|
|
154
|
+
this.jobs = Number(opt.jobs) || 4;
|
|
155
|
+
this[PROCESSING] = false;
|
|
156
|
+
this[ENDED] = false;
|
|
157
|
+
}
|
|
158
|
+
[WRITE](chunk) {
|
|
159
|
+
return super.write(chunk);
|
|
160
|
+
}
|
|
161
|
+
add(path) {
|
|
162
|
+
this.write(path);
|
|
163
|
+
return this;
|
|
164
|
+
}
|
|
165
|
+
end(path, encoding, cb) {
|
|
166
|
+
/* c8 ignore start */
|
|
167
|
+
if (typeof path === 'function') {
|
|
168
|
+
cb = path;
|
|
169
|
+
path = undefined;
|
|
170
|
+
}
|
|
171
|
+
if (typeof encoding === 'function') {
|
|
172
|
+
cb = encoding;
|
|
173
|
+
encoding = undefined;
|
|
174
|
+
}
|
|
175
|
+
/* c8 ignore stop */
|
|
176
|
+
if (path) {
|
|
177
|
+
this.add(path);
|
|
178
|
+
}
|
|
179
|
+
this[ENDED] = true;
|
|
180
|
+
this[PROCESS]();
|
|
181
|
+
/* c8 ignore next */
|
|
182
|
+
if (cb)
|
|
183
|
+
cb();
|
|
184
|
+
return this;
|
|
185
|
+
}
|
|
186
|
+
write(path) {
|
|
187
|
+
if (this[ENDED]) {
|
|
188
|
+
throw new Error('write after end');
|
|
189
|
+
}
|
|
190
|
+
if (path instanceof ReadEntry) {
|
|
191
|
+
this[ADDTARENTRY](path);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
this[ADDFSENTRY](path);
|
|
195
|
+
}
|
|
196
|
+
return this.flowing;
|
|
197
|
+
}
|
|
198
|
+
[ADDTARENTRY](p) {
|
|
199
|
+
const absolute = normalizeWindowsPath(path.resolve(this.cwd, p.path));
|
|
200
|
+
// in this case, we don't have to wait for the stat
|
|
201
|
+
if (!this.filter(p.path, p)) {
|
|
202
|
+
p.resume();
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
const job = new PackJob(p.path, absolute);
|
|
206
|
+
job.entry = new WriteEntryTar(p, this[ENTRYOPT](job));
|
|
207
|
+
job.entry.on('end', () => this[JOBDONE](job));
|
|
208
|
+
this[JOBS] += 1;
|
|
209
|
+
this[QUEUE].push(job);
|
|
210
|
+
}
|
|
211
|
+
this[PROCESS]();
|
|
212
|
+
}
|
|
213
|
+
[ADDFSENTRY](p) {
|
|
214
|
+
const absolute = normalizeWindowsPath(path.resolve(this.cwd, p));
|
|
215
|
+
this[QUEUE].push(new PackJob(p, absolute));
|
|
216
|
+
this[PROCESS]();
|
|
217
|
+
}
|
|
218
|
+
[STAT](job) {
|
|
219
|
+
job.pending = true;
|
|
220
|
+
this[JOBS] += 1;
|
|
221
|
+
const stat = this.follow ? 'stat' : 'lstat';
|
|
222
|
+
fs[stat](job.absolute, (er, stat) => {
|
|
223
|
+
job.pending = false;
|
|
224
|
+
this[JOBS] -= 1;
|
|
225
|
+
if (er) {
|
|
226
|
+
this.emit('error', er);
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
this[ONSTAT](job, stat);
|
|
230
|
+
}
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
[ONSTAT](job, stat) {
|
|
234
|
+
this.statCache.set(job.absolute, stat);
|
|
235
|
+
job.stat = stat;
|
|
236
|
+
// now we have the stat, we can filter it.
|
|
237
|
+
if (!this.filter(job.path, stat)) {
|
|
238
|
+
job.ignore = true;
|
|
239
|
+
}
|
|
240
|
+
else if (stat.isFile() &&
|
|
241
|
+
stat.nlink > 1 &&
|
|
242
|
+
job === this[CURRENT] &&
|
|
243
|
+
!this.linkCache.get(`${stat.dev}:${stat.ino}`) &&
|
|
244
|
+
!this.sync) {
|
|
245
|
+
// if it's not filtered, and it's a new File entry,
|
|
246
|
+
// jump the queue in case any pending Link entries are about
|
|
247
|
+
// to try to link to it. This prevents a hardlink from coming ahead
|
|
248
|
+
// of its target in the archive.
|
|
249
|
+
this[PROCESSJOB](job);
|
|
250
|
+
}
|
|
251
|
+
this[PROCESS]();
|
|
252
|
+
}
|
|
253
|
+
[READDIR](job) {
|
|
254
|
+
job.pending = true;
|
|
255
|
+
this[JOBS] += 1;
|
|
256
|
+
fs.readdir(job.absolute, (er, entries) => {
|
|
257
|
+
job.pending = false;
|
|
258
|
+
this[JOBS] -= 1;
|
|
259
|
+
if (er) {
|
|
260
|
+
return this.emit('error', er);
|
|
261
|
+
}
|
|
262
|
+
this[ONREADDIR](job, entries);
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
[ONREADDIR](job, entries) {
|
|
266
|
+
this.readdirCache.set(job.absolute, entries);
|
|
267
|
+
job.readdir = entries;
|
|
268
|
+
this[PROCESS]();
|
|
269
|
+
}
|
|
270
|
+
[PROCESS]() {
|
|
271
|
+
if (this[PROCESSING]) {
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
this[PROCESSING] = true;
|
|
275
|
+
for (let w = this[QUEUE].head; !!w && this[JOBS] < this.jobs; w = w.next) {
|
|
276
|
+
this[PROCESSJOB](w.value);
|
|
277
|
+
if (w.value.ignore) {
|
|
278
|
+
const p = w.next;
|
|
279
|
+
this[QUEUE].removeNode(w);
|
|
280
|
+
w.next = p;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
this[PROCESSING] = false;
|
|
284
|
+
if (this[ENDED] && this[QUEUE].length === 0 && this[JOBS] === 0) {
|
|
285
|
+
if (this.zip) {
|
|
286
|
+
this.zip.end(EOF);
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
super.write(EOF);
|
|
290
|
+
super.end();
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
get [CURRENT]() {
|
|
295
|
+
return this[QUEUE] && this[QUEUE].head && this[QUEUE].head.value;
|
|
296
|
+
}
|
|
297
|
+
[JOBDONE](_job) {
|
|
298
|
+
this[QUEUE].shift();
|
|
299
|
+
this[JOBS] -= 1;
|
|
300
|
+
this[PROCESS]();
|
|
301
|
+
}
|
|
302
|
+
[PROCESSJOB](job) {
|
|
303
|
+
if (job.pending) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
if (job.entry) {
|
|
307
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
308
|
+
this[PIPE](job);
|
|
309
|
+
}
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
312
|
+
if (!job.stat) {
|
|
313
|
+
const sc = this.statCache.get(job.absolute);
|
|
314
|
+
if (sc) {
|
|
315
|
+
this[ONSTAT](job, sc);
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
this[STAT](job);
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
if (!job.stat) {
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
// filtered out!
|
|
325
|
+
if (job.ignore) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
|
329
|
+
const rc = this.readdirCache.get(job.absolute);
|
|
330
|
+
if (rc) {
|
|
331
|
+
this[ONREADDIR](job, rc);
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
this[READDIR](job);
|
|
335
|
+
}
|
|
336
|
+
if (!job.readdir) {
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
// we know it doesn't have an entry, because that got checked above
|
|
341
|
+
job.entry = this[ENTRY](job);
|
|
342
|
+
if (!job.entry) {
|
|
343
|
+
job.ignore = true;
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
347
|
+
this[PIPE](job);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
[ENTRYOPT](job) {
|
|
351
|
+
return {
|
|
352
|
+
onwarn: (code, msg, data) => this.warn(code, msg, data),
|
|
353
|
+
noPax: this.noPax,
|
|
354
|
+
cwd: this.cwd,
|
|
355
|
+
absolute: job.absolute,
|
|
356
|
+
preservePaths: this.preservePaths,
|
|
357
|
+
maxReadSize: this.maxReadSize,
|
|
358
|
+
strict: this.strict,
|
|
359
|
+
portable: this.portable,
|
|
360
|
+
linkCache: this.linkCache,
|
|
361
|
+
statCache: this.statCache,
|
|
362
|
+
noMtime: this.noMtime,
|
|
363
|
+
mtime: this.mtime,
|
|
364
|
+
prefix: this.prefix,
|
|
365
|
+
onWriteEntry: this.onWriteEntry,
|
|
366
|
+
};
|
|
367
|
+
}
|
|
368
|
+
[ENTRY](job) {
|
|
369
|
+
this[JOBS] += 1;
|
|
370
|
+
try {
|
|
371
|
+
const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job));
|
|
372
|
+
return e
|
|
373
|
+
.on('end', () => this[JOBDONE](job))
|
|
374
|
+
.on('error', er => this.emit('error', er));
|
|
375
|
+
}
|
|
376
|
+
catch (er) {
|
|
377
|
+
this.emit('error', er);
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
[ONDRAIN]() {
|
|
381
|
+
if (this[CURRENT] && this[CURRENT].entry) {
|
|
382
|
+
this[CURRENT].entry.resume();
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
// like .pipe() but using super, because our write() is special
|
|
386
|
+
[PIPE](job) {
|
|
387
|
+
job.piped = true;
|
|
388
|
+
if (job.readdir) {
|
|
389
|
+
job.readdir.forEach(entry => {
|
|
390
|
+
const p = job.path;
|
|
391
|
+
const base = p === './' ? '' : p.replace(/\/*$/, '/');
|
|
392
|
+
this[ADDFSENTRY](base + entry);
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
const source = job.entry;
|
|
396
|
+
const zip = this.zip;
|
|
397
|
+
/* c8 ignore start */
|
|
398
|
+
if (!source)
|
|
399
|
+
throw new Error('cannot pipe without source');
|
|
400
|
+
/* c8 ignore stop */
|
|
401
|
+
if (zip) {
|
|
402
|
+
source.on('data', chunk => {
|
|
403
|
+
if (!zip.write(chunk)) {
|
|
404
|
+
source.pause();
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
source.on('data', chunk => {
|
|
410
|
+
if (!super.write(chunk)) {
|
|
411
|
+
source.pause();
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
pause() {
|
|
417
|
+
if (this.zip) {
|
|
418
|
+
this.zip.pause();
|
|
419
|
+
}
|
|
420
|
+
return super.pause();
|
|
421
|
+
}
|
|
422
|
+
warn(code, message, data = {}) {
|
|
423
|
+
warnMethod(this, code, message, data);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
export class PackSync extends Pack {
|
|
427
|
+
sync = true;
|
|
428
|
+
constructor(opt) {
|
|
429
|
+
super(opt);
|
|
430
|
+
this[WRITEENTRYCLASS] = WriteEntrySync;
|
|
431
|
+
}
|
|
432
|
+
// pause/resume are no-ops in sync streams.
|
|
433
|
+
pause() { }
|
|
434
|
+
resume() { }
|
|
435
|
+
[STAT](job) {
|
|
436
|
+
const stat = this.follow ? 'statSync' : 'lstatSync';
|
|
437
|
+
this[ONSTAT](job, fs[stat](job.absolute));
|
|
438
|
+
}
|
|
439
|
+
[READDIR](job) {
|
|
440
|
+
this[ONREADDIR](job, fs.readdirSync(job.absolute));
|
|
441
|
+
}
|
|
442
|
+
// gotta get it all in this tick
|
|
443
|
+
[PIPE](job) {
|
|
444
|
+
const source = job.entry;
|
|
445
|
+
const zip = this.zip;
|
|
446
|
+
if (job.readdir) {
|
|
447
|
+
job.readdir.forEach(entry => {
|
|
448
|
+
const p = job.path;
|
|
449
|
+
const base = p === './' ? '' : p.replace(/\/*$/, '/');
|
|
450
|
+
this[ADDFSENTRY](base + entry);
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
/* c8 ignore start */
|
|
454
|
+
if (!source)
|
|
455
|
+
throw new Error('Cannot pipe without source');
|
|
456
|
+
/* c8 ignore stop */
|
|
457
|
+
if (zip) {
|
|
458
|
+
source.on('data', chunk => {
|
|
459
|
+
zip.write(chunk);
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
else {
|
|
463
|
+
source.on('data', chunk => {
|
|
464
|
+
super[WRITE](chunk);
|
|
465
|
+
});
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
//# sourceMappingURL=pack.js.map
|