pxnpm 5.0.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +276 -2
- package/bin/{pxnpm.cjs → pnpm.cjs} +2 -2
- package/bin/{pxnpx.cjs → pnpx.cjs} +1 -1
- package/dist/node_modules/.modules.yaml +92 -98
- package/dist/node_modules/.pnpm/lock.yaml +303 -412
- package/dist/node_modules/{set-blocking → @isaacs/cliui}/LICENSE.txt +1 -1
- package/dist/node_modules/@isaacs/cliui/build/index.cjs +317 -0
- package/dist/node_modules/@isaacs/cliui/build/index.d.cts +43 -0
- package/dist/node_modules/@isaacs/cliui/build/lib/index.js +302 -0
- package/dist/node_modules/@isaacs/cliui/index.mjs +14 -0
- package/dist/node_modules/@isaacs/cliui/package.json +86 -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/cp/index.js +1 -1
- package/dist/node_modules/@npmcli/fs/lib/cp/polyfill.js +2 -2
- package/dist/node_modules/@npmcli/fs/lib/index.js +11 -10
- 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 +4 -6
- package/dist/node_modules/@npmcli/fs/package.json +13 -11
- package/dist/node_modules/@pkgjs/parseargs/LICENSE +201 -0
- package/dist/node_modules/@pkgjs/parseargs/index.js +396 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/errors.js +47 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/primordials.js +393 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/util.js +14 -0
- package/dist/node_modules/@pkgjs/parseargs/internal/validators.js +89 -0
- package/dist/node_modules/@pkgjs/parseargs/package.json +36 -0
- package/dist/node_modules/@pkgjs/parseargs/utils.js +198 -0
- package/dist/node_modules/abbrev/lib/index.js +50 -0
- package/dist/node_modules/abbrev/package.json +33 -11
- package/dist/node_modules/agent-base/LICENSE +22 -0
- package/dist/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/dist/node_modules/agent-base/dist/helpers.js +66 -0
- package/dist/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/dist/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/dist/node_modules/agent-base/dist/index.js +175 -0
- package/dist/node_modules/agent-base/dist/index.js.map +1 -0
- package/dist/node_modules/agent-base/package.json +26 -41
- package/dist/node_modules/ansi-regex/index.js +3 -5
- package/dist/node_modules/ansi-regex/license +1 -1
- package/dist/node_modules/ansi-regex/package.json +9 -6
- package/dist/node_modules/ansi-styles/index.js +223 -0
- package/dist/node_modules/ansi-styles/license +9 -0
- package/dist/node_modules/ansi-styles/package.json +54 -0
- package/dist/node_modules/brace-expansion/index.js +86 -84
- package/dist/node_modules/brace-expansion/package.json +3 -4
- package/dist/node_modules/cacache/lib/content/read.js +10 -86
- package/dist/node_modules/cacache/lib/content/rm.js +2 -4
- package/dist/node_modules/cacache/lib/content/write.js +42 -25
- package/dist/node_modules/cacache/lib/entry-index.js +26 -100
- package/dist/node_modules/cacache/lib/get.js +1 -56
- package/dist/node_modules/cacache/lib/index.js +0 -3
- package/dist/node_modules/cacache/lib/memoization.js +2 -2
- package/dist/node_modules/cacache/lib/rm.js +5 -5
- package/dist/node_modules/cacache/lib/util/glob.js +7 -0
- package/dist/node_modules/cacache/lib/util/tmp.js +3 -10
- package/dist/node_modules/cacache/lib/verify.js +31 -31
- package/dist/node_modules/cacache/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/cacache/node_modules/fs-minipass/package.json +54 -0
- package/dist/node_modules/cacache/package.json +23 -25
- package/dist/node_modules/color-convert/LICENSE +21 -0
- package/dist/node_modules/color-convert/conversions.js +839 -0
- package/dist/node_modules/color-convert/index.js +81 -0
- package/dist/node_modules/color-convert/package.json +48 -0
- package/dist/node_modules/color-convert/route.js +97 -0
- package/dist/node_modules/color-name/LICENSE +8 -0
- package/dist/node_modules/color-name/index.js +152 -0
- package/dist/node_modules/color-name/package.json +28 -0
- package/dist/node_modules/{safe-buffer → cross-spawn}/LICENSE +1 -1
- package/dist/node_modules/cross-spawn/index.js +39 -0
- package/dist/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/dist/node_modules/cross-spawn/lib/parse.js +91 -0
- package/dist/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/dist/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/dist/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/dist/node_modules/cross-spawn/package.json +73 -0
- package/dist/node_modules/debug/package.json +4 -3
- package/dist/node_modules/debug/src/node.js +2 -2
- package/dist/node_modules/eastasianwidth/eastasianwidth.js +311 -0
- package/dist/node_modules/eastasianwidth/package.json +18 -0
- package/dist/node_modules/emoji-regex/RGI_Emoji.js +6 -0
- package/dist/node_modules/emoji-regex/es2015/RGI_Emoji.js +6 -0
- package/dist/node_modules/emoji-regex/es2015/index.js +1 -1
- package/dist/node_modules/emoji-regex/es2015/text.js +1 -1
- package/dist/node_modules/emoji-regex/index.js +1 -1
- package/dist/node_modules/emoji-regex/package.json +13 -11
- package/dist/node_modules/emoji-regex/text.js +1 -1
- package/dist/node_modules/{infer-owner → foreground-child}/LICENSE +1 -1
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js +58 -0
- package/dist/node_modules/foreground-child/dist/commonjs/all-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.js +121 -0
- package/dist/node_modules/foreground-child/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js +38 -0
- package/dist/node_modules/foreground-child/dist/commonjs/proxy-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js +50 -0
- package/dist/node_modules/foreground-child/dist/commonjs/watchdog.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js +52 -0
- package/dist/node_modules/foreground-child/dist/esm/all-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/index.js +113 -0
- package/dist/node_modules/foreground-child/dist/esm/index.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js +34 -0
- package/dist/node_modules/foreground-child/dist/esm/proxy-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js +46 -0
- package/dist/node_modules/foreground-child/dist/esm/watchdog.js.map +1 -0
- package/dist/node_modules/foreground-child/package.json +111 -0
- package/dist/node_modules/{cacache/node_modules/minimatch → fs-minipass/node_modules/minipass}/LICENSE +1 -1
- package/dist/node_modules/fs-minipass/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/glob/LICENSE +1 -7
- package/dist/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js +247 -0
- package/dist/node_modules/glob/dist/commonjs/glob.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/dist/node_modules/glob/dist/commonjs/has-magic.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/dist/node_modules/glob/dist/commonjs/ignore.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/index.js +68 -0
- package/dist/node_modules/glob/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/package.json +3 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js +219 -0
- package/dist/node_modules/glob/dist/commonjs/pattern.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/dist/node_modules/glob/dist/commonjs/processor.js.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/dist/node_modules/glob/dist/commonjs/walker.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/bin.d.mts +3 -0
- package/dist/node_modules/glob/dist/esm/bin.d.mts.map +1 -0
- package/dist/node_modules/glob/dist/esm/bin.mjs +270 -0
- package/dist/node_modules/glob/dist/esm/bin.mjs.map +1 -0
- package/dist/node_modules/glob/dist/esm/glob.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/glob.js +243 -0
- package/dist/node_modules/glob/dist/esm/glob.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/dist/node_modules/glob/dist/esm/has-magic.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/ignore.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/ignore.js +115 -0
- package/dist/node_modules/glob/dist/esm/ignore.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/index.js +55 -0
- package/dist/node_modules/glob/dist/esm/index.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/package.json +3 -0
- package/dist/node_modules/glob/dist/esm/pattern.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/pattern.js +215 -0
- package/dist/node_modules/glob/dist/esm/pattern.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/processor.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/processor.js +294 -0
- package/dist/node_modules/glob/dist/esm/processor.js.map +1 -0
- package/dist/node_modules/glob/dist/esm/walker.d.ts.map +1 -0
- package/dist/node_modules/glob/dist/esm/walker.js +381 -0
- package/dist/node_modules/glob/dist/esm/walker.js.map +1 -0
- package/dist/node_modules/glob/package.json +79 -35
- package/dist/node_modules/{agentkeepalive → http-proxy-agent}/LICENSE +2 -3
- package/dist/node_modules/http-proxy-agent/dist/index.d.ts.map +1 -0
- package/dist/node_modules/http-proxy-agent/dist/index.js +142 -8
- package/dist/node_modules/http-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/http-proxy-agent/package.json +22 -32
- package/dist/node_modules/https-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/dist/node_modules/https-proxy-agent/dist/index.js +169 -8
- package/dist/node_modules/https-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js +47 -12
- package/dist/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -1
- package/dist/node_modules/https-proxy-agent/package.json +25 -31
- package/dist/node_modules/jackspeak/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.js +1010 -0
- package/dist/node_modules/jackspeak/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.cjs.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/parse-args-cjs.d.cts.map +1 -0
- package/dist/node_modules/jackspeak/dist/commonjs/parse-args.js +50 -0
- package/dist/node_modules/jackspeak/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/esm/index.js +1000 -0
- package/dist/node_modules/jackspeak/dist/esm/index.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/esm/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/esm/parse-args.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/esm/parse-args.js +26 -0
- package/dist/node_modules/jackspeak/dist/esm/parse-args.js.map +1 -0
- package/dist/node_modules/jackspeak/package.json +95 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js +1546 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/commonjs/index.min.js.map +7 -0
- package/dist/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/dist/node_modules/lru-cache/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js +1542 -0
- package/dist/node_modules/lru-cache/dist/esm/index.js.map +1 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/dist/node_modules/lru-cache/dist/esm/index.min.js.map +7 -0
- package/dist/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/dist/node_modules/lru-cache/package.json +66 -46
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +28 -1
- package/dist/node_modules/make-fetch-happen/lib/options.js +2 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +13 -3
- package/dist/node_modules/make-fetch-happen/package.json +19 -23
- package/dist/node_modules/minimatch/LICENSE +1 -1
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js +592 -0
- package/dist/node_modules/minimatch/dist/commonjs/ast.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js +152 -0
- package/dist/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js +22 -0
- package/dist/node_modules/minimatch/dist/commonjs/escape.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js +1017 -0
- package/dist/node_modules/minimatch/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js +24 -0
- package/dist/node_modules/minimatch/dist/commonjs/unescape.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/dist/node_modules/minimatch/dist/esm/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/ast.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js +588 -0
- package/dist/node_modules/minimatch/dist/esm/ast.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js +148 -0
- package/dist/node_modules/minimatch/dist/esm/brace-expressions.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/escape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js +18 -0
- package/dist/node_modules/minimatch/dist/esm/escape.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/index.js +1001 -0
- package/dist/node_modules/minimatch/dist/esm/index.js.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/package.json +3 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.d.ts.map +1 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js +20 -0
- package/dist/node_modules/minimatch/dist/esm/unescape.js.map +1 -0
- package/dist/node_modules/minimatch/package.json +62 -13
- package/dist/node_modules/minipass/LICENSE +1 -1
- package/dist/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/dist/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/dist/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/minipass/dist/esm/index.js +1018 -0
- package/dist/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/dist/node_modules/minipass/dist/esm/package.json +3 -0
- package/dist/node_modules/minipass/package.json +62 -36
- package/dist/node_modules/minipass-collect/LICENSE +1 -1
- package/dist/node_modules/minipass-collect/index.js +1 -1
- package/dist/node_modules/minipass-collect/package.json +7 -6
- package/dist/node_modules/minipass-fetch/lib/blob.js +1 -1
- package/dist/node_modules/minipass-fetch/lib/body.js +2 -2
- package/dist/node_modules/minipass-fetch/lib/index.js +16 -4
- package/dist/node_modules/minipass-fetch/lib/request.js +2 -1
- package/dist/node_modules/minipass-fetch/package.json +15 -13
- 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-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-sized/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minipass-sized/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/minizlib/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/minizlib/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/minizlib/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/ms/index.js +1 -1
- package/dist/node_modules/ms/package.json +4 -5
- package/dist/node_modules/node-gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/bin/node-gyp.js +27 -29
- package/dist/node_modules/node-gyp/gyp/.release-please-manifest.json +3 -0
- package/dist/node_modules/node-gyp/gyp/data/ninja/build.ninja +4 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.py +12 -14
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSProject.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.py +3 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/__init__.py +4 -2
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common.py +67 -17
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/common_test.py +98 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml.py +5 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/easy_xml_test.py +4 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/analyzer.py +11 -15
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/android.py +4 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/cmake.py +3 -6
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/compile_commands_json.py +10 -3
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +1 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/gypsh.py +3 -4
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py +62 -31
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/msvs.py +47 -52
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja.py +33 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/ninja_test.py +12 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/xcode.py +2 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/input.py +27 -42
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/msvs_emulation.py +12 -23
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/win_tool.py +4 -5
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation.py +20 -21
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcode_emulation_test.py +53 -0
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +21 -20
- 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 +108 -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 +252 -0
- package/dist/node_modules/node-gyp/gyp/pylib/packaging/metadata.py +825 -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 +84 -5
- package/dist/node_modules/node-gyp/gyp/release-please-config.json +11 -0
- package/dist/node_modules/node-gyp/lib/build.js +110 -96
- package/dist/node_modules/node-gyp/lib/clean.js +5 -5
- package/dist/node_modules/node-gyp/lib/configure.js +172 -204
- package/dist/node_modules/node-gyp/lib/create-config-gypi.js +14 -11
- package/dist/node_modules/node-gyp/lib/download.js +39 -0
- package/dist/node_modules/node-gyp/lib/find-node-directory.js +5 -5
- package/dist/node_modules/node-gyp/lib/find-python.js +128 -162
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +260 -133
- package/dist/node_modules/node-gyp/lib/install.js +27 -70
- package/dist/node_modules/node-gyp/lib/list.js +14 -15
- package/dist/node_modules/node-gyp/lib/log.js +168 -0
- package/dist/node_modules/node-gyp/lib/node-gyp.js +147 -174
- package/dist/node_modules/node-gyp/lib/process-release.js +22 -23
- package/dist/node_modules/node-gyp/lib/rebuild.js +1 -2
- package/dist/node_modules/node-gyp/lib/remove.js +18 -21
- package/dist/node_modules/node-gyp/lib/util.js +62 -45
- package/dist/node_modules/{cacache/node_modules/glob → node-gyp/node_modules/isexe}/LICENSE +1 -1
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/index.js +46 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/options.d.ts.map +1 -0
- package/dist/node_modules/{@tootallnate/once/dist/types.js → node-gyp/node_modules/isexe/dist/cjs/options.js} +1 -1
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/options.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/posix.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/posix.js +67 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/posix.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/win32.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/win32.js +62 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/cjs/win32.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/index.js +16 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/options.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/options.js +2 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/options.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/package.json +3 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/posix.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/posix.js +62 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/posix.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/win32.d.ts.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/win32.js +57 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/dist/mjs/win32.js.map +1 -0
- package/dist/node_modules/node-gyp/node_modules/isexe/package.json +96 -0
- package/dist/node_modules/node-gyp/node_modules/which/bin/which.js +52 -0
- package/dist/node_modules/node-gyp/node_modules/which/lib/index.js +111 -0
- package/dist/node_modules/node-gyp/node_modules/which/package.json +57 -0
- package/dist/node_modules/node-gyp/package.json +12 -12
- package/dist/node_modules/node-gyp/release-please-config.json +40 -0
- package/dist/node_modules/nopt/bin/nopt.js +7 -34
- package/dist/node_modules/nopt/lib/debug.js +5 -0
- package/dist/node_modules/nopt/lib/nopt-lib.js +479 -0
- package/dist/node_modules/nopt/lib/nopt.js +21 -506
- package/dist/node_modules/nopt/lib/type-defs.js +91 -0
- package/dist/node_modules/nopt/package.json +13 -15
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js +124 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/commonjs/package.json +3 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.js +119 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/index.js.map +1 -0
- package/dist/node_modules/package-json-from-dist/dist/esm/package.json +3 -0
- package/dist/node_modules/package-json-from-dist/package.json +68 -0
- package/dist/node_modules/path-key/index.js +16 -0
- package/dist/node_modules/path-key/license +9 -0
- package/dist/node_modules/path-key/package.json +39 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js +2014 -0
- package/dist/node_modules/path-scurry/dist/commonjs/index.js.map +1 -0
- package/dist/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js +1979 -0
- package/dist/node_modules/path-scurry/dist/esm/index.js.map +1 -0
- package/dist/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/dist/node_modules/path-scurry/package.json +89 -0
- package/dist/node_modules/{inflight → proc-log}/LICENSE +1 -1
- package/dist/node_modules/proc-log/lib/index.js +153 -0
- package/dist/node_modules/proc-log/package.json +45 -0
- package/dist/node_modules/semver/bin/semver.js +5 -14
- package/dist/node_modules/semver/classes/range.js +4 -3
- package/dist/node_modules/semver/classes/semver.js +1 -1
- package/dist/node_modules/semver/functions/coerce.js +13 -5
- package/dist/node_modules/semver/internal/lrucache.js +40 -0
- package/dist/node_modules/semver/internal/re.js +7 -2
- package/dist/node_modules/semver/package.json +8 -18
- package/dist/node_modules/shebang-command/index.js +19 -0
- package/dist/node_modules/shebang-command/license +9 -0
- package/dist/node_modules/shebang-command/package.json +34 -0
- package/dist/node_modules/shebang-regex/index.js +2 -0
- package/dist/node_modules/shebang-regex/license +9 -0
- package/dist/node_modules/shebang-regex/package.json +35 -0
- package/dist/node_modules/signal-exit/LICENSE.txt +1 -1
- package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dist/node_modules/signal-exit/package.json +87 -19
- package/dist/node_modules/socks/build/common/helpers.js +5 -1
- package/dist/node_modules/socks/build/common/helpers.js.map +1 -1
- package/dist/node_modules/socks/package.json +1 -1
- package/dist/node_modules/socks-proxy-agent/LICENSE +22 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.d.ts.map +1 -0
- package/dist/node_modules/socks-proxy-agent/dist/index.js +134 -146
- package/dist/node_modules/socks-proxy-agent/dist/index.js.map +1 -1
- package/dist/node_modules/socks-proxy-agent/package.json +33 -72
- package/dist/node_modules/ssri/lib/index.js +158 -102
- package/dist/node_modules/ssri/package.json +14 -12
- package/dist/node_modules/string-width/index.js +26 -19
- package/dist/node_modules/string-width/license +1 -1
- package/dist/node_modules/string-width/package.json +12 -9
- package/dist/node_modules/string-width-cjs/index.js +47 -0
- package/dist/node_modules/string-width-cjs/license +9 -0
- package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/string-width-cjs/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/{delegates/License → string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt} +1 -1
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/package.json +50 -0
- package/dist/node_modules/string-width-cjs/node_modules/emoji-regex/text.js +6 -0
- package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/string-width-cjs/node_modules/strip-ansi/package.json +54 -0
- package/dist/node_modules/string-width-cjs/package.json +56 -0
- package/dist/node_modules/strip-ansi/index.js +13 -3
- package/dist/node_modules/strip-ansi/license +1 -1
- package/dist/node_modules/strip-ansi/package.json +10 -7
- package/dist/node_modules/strip-ansi-cjs/index.js +4 -0
- package/dist/node_modules/strip-ansi-cjs/license +9 -0
- package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/strip-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/strip-ansi-cjs/package.json +54 -0
- package/dist/node_modules/unique-filename/package.json +12 -9
- package/dist/node_modules/unique-slug/package.json +10 -7
- package/dist/node_modules/wrap-ansi/index.js +214 -0
- package/dist/node_modules/wrap-ansi/license +9 -0
- package/dist/node_modules/wrap-ansi/package.json +69 -0
- package/dist/node_modules/wrap-ansi-cjs/index.js +216 -0
- package/dist/node_modules/wrap-ansi-cjs/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/index.js +163 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/ansi-styles/package.json +56 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/index.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/es2015/text.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/package.json +50 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/emoji-regex/text.js +6 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/index.js +47 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/string-width/package.json +56 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/wrap-ansi-cjs/node_modules/strip-ansi/package.json +54 -0
- package/dist/node_modules/wrap-ansi-cjs/package.json +62 -0
- package/dist/pnpm.cjs +161888 -155937
- package/dist/pnpmrc +0 -7
- package/dist/{scripts/bash.sh → templates/completion.bash} +2 -1
- package/dist/{scripts/fish.sh → templates/completion.fish} +1 -1
- package/dist/templates/completion.ps1 +193 -0
- package/dist/templates/completion.zsh +27 -0
- package/dist/worker.js +5462 -9749
- package/package.json +140 -6
- package/dist/node_modules/@gar/promisify/index.js +0 -36
- package/dist/node_modules/@gar/promisify/package.json +0 -32
- package/dist/node_modules/@npmcli/fs/lib/common/owner-sync.js +0 -96
- package/dist/node_modules/@npmcli/fs/lib/common/owner.js +0 -96
- package/dist/node_modules/@npmcli/fs/lib/copy-file.js +0 -16
- package/dist/node_modules/@npmcli/fs/lib/fs.js +0 -14
- package/dist/node_modules/@npmcli/fs/lib/mkdir.js +0 -19
- package/dist/node_modules/@npmcli/fs/lib/mkdtemp.js +0 -23
- package/dist/node_modules/@npmcli/fs/lib/rm/index.js +0 -22
- package/dist/node_modules/@npmcli/fs/lib/rm/polyfill.js +0 -239
- package/dist/node_modules/@npmcli/fs/lib/with-owner-sync.js +0 -21
- package/dist/node_modules/@npmcli/fs/lib/with-owner.js +0 -21
- package/dist/node_modules/@npmcli/fs/lib/write-file.js +0 -14
- package/dist/node_modules/@npmcli/move-file/lib/index.js +0 -185
- package/dist/node_modules/@npmcli/move-file/package.json +0 -47
- package/dist/node_modules/@tootallnate/once/LICENSE +0 -21
- package/dist/node_modules/@tootallnate/once/dist/index.js +0 -24
- package/dist/node_modules/@tootallnate/once/dist/index.js.map +0 -1
- package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js +0 -3
- package/dist/node_modules/@tootallnate/once/dist/overloaded-parameters.js.map +0 -1
- package/dist/node_modules/@tootallnate/once/dist/types.js.map +0 -1
- package/dist/node_modules/@tootallnate/once/package.json +0 -52
- package/dist/node_modules/abbrev/abbrev.js +0 -61
- package/dist/node_modules/agent-base/dist/src/index.js +0 -203
- package/dist/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/dist/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/dist/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/dist/node_modules/agentkeepalive/browser.js +0 -5
- package/dist/node_modules/agentkeepalive/index.js +0 -5
- package/dist/node_modules/agentkeepalive/lib/agent.js +0 -402
- package/dist/node_modules/agentkeepalive/lib/constants.js +0 -14
- package/dist/node_modules/agentkeepalive/lib/https_agent.js +0 -51
- package/dist/node_modules/agentkeepalive/package.json +0 -56
- package/dist/node_modules/aproba/LICENSE +0 -14
- package/dist/node_modules/aproba/index.js +0 -105
- package/dist/node_modules/aproba/package.json +0 -35
- package/dist/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/dist/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/dist/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/dist/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/dist/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/dist/node_modules/are-we-there-yet/package.json +0 -56
- package/dist/node_modules/cacache/lib/util/fix-owner.js +0 -145
- package/dist/node_modules/cacache/lib/util/move-file.js +0 -56
- package/dist/node_modules/cacache/node_modules/brace-expansion/LICENSE +0 -21
- package/dist/node_modules/cacache/node_modules/brace-expansion/index.js +0 -203
- package/dist/node_modules/cacache/node_modules/brace-expansion/package.json +0 -46
- package/dist/node_modules/cacache/node_modules/glob/common.js +0 -244
- package/dist/node_modules/cacache/node_modules/glob/glob.js +0 -790
- package/dist/node_modules/cacache/node_modules/glob/package.json +0 -55
- package/dist/node_modules/cacache/node_modules/glob/sync.js +0 -486
- package/dist/node_modules/cacache/node_modules/minimatch/lib/path.js +0 -4
- package/dist/node_modules/cacache/node_modules/minimatch/minimatch.js +0 -944
- package/dist/node_modules/cacache/node_modules/minimatch/package.json +0 -35
- package/dist/node_modules/color-support/bin.js +0 -3
- package/dist/node_modules/color-support/browser.js +0 -14
- package/dist/node_modules/color-support/index.js +0 -134
- package/dist/node_modules/color-support/package.json +0 -36
- package/dist/node_modules/concat-map/LICENSE +0 -18
- package/dist/node_modules/concat-map/README.markdown +0 -62
- package/dist/node_modules/concat-map/index.js +0 -13
- package/dist/node_modules/concat-map/package.json +0 -43
- package/dist/node_modules/console-control-strings/LICENSE +0 -13
- package/dist/node_modules/console-control-strings/README.md~ +0 -140
- package/dist/node_modules/console-control-strings/index.js +0 -125
- package/dist/node_modules/console-control-strings/package.json +0 -27
- package/dist/node_modules/debug/node_modules/ms/index.js +0 -162
- package/dist/node_modules/debug/node_modules/ms/package.json +0 -37
- package/dist/node_modules/delegates/index.js +0 -121
- package/dist/node_modules/delegates/package.json +0 -13
- package/dist/node_modules/fs.realpath/LICENSE +0 -43
- package/dist/node_modules/fs.realpath/index.js +0 -66
- package/dist/node_modules/fs.realpath/old.js +0 -303
- package/dist/node_modules/fs.realpath/package.json +0 -26
- package/dist/node_modules/gauge/lib/base-theme.js +0 -18
- package/dist/node_modules/gauge/lib/error.js +0 -24
- package/dist/node_modules/gauge/lib/has-color.js +0 -4
- package/dist/node_modules/gauge/lib/index.js +0 -289
- package/dist/node_modules/gauge/lib/plumbing.js +0 -50
- package/dist/node_modules/gauge/lib/process.js +0 -3
- package/dist/node_modules/gauge/lib/progress-bar.js +0 -41
- package/dist/node_modules/gauge/lib/render-template.js +0 -222
- package/dist/node_modules/gauge/lib/set-immediate.js +0 -7
- package/dist/node_modules/gauge/lib/set-interval.js +0 -3
- package/dist/node_modules/gauge/lib/spin.js +0 -5
- package/dist/node_modules/gauge/lib/template-item.js +0 -87
- package/dist/node_modules/gauge/lib/theme-set.js +0 -122
- package/dist/node_modules/gauge/lib/themes.js +0 -56
- package/dist/node_modules/gauge/lib/wide-truncate.js +0 -31
- package/dist/node_modules/gauge/package.json +0 -66
- package/dist/node_modules/glob/common.js +0 -238
- package/dist/node_modules/glob/glob.js +0 -790
- package/dist/node_modules/glob/sync.js +0 -486
- package/dist/node_modules/has-unicode/LICENSE +0 -14
- package/dist/node_modules/has-unicode/index.js +0 -16
- package/dist/node_modules/has-unicode/package.json +0 -30
- package/dist/node_modules/http-proxy-agent/dist/agent.js +0 -145
- package/dist/node_modules/http-proxy-agent/dist/agent.js.map +0 -1
- package/dist/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/dist/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/dist/node_modules/humanize-ms/LICENSE +0 -17
- package/dist/node_modules/humanize-ms/index.js +0 -24
- package/dist/node_modules/humanize-ms/package.json +0 -37
- package/dist/node_modules/infer-owner/index.js +0 -71
- package/dist/node_modules/infer-owner/package.json +0 -26
- package/dist/node_modules/inflight/inflight.js +0 -54
- package/dist/node_modules/inflight/package.json +0 -29
- package/dist/node_modules/inherits/LICENSE +0 -16
- package/dist/node_modules/inherits/inherits.js +0 -9
- package/dist/node_modules/inherits/inherits_browser.js +0 -27
- package/dist/node_modules/inherits/package.json +0 -29
- package/dist/node_modules/lru-cache/index.js +0 -1227
- package/dist/node_modules/lru-cache/index.mjs +0 -1227
- package/dist/node_modules/make-fetch-happen/lib/agent.js +0 -214
- package/dist/node_modules/make-fetch-happen/lib/dns.js +0 -49
- package/dist/node_modules/minimatch/minimatch.js +0 -947
- package/dist/node_modules/node-gyp/.github/workflows/release-please-v9.yml +0 -57
- package/dist/node_modules/node-gyp/.github/workflows/release-please.yml +0 -56
- package/dist/node_modules/node-gyp/.github/workflows/tests.yml +0 -59
- package/dist/node_modules/node-gyp/.github/workflows/visual-studio.yml +0 -37
- package/dist/node_modules/node-gyp/gyp/.flake8 +0 -4
- package/dist/node_modules/node-gyp/gyp/.github/workflows/Python_tests.yml +0 -36
- package/dist/node_modules/node-gyp/gyp/.github/workflows/node-gyp.yml +0 -45
- package/dist/node_modules/node-gyp/gyp/.github/workflows/nodejs-windows.yml +0 -32
- package/dist/node_modules/node-gyp/gyp/.github/workflows/release-please.yml +0 -16
- package/dist/node_modules/node-gyp/gyp/tools/README +0 -15
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/README +0 -5
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.pbfilespec +0 -27
- package/dist/node_modules/node-gyp/gyp/tools/Xcode/Specifications/gyp.xclangspec +0 -226
- package/dist/node_modules/node-gyp/gyp/tools/emacs/README +0 -12
- package/dist/node_modules/node-gyp/gyp/tools/emacs/gyp-tests.el +0 -63
- package/dist/node_modules/node-gyp/gyp/tools/emacs/gyp.el +0 -275
- package/dist/node_modules/node-gyp/gyp/tools/emacs/run-unit-tests.sh +0 -7
- package/dist/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp +0 -1105
- package/dist/node_modules/node-gyp/gyp/tools/emacs/testdata/media.gyp.fontified +0 -1107
- package/dist/node_modules/node-gyp/gyp/tools/graphviz.py +0 -102
- package/dist/node_modules/node-gyp/gyp/tools/pretty_gyp.py +0 -156
- package/dist/node_modules/node-gyp/gyp/tools/pretty_sln.py +0 -181
- package/dist/node_modules/node-gyp/gyp/tools/pretty_vcproj.py +0 -339
- package/dist/node_modules/node-gyp/update-gyp.py +0 -64
- package/dist/node_modules/npmlog/lib/log.js +0 -404
- package/dist/node_modules/npmlog/package.json +0 -51
- package/dist/node_modules/once/once.js +0 -42
- package/dist/node_modules/once/package.json +0 -33
- package/dist/node_modules/path-is-absolute/index.js +0 -20
- package/dist/node_modules/path-is-absolute/license +0 -21
- package/dist/node_modules/path-is-absolute/package.json +0 -43
- package/dist/node_modules/promise-inflight/LICENSE +0 -14
- package/dist/node_modules/promise-inflight/inflight.js +0 -36
- package/dist/node_modules/promise-inflight/package.json +0 -24
- package/dist/node_modules/readable-stream/LICENSE +0 -47
- package/dist/node_modules/readable-stream/errors-browser.js +0 -127
- package/dist/node_modules/readable-stream/errors.js +0 -116
- package/dist/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/dist/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/dist/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/dist/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/dist/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/dist/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/dist/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/dist/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/dist/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/dist/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/dist/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/dist/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/dist/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/dist/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/dist/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/dist/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/dist/node_modules/readable-stream/package.json +0 -68
- package/dist/node_modules/readable-stream/readable-browser.js +0 -9
- package/dist/node_modules/readable-stream/readable.js +0 -16
- package/dist/node_modules/rimraf/LICENSE +0 -15
- package/dist/node_modules/rimraf/bin.js +0 -68
- package/dist/node_modules/rimraf/package.json +0 -32
- package/dist/node_modules/rimraf/rimraf.js +0 -360
- package/dist/node_modules/safe-buffer/index.js +0 -65
- package/dist/node_modules/safe-buffer/package.json +0 -51
- package/dist/node_modules/semver/node_modules/lru-cache/LICENSE +0 -15
- package/dist/node_modules/semver/node_modules/lru-cache/index.js +0 -334
- package/dist/node_modules/semver/node_modules/lru-cache/package.json +0 -34
- package/dist/node_modules/set-blocking/index.js +0 -7
- package/dist/node_modules/set-blocking/package.json +0 -42
- package/dist/node_modules/signal-exit/index.js +0 -202
- package/dist/node_modules/signal-exit/signals.js +0 -53
- package/dist/node_modules/string_decoder/LICENSE +0 -48
- package/dist/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/dist/node_modules/string_decoder/package.json +0 -34
- package/dist/node_modules/util-deprecate/LICENSE +0 -24
- package/dist/node_modules/util-deprecate/browser.js +0 -67
- package/dist/node_modules/util-deprecate/node.js +0 -6
- package/dist/node_modules/util-deprecate/package.json +0 -27
- package/dist/node_modules/wide-align/LICENSE +0 -14
- package/dist/node_modules/wide-align/align.js +0 -65
- package/dist/node_modules/wide-align/package.json +0 -33
- package/dist/node_modules/wrappy/LICENSE +0 -15
- package/dist/node_modules/wrappy/package.json +0 -29
- package/dist/node_modules/wrappy/wrappy.js +0 -33
- package/dist/scripts/zsh.sh +0 -18
- /package/dist/node_modules/@npmcli/fs/lib/{errors.js → cp/errors.js} +0 -0
- /package/dist/node_modules/{cacache/node_modules/brace-expansion → brace-expansion}/.github/FUNDING.yml +0 -0
- /package/dist/node_modules/{color-support → cacache/node_modules/fs-minipass}/LICENSE +0 -0
- /package/dist/node_modules/{minipass → fs-minipass/node_modules/minipass}/index.js +0 -0
- /package/dist/node_modules/{once → node-gyp/node_modules/which}/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const fs = require('
|
|
3
|
+
const fs = require('fs/promises')
|
|
4
4
|
const fsm = require('fs-minipass')
|
|
5
5
|
const ssri = require('ssri')
|
|
6
6
|
const contentPath = require('./path')
|
|
@@ -13,18 +13,20 @@ async function read (cache, integrity, opts = {}) {
|
|
|
13
13
|
const { size } = opts
|
|
14
14
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
15
15
|
// get size
|
|
16
|
-
const stat = await fs.stat(cpath)
|
|
16
|
+
const stat = size ? { size } : await fs.stat(cpath)
|
|
17
17
|
return { stat, cpath, sri }
|
|
18
18
|
})
|
|
19
|
-
if (typeof size === 'number' && stat.size !== size) {
|
|
20
|
-
throw sizeError(size, stat.size)
|
|
21
|
-
}
|
|
22
19
|
|
|
23
20
|
if (stat.size > MAX_SINGLE_READ_SIZE) {
|
|
24
21
|
return readPipeline(cpath, stat.size, sri, new Pipeline()).concat()
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
const data = await fs.readFile(cpath, { encoding: null })
|
|
25
|
+
|
|
26
|
+
if (stat.size !== data.length) {
|
|
27
|
+
throw sizeError(stat.size, data.length)
|
|
28
|
+
}
|
|
29
|
+
|
|
28
30
|
if (!ssri.checkData(data, sri)) {
|
|
29
31
|
throw integrityError(sri, cpath)
|
|
30
32
|
}
|
|
@@ -46,24 +48,6 @@ const readPipeline = (cpath, size, sri, stream) => {
|
|
|
46
48
|
return stream
|
|
47
49
|
}
|
|
48
50
|
|
|
49
|
-
module.exports.sync = readSync
|
|
50
|
-
|
|
51
|
-
function readSync (cache, integrity, opts = {}) {
|
|
52
|
-
const { size } = opts
|
|
53
|
-
return withContentSriSync(cache, integrity, (cpath, sri) => {
|
|
54
|
-
const data = fs.readFileSync(cpath, { encoding: null })
|
|
55
|
-
if (typeof size === 'number' && size !== data.length) {
|
|
56
|
-
throw sizeError(size, data.length)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (ssri.checkData(data, sri)) {
|
|
60
|
-
return data
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
throw integrityError(sri, cpath)
|
|
64
|
-
})
|
|
65
|
-
}
|
|
66
|
-
|
|
67
51
|
module.exports.stream = readStream
|
|
68
52
|
module.exports.readStream = readStream
|
|
69
53
|
|
|
@@ -73,13 +57,10 @@ function readStream (cache, integrity, opts = {}) {
|
|
|
73
57
|
// Set all this up to run on the stream and then just return the stream
|
|
74
58
|
Promise.resolve().then(async () => {
|
|
75
59
|
const { stat, cpath, sri } = await withContentSri(cache, integrity, async (cpath, sri) => {
|
|
76
|
-
//
|
|
77
|
-
const stat = await fs.stat(cpath)
|
|
60
|
+
// get size
|
|
61
|
+
const stat = size ? { size } : await fs.stat(cpath)
|
|
78
62
|
return { stat, cpath, sri }
|
|
79
63
|
})
|
|
80
|
-
if (typeof size === 'number' && size !== stat.size) {
|
|
81
|
-
return stream.emit('error', sizeError(size, stat.size))
|
|
82
|
-
}
|
|
83
64
|
|
|
84
65
|
return readPipeline(cpath, stat.size, sri, stream)
|
|
85
66
|
}).catch(err => stream.emit('error', err))
|
|
@@ -88,20 +69,13 @@ function readStream (cache, integrity, opts = {}) {
|
|
|
88
69
|
}
|
|
89
70
|
|
|
90
71
|
module.exports.copy = copy
|
|
91
|
-
module.exports.copy.sync = copySync
|
|
92
72
|
|
|
93
73
|
function copy (cache, integrity, dest) {
|
|
94
|
-
return withContentSri(cache, integrity, (cpath
|
|
74
|
+
return withContentSri(cache, integrity, (cpath) => {
|
|
95
75
|
return fs.copyFile(cpath, dest)
|
|
96
76
|
})
|
|
97
77
|
}
|
|
98
78
|
|
|
99
|
-
function copySync (cache, integrity, dest) {
|
|
100
|
-
return withContentSriSync(cache, integrity, (cpath, sri) => {
|
|
101
|
-
return fs.copyFileSync(cpath, dest)
|
|
102
|
-
})
|
|
103
|
-
}
|
|
104
|
-
|
|
105
79
|
module.exports.hasContent = hasContent
|
|
106
80
|
|
|
107
81
|
async function hasContent (cache, integrity) {
|
|
@@ -130,34 +104,6 @@ async function hasContent (cache, integrity) {
|
|
|
130
104
|
}
|
|
131
105
|
}
|
|
132
106
|
|
|
133
|
-
module.exports.hasContent.sync = hasContentSync
|
|
134
|
-
|
|
135
|
-
function hasContentSync (cache, integrity) {
|
|
136
|
-
if (!integrity) {
|
|
137
|
-
return false
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return withContentSriSync(cache, integrity, (cpath, sri) => {
|
|
141
|
-
try {
|
|
142
|
-
const stat = fs.statSync(cpath)
|
|
143
|
-
return { size: stat.size, sri, stat }
|
|
144
|
-
} catch (err) {
|
|
145
|
-
if (err.code === 'ENOENT') {
|
|
146
|
-
return false
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
if (err.code === 'EPERM') {
|
|
150
|
-
/* istanbul ignore else */
|
|
151
|
-
if (process.platform !== 'win32') {
|
|
152
|
-
throw err
|
|
153
|
-
} else {
|
|
154
|
-
return false
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
})
|
|
159
|
-
}
|
|
160
|
-
|
|
161
107
|
async function withContentSri (cache, integrity, fn) {
|
|
162
108
|
const sri = ssri.parse(integrity)
|
|
163
109
|
// If `integrity` has multiple entries, pick the first digest
|
|
@@ -201,28 +147,6 @@ async function withContentSri (cache, integrity, fn) {
|
|
|
201
147
|
}
|
|
202
148
|
}
|
|
203
149
|
|
|
204
|
-
function withContentSriSync (cache, integrity, fn) {
|
|
205
|
-
const sri = ssri.parse(integrity)
|
|
206
|
-
// If `integrity` has multiple entries, pick the first digest
|
|
207
|
-
// with available local data.
|
|
208
|
-
const algo = sri.pickAlgorithm()
|
|
209
|
-
const digests = sri[algo]
|
|
210
|
-
if (digests.length <= 1) {
|
|
211
|
-
const cpath = contentPath(cache, digests[0])
|
|
212
|
-
return fn(cpath, digests[0])
|
|
213
|
-
} else {
|
|
214
|
-
let lastErr = null
|
|
215
|
-
for (const meta of digests) {
|
|
216
|
-
try {
|
|
217
|
-
return withContentSriSync(cache, meta, fn)
|
|
218
|
-
} catch (err) {
|
|
219
|
-
lastErr = err
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
throw lastErr
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
150
|
function sizeError (expected, found) {
|
|
227
151
|
/* eslint-disable-next-line max-len */
|
|
228
152
|
const err = new Error(`Bad data size: expected inserted data to be ${expected} bytes, but got ${found} instead`)
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const fs = require('fs/promises')
|
|
5
4
|
const contentPath = require('./path')
|
|
6
5
|
const { hasContent } = require('./read')
|
|
7
|
-
const rimraf = util.promisify(require('rimraf'))
|
|
8
6
|
|
|
9
7
|
module.exports = rm
|
|
10
8
|
|
|
@@ -12,7 +10,7 @@ async function rm (cache, integrity) {
|
|
|
12
10
|
const content = await hasContent(cache, integrity)
|
|
13
11
|
// ~pretty~ sure we can't end up with a content lacking sri, but be safe
|
|
14
12
|
if (content && content.sri) {
|
|
15
|
-
await
|
|
13
|
+
await fs.rm(contentPath(cache, content.sri), { recursive: true, force: true })
|
|
16
14
|
return true
|
|
17
15
|
} else {
|
|
18
16
|
return false
|
|
@@ -1,28 +1,25 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const events = require('events')
|
|
4
|
-
const util = require('util')
|
|
5
4
|
|
|
6
5
|
const contentPath = require('./path')
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const Minipass = require('minipass')
|
|
6
|
+
const fs = require('fs/promises')
|
|
7
|
+
const { moveFile } = require('@npmcli/fs')
|
|
8
|
+
const { Minipass } = require('minipass')
|
|
11
9
|
const Pipeline = require('minipass-pipeline')
|
|
12
10
|
const Flush = require('minipass-flush')
|
|
13
11
|
const path = require('path')
|
|
14
|
-
const rimraf = util.promisify(require('rimraf'))
|
|
15
12
|
const ssri = require('ssri')
|
|
16
13
|
const uniqueFilename = require('unique-filename')
|
|
17
14
|
const fsm = require('fs-minipass')
|
|
18
15
|
|
|
19
16
|
module.exports = write
|
|
20
17
|
|
|
18
|
+
// Cache of move operations in process so we don't duplicate
|
|
19
|
+
const moveOperations = new Map()
|
|
20
|
+
|
|
21
21
|
async function write (cache, data, opts = {}) {
|
|
22
22
|
const { algorithms, size, integrity } = opts
|
|
23
|
-
if (algorithms && algorithms.length > 1) {
|
|
24
|
-
throw new Error('opts.algorithms only supports a single algorithm for now')
|
|
25
|
-
}
|
|
26
23
|
|
|
27
24
|
if (typeof size === 'number' && data.length !== size) {
|
|
28
25
|
throw sizeError(size, data.length)
|
|
@@ -33,16 +30,19 @@ async function write (cache, data, opts = {}) {
|
|
|
33
30
|
throw checksumError(integrity, sri)
|
|
34
31
|
}
|
|
35
32
|
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
for (const algo in sri) {
|
|
34
|
+
const tmp = await makeTmp(cache, opts)
|
|
35
|
+
const hash = sri[algo].toString()
|
|
36
|
+
try {
|
|
37
|
+
await fs.writeFile(tmp.target, data, { flag: 'wx' })
|
|
38
|
+
await moveToDestination(tmp, cache, hash, opts)
|
|
39
|
+
} finally {
|
|
40
|
+
if (!tmp.moved) {
|
|
41
|
+
await fs.rm(tmp.target, { recursive: true, force: true })
|
|
42
|
+
}
|
|
44
43
|
}
|
|
45
44
|
}
|
|
45
|
+
return { integrity: sri, size: data.length }
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
module.exports.stream = writeStream
|
|
@@ -67,6 +67,7 @@ class CacacheWriteStream extends Flush {
|
|
|
67
67
|
this.cache,
|
|
68
68
|
this.opts
|
|
69
69
|
)
|
|
70
|
+
this.handleContentP.catch(error => this.emit('error', error))
|
|
70
71
|
}
|
|
71
72
|
return this.inputStream.write(chunk, encoding, cb)
|
|
72
73
|
}
|
|
@@ -111,7 +112,7 @@ async function handleContent (inputStream, cache, opts) {
|
|
|
111
112
|
return res
|
|
112
113
|
} finally {
|
|
113
114
|
if (!tmp.moved) {
|
|
114
|
-
await
|
|
115
|
+
await fs.rm(tmp.target, { recursive: true, force: true })
|
|
115
116
|
}
|
|
116
117
|
}
|
|
117
118
|
}
|
|
@@ -152,21 +153,37 @@ async function pipeToTmp (inputStream, cache, tmpTarget, opts) {
|
|
|
152
153
|
|
|
153
154
|
async function makeTmp (cache, opts) {
|
|
154
155
|
const tmpTarget = uniqueFilename(path.join(cache, 'tmp'), opts.tmpPrefix)
|
|
155
|
-
await
|
|
156
|
+
await fs.mkdir(path.dirname(tmpTarget), { recursive: true })
|
|
156
157
|
return {
|
|
157
158
|
target: tmpTarget,
|
|
158
159
|
moved: false,
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
|
|
162
|
-
async function moveToDestination (tmp, cache, sri
|
|
163
|
+
async function moveToDestination (tmp, cache, sri) {
|
|
163
164
|
const destination = contentPath(cache, sri)
|
|
164
165
|
const destDir = path.dirname(destination)
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
166
|
+
if (moveOperations.has(destination)) {
|
|
167
|
+
return moveOperations.get(destination)
|
|
168
|
+
}
|
|
169
|
+
moveOperations.set(
|
|
170
|
+
destination,
|
|
171
|
+
fs.mkdir(destDir, { recursive: true })
|
|
172
|
+
.then(async () => {
|
|
173
|
+
await moveFile(tmp.target, destination, { overwrite: false })
|
|
174
|
+
tmp.moved = true
|
|
175
|
+
return tmp.moved
|
|
176
|
+
})
|
|
177
|
+
.catch(err => {
|
|
178
|
+
if (!err.message.startsWith('The destination file exists')) {
|
|
179
|
+
throw Object.assign(err, { code: 'EEXIST' })
|
|
180
|
+
}
|
|
181
|
+
}).finally(() => {
|
|
182
|
+
moveOperations.delete(destination)
|
|
183
|
+
})
|
|
184
|
+
|
|
185
|
+
)
|
|
186
|
+
return moveOperations.get(destination)
|
|
170
187
|
}
|
|
171
188
|
|
|
172
189
|
function sizeError (expected, found) {
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const util = require('util')
|
|
4
3
|
const crypto = require('crypto')
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
const {
|
|
5
|
+
appendFile,
|
|
6
|
+
mkdir,
|
|
7
|
+
readFile,
|
|
8
|
+
readdir,
|
|
9
|
+
rm,
|
|
10
|
+
writeFile,
|
|
11
|
+
} = require('fs/promises')
|
|
12
|
+
const { Minipass } = require('minipass')
|
|
7
13
|
const path = require('path')
|
|
8
14
|
const ssri = require('ssri')
|
|
9
15
|
const uniqueFilename = require('unique-filename')
|
|
10
16
|
|
|
11
17
|
const contentPath = require('./content/path')
|
|
12
|
-
const fixOwner = require('./util/fix-owner')
|
|
13
18
|
const hashToSegments = require('./util/hash-to-segments')
|
|
14
19
|
const indexV = require('../package.json')['cache-version'].index
|
|
15
|
-
const moveFile = require('@npmcli/
|
|
16
|
-
const _rimraf = require('rimraf')
|
|
17
|
-
const rimraf = util.promisify(_rimraf)
|
|
18
|
-
rimraf.sync = _rimraf.sync
|
|
20
|
+
const { moveFile } = require('@npmcli/fs')
|
|
19
21
|
|
|
20
22
|
module.exports.NotFoundError = class NotFoundError extends Error {
|
|
21
23
|
constructor (cache, key) {
|
|
@@ -66,7 +68,7 @@ async function compact (cache, key, matchFn, opts = {}) {
|
|
|
66
68
|
|
|
67
69
|
const setup = async () => {
|
|
68
70
|
const target = uniqueFilename(path.join(cache, 'tmp'), opts.tmpPrefix)
|
|
69
|
-
await
|
|
71
|
+
await mkdir(path.dirname(target), { recursive: true })
|
|
70
72
|
return {
|
|
71
73
|
target,
|
|
72
74
|
moved: false,
|
|
@@ -75,24 +77,17 @@ async function compact (cache, key, matchFn, opts = {}) {
|
|
|
75
77
|
|
|
76
78
|
const teardown = async (tmp) => {
|
|
77
79
|
if (!tmp.moved) {
|
|
78
|
-
return
|
|
80
|
+
return rm(tmp.target, { recursive: true, force: true })
|
|
79
81
|
}
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
const write = async (tmp) => {
|
|
83
|
-
await
|
|
84
|
-
await
|
|
85
|
+
await writeFile(tmp.target, newIndex, { flag: 'wx' })
|
|
86
|
+
await mkdir(path.dirname(bucket), { recursive: true })
|
|
85
87
|
// we use @npmcli/move-file directly here because we
|
|
86
88
|
// want to overwrite the existing file
|
|
87
89
|
await moveFile(tmp.target, bucket)
|
|
88
90
|
tmp.moved = true
|
|
89
|
-
try {
|
|
90
|
-
await fixOwner.chownr(cache, bucket)
|
|
91
|
-
} catch (err) {
|
|
92
|
-
if (err.code !== 'ENOENT') {
|
|
93
|
-
throw err
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
91
|
}
|
|
97
92
|
|
|
98
93
|
// write the file atomically
|
|
@@ -114,17 +109,17 @@ async function compact (cache, key, matchFn, opts = {}) {
|
|
|
114
109
|
module.exports.insert = insert
|
|
115
110
|
|
|
116
111
|
async function insert (cache, key, integrity, opts = {}) {
|
|
117
|
-
const { metadata, size } = opts
|
|
112
|
+
const { metadata, size, time } = opts
|
|
118
113
|
const bucket = bucketPath(cache, key)
|
|
119
114
|
const entry = {
|
|
120
115
|
key,
|
|
121
116
|
integrity: integrity && ssri.stringify(integrity),
|
|
122
|
-
time: Date.now(),
|
|
117
|
+
time: time || Date.now(),
|
|
123
118
|
size,
|
|
124
119
|
metadata,
|
|
125
120
|
}
|
|
126
121
|
try {
|
|
127
|
-
await
|
|
122
|
+
await mkdir(path.dirname(bucket), { recursive: true })
|
|
128
123
|
const stringified = JSON.stringify(entry)
|
|
129
124
|
// NOTE - Cleverness ahoy!
|
|
130
125
|
//
|
|
@@ -134,44 +129,13 @@ async function insert (cache, key, integrity, opts = {}) {
|
|
|
134
129
|
//
|
|
135
130
|
// Thanks to @isaacs for the whiteboarding session that ended up with
|
|
136
131
|
// this.
|
|
137
|
-
await
|
|
138
|
-
await fixOwner.chownr(cache, bucket)
|
|
132
|
+
await appendFile(bucket, `\n${hashEntry(stringified)}\t${stringified}`)
|
|
139
133
|
} catch (err) {
|
|
140
134
|
if (err.code === 'ENOENT') {
|
|
141
135
|
return undefined
|
|
142
136
|
}
|
|
143
137
|
|
|
144
138
|
throw err
|
|
145
|
-
// There's a class of race conditions that happen when things get deleted
|
|
146
|
-
// during fixOwner, or between the two mkdirfix/chownr calls.
|
|
147
|
-
//
|
|
148
|
-
// It's perfectly fine to just not bother in those cases and lie
|
|
149
|
-
// that the index entry was written. Because it's a cache.
|
|
150
|
-
}
|
|
151
|
-
return formatEntry(cache, entry)
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
module.exports.insert.sync = insertSync
|
|
155
|
-
|
|
156
|
-
function insertSync (cache, key, integrity, opts = {}) {
|
|
157
|
-
const { metadata, size } = opts
|
|
158
|
-
const bucket = bucketPath(cache, key)
|
|
159
|
-
const entry = {
|
|
160
|
-
key,
|
|
161
|
-
integrity: integrity && ssri.stringify(integrity),
|
|
162
|
-
time: Date.now(),
|
|
163
|
-
size,
|
|
164
|
-
metadata,
|
|
165
|
-
}
|
|
166
|
-
fixOwner.mkdirfix.sync(cache, path.dirname(bucket))
|
|
167
|
-
const stringified = JSON.stringify(entry)
|
|
168
|
-
fs.appendFileSync(bucket, `\n${hashEntry(stringified)}\t${stringified}`)
|
|
169
|
-
try {
|
|
170
|
-
fixOwner.chownr.sync(cache, bucket)
|
|
171
|
-
} catch (err) {
|
|
172
|
-
if (err.code !== 'ENOENT') {
|
|
173
|
-
throw err
|
|
174
|
-
}
|
|
175
139
|
}
|
|
176
140
|
return formatEntry(cache, entry)
|
|
177
141
|
}
|
|
@@ -198,27 +162,6 @@ async function find (cache, key) {
|
|
|
198
162
|
}
|
|
199
163
|
}
|
|
200
164
|
|
|
201
|
-
module.exports.find.sync = findSync
|
|
202
|
-
|
|
203
|
-
function findSync (cache, key) {
|
|
204
|
-
const bucket = bucketPath(cache, key)
|
|
205
|
-
try {
|
|
206
|
-
return bucketEntriesSync(bucket).reduce((latest, next) => {
|
|
207
|
-
if (next && next.key === key) {
|
|
208
|
-
return formatEntry(cache, next)
|
|
209
|
-
} else {
|
|
210
|
-
return latest
|
|
211
|
-
}
|
|
212
|
-
}, null)
|
|
213
|
-
} catch (err) {
|
|
214
|
-
if (err.code === 'ENOENT') {
|
|
215
|
-
return null
|
|
216
|
-
} else {
|
|
217
|
-
throw err
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
165
|
module.exports.delete = del
|
|
223
166
|
|
|
224
167
|
function del (cache, key, opts = {}) {
|
|
@@ -227,18 +170,7 @@ function del (cache, key, opts = {}) {
|
|
|
227
170
|
}
|
|
228
171
|
|
|
229
172
|
const bucket = bucketPath(cache, key)
|
|
230
|
-
return
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
module.exports.delete.sync = delSync
|
|
234
|
-
|
|
235
|
-
function delSync (cache, key, opts = {}) {
|
|
236
|
-
if (!opts.removeFully) {
|
|
237
|
-
return insertSync(cache, key, null, opts)
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
const bucket = bucketPath(cache, key)
|
|
241
|
-
return rimraf.sync(bucket)
|
|
173
|
+
return rm(bucket, { recursive: true, force: true })
|
|
242
174
|
}
|
|
243
175
|
|
|
244
176
|
module.exports.lsStream = lsStream
|
|
@@ -304,18 +236,11 @@ async function ls (cache) {
|
|
|
304
236
|
module.exports.bucketEntries = bucketEntries
|
|
305
237
|
|
|
306
238
|
async function bucketEntries (bucket, filter) {
|
|
307
|
-
const data = await
|
|
308
|
-
return _bucketEntries(data, filter)
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
module.exports.bucketEntries.sync = bucketEntriesSync
|
|
312
|
-
|
|
313
|
-
function bucketEntriesSync (bucket, filter) {
|
|
314
|
-
const data = fs.readFileSync(bucket, 'utf8')
|
|
239
|
+
const data = await readFile(bucket, 'utf8')
|
|
315
240
|
return _bucketEntries(data, filter)
|
|
316
241
|
}
|
|
317
242
|
|
|
318
|
-
function _bucketEntries (data
|
|
243
|
+
function _bucketEntries (data) {
|
|
319
244
|
const entries = []
|
|
320
245
|
data.split('\n').forEach((entry) => {
|
|
321
246
|
if (!entry) {
|
|
@@ -331,10 +256,11 @@ function _bucketEntries (data, filter) {
|
|
|
331
256
|
let obj
|
|
332
257
|
try {
|
|
333
258
|
obj = JSON.parse(pieces[1])
|
|
334
|
-
} catch (
|
|
335
|
-
//
|
|
336
|
-
return
|
|
259
|
+
} catch (_) {
|
|
260
|
+
// eslint-ignore-next-line no-empty-block
|
|
337
261
|
}
|
|
262
|
+
// coverage disabled here, no need to test with an entry that parses to something falsey
|
|
263
|
+
// istanbul ignore else
|
|
338
264
|
if (obj) {
|
|
339
265
|
entries.push(obj)
|
|
340
266
|
}
|
|
@@ -394,7 +320,7 @@ function formatEntry (cache, entry, keepAll) {
|
|
|
394
320
|
}
|
|
395
321
|
|
|
396
322
|
function readdirOrEmpty (dir) {
|
|
397
|
-
return
|
|
323
|
+
return readdir(dir).catch((err) => {
|
|
398
324
|
if (err.code === 'ENOENT' || err.code === 'ENOTDIR') {
|
|
399
325
|
return []
|
|
400
326
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
3
|
const Collect = require('minipass-collect')
|
|
4
|
-
const Minipass = require('minipass')
|
|
4
|
+
const { Minipass } = require('minipass')
|
|
5
5
|
const Pipeline = require('minipass-pipeline')
|
|
6
6
|
|
|
7
7
|
const index = require('./entry-index')
|
|
@@ -53,61 +53,6 @@ async function getDataByDigest (cache, key, opts = {}) {
|
|
|
53
53
|
}
|
|
54
54
|
module.exports.byDigest = getDataByDigest
|
|
55
55
|
|
|
56
|
-
function getDataSync (cache, key, opts = {}) {
|
|
57
|
-
const { integrity, memoize, size } = opts
|
|
58
|
-
const memoized = memo.get(cache, key, opts)
|
|
59
|
-
|
|
60
|
-
if (memoized && memoize !== false) {
|
|
61
|
-
return {
|
|
62
|
-
metadata: memoized.entry.metadata,
|
|
63
|
-
data: memoized.data,
|
|
64
|
-
integrity: memoized.entry.integrity,
|
|
65
|
-
size: memoized.entry.size,
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const entry = index.find.sync(cache, key, opts)
|
|
69
|
-
if (!entry) {
|
|
70
|
-
throw new index.NotFoundError(cache, key)
|
|
71
|
-
}
|
|
72
|
-
const data = read.sync(cache, entry.integrity, {
|
|
73
|
-
integrity: integrity,
|
|
74
|
-
size: size,
|
|
75
|
-
})
|
|
76
|
-
const res = {
|
|
77
|
-
metadata: entry.metadata,
|
|
78
|
-
data: data,
|
|
79
|
-
size: entry.size,
|
|
80
|
-
integrity: entry.integrity,
|
|
81
|
-
}
|
|
82
|
-
if (memoize) {
|
|
83
|
-
memo.put(cache, entry, res.data, opts)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return res
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
module.exports.sync = getDataSync
|
|
90
|
-
|
|
91
|
-
function getDataByDigestSync (cache, digest, opts = {}) {
|
|
92
|
-
const { integrity, memoize, size } = opts
|
|
93
|
-
const memoized = memo.get.byDigest(cache, digest, opts)
|
|
94
|
-
|
|
95
|
-
if (memoized && memoize !== false) {
|
|
96
|
-
return memoized
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
const res = read.sync(cache, digest, {
|
|
100
|
-
integrity: integrity,
|
|
101
|
-
size: size,
|
|
102
|
-
})
|
|
103
|
-
if (memoize) {
|
|
104
|
-
memo.put.byDigest(cache, digest, res, opts)
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
return res
|
|
108
|
-
}
|
|
109
|
-
module.exports.sync.byDigest = getDataByDigestSync
|
|
110
|
-
|
|
111
56
|
const getMemoizedStream = (memoized) => {
|
|
112
57
|
const stream = new Minipass()
|
|
113
58
|
stream.on('newListener', function (ev, cb) {
|
|
@@ -17,15 +17,12 @@ module.exports.ls.stream = index.lsStream
|
|
|
17
17
|
|
|
18
18
|
module.exports.get = get
|
|
19
19
|
module.exports.get.byDigest = get.byDigest
|
|
20
|
-
module.exports.get.sync = get.sync
|
|
21
|
-
module.exports.get.sync.byDigest = get.sync.byDigest
|
|
22
20
|
module.exports.get.stream = get.stream
|
|
23
21
|
module.exports.get.stream.byDigest = get.stream.byDigest
|
|
24
22
|
module.exports.get.copy = get.copy
|
|
25
23
|
module.exports.get.copy.byDigest = get.copy.byDigest
|
|
26
24
|
module.exports.get.info = get.info
|
|
27
25
|
module.exports.get.hasContent = get.hasContent
|
|
28
|
-
module.exports.get.hasContent.sync = get.hasContent.sync
|
|
29
26
|
|
|
30
27
|
module.exports.put = put
|
|
31
28
|
module.exports.put.stream = put.stream
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
3
|
+
const { rm } = require('fs/promises')
|
|
4
|
+
const glob = require('./util/glob.js')
|
|
5
5
|
const index = require('./entry-index')
|
|
6
6
|
const memo = require('./memoization')
|
|
7
7
|
const path = require('path')
|
|
8
|
-
const rimraf = util.promisify(require('rimraf'))
|
|
9
8
|
const rmContent = require('./content/rm')
|
|
10
9
|
|
|
11
10
|
module.exports = entry
|
|
@@ -25,7 +24,8 @@ function content (cache, integrity) {
|
|
|
25
24
|
|
|
26
25
|
module.exports.all = all
|
|
27
26
|
|
|
28
|
-
function all (cache) {
|
|
27
|
+
async function all (cache) {
|
|
29
28
|
memo.clearMemoized()
|
|
30
|
-
|
|
29
|
+
const paths = await glob(path.join(cache, '*(content-*|index-*)'), { silent: true, nosort: true })
|
|
30
|
+
return Promise.all(paths.map((p) => rm(p, { recursive: true, force: true })))
|
|
31
31
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
const fixOwner = require('./fix-owner')
|
|
3
|
+
const { withTempDir } = require('@npmcli/fs')
|
|
4
|
+
const fs = require('fs/promises')
|
|
6
5
|
const path = require('path')
|
|
7
6
|
|
|
8
7
|
module.exports.mkdir = mktmpdir
|
|
@@ -23,11 +22,5 @@ function withTmp (cache, opts, cb) {
|
|
|
23
22
|
cb = opts
|
|
24
23
|
opts = {}
|
|
25
24
|
}
|
|
26
|
-
return
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
module.exports.fix = fixtmpdir
|
|
30
|
-
|
|
31
|
-
function fixtmpdir (cache) {
|
|
32
|
-
return fixOwner(cache, path.join(cache, 'tmp'))
|
|
25
|
+
return withTempDir(path.join(cache, 'tmp'), cb, opts)
|
|
33
26
|
}
|