@pnpm/exe 11.0.0-dev.1003 → 11.0.0-rc.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/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/index.js +1595 -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/index.js +1591 -0
- package/dist/node_modules/lru-cache/dist/esm/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 +93 -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 +846 -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 +1121 -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 +842 -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 +1108 -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 +67 -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/LICENSE +15 -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 +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/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 +350 -0
- package/dist/node_modules/tinyglobby/dist/index.d.cts +147 -0
- package/dist/node_modules/tinyglobby/dist/index.d.mts +147 -0
- package/dist/node_modules/tinyglobby/dist/index.mjs +318 -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 +266382 -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 -12
- 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,76 @@
|
|
|
1
|
+
import { WriteStream, WriteStreamSync } from '@isaacs/fs-minipass';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { list } from './list.js';
|
|
4
|
+
import { makeCommand } from './make-command.js';
|
|
5
|
+
import { Pack, PackSync } from './pack.js';
|
|
6
|
+
const createFileSync = (opt, files) => {
|
|
7
|
+
const p = new PackSync(opt);
|
|
8
|
+
const stream = new WriteStreamSync(opt.file, {
|
|
9
|
+
mode: opt.mode || 0o666,
|
|
10
|
+
});
|
|
11
|
+
p.pipe(stream);
|
|
12
|
+
addFilesSync(p, files);
|
|
13
|
+
};
|
|
14
|
+
const createFile = (opt, files) => {
|
|
15
|
+
const p = new Pack(opt);
|
|
16
|
+
const stream = new WriteStream(opt.file, {
|
|
17
|
+
mode: opt.mode || 0o666,
|
|
18
|
+
});
|
|
19
|
+
p.pipe(stream);
|
|
20
|
+
const promise = new Promise((res, rej) => {
|
|
21
|
+
stream.on('error', rej);
|
|
22
|
+
stream.on('close', res);
|
|
23
|
+
p.on('error', rej);
|
|
24
|
+
});
|
|
25
|
+
addFilesAsync(p, files).catch(er => p.emit('error', er));
|
|
26
|
+
return promise;
|
|
27
|
+
};
|
|
28
|
+
const addFilesSync = (p, files) => {
|
|
29
|
+
files.forEach(file => {
|
|
30
|
+
if (file.charAt(0) === '@') {
|
|
31
|
+
list({
|
|
32
|
+
file: path.resolve(p.cwd, file.slice(1)),
|
|
33
|
+
sync: true,
|
|
34
|
+
noResume: true,
|
|
35
|
+
onReadEntry: entry => p.add(entry),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
p.add(file);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
p.end();
|
|
43
|
+
};
|
|
44
|
+
const addFilesAsync = async (p, files) => {
|
|
45
|
+
for (const file of files) {
|
|
46
|
+
if (file.charAt(0) === '@') {
|
|
47
|
+
await list({
|
|
48
|
+
file: path.resolve(String(p.cwd), file.slice(1)),
|
|
49
|
+
noResume: true,
|
|
50
|
+
onReadEntry: entry => {
|
|
51
|
+
p.add(entry);
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
p.add(file);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
p.end();
|
|
60
|
+
};
|
|
61
|
+
const createSync = (opt, files) => {
|
|
62
|
+
const p = new PackSync(opt);
|
|
63
|
+
addFilesSync(p, files);
|
|
64
|
+
return p;
|
|
65
|
+
};
|
|
66
|
+
const createAsync = (opt, files) => {
|
|
67
|
+
const p = new Pack(opt);
|
|
68
|
+
addFilesAsync(p, files).catch(er => p.emit('error', er));
|
|
69
|
+
return p;
|
|
70
|
+
};
|
|
71
|
+
export const create = makeCommand(createFileSync, createFile, createSync, createAsync, (_opt, files) => {
|
|
72
|
+
if (!files?.length) {
|
|
73
|
+
throw new TypeError('no paths specified to add to archive');
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=create.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class CwdError extends Error {
|
|
2
|
+
path;
|
|
3
|
+
code;
|
|
4
|
+
syscall = 'chdir';
|
|
5
|
+
constructor(path, code) {
|
|
6
|
+
super(`${code}: Cannot cd into '${path}'`);
|
|
7
|
+
this.path = path;
|
|
8
|
+
this.code = code;
|
|
9
|
+
}
|
|
10
|
+
get name() {
|
|
11
|
+
return 'CwdError';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=cwd-error.js.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// tar -x
|
|
2
|
+
import * as fsm from '@isaacs/fs-minipass';
|
|
3
|
+
import fs from 'node:fs';
|
|
4
|
+
import { filesFilter } from './list.js';
|
|
5
|
+
import { makeCommand } from './make-command.js';
|
|
6
|
+
import { Unpack, UnpackSync } from './unpack.js';
|
|
7
|
+
const extractFileSync = (opt) => {
|
|
8
|
+
const u = new UnpackSync(opt);
|
|
9
|
+
const file = opt.file;
|
|
10
|
+
const stat = fs.statSync(file);
|
|
11
|
+
// This trades a zero-byte read() syscall for a stat
|
|
12
|
+
// However, it will usually result in less memory allocation
|
|
13
|
+
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
14
|
+
const stream = new fsm.ReadStreamSync(file, {
|
|
15
|
+
readSize: readSize,
|
|
16
|
+
size: stat.size,
|
|
17
|
+
});
|
|
18
|
+
stream.pipe(u);
|
|
19
|
+
};
|
|
20
|
+
const extractFile = (opt, _) => {
|
|
21
|
+
const u = new Unpack(opt);
|
|
22
|
+
const readSize = opt.maxReadSize || 16 * 1024 * 1024;
|
|
23
|
+
const file = opt.file;
|
|
24
|
+
const p = new Promise((resolve, reject) => {
|
|
25
|
+
u.on('error', reject);
|
|
26
|
+
u.on('close', resolve);
|
|
27
|
+
// This trades a zero-byte read() syscall for a stat
|
|
28
|
+
// However, it will usually result in less memory allocation
|
|
29
|
+
fs.stat(file, (er, stat) => {
|
|
30
|
+
if (er) {
|
|
31
|
+
reject(er);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
const stream = new fsm.ReadStream(file, {
|
|
35
|
+
readSize: readSize,
|
|
36
|
+
size: stat.size,
|
|
37
|
+
});
|
|
38
|
+
stream.on('error', reject);
|
|
39
|
+
stream.pipe(u);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
return p;
|
|
44
|
+
};
|
|
45
|
+
export const extract = makeCommand(extractFileSync, extractFile, opt => new UnpackSync(opt), opt => new Unpack(opt), (opt, files) => {
|
|
46
|
+
if (files?.length)
|
|
47
|
+
filesFilter(opt, files);
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=extract.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Get the appropriate flag to use for creating files
|
|
2
|
+
// We use fmap on Windows platforms for files less than
|
|
3
|
+
// 512kb. This is a fairly low limit, but avoids making
|
|
4
|
+
// things slower in some cases. Since most of what this
|
|
5
|
+
// library is used for is extracting tarballs of many
|
|
6
|
+
// relatively small files in npm packages and the like,
|
|
7
|
+
// it can be a big boost on Windows platforms.
|
|
8
|
+
import fs from 'fs';
|
|
9
|
+
const platform = process.env.__FAKE_PLATFORM__ || process.platform;
|
|
10
|
+
const isWindows = platform === 'win32';
|
|
11
|
+
/* c8 ignore start */
|
|
12
|
+
const { O_CREAT, O_NOFOLLOW, O_TRUNC, O_WRONLY } = fs.constants;
|
|
13
|
+
const UV_FS_O_FILEMAP = Number(process.env.__FAKE_FS_O_FILENAME__) ||
|
|
14
|
+
fs.constants.UV_FS_O_FILEMAP ||
|
|
15
|
+
0;
|
|
16
|
+
/* c8 ignore stop */
|
|
17
|
+
const fMapEnabled = isWindows && !!UV_FS_O_FILEMAP;
|
|
18
|
+
const fMapLimit = 512 * 1024;
|
|
19
|
+
const fMapFlag = UV_FS_O_FILEMAP | O_TRUNC | O_CREAT | O_WRONLY;
|
|
20
|
+
const noFollowFlag = !isWindows && typeof O_NOFOLLOW === 'number' ?
|
|
21
|
+
O_NOFOLLOW | O_TRUNC | O_CREAT | O_WRONLY
|
|
22
|
+
: null;
|
|
23
|
+
export const getWriteFlag = noFollowFlag !== null ? () => noFollowFlag
|
|
24
|
+
: !fMapEnabled ? () => 'w'
|
|
25
|
+
: (size) => (size < fMapLimit ? fMapFlag : 'w');
|
|
26
|
+
//# sourceMappingURL=get-write-flag.js.map
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
// parse a 512-byte header block to a data object, or vice-versa
|
|
2
|
+
// encode returns `true` if a pax extended header is needed, because
|
|
3
|
+
// the data could not be faithfully encoded in a simple header.
|
|
4
|
+
// (Also, check header.needPax to see if it needs a pax header.)
|
|
5
|
+
import { posix as pathModule } from 'node:path';
|
|
6
|
+
import * as large from './large-numbers.js';
|
|
7
|
+
import * as types from './types.js';
|
|
8
|
+
export class Header {
|
|
9
|
+
cksumValid = false;
|
|
10
|
+
needPax = false;
|
|
11
|
+
nullBlock = false;
|
|
12
|
+
block;
|
|
13
|
+
path;
|
|
14
|
+
mode;
|
|
15
|
+
uid;
|
|
16
|
+
gid;
|
|
17
|
+
size;
|
|
18
|
+
cksum;
|
|
19
|
+
#type = 'Unsupported';
|
|
20
|
+
linkpath;
|
|
21
|
+
uname;
|
|
22
|
+
gname;
|
|
23
|
+
devmaj = 0;
|
|
24
|
+
devmin = 0;
|
|
25
|
+
atime;
|
|
26
|
+
ctime;
|
|
27
|
+
mtime;
|
|
28
|
+
charset;
|
|
29
|
+
comment;
|
|
30
|
+
constructor(data, off = 0, ex, gex) {
|
|
31
|
+
if (Buffer.isBuffer(data)) {
|
|
32
|
+
this.decode(data, off || 0, ex, gex);
|
|
33
|
+
}
|
|
34
|
+
else if (data) {
|
|
35
|
+
this.#slurp(data);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
decode(buf, off, ex, gex) {
|
|
39
|
+
if (!off) {
|
|
40
|
+
off = 0;
|
|
41
|
+
}
|
|
42
|
+
if (!buf || !(buf.length >= off + 512)) {
|
|
43
|
+
throw new Error('need 512 bytes for header');
|
|
44
|
+
}
|
|
45
|
+
this.path = ex?.path ?? decString(buf, off, 100);
|
|
46
|
+
this.mode = ex?.mode ?? gex?.mode ?? decNumber(buf, off + 100, 8);
|
|
47
|
+
this.uid = ex?.uid ?? gex?.uid ?? decNumber(buf, off + 108, 8);
|
|
48
|
+
this.gid = ex?.gid ?? gex?.gid ?? decNumber(buf, off + 116, 8);
|
|
49
|
+
this.size = ex?.size ?? gex?.size ?? decNumber(buf, off + 124, 12);
|
|
50
|
+
this.mtime = ex?.mtime ?? gex?.mtime ?? decDate(buf, off + 136, 12);
|
|
51
|
+
this.cksum = decNumber(buf, off + 148, 12);
|
|
52
|
+
// if we have extended or global extended headers, apply them now
|
|
53
|
+
// See https://github.com/npm/node-tar/pull/187
|
|
54
|
+
// Apply global before local, so it overrides
|
|
55
|
+
if (gex)
|
|
56
|
+
this.#slurp(gex, true);
|
|
57
|
+
if (ex)
|
|
58
|
+
this.#slurp(ex);
|
|
59
|
+
// old tar versions marked dirs as a file with a trailing /
|
|
60
|
+
const t = decString(buf, off + 156, 1);
|
|
61
|
+
if (types.isCode(t)) {
|
|
62
|
+
this.#type = t || '0';
|
|
63
|
+
}
|
|
64
|
+
if (this.#type === '0' && this.path.slice(-1) === '/') {
|
|
65
|
+
this.#type = '5';
|
|
66
|
+
}
|
|
67
|
+
// tar implementations sometimes incorrectly put the stat(dir).size
|
|
68
|
+
// as the size in the tarball, even though Directory entries are
|
|
69
|
+
// not able to have any body at all. In the very rare chance that
|
|
70
|
+
// it actually DOES have a body, we weren't going to do anything with
|
|
71
|
+
// it anyway, and it'll just be a warning about an invalid header.
|
|
72
|
+
if (this.#type === '5') {
|
|
73
|
+
this.size = 0;
|
|
74
|
+
}
|
|
75
|
+
this.linkpath = decString(buf, off + 157, 100);
|
|
76
|
+
if (buf.subarray(off + 257, off + 265).toString() === 'ustar\u000000') {
|
|
77
|
+
/* c8 ignore start */
|
|
78
|
+
this.uname = ex?.uname ?? gex?.uname ?? decString(buf, off + 265, 32);
|
|
79
|
+
this.gname = ex?.gname ?? gex?.gname ?? decString(buf, off + 297, 32);
|
|
80
|
+
this.devmaj =
|
|
81
|
+
ex?.devmaj ?? gex?.devmaj ?? decNumber(buf, off + 329, 8) ?? 0;
|
|
82
|
+
this.devmin =
|
|
83
|
+
ex?.devmin ?? gex?.devmin ?? decNumber(buf, off + 337, 8) ?? 0;
|
|
84
|
+
/* c8 ignore stop */
|
|
85
|
+
if (buf[off + 475] !== 0) {
|
|
86
|
+
// definitely a prefix, definitely >130 chars.
|
|
87
|
+
const prefix = decString(buf, off + 345, 155);
|
|
88
|
+
this.path = prefix + '/' + this.path;
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
const prefix = decString(buf, off + 345, 130);
|
|
92
|
+
if (prefix) {
|
|
93
|
+
this.path = prefix + '/' + this.path;
|
|
94
|
+
}
|
|
95
|
+
/* c8 ignore start */
|
|
96
|
+
this.atime = ex?.atime ?? gex?.atime ?? decDate(buf, off + 476, 12);
|
|
97
|
+
this.ctime = ex?.ctime ?? gex?.ctime ?? decDate(buf, off + 488, 12);
|
|
98
|
+
/* c8 ignore stop */
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let sum = 8 * 0x20;
|
|
102
|
+
for (let i = off; i < off + 148; i++) {
|
|
103
|
+
sum += buf[i];
|
|
104
|
+
}
|
|
105
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
106
|
+
sum += buf[i];
|
|
107
|
+
}
|
|
108
|
+
this.cksumValid = sum === this.cksum;
|
|
109
|
+
if (this.cksum === undefined && sum === 8 * 0x20) {
|
|
110
|
+
this.nullBlock = true;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
#slurp(ex, gex = false) {
|
|
114
|
+
Object.assign(this, Object.fromEntries(Object.entries(ex).filter(([k, v]) => {
|
|
115
|
+
// we slurp in everything except for the path attribute in
|
|
116
|
+
// a global extended header, because that's weird. Also, any
|
|
117
|
+
// null/undefined values are ignored.
|
|
118
|
+
return !(v === null ||
|
|
119
|
+
v === undefined ||
|
|
120
|
+
(k === 'path' && gex) ||
|
|
121
|
+
(k === 'linkpath' && gex) ||
|
|
122
|
+
k === 'global');
|
|
123
|
+
})));
|
|
124
|
+
}
|
|
125
|
+
encode(buf, off = 0) {
|
|
126
|
+
if (!buf) {
|
|
127
|
+
buf = this.block = Buffer.alloc(512);
|
|
128
|
+
}
|
|
129
|
+
if (this.#type === 'Unsupported') {
|
|
130
|
+
this.#type = '0';
|
|
131
|
+
}
|
|
132
|
+
if (!(buf.length >= off + 512)) {
|
|
133
|
+
throw new Error('need 512 bytes for header');
|
|
134
|
+
}
|
|
135
|
+
const prefixSize = this.ctime || this.atime ? 130 : 155;
|
|
136
|
+
const split = splitPrefix(this.path || '', prefixSize);
|
|
137
|
+
const path = split[0];
|
|
138
|
+
const prefix = split[1];
|
|
139
|
+
this.needPax = !!split[2];
|
|
140
|
+
this.needPax = encString(buf, off, 100, path) || this.needPax;
|
|
141
|
+
this.needPax = encNumber(buf, off + 100, 8, this.mode) || this.needPax;
|
|
142
|
+
this.needPax = encNumber(buf, off + 108, 8, this.uid) || this.needPax;
|
|
143
|
+
this.needPax = encNumber(buf, off + 116, 8, this.gid) || this.needPax;
|
|
144
|
+
this.needPax = encNumber(buf, off + 124, 12, this.size) || this.needPax;
|
|
145
|
+
this.needPax = encDate(buf, off + 136, 12, this.mtime) || this.needPax;
|
|
146
|
+
buf[off + 156] = Number(this.#type.codePointAt(0));
|
|
147
|
+
this.needPax =
|
|
148
|
+
encString(buf, off + 157, 100, this.linkpath) || this.needPax;
|
|
149
|
+
buf.write('ustar\u000000', off + 257, 8);
|
|
150
|
+
this.needPax =
|
|
151
|
+
encString(buf, off + 265, 32, this.uname) || this.needPax;
|
|
152
|
+
this.needPax =
|
|
153
|
+
encString(buf, off + 297, 32, this.gname) || this.needPax;
|
|
154
|
+
this.needPax =
|
|
155
|
+
encNumber(buf, off + 329, 8, this.devmaj) || this.needPax;
|
|
156
|
+
this.needPax =
|
|
157
|
+
encNumber(buf, off + 337, 8, this.devmin) || this.needPax;
|
|
158
|
+
this.needPax =
|
|
159
|
+
encString(buf, off + 345, prefixSize, prefix) || this.needPax;
|
|
160
|
+
if (buf[off + 475] !== 0) {
|
|
161
|
+
this.needPax = encString(buf, off + 345, 155, prefix) || this.needPax;
|
|
162
|
+
}
|
|
163
|
+
else {
|
|
164
|
+
this.needPax = encString(buf, off + 345, 130, prefix) || this.needPax;
|
|
165
|
+
this.needPax =
|
|
166
|
+
encDate(buf, off + 476, 12, this.atime) || this.needPax;
|
|
167
|
+
this.needPax =
|
|
168
|
+
encDate(buf, off + 488, 12, this.ctime) || this.needPax;
|
|
169
|
+
}
|
|
170
|
+
let sum = 8 * 0x20;
|
|
171
|
+
for (let i = off; i < off + 148; i++) {
|
|
172
|
+
sum += buf[i];
|
|
173
|
+
}
|
|
174
|
+
for (let i = off + 156; i < off + 512; i++) {
|
|
175
|
+
sum += buf[i];
|
|
176
|
+
}
|
|
177
|
+
this.cksum = sum;
|
|
178
|
+
encNumber(buf, off + 148, 8, this.cksum);
|
|
179
|
+
this.cksumValid = true;
|
|
180
|
+
return this.needPax;
|
|
181
|
+
}
|
|
182
|
+
get type() {
|
|
183
|
+
return (this.#type === 'Unsupported' ?
|
|
184
|
+
this.#type
|
|
185
|
+
: types.name.get(this.#type));
|
|
186
|
+
}
|
|
187
|
+
get typeKey() {
|
|
188
|
+
return this.#type;
|
|
189
|
+
}
|
|
190
|
+
set type(type) {
|
|
191
|
+
const c = String(types.code.get(type));
|
|
192
|
+
if (types.isCode(c) || c === 'Unsupported') {
|
|
193
|
+
this.#type = c;
|
|
194
|
+
}
|
|
195
|
+
else if (types.isCode(type)) {
|
|
196
|
+
this.#type = type;
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
throw new TypeError('invalid entry type: ' + type);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
const splitPrefix = (p, prefixSize) => {
|
|
204
|
+
const pathSize = 100;
|
|
205
|
+
let pp = p;
|
|
206
|
+
let prefix = '';
|
|
207
|
+
let ret = undefined;
|
|
208
|
+
const root = pathModule.parse(p).root || '.';
|
|
209
|
+
if (Buffer.byteLength(pp) < pathSize) {
|
|
210
|
+
ret = [pp, prefix, false];
|
|
211
|
+
}
|
|
212
|
+
else {
|
|
213
|
+
// first set prefix to the dir, and path to the base
|
|
214
|
+
prefix = pathModule.dirname(pp);
|
|
215
|
+
pp = pathModule.basename(pp);
|
|
216
|
+
do {
|
|
217
|
+
if (Buffer.byteLength(pp) <= pathSize &&
|
|
218
|
+
Buffer.byteLength(prefix) <= prefixSize) {
|
|
219
|
+
// both fit!
|
|
220
|
+
ret = [pp, prefix, false];
|
|
221
|
+
}
|
|
222
|
+
else if (Buffer.byteLength(pp) > pathSize &&
|
|
223
|
+
Buffer.byteLength(prefix) <= prefixSize) {
|
|
224
|
+
// prefix fits in prefix, but path doesn't fit in path
|
|
225
|
+
ret = [pp.slice(0, pathSize - 1), prefix, true];
|
|
226
|
+
}
|
|
227
|
+
else {
|
|
228
|
+
// make path take a bit from prefix
|
|
229
|
+
pp = pathModule.join(pathModule.basename(prefix), pp);
|
|
230
|
+
prefix = pathModule.dirname(prefix);
|
|
231
|
+
}
|
|
232
|
+
} while (prefix !== root && ret === undefined);
|
|
233
|
+
// at this point, found no resolution, just truncate
|
|
234
|
+
if (!ret) {
|
|
235
|
+
ret = [p.slice(0, pathSize - 1), '', true];
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
return ret;
|
|
239
|
+
};
|
|
240
|
+
const decString = (buf, off, size) => buf
|
|
241
|
+
.subarray(off, off + size)
|
|
242
|
+
.toString('utf8')
|
|
243
|
+
.replace(/\0.*/, '');
|
|
244
|
+
const decDate = (buf, off, size) => numToDate(decNumber(buf, off, size));
|
|
245
|
+
const numToDate = (num) => num === undefined ? undefined : new Date(num * 1000);
|
|
246
|
+
const decNumber = (buf, off, size) => Number(buf[off]) & 0x80 ?
|
|
247
|
+
large.parse(buf.subarray(off, off + size))
|
|
248
|
+
: decSmallNumber(buf, off, size);
|
|
249
|
+
const nanUndef = (value) => (isNaN(value) ? undefined : value);
|
|
250
|
+
const decSmallNumber = (buf, off, size) => nanUndef(parseInt(buf
|
|
251
|
+
.subarray(off, off + size)
|
|
252
|
+
.toString('utf8')
|
|
253
|
+
.replace(/\0.*$/, '')
|
|
254
|
+
.trim(), 8));
|
|
255
|
+
// the maximum encodable as a null-terminated octal, by field size
|
|
256
|
+
const MAXNUM = {
|
|
257
|
+
12: 0o77777777777,
|
|
258
|
+
8: 0o7777777,
|
|
259
|
+
};
|
|
260
|
+
const encNumber = (buf, off, size, num) => num === undefined ? false
|
|
261
|
+
: num > MAXNUM[size] || num < 0 ?
|
|
262
|
+
(large.encode(num, buf.subarray(off, off + size)), true)
|
|
263
|
+
: (encSmallNumber(buf, off, size, num), false);
|
|
264
|
+
const encSmallNumber = (buf, off, size, num) => buf.write(octalString(num, size), off, size, 'ascii');
|
|
265
|
+
const octalString = (num, size) => padOctal(Math.floor(num).toString(8), size);
|
|
266
|
+
const padOctal = (str, size) => (str.length === size - 1 ?
|
|
267
|
+
str
|
|
268
|
+
: new Array(size - str.length - 1).join('0') + str + ' ') + '\0';
|
|
269
|
+
const encDate = (buf, off, size, date) => date === undefined ? false : (encNumber(buf, off, size, date.getTime() / 1000));
|
|
270
|
+
// enough to fill the longest string we've got
|
|
271
|
+
const NULLS = new Array(156).join('\0');
|
|
272
|
+
// pad with nulls, return true if it's longer or non-ascii
|
|
273
|
+
const encString = (buf, off, size, str) => str === undefined ? false : ((buf.write(str + NULLS, off, size, 'utf8'),
|
|
274
|
+
str.length !== Buffer.byteLength(str) || str.length > size));
|
|
275
|
+
//# sourceMappingURL=header.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './create.js';
|
|
2
|
+
export { create as c } from './create.js';
|
|
3
|
+
export * from './extract.js';
|
|
4
|
+
export { extract as x } from './extract.js';
|
|
5
|
+
export * from './header.js';
|
|
6
|
+
export * from './list.js';
|
|
7
|
+
export { list as t } from './list.js';
|
|
8
|
+
// classes
|
|
9
|
+
export * from './pack.js';
|
|
10
|
+
export * from './parse.js';
|
|
11
|
+
export * from './pax.js';
|
|
12
|
+
export * from './read-entry.js';
|
|
13
|
+
export * from './replace.js';
|
|
14
|
+
export { replace as r } from './replace.js';
|
|
15
|
+
export * as types from './types.js';
|
|
16
|
+
export * from './unpack.js';
|
|
17
|
+
export * from './update.js';
|
|
18
|
+
export { update as u } from './update.js';
|
|
19
|
+
export * from './write-entry.js';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|