pnpm 8.6.2 → 8.6.4
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_modules/.modules.yaml +81 -24
- package/dist/node_modules/.pnpm/lock.yaml +235 -91
- package/dist/node_modules/@isaacs/cliui/LICENSE.txt +14 -0
- 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/node_modules/string-width/index.js +54 -0
- package/dist/node_modules/@isaacs/cliui/node_modules/string-width/license +9 -0
- package/dist/node_modules/@isaacs/cliui/node_modules/string-width/package.json +59 -0
- package/dist/node_modules/@isaacs/cliui/package.json +86 -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 +11 -9
- 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/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/cacache/lib/content/read.js +1 -76
- package/dist/node_modules/cacache/lib/content/rm.js +2 -4
- package/dist/node_modules/cacache/lib/content/write.js +40 -24
- package/dist/node_modules/cacache/lib/entry-index.js +25 -99
- 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/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 +28 -28
- package/dist/node_modules/cacache/node_modules/glob/LICENSE +1 -1
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/package.json +4 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/bin.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/bin.js +270 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/bin.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/glob.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/glob.js +234 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/glob.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/has-magic.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/has-magic.js +27 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/has-magic.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/ignore.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/ignore.js +103 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/ignore.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/index.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/index.js +68 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/index.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/pattern.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/pattern.js +219 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/pattern.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/processor.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/processor.js +309 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/processor.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/walker.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/walker.js +358 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/cjs/src/walker.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/glob.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/glob.js +230 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/glob.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/has-magic.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/has-magic.js +23 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/has-magic.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/ignore.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/ignore.js +99 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/ignore.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/index.js +56 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/package.json +4 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/pattern.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/pattern.js +215 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/pattern.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/processor.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/processor.js +302 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/processor.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/walker.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/walker.js +352 -0
- package/dist/node_modules/cacache/node_modules/glob/dist/mjs/walker.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/glob/package.json +78 -35
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/assert-valid-pattern.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/assert-valid-pattern.js +14 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/ast.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/ast.js +589 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/ast.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/brace-expressions.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/brace-expressions.js +152 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/escape.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/escape.js +22 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/escape.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/index.js +1011 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/package.json +3 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/unescape.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/unescape.js +24 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/cjs/unescape.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/assert-valid-pattern.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/assert-valid-pattern.js +10 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/assert-valid-pattern.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/ast.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/ast.js +585 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/ast.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/brace-expressions.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/brace-expressions.js +148 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/brace-expressions.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/escape.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/escape.js +18 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/escape.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/index.js +995 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/package.json +3 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/unescape.d.ts.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/unescape.js +20 -0
- package/dist/node_modules/cacache/node_modules/minimatch/dist/mjs/unescape.js.map +1 -0
- package/dist/node_modules/cacache/node_modules/minimatch/package.json +66 -15
- package/dist/node_modules/cacache/package.json +19 -21
- 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/cross-spawn/LICENSE +21 -0
- 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/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/exponential-backoff/LICENSE +202 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js +118 -0
- package/dist/node_modules/exponential-backoff/dist/backoff.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js +25 -0
- package/dist/node_modules/exponential-backoff/dist/delay/always/always.delay.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js +45 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.base.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js +17 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.factory.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js +3 -0
- package/dist/node_modules/exponential-backoff/dist/delay/delay.interface.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js +82 -0
- package/dist/node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js +8 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/full/full.jitter.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js +15 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/jitter.factory.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js +7 -0
- package/dist/node_modules/exponential-backoff/dist/jitter/no/no.jitter.js.map +1 -0
- package/dist/node_modules/exponential-backoff/dist/options.js +31 -0
- package/dist/node_modules/exponential-backoff/dist/options.js.map +1 -0
- package/dist/node_modules/exponential-backoff/package.json +61 -0
- package/dist/node_modules/{promise-inflight → foreground-child}/LICENSE +5 -4
- package/dist/node_modules/foreground-child/dist/cjs/all-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/cjs/all-signals.js +58 -0
- package/dist/node_modules/foreground-child/dist/cjs/all-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/cjs/index.js +154 -0
- package/dist/node_modules/foreground-child/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/cjs/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/cjs/watchdog.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/cjs/watchdog.js +43 -0
- package/dist/node_modules/foreground-child/dist/cjs/watchdog.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/mjs/all-signals.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/mjs/all-signals.js +52 -0
- package/dist/node_modules/foreground-child/dist/mjs/all-signals.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/mjs/index.js +146 -0
- package/dist/node_modules/foreground-child/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/foreground-child/dist/mjs/package.json +3 -0
- package/dist/node_modules/foreground-child/dist/mjs/watchdog.d.ts.map +1 -0
- package/dist/node_modules/foreground-child/dist/mjs/watchdog.js +39 -0
- package/dist/node_modules/foreground-child/dist/mjs/watchdog.js.map +1 -0
- package/dist/node_modules/foreground-child/package.json +83 -0
- package/dist/node_modules/fs-minipass/lib/index.js +443 -0
- package/dist/node_modules/fs-minipass/package.json +28 -13
- package/dist/node_modules/gauge/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/gauge/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/gauge/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/gauge/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dist/node_modules/gauge/node_modules/signal-exit/package.json +38 -0
- package/dist/node_modules/gauge/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/gauge/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/gauge/node_modules/strip-ansi/package.json +54 -0
- package/dist/node_modules/jackspeak/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/cjs/index.js +723 -0
- package/dist/node_modules/jackspeak/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/cjs/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/cjs/parse-args-cjs.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/cjs/parse-args-cjs.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/cjs/parse-args.js +42 -0
- package/dist/node_modules/jackspeak/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/mjs/index.js +713 -0
- package/dist/node_modules/jackspeak/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/mjs/package.json +3 -0
- package/dist/node_modules/jackspeak/dist/mjs/parse-args-esm.d.ts.map +1 -0
- package/dist/node_modules/jackspeak/dist/mjs/parse-args-esm.js.map +1 -0
- package/dist/node_modules/jackspeak/dist/mjs/parse-args.js +19 -0
- package/dist/node_modules/jackspeak/package.json +98 -0
- package/dist/node_modules/make-fetch-happen/lib/cache/entry.js +26 -1
- package/dist/node_modules/make-fetch-happen/lib/options.js +2 -0
- package/dist/node_modules/make-fetch-happen/lib/remote.js +1 -1
- package/dist/node_modules/make-fetch-happen/package.json +16 -17
- package/dist/node_modules/minipass/LICENSE +1 -1
- package/dist/node_modules/minipass/index.js +299 -246
- package/dist/node_modules/minipass/package.json +27 -7
- package/dist/node_modules/{tar → minipass-collect}/node_modules/minipass/LICENSE +1 -1
- package/dist/node_modules/minipass-collect/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/{tar → minipass-collect}/node_modules/minipass/package.json +7 -27
- package/dist/node_modules/minipass-fetch/lib/blob.js +1 -1
- package/dist/node_modules/minipass-fetch/lib/body.js +1 -1
- package/dist/node_modules/minipass-fetch/lib/index.js +15 -3
- package/dist/node_modules/minipass-fetch/lib/request.js +2 -1
- package/dist/node_modules/minipass-fetch/package.json +13 -11
- 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/node-gyp/.github/workflows/tests.yml +9 -6
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/generator/eclipse.py +1 -1
- package/dist/node_modules/node-gyp/gyp/pylib/gyp/xcodeproj_file.py +1 -1
- package/dist/node_modules/node-gyp/lib/find-visualstudio.js +13 -2
- package/dist/node_modules/node-gyp/lib/install.js +174 -92
- package/dist/node_modules/node-gyp/package.json +7 -6
- package/dist/node_modules/node-gyp/update-gyp.py +1 -1
- 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/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/dist/cjs/index.js +1995 -0
- package/dist/node_modules/path-scurry/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/path-scurry/dist/cjs/package.json +3 -0
- package/dist/node_modules/path-scurry/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/dist/mjs/index.js +1960 -0
- package/dist/node_modules/path-scurry/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/path-scurry/dist/mjs/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/LICENSE +15 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.js +1395 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.min.js +2 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/index.min.js.map +7 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/cjs/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.js +1391 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.min.js +2 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/index.min.js.map +7 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/dist/mjs/package.json +3 -0
- package/dist/node_modules/path-scurry/node_modules/lru-cache/package.json +108 -0
- package/dist/node_modules/path-scurry/package.json +87 -0
- package/dist/node_modules/semver/classes/comparator.js +2 -1
- package/dist/node_modules/semver/classes/range.js +40 -27
- package/dist/node_modules/semver/classes/semver.js +5 -3
- package/dist/node_modules/semver/functions/coerce.js +1 -1
- package/dist/node_modules/semver/functions/diff.js +31 -20
- package/dist/node_modules/semver/internal/constants.js +5 -0
- package/dist/node_modules/semver/internal/re.js +30 -4
- package/dist/node_modules/semver/package.json +4 -4
- 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 +272 -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 +268 -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/ssri/lib/index.js +157 -101
- package/dist/node_modules/ssri/package.json +12 -10
- package/dist/node_modules/string-width/node_modules/ansi-regex/index.js +10 -0
- package/dist/node_modules/string-width/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/string-width/node_modules/ansi-regex/package.json +55 -0
- package/dist/node_modules/string-width/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/dist/node_modules/string-width/node_modules/emoji-regex/es2015/index.js +6 -0
- package/dist/node_modules/string-width/node_modules/emoji-regex/es2015/text.js +6 -0
- package/dist/node_modules/string-width/node_modules/emoji-regex/index.js +6 -0
- package/dist/node_modules/string-width/node_modules/emoji-regex/package.json +50 -0
- package/dist/node_modules/string-width/node_modules/emoji-regex/text.js +6 -0
- package/dist/node_modules/string-width/node_modules/strip-ansi/index.js +4 -0
- package/dist/node_modules/string-width/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/string-width/node_modules/strip-ansi/package.json +54 -0
- 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/string-width-cjs/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- 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/{infer-owner → tar/node_modules/fs-minipass}/LICENSE +1 -1
- package/dist/node_modules/tar/node_modules/fs-minipass/node_modules/minipass/LICENSE +15 -0
- package/dist/node_modules/tar/node_modules/fs-minipass/node_modules/minipass/index.js +649 -0
- package/dist/node_modules/tar/node_modules/fs-minipass/node_modules/minipass/package.json +56 -0
- package/dist/node_modules/tar/node_modules/fs-minipass/package.json +39 -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/node_modules/string-width/index.js +54 -0
- package/dist/node_modules/wrap-ansi/node_modules/string-width/license +9 -0
- package/dist/node_modules/wrap-ansi/node_modules/string-width/package.json +59 -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/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 +30877 -17543
- package/package.json +3 -3
- 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/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/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/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/infer-owner/index.js +0 -71
- package/dist/node_modules/infer-owner/package.json +0 -26
- package/dist/node_modules/promise-inflight/inflight.js +0 -36
- package/dist/node_modules/promise-inflight/package.json +0 -24
- package/dist/node_modules/tar/node_modules/minipass/index.js +0 -702
- /package/dist/node_modules/@npmcli/fs/lib/{errors.js → cp/errors.js} +0 -0
- /package/dist/node_modules/{signal-exit → gauge/node_modules/signal-exit}/index.js +0 -0
- /package/dist/node_modules/{signal-exit → gauge/node_modules/signal-exit}/signals.js +0 -0
- /package/dist/node_modules/{tar/node_modules/minipass → minipass}/index.mjs +0 -0
- /package/dist/node_modules/{fs-minipass → tar/node_modules/fs-minipass}/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pnpm",
|
|
3
3
|
"description": "Fast, disk space efficient package manager",
|
|
4
|
-
"version": "8.6.
|
|
4
|
+
"version": "8.6.4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"pnpm": "bin/pnpm.cjs",
|
|
7
7
|
"pnpx": "bin/pnpx.cjs"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"bin"
|
|
17
17
|
],
|
|
18
18
|
"__optionalDependencies": {
|
|
19
|
-
"node-gyp": "^9.
|
|
19
|
+
"node-gyp": "^9.4.0"
|
|
20
20
|
},
|
|
21
21
|
"__devDependencies": {
|
|
22
22
|
"@pnpm/assert-project": "workspace:*",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
100
100
|
"read-yaml-file": "^2.1.0",
|
|
101
101
|
"render-help": "^1.0.3",
|
|
102
|
-
"semver": "^7.5.
|
|
102
|
+
"semver": "^7.5.3",
|
|
103
103
|
"split-cmd": "^1.0.1",
|
|
104
104
|
"strip-ansi": "^6.0.1",
|
|
105
105
|
"symlink-dir": "^5.1.1",
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
|
|
3
|
-
const { promisify } = require('util')
|
|
4
|
-
|
|
5
|
-
const handler = {
|
|
6
|
-
get: function (target, prop, receiver) {
|
|
7
|
-
if (typeof target[prop] !== 'function') {
|
|
8
|
-
return target[prop]
|
|
9
|
-
}
|
|
10
|
-
if (target[prop][promisify.custom]) {
|
|
11
|
-
return function () {
|
|
12
|
-
return Reflect.get(target, prop, receiver)[promisify.custom].apply(target, arguments)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return function () {
|
|
16
|
-
return new Promise((resolve, reject) => {
|
|
17
|
-
Reflect.get(target, prop, receiver).apply(target, [...arguments, function (err, result) {
|
|
18
|
-
if (err) {
|
|
19
|
-
return reject(err)
|
|
20
|
-
}
|
|
21
|
-
resolve(result)
|
|
22
|
-
}])
|
|
23
|
-
})
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
module.exports = function (thingToPromisify) {
|
|
29
|
-
if (typeof thingToPromisify === 'function') {
|
|
30
|
-
return promisify(thingToPromisify)
|
|
31
|
-
}
|
|
32
|
-
if (typeof thingToPromisify === 'object') {
|
|
33
|
-
return new Proxy(thingToPromisify, handler)
|
|
34
|
-
}
|
|
35
|
-
throw new TypeError('Can only promisify functions or objects')
|
|
36
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@gar/promisify",
|
|
3
|
-
"version": "1.1.3",
|
|
4
|
-
"description": "Promisify an entire class or object",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/wraithgar/gar-promisify.git"
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"lint": "standard",
|
|
12
|
-
"lint:fix": "standard --fix",
|
|
13
|
-
"test": "lab -a @hapi/code -t 100",
|
|
14
|
-
"posttest": "npm run lint"
|
|
15
|
-
},
|
|
16
|
-
"files": [
|
|
17
|
-
"index.js"
|
|
18
|
-
],
|
|
19
|
-
"keywords": [
|
|
20
|
-
"promisify",
|
|
21
|
-
"all",
|
|
22
|
-
"class",
|
|
23
|
-
"object"
|
|
24
|
-
],
|
|
25
|
-
"author": "Gar <gar+npm@danger.computer>",
|
|
26
|
-
"license": "MIT",
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@hapi/code": "^8.0.1",
|
|
29
|
-
"@hapi/lab": "^24.1.0",
|
|
30
|
-
"standard": "^16.0.3"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
const { dirname, resolve } = require('path')
|
|
2
|
-
const url = require('url')
|
|
3
|
-
|
|
4
|
-
const fs = require('../fs.js')
|
|
5
|
-
|
|
6
|
-
// given a path, find the owner of the nearest parent
|
|
7
|
-
const find = (path) => {
|
|
8
|
-
// if we have no getuid, permissions are irrelevant on this platform
|
|
9
|
-
if (!process.getuid) {
|
|
10
|
-
return {}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// fs methods accept URL objects with a scheme of file: so we need to unwrap
|
|
14
|
-
// those into an actual path string before we can resolve it
|
|
15
|
-
const resolved = path != null && path.href && path.origin
|
|
16
|
-
? resolve(url.fileURLToPath(path))
|
|
17
|
-
: resolve(path)
|
|
18
|
-
|
|
19
|
-
let stat
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
stat = fs.lstatSync(resolved)
|
|
23
|
-
} finally {
|
|
24
|
-
// if we got a stat, return its contents
|
|
25
|
-
if (stat) {
|
|
26
|
-
return { uid: stat.uid, gid: stat.gid }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// try the parent directory
|
|
30
|
-
if (resolved !== dirname(resolved)) {
|
|
31
|
-
return find(dirname(resolved))
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// no more parents, never got a stat, just return an empty object
|
|
35
|
-
return {}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// given a path, uid, and gid update the ownership of the path if necessary
|
|
40
|
-
const update = (path, uid, gid) => {
|
|
41
|
-
// nothing to update, just exit
|
|
42
|
-
if (uid === undefined && gid === undefined) {
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
try {
|
|
47
|
-
// see if the permissions are already the same, if they are we don't
|
|
48
|
-
// need to do anything, so return early
|
|
49
|
-
const stat = fs.statSync(path)
|
|
50
|
-
if (uid === stat.uid && gid === stat.gid) {
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
} catch {
|
|
54
|
-
// ignore errors
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
try {
|
|
58
|
-
fs.chownSync(path, uid, gid)
|
|
59
|
-
} catch {
|
|
60
|
-
// ignore errors
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// accepts a `path` and the `owner` property of an options object and normalizes
|
|
65
|
-
// it into an object with numerical `uid` and `gid`
|
|
66
|
-
const validate = (path, input) => {
|
|
67
|
-
let uid
|
|
68
|
-
let gid
|
|
69
|
-
|
|
70
|
-
if (typeof input === 'string' || typeof input === 'number') {
|
|
71
|
-
uid = input
|
|
72
|
-
gid = input
|
|
73
|
-
} else if (input && typeof input === 'object') {
|
|
74
|
-
uid = input.uid
|
|
75
|
-
gid = input.gid
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (uid === 'inherit' || gid === 'inherit') {
|
|
79
|
-
const owner = find(path)
|
|
80
|
-
if (uid === 'inherit') {
|
|
81
|
-
uid = owner.uid
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (gid === 'inherit') {
|
|
85
|
-
gid = owner.gid
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return { uid, gid }
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
module.exports = {
|
|
93
|
-
find,
|
|
94
|
-
update,
|
|
95
|
-
validate,
|
|
96
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
const { dirname, resolve } = require('path')
|
|
2
|
-
const url = require('url')
|
|
3
|
-
|
|
4
|
-
const fs = require('../fs.js')
|
|
5
|
-
|
|
6
|
-
// given a path, find the owner of the nearest parent
|
|
7
|
-
const find = async (path) => {
|
|
8
|
-
// if we have no getuid, permissions are irrelevant on this platform
|
|
9
|
-
if (!process.getuid) {
|
|
10
|
-
return {}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// fs methods accept URL objects with a scheme of file: so we need to unwrap
|
|
14
|
-
// those into an actual path string before we can resolve it
|
|
15
|
-
const resolved = path != null && path.href && path.origin
|
|
16
|
-
? resolve(url.fileURLToPath(path))
|
|
17
|
-
: resolve(path)
|
|
18
|
-
|
|
19
|
-
let stat
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
stat = await fs.lstat(resolved)
|
|
23
|
-
} finally {
|
|
24
|
-
// if we got a stat, return its contents
|
|
25
|
-
if (stat) {
|
|
26
|
-
return { uid: stat.uid, gid: stat.gid }
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// try the parent directory
|
|
30
|
-
if (resolved !== dirname(resolved)) {
|
|
31
|
-
return find(dirname(resolved))
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// no more parents, never got a stat, just return an empty object
|
|
35
|
-
return {}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// given a path, uid, and gid update the ownership of the path if necessary
|
|
40
|
-
const update = async (path, uid, gid) => {
|
|
41
|
-
// nothing to update, just exit
|
|
42
|
-
if (uid === undefined && gid === undefined) {
|
|
43
|
-
return
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
try {
|
|
47
|
-
// see if the permissions are already the same, if they are we don't
|
|
48
|
-
// need to do anything, so return early
|
|
49
|
-
const stat = await fs.stat(path)
|
|
50
|
-
if (uid === stat.uid && gid === stat.gid) {
|
|
51
|
-
return
|
|
52
|
-
}
|
|
53
|
-
} catch {
|
|
54
|
-
// ignore errors
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
try {
|
|
58
|
-
await fs.chown(path, uid, gid)
|
|
59
|
-
} catch {
|
|
60
|
-
// ignore errors
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// accepts a `path` and the `owner` property of an options object and normalizes
|
|
65
|
-
// it into an object with numerical `uid` and `gid`
|
|
66
|
-
const validate = async (path, input) => {
|
|
67
|
-
let uid
|
|
68
|
-
let gid
|
|
69
|
-
|
|
70
|
-
if (typeof input === 'string' || typeof input === 'number') {
|
|
71
|
-
uid = input
|
|
72
|
-
gid = input
|
|
73
|
-
} else if (input && typeof input === 'object') {
|
|
74
|
-
uid = input.uid
|
|
75
|
-
gid = input.gid
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (uid === 'inherit' || gid === 'inherit') {
|
|
79
|
-
const owner = await find(path)
|
|
80
|
-
if (uid === 'inherit') {
|
|
81
|
-
uid = owner.uid
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
if (gid === 'inherit') {
|
|
85
|
-
gid = owner.gid
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
return { uid, gid }
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
module.exports = {
|
|
93
|
-
find,
|
|
94
|
-
update,
|
|
95
|
-
validate,
|
|
96
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const fs = require('./fs.js')
|
|
2
|
-
const getOptions = require('./common/get-options.js')
|
|
3
|
-
const withOwner = require('./with-owner.js')
|
|
4
|
-
|
|
5
|
-
const copyFile = async (src, dest, opts) => {
|
|
6
|
-
const options = getOptions(opts, {
|
|
7
|
-
copy: ['mode'],
|
|
8
|
-
wrap: 'mode',
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
// the node core method as of 16.5.0 does not support the mode being in an
|
|
12
|
-
// object, so we have to pass the mode value directly
|
|
13
|
-
return withOwner(dest, () => fs.copyFile(src, dest, options.mode), opts)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
module.exports = copyFile
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const fs = require('fs')
|
|
2
|
-
const promisify = require('@gar/promisify')
|
|
3
|
-
|
|
4
|
-
const isLower = (s) => s === s.toLowerCase() && s !== s.toUpperCase()
|
|
5
|
-
|
|
6
|
-
const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
|
|
7
|
-
typeof v === 'function' && (k.endsWith('Sync') || !isLower(k[0]))
|
|
8
|
-
))
|
|
9
|
-
|
|
10
|
-
// this module returns the core fs async fns wrapped in a proxy that promisifies
|
|
11
|
-
// method calls within the getter. we keep it in a separate module so that the
|
|
12
|
-
// overridden methods have a consistent way to get to promisified fs methods
|
|
13
|
-
// without creating a circular dependency. the ctors and sync methods are kept untouched
|
|
14
|
-
module.exports = { ...promisify(fs), ...fsSync }
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const fs = require('./fs.js')
|
|
2
|
-
const getOptions = require('./common/get-options.js')
|
|
3
|
-
const withOwner = require('./with-owner.js')
|
|
4
|
-
|
|
5
|
-
// extends mkdir with the ability to specify an owner of the new dir
|
|
6
|
-
const mkdir = async (path, opts) => {
|
|
7
|
-
const options = getOptions(opts, {
|
|
8
|
-
copy: ['mode', 'recursive'],
|
|
9
|
-
wrap: 'mode',
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
return withOwner(
|
|
13
|
-
path,
|
|
14
|
-
() => fs.mkdir(path, options),
|
|
15
|
-
opts
|
|
16
|
-
)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
module.exports = mkdir
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const { dirname, sep } = require('path')
|
|
2
|
-
|
|
3
|
-
const fs = require('./fs.js')
|
|
4
|
-
const getOptions = require('./common/get-options.js')
|
|
5
|
-
const withOwner = require('./with-owner.js')
|
|
6
|
-
|
|
7
|
-
const mkdtemp = async (prefix, opts) => {
|
|
8
|
-
const options = getOptions(opts, {
|
|
9
|
-
copy: ['encoding'],
|
|
10
|
-
wrap: 'encoding',
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
// mkdtemp relies on the trailing path separator to indicate if it should
|
|
14
|
-
// create a directory inside of the prefix. if that's the case then the root
|
|
15
|
-
// we infer ownership from is the prefix itself, otherwise it's the dirname
|
|
16
|
-
// /tmp -> /tmpABCDEF, infers from /
|
|
17
|
-
// /tmp/ -> /tmp/ABCDEF, infers from /tmp
|
|
18
|
-
const root = prefix.endsWith(sep) ? prefix : dirname(prefix)
|
|
19
|
-
|
|
20
|
-
return withOwner(root, () => fs.mkdtemp(prefix, options), opts)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
module.exports = mkdtemp
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const fs = require('../fs.js')
|
|
2
|
-
const getOptions = require('../common/get-options.js')
|
|
3
|
-
const node = require('../common/node.js')
|
|
4
|
-
const polyfill = require('./polyfill.js')
|
|
5
|
-
|
|
6
|
-
// node 14.14.0 added fs.rm, which allows both the force and recursive options
|
|
7
|
-
const useNative = node.satisfies('>=14.14.0')
|
|
8
|
-
|
|
9
|
-
const rm = async (path, opts) => {
|
|
10
|
-
const options = getOptions(opts, {
|
|
11
|
-
copy: ['retryDelay', 'maxRetries', 'recursive', 'force'],
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
// the polyfill is tested separately from this module, no need to hack
|
|
15
|
-
// process.version to try to trigger it just for coverage
|
|
16
|
-
// istanbul ignore next
|
|
17
|
-
return useNative
|
|
18
|
-
? fs.rm(path, options)
|
|
19
|
-
: polyfill(path, options)
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
module.exports = rm
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
// this file is a modified version of the code in node core >=14.14.0
|
|
2
|
-
// which is, in turn, a modified version of the rimraf module on npm
|
|
3
|
-
// node core changes:
|
|
4
|
-
// - Use of the assert module has been replaced with core's error system.
|
|
5
|
-
// - All code related to the glob dependency has been removed.
|
|
6
|
-
// - Bring your own custom fs module is not currently supported.
|
|
7
|
-
// - Some basic code cleanup.
|
|
8
|
-
// changes here:
|
|
9
|
-
// - remove all callback related code
|
|
10
|
-
// - drop sync support
|
|
11
|
-
// - change assertions back to non-internal methods (see options.js)
|
|
12
|
-
// - throws ENOTDIR when rmdir gets an ENOENT for a path that exists in Windows
|
|
13
|
-
const errnos = require('os').constants.errno
|
|
14
|
-
const { join } = require('path')
|
|
15
|
-
const fs = require('../fs.js')
|
|
16
|
-
|
|
17
|
-
// error codes that mean we need to remove contents
|
|
18
|
-
const notEmptyCodes = new Set([
|
|
19
|
-
'ENOTEMPTY',
|
|
20
|
-
'EEXIST',
|
|
21
|
-
'EPERM',
|
|
22
|
-
])
|
|
23
|
-
|
|
24
|
-
// error codes we can retry later
|
|
25
|
-
const retryCodes = new Set([
|
|
26
|
-
'EBUSY',
|
|
27
|
-
'EMFILE',
|
|
28
|
-
'ENFILE',
|
|
29
|
-
'ENOTEMPTY',
|
|
30
|
-
'EPERM',
|
|
31
|
-
])
|
|
32
|
-
|
|
33
|
-
const isWindows = process.platform === 'win32'
|
|
34
|
-
|
|
35
|
-
const defaultOptions = {
|
|
36
|
-
retryDelay: 100,
|
|
37
|
-
maxRetries: 0,
|
|
38
|
-
recursive: false,
|
|
39
|
-
force: false,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// this is drastically simplified, but should be roughly equivalent to what
|
|
43
|
-
// node core throws
|
|
44
|
-
class ERR_FS_EISDIR extends Error {
|
|
45
|
-
constructor (path) {
|
|
46
|
-
super()
|
|
47
|
-
this.info = {
|
|
48
|
-
code: 'EISDIR',
|
|
49
|
-
message: 'is a directory',
|
|
50
|
-
path,
|
|
51
|
-
syscall: 'rm',
|
|
52
|
-
errno: errnos.EISDIR,
|
|
53
|
-
}
|
|
54
|
-
this.name = 'SystemError'
|
|
55
|
-
this.code = 'ERR_FS_EISDIR'
|
|
56
|
-
this.errno = errnos.EISDIR
|
|
57
|
-
this.syscall = 'rm'
|
|
58
|
-
this.path = path
|
|
59
|
-
this.message = `Path is a directory: ${this.syscall} returned ` +
|
|
60
|
-
`${this.info.code} (is a directory) ${path}`
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
toString () {
|
|
64
|
-
return `${this.name} [${this.code}]: ${this.message}`
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
class ENOTDIR extends Error {
|
|
69
|
-
constructor (path) {
|
|
70
|
-
super()
|
|
71
|
-
this.name = 'Error'
|
|
72
|
-
this.code = 'ENOTDIR'
|
|
73
|
-
this.errno = errnos.ENOTDIR
|
|
74
|
-
this.syscall = 'rmdir'
|
|
75
|
-
this.path = path
|
|
76
|
-
this.message = `not a directory, ${this.syscall} '${this.path}'`
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
toString () {
|
|
80
|
-
return `${this.name}: ${this.code}: ${this.message}`
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// force is passed separately here because we respect it for the first entry
|
|
85
|
-
// into rimraf only, any further calls that are spawned as a result (i.e. to
|
|
86
|
-
// delete content within the target) will ignore ENOENT errors
|
|
87
|
-
const rimraf = async (path, options, isTop = false) => {
|
|
88
|
-
const force = isTop ? options.force : true
|
|
89
|
-
const stat = await fs.lstat(path)
|
|
90
|
-
.catch((err) => {
|
|
91
|
-
// we only ignore ENOENT if we're forcing this call
|
|
92
|
-
if (err.code === 'ENOENT' && force) {
|
|
93
|
-
return
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
if (isWindows && err.code === 'EPERM') {
|
|
97
|
-
return fixEPERM(path, options, err, isTop)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
throw err
|
|
101
|
-
})
|
|
102
|
-
|
|
103
|
-
// no stat object here means either lstat threw an ENOENT, or lstat threw
|
|
104
|
-
// an EPERM and the fixPERM function took care of things. either way, we're
|
|
105
|
-
// already done, so return early
|
|
106
|
-
if (!stat) {
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
if (stat.isDirectory()) {
|
|
111
|
-
return rmdir(path, options, null, isTop)
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
return fs.unlink(path)
|
|
115
|
-
.catch((err) => {
|
|
116
|
-
if (err.code === 'ENOENT' && force) {
|
|
117
|
-
return
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
if (err.code === 'EISDIR') {
|
|
121
|
-
return rmdir(path, options, err, isTop)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
if (err.code === 'EPERM') {
|
|
125
|
-
// in windows, we handle this through fixEPERM which will also try to
|
|
126
|
-
// delete things again. everywhere else since deleting the target as a
|
|
127
|
-
// file didn't work we go ahead and try to delete it as a directory
|
|
128
|
-
return isWindows
|
|
129
|
-
? fixEPERM(path, options, err, isTop)
|
|
130
|
-
: rmdir(path, options, err, isTop)
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
throw err
|
|
134
|
-
})
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
const fixEPERM = async (path, options, originalErr, isTop) => {
|
|
138
|
-
const force = isTop ? options.force : true
|
|
139
|
-
const targetMissing = await fs.chmod(path, 0o666)
|
|
140
|
-
.catch((err) => {
|
|
141
|
-
if (err.code === 'ENOENT' && force) {
|
|
142
|
-
return true
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
throw originalErr
|
|
146
|
-
})
|
|
147
|
-
|
|
148
|
-
// got an ENOENT above, return now. no file = no problem
|
|
149
|
-
if (targetMissing) {
|
|
150
|
-
return
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
// this function does its own lstat rather than calling rimraf again to avoid
|
|
154
|
-
// infinite recursion for a repeating EPERM
|
|
155
|
-
const stat = await fs.lstat(path)
|
|
156
|
-
.catch((err) => {
|
|
157
|
-
if (err.code === 'ENOENT' && force) {
|
|
158
|
-
return
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
throw originalErr
|
|
162
|
-
})
|
|
163
|
-
|
|
164
|
-
if (!stat) {
|
|
165
|
-
return
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (stat.isDirectory()) {
|
|
169
|
-
return rmdir(path, options, originalErr, isTop)
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
return fs.unlink(path)
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
const rmdir = async (path, options, originalErr, isTop) => {
|
|
176
|
-
if (!options.recursive && isTop) {
|
|
177
|
-
throw originalErr || new ERR_FS_EISDIR(path)
|
|
178
|
-
}
|
|
179
|
-
const force = isTop ? options.force : true
|
|
180
|
-
|
|
181
|
-
return fs.rmdir(path)
|
|
182
|
-
.catch(async (err) => {
|
|
183
|
-
// in Windows, calling rmdir on a file path will fail with ENOENT rather
|
|
184
|
-
// than ENOTDIR. to determine if that's what happened, we have to do
|
|
185
|
-
// another lstat on the path. if the path isn't actually gone, we throw
|
|
186
|
-
// away the ENOENT and replace it with our own ENOTDIR
|
|
187
|
-
if (isWindows && err.code === 'ENOENT') {
|
|
188
|
-
const stillExists = await fs.lstat(path).then(() => true, () => false)
|
|
189
|
-
if (stillExists) {
|
|
190
|
-
err = new ENOTDIR(path)
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// not there, not a problem
|
|
195
|
-
if (err.code === 'ENOENT' && force) {
|
|
196
|
-
return
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
// we may not have originalErr if lstat tells us our target is a
|
|
200
|
-
// directory but that changes before we actually remove it, so
|
|
201
|
-
// only throw it here if it's set
|
|
202
|
-
if (originalErr && err.code === 'ENOTDIR') {
|
|
203
|
-
throw originalErr
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// the directory isn't empty, remove the contents and try again
|
|
207
|
-
if (notEmptyCodes.has(err.code)) {
|
|
208
|
-
const files = await fs.readdir(path)
|
|
209
|
-
await Promise.all(files.map((file) => {
|
|
210
|
-
const target = join(path, file)
|
|
211
|
-
return rimraf(target, options)
|
|
212
|
-
}))
|
|
213
|
-
return fs.rmdir(path)
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
throw err
|
|
217
|
-
})
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
const rm = async (path, opts) => {
|
|
221
|
-
const options = { ...defaultOptions, ...opts }
|
|
222
|
-
let retries = 0
|
|
223
|
-
|
|
224
|
-
const errHandler = async (err) => {
|
|
225
|
-
if (retryCodes.has(err.code) && ++retries < options.maxRetries) {
|
|
226
|
-
const delay = retries * options.retryDelay
|
|
227
|
-
await promiseTimeout(delay)
|
|
228
|
-
return rimraf(path, options, true).catch(errHandler)
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
throw err
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
return rimraf(path, options, true).catch(errHandler)
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const promiseTimeout = (ms) => new Promise((r) => setTimeout(r, ms))
|
|
238
|
-
|
|
239
|
-
module.exports = rm
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const getOptions = require('./common/get-options.js')
|
|
2
|
-
const owner = require('./common/owner-sync.js')
|
|
3
|
-
|
|
4
|
-
const withOwnerSync = (path, fn, opts) => {
|
|
5
|
-
const options = getOptions(opts, {
|
|
6
|
-
copy: ['owner'],
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
const { uid, gid } = owner.validate(path, options.owner)
|
|
10
|
-
|
|
11
|
-
const result = fn({ uid, gid })
|
|
12
|
-
|
|
13
|
-
owner.update(path, uid, gid)
|
|
14
|
-
if (typeof result === 'string') {
|
|
15
|
-
owner.update(result, uid, gid)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return result
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
module.exports = withOwnerSync
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const getOptions = require('./common/get-options.js')
|
|
2
|
-
const owner = require('./common/owner.js')
|
|
3
|
-
|
|
4
|
-
const withOwner = async (path, fn, opts) => {
|
|
5
|
-
const options = getOptions(opts, {
|
|
6
|
-
copy: ['owner'],
|
|
7
|
-
})
|
|
8
|
-
|
|
9
|
-
const { uid, gid } = await owner.validate(path, options.owner)
|
|
10
|
-
|
|
11
|
-
const result = await fn({ uid, gid })
|
|
12
|
-
|
|
13
|
-
await Promise.all([
|
|
14
|
-
owner.update(path, uid, gid),
|
|
15
|
-
typeof result === 'string' ? owner.update(result, uid, gid) : null,
|
|
16
|
-
])
|
|
17
|
-
|
|
18
|
-
return result
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
module.exports = withOwner
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const fs = require('./fs.js')
|
|
2
|
-
const getOptions = require('./common/get-options.js')
|
|
3
|
-
const withOwner = require('./with-owner.js')
|
|
4
|
-
|
|
5
|
-
const writeFile = async (file, data, opts) => {
|
|
6
|
-
const options = getOptions(opts, {
|
|
7
|
-
copy: ['encoding', 'mode', 'flag', 'signal'],
|
|
8
|
-
wrap: 'encoding',
|
|
9
|
-
})
|
|
10
|
-
|
|
11
|
-
return withOwner(file, () => fs.writeFile(file, data, options), opts)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
module.exports = writeFile
|