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
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "lru-cache",
|
|
3
|
+
"description": "A cache object that deletes the least-recently-used items.",
|
|
4
|
+
"version": "9.1.2",
|
|
5
|
+
"author": "Isaac Z. Schlueter <i@izs.me>",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"mru",
|
|
8
|
+
"lru",
|
|
9
|
+
"cache"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm run prepare",
|
|
14
|
+
"preprepare": "rm -rf dist",
|
|
15
|
+
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
16
|
+
"postprepare": "bash fixup.sh",
|
|
17
|
+
"pretest": "npm run prepare",
|
|
18
|
+
"presnap": "npm run prepare",
|
|
19
|
+
"test": "c8 tap",
|
|
20
|
+
"snap": "c8 tap",
|
|
21
|
+
"preversion": "npm test",
|
|
22
|
+
"postversion": "npm publish",
|
|
23
|
+
"prepublishOnly": "git push origin --follow-tags",
|
|
24
|
+
"format": "prettier --write .",
|
|
25
|
+
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts",
|
|
26
|
+
"benchmark-results-typedoc": "bash scripts/benchmark-results-typedoc.sh",
|
|
27
|
+
"prebenchmark": "npm run prepare",
|
|
28
|
+
"benchmark": "make -C benchmark",
|
|
29
|
+
"preprofile": "npm run prepare",
|
|
30
|
+
"profile": "make -C benchmark profile"
|
|
31
|
+
},
|
|
32
|
+
"main": "./dist/cjs/index.js",
|
|
33
|
+
"module": "./dist/mjs/index.js",
|
|
34
|
+
"exports": {
|
|
35
|
+
"./min": {
|
|
36
|
+
"import": {
|
|
37
|
+
"types": "./dist/mjs/index.d.ts",
|
|
38
|
+
"default": "./dist/mjs/index.min.js"
|
|
39
|
+
},
|
|
40
|
+
"require": {
|
|
41
|
+
"types": "./dist/cjs/index.d.ts",
|
|
42
|
+
"default": "./dist/cjs/index.min.js"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
".": {
|
|
46
|
+
"import": {
|
|
47
|
+
"types": "./dist/mjs/index.d.ts",
|
|
48
|
+
"default": "./dist/mjs/index.js"
|
|
49
|
+
},
|
|
50
|
+
"require": {
|
|
51
|
+
"types": "./dist/cjs/index.d.ts",
|
|
52
|
+
"default": "./dist/cjs/index.js"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"repository": "git://github.com/isaacs/node-lru-cache.git",
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@size-limit/preset-small-lib": "^7.0.8",
|
|
59
|
+
"@types/node": "^20.2.5",
|
|
60
|
+
"@types/tap": "^15.0.6",
|
|
61
|
+
"benchmark": "^2.1.4",
|
|
62
|
+
"c8": "^7.11.2",
|
|
63
|
+
"clock-mock": "^1.0.6",
|
|
64
|
+
"esbuild": "^0.17.11",
|
|
65
|
+
"eslint-config-prettier": "^8.5.0",
|
|
66
|
+
"marked": "^4.2.12",
|
|
67
|
+
"mkdirp": "^2.1.5",
|
|
68
|
+
"prettier": "^2.6.2",
|
|
69
|
+
"size-limit": "^7.0.8",
|
|
70
|
+
"tap": "^16.3.4",
|
|
71
|
+
"ts-node": "^10.9.1",
|
|
72
|
+
"tslib": "^2.4.0",
|
|
73
|
+
"typedoc": "^0.24.6",
|
|
74
|
+
"typescript": "^5.0.4"
|
|
75
|
+
},
|
|
76
|
+
"license": "ISC",
|
|
77
|
+
"files": [
|
|
78
|
+
"dist"
|
|
79
|
+
],
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": "14 || >=16.14"
|
|
82
|
+
},
|
|
83
|
+
"prettier": {
|
|
84
|
+
"semi": false,
|
|
85
|
+
"printWidth": 70,
|
|
86
|
+
"tabWidth": 2,
|
|
87
|
+
"useTabs": false,
|
|
88
|
+
"singleQuote": true,
|
|
89
|
+
"jsxSingleQuote": false,
|
|
90
|
+
"bracketSameLine": true,
|
|
91
|
+
"arrowParens": "avoid",
|
|
92
|
+
"endOfLine": "lf"
|
|
93
|
+
},
|
|
94
|
+
"tap": {
|
|
95
|
+
"coverage": false,
|
|
96
|
+
"node-arg": [
|
|
97
|
+
"--expose-gc",
|
|
98
|
+
"-r",
|
|
99
|
+
"ts-node/register"
|
|
100
|
+
],
|
|
101
|
+
"ts": false
|
|
102
|
+
},
|
|
103
|
+
"size-limit": [
|
|
104
|
+
{
|
|
105
|
+
"path": "./dist/mjs/index.js"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "path-scurry",
|
|
3
|
+
"version": "1.9.2",
|
|
4
|
+
"description": "walk paths fast and efficiently",
|
|
5
|
+
"author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me)",
|
|
6
|
+
"main": "./dist/cjs/index.js",
|
|
7
|
+
"module": "./dist/mjs/index.js",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": {
|
|
11
|
+
"types": "./dist/mjs/index.d.ts",
|
|
12
|
+
"default": "./dist/mjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"require": {
|
|
15
|
+
"types": "./dist/cjs/index.d.ts",
|
|
16
|
+
"default": "./dist/cjs/index.js"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
23
|
+
"license": "BlueOak-1.0.0",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"preversion": "npm test",
|
|
26
|
+
"postversion": "npm publish",
|
|
27
|
+
"prepublishOnly": "git push origin --follow-tags",
|
|
28
|
+
"preprepare": "rm -rf dist",
|
|
29
|
+
"prepare": "tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
30
|
+
"postprepare": "bash ./scripts/fixup.sh",
|
|
31
|
+
"pretest": "npm run prepare",
|
|
32
|
+
"presnap": "npm run prepare",
|
|
33
|
+
"test": "c8 tap",
|
|
34
|
+
"snap": "c8 tap",
|
|
35
|
+
"format": "prettier --write . --loglevel warn",
|
|
36
|
+
"typedoc": "typedoc --tsconfig tsconfig-esm.json ./src/*.ts",
|
|
37
|
+
"bench": "bash ./scripts/bench.sh"
|
|
38
|
+
},
|
|
39
|
+
"prettier": {
|
|
40
|
+
"semi": false,
|
|
41
|
+
"printWidth": 75,
|
|
42
|
+
"tabWidth": 2,
|
|
43
|
+
"useTabs": false,
|
|
44
|
+
"singleQuote": true,
|
|
45
|
+
"jsxSingleQuote": false,
|
|
46
|
+
"bracketSameLine": true,
|
|
47
|
+
"arrowParens": "avoid",
|
|
48
|
+
"endOfLine": "lf"
|
|
49
|
+
},
|
|
50
|
+
"tap": {
|
|
51
|
+
"coverage": false,
|
|
52
|
+
"node-arg": [
|
|
53
|
+
"--no-warnings",
|
|
54
|
+
"--loader",
|
|
55
|
+
"ts-node/esm"
|
|
56
|
+
],
|
|
57
|
+
"ts": false
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@nodelib/fs.walk": "^1.2.8",
|
|
61
|
+
"@types/node": "^20.1.4",
|
|
62
|
+
"@types/tap": "^15.0.7",
|
|
63
|
+
"c8": "^7.12.0",
|
|
64
|
+
"eslint-config-prettier": "^8.6.0",
|
|
65
|
+
"mkdirp": "^3.0.0",
|
|
66
|
+
"prettier": "^2.8.3",
|
|
67
|
+
"rimraf": "^4.1.2",
|
|
68
|
+
"tap": "^16.3.4",
|
|
69
|
+
"ts-node": "^10.9.1",
|
|
70
|
+
"typedoc": "^0.23.24",
|
|
71
|
+
"typescript": "^5.0.4"
|
|
72
|
+
},
|
|
73
|
+
"engines": {
|
|
74
|
+
"node": ">=16 || 14 >=14.17"
|
|
75
|
+
},
|
|
76
|
+
"funding": {
|
|
77
|
+
"url": "https://github.com/sponsors/isaacs"
|
|
78
|
+
},
|
|
79
|
+
"repository": {
|
|
80
|
+
"type": "git",
|
|
81
|
+
"url": "git+https://github.com/isaacs/path-walker"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"lru-cache": "^9.1.1",
|
|
85
|
+
"minipass": "^5.0.0 || ^6.0.2"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -16,6 +16,7 @@ class Comparator {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
comp = comp.trim().split(/\s+/).join(' ')
|
|
19
20
|
debug('comparator', comp, options)
|
|
20
21
|
this.options = options
|
|
21
22
|
this.loose = !!options.loose
|
|
@@ -133,7 +134,7 @@ class Comparator {
|
|
|
133
134
|
module.exports = Comparator
|
|
134
135
|
|
|
135
136
|
const parseOptions = require('../internal/parse-options')
|
|
136
|
-
const { re, t } = require('../internal/re')
|
|
137
|
+
const { safeRe: re, t } = require('../internal/re')
|
|
137
138
|
const cmp = require('../functions/cmp')
|
|
138
139
|
const debug = require('../internal/debug')
|
|
139
140
|
const SemVer = require('./semver')
|
|
@@ -26,19 +26,26 @@ class Range {
|
|
|
26
26
|
this.loose = !!options.loose
|
|
27
27
|
this.includePrerelease = !!options.includePrerelease
|
|
28
28
|
|
|
29
|
-
// First
|
|
29
|
+
// First reduce all whitespace as much as possible so we do not have to rely
|
|
30
|
+
// on potentially slow regexes like \s*. This is then stored and used for
|
|
31
|
+
// future error messages as well.
|
|
30
32
|
this.raw = range
|
|
31
|
-
|
|
33
|
+
.trim()
|
|
34
|
+
.split(/\s+/)
|
|
35
|
+
.join(' ')
|
|
36
|
+
|
|
37
|
+
// First, split on ||
|
|
38
|
+
this.set = this.raw
|
|
32
39
|
.split('||')
|
|
33
40
|
// map the range to a 2d array of comparators
|
|
34
|
-
.map(r => this.parseRange(r
|
|
41
|
+
.map(r => this.parseRange(r))
|
|
35
42
|
// throw out any comparator lists that are empty
|
|
36
43
|
// this generally means that it was not a valid range, which is allowed
|
|
37
44
|
// in loose mode, but will still throw if the WHOLE range is invalid.
|
|
38
45
|
.filter(c => c.length)
|
|
39
46
|
|
|
40
47
|
if (!this.set.length) {
|
|
41
|
-
throw new TypeError(`Invalid SemVer Range: ${
|
|
48
|
+
throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
// if we have any that are not the null set, throw out null sets.
|
|
@@ -64,9 +71,7 @@ class Range {
|
|
|
64
71
|
|
|
65
72
|
format () {
|
|
66
73
|
this.range = this.set
|
|
67
|
-
.map((comps) =>
|
|
68
|
-
return comps.join(' ').trim()
|
|
69
|
-
})
|
|
74
|
+
.map((comps) => comps.join(' ').trim())
|
|
70
75
|
.join('||')
|
|
71
76
|
.trim()
|
|
72
77
|
return this.range
|
|
@@ -77,8 +82,6 @@ class Range {
|
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
parseRange (range) {
|
|
80
|
-
range = range.trim()
|
|
81
|
-
|
|
82
85
|
// memoize range parsing for performance.
|
|
83
86
|
// this is a very hot path, and fully deterministic.
|
|
84
87
|
const memoOpts =
|
|
@@ -95,18 +98,18 @@ class Range {
|
|
|
95
98
|
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
|
|
96
99
|
range = range.replace(hr, hyphenReplace(this.options.includePrerelease))
|
|
97
100
|
debug('hyphen replace', range)
|
|
101
|
+
|
|
98
102
|
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
|
|
99
103
|
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
|
|
100
104
|
debug('comparator trim', range)
|
|
101
105
|
|
|
102
106
|
// `~ 1.2.3` => `~1.2.3`
|
|
103
107
|
range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
|
|
108
|
+
debug('tilde trim', range)
|
|
104
109
|
|
|
105
110
|
// `^ 1.2.3` => `^1.2.3`
|
|
106
111
|
range = range.replace(re[t.CARETTRIM], caretTrimReplace)
|
|
107
|
-
|
|
108
|
-
// normalize spaces
|
|
109
|
-
range = range.split(/\s+/).join(' ')
|
|
112
|
+
debug('caret trim', range)
|
|
110
113
|
|
|
111
114
|
// At this point, the range is completely trimmed and
|
|
112
115
|
// ready to be split into comparators.
|
|
@@ -203,7 +206,7 @@ const Comparator = require('./comparator')
|
|
|
203
206
|
const debug = require('../internal/debug')
|
|
204
207
|
const SemVer = require('./semver')
|
|
205
208
|
const {
|
|
206
|
-
re,
|
|
209
|
+
safeRe: re,
|
|
207
210
|
t,
|
|
208
211
|
comparatorTrimReplace,
|
|
209
212
|
tildeTrimReplace,
|
|
@@ -257,10 +260,13 @@ const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
|
|
|
257
260
|
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
|
|
258
261
|
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
|
|
259
262
|
// ~0.0.1 --> >=0.0.1 <0.1.0-0
|
|
260
|
-
const replaceTildes = (comp, options) =>
|
|
261
|
-
comp
|
|
262
|
-
|
|
263
|
-
|
|
263
|
+
const replaceTildes = (comp, options) => {
|
|
264
|
+
return comp
|
|
265
|
+
.trim()
|
|
266
|
+
.split(/\s+/)
|
|
267
|
+
.map((c) => replaceTilde(c, options))
|
|
268
|
+
.join(' ')
|
|
269
|
+
}
|
|
264
270
|
|
|
265
271
|
const replaceTilde = (comp, options) => {
|
|
266
272
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
|
|
@@ -298,10 +304,13 @@ const replaceTilde = (comp, options) => {
|
|
|
298
304
|
// ^1.2.0 --> >=1.2.0 <2.0.0-0
|
|
299
305
|
// ^0.0.1 --> >=0.0.1 <0.0.2-0
|
|
300
306
|
// ^0.1.0 --> >=0.1.0 <0.2.0-0
|
|
301
|
-
const replaceCarets = (comp, options) =>
|
|
302
|
-
comp
|
|
303
|
-
|
|
304
|
-
|
|
307
|
+
const replaceCarets = (comp, options) => {
|
|
308
|
+
return comp
|
|
309
|
+
.trim()
|
|
310
|
+
.split(/\s+/)
|
|
311
|
+
.map((c) => replaceCaret(c, options))
|
|
312
|
+
.join(' ')
|
|
313
|
+
}
|
|
305
314
|
|
|
306
315
|
const replaceCaret = (comp, options) => {
|
|
307
316
|
debug('caret', comp, options)
|
|
@@ -358,9 +367,10 @@ const replaceCaret = (comp, options) => {
|
|
|
358
367
|
|
|
359
368
|
const replaceXRanges = (comp, options) => {
|
|
360
369
|
debug('replaceXRanges', comp, options)
|
|
361
|
-
return comp
|
|
362
|
-
|
|
363
|
-
|
|
370
|
+
return comp
|
|
371
|
+
.split(/\s+/)
|
|
372
|
+
.map((c) => replaceXRange(c, options))
|
|
373
|
+
.join(' ')
|
|
364
374
|
}
|
|
365
375
|
|
|
366
376
|
const replaceXRange = (comp, options) => {
|
|
@@ -443,12 +453,15 @@ const replaceXRange = (comp, options) => {
|
|
|
443
453
|
const replaceStars = (comp, options) => {
|
|
444
454
|
debug('replaceStars', comp, options)
|
|
445
455
|
// Looseness is ignored here. star is always as loose as it gets!
|
|
446
|
-
return comp
|
|
456
|
+
return comp
|
|
457
|
+
.trim()
|
|
458
|
+
.replace(re[t.STAR], '')
|
|
447
459
|
}
|
|
448
460
|
|
|
449
461
|
const replaceGTE0 = (comp, options) => {
|
|
450
462
|
debug('replaceGTE0', comp, options)
|
|
451
|
-
return comp
|
|
463
|
+
return comp
|
|
464
|
+
.trim()
|
|
452
465
|
.replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
|
|
453
466
|
}
|
|
454
467
|
|
|
@@ -486,7 +499,7 @@ const hyphenReplace = incPr => ($0,
|
|
|
486
499
|
to = `<=${to}`
|
|
487
500
|
}
|
|
488
501
|
|
|
489
|
-
return
|
|
502
|
+
return `${from} ${to}`.trim()
|
|
490
503
|
}
|
|
491
504
|
|
|
492
505
|
const testSet = (set, version, options) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const debug = require('../internal/debug')
|
|
2
2
|
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
|
|
3
|
-
const { re, t } = require('../internal/re')
|
|
3
|
+
const { safeRe: re, t } = require('../internal/re')
|
|
4
4
|
|
|
5
5
|
const parseOptions = require('../internal/parse-options')
|
|
6
6
|
const { compareIdentifiers } = require('../internal/identifiers')
|
|
@@ -291,8 +291,10 @@ class SemVer {
|
|
|
291
291
|
default:
|
|
292
292
|
throw new Error(`invalid increment argument: ${release}`)
|
|
293
293
|
}
|
|
294
|
-
this.format()
|
|
295
|
-
this.
|
|
294
|
+
this.raw = this.format()
|
|
295
|
+
if (this.build.length) {
|
|
296
|
+
this.raw += `+${this.build.join('.')}`
|
|
297
|
+
}
|
|
296
298
|
return this
|
|
297
299
|
}
|
|
298
300
|
}
|
|
@@ -13,6 +13,35 @@ const diff = (version1, version2) => {
|
|
|
13
13
|
const highVersion = v1Higher ? v1 : v2
|
|
14
14
|
const lowVersion = v1Higher ? v2 : v1
|
|
15
15
|
const highHasPre = !!highVersion.prerelease.length
|
|
16
|
+
const lowHasPre = !!lowVersion.prerelease.length
|
|
17
|
+
|
|
18
|
+
if (lowHasPre && !highHasPre) {
|
|
19
|
+
// Going from prerelease -> no prerelease requires some special casing
|
|
20
|
+
|
|
21
|
+
// If the low version has only a major, then it will always be a major
|
|
22
|
+
// Some examples:
|
|
23
|
+
// 1.0.0-1 -> 1.0.0
|
|
24
|
+
// 1.0.0-1 -> 1.1.1
|
|
25
|
+
// 1.0.0-1 -> 2.0.0
|
|
26
|
+
if (!lowVersion.patch && !lowVersion.minor) {
|
|
27
|
+
return 'major'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Otherwise it can be determined by checking the high version
|
|
31
|
+
|
|
32
|
+
if (highVersion.patch) {
|
|
33
|
+
// anything higher than a patch bump would result in the wrong version
|
|
34
|
+
return 'patch'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (highVersion.minor) {
|
|
38
|
+
// anything higher than a minor bump would result in the wrong version
|
|
39
|
+
return 'minor'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// bumping major/minor/patch all have same result
|
|
43
|
+
return 'major'
|
|
44
|
+
}
|
|
16
45
|
|
|
17
46
|
// add the `pre` prefix if we are going to a prerelease version
|
|
18
47
|
const prefix = highHasPre ? 'pre' : ''
|
|
@@ -29,26 +58,8 @@ const diff = (version1, version2) => {
|
|
|
29
58
|
return prefix + 'patch'
|
|
30
59
|
}
|
|
31
60
|
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
if (highHasPre) {
|
|
36
|
-
// high and low are preleases
|
|
37
|
-
return 'prerelease'
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
if (lowVersion.patch) {
|
|
41
|
-
// anything higher than a patch bump would result in the wrong version
|
|
42
|
-
return 'patch'
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
if (lowVersion.minor) {
|
|
46
|
-
// anything higher than a minor bump would result in the wrong version
|
|
47
|
-
return 'minor'
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// bumping major/minor/patch all have same result
|
|
51
|
-
return 'major'
|
|
61
|
+
// high and low are preleases
|
|
62
|
+
return 'prerelease'
|
|
52
63
|
}
|
|
53
64
|
|
|
54
65
|
module.exports = diff
|
|
@@ -9,6 +9,10 @@ const MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER ||
|
|
|
9
9
|
// Max safe segment length for coercion.
|
|
10
10
|
const MAX_SAFE_COMPONENT_LENGTH = 16
|
|
11
11
|
|
|
12
|
+
// Max safe length for a build identifier. The max length minus 6 characters for
|
|
13
|
+
// the shortest version with a build 0.0.0+BUILD.
|
|
14
|
+
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH - 6
|
|
15
|
+
|
|
12
16
|
const RELEASE_TYPES = [
|
|
13
17
|
'major',
|
|
14
18
|
'premajor',
|
|
@@ -22,6 +26,7 @@ const RELEASE_TYPES = [
|
|
|
22
26
|
module.exports = {
|
|
23
27
|
MAX_LENGTH,
|
|
24
28
|
MAX_SAFE_COMPONENT_LENGTH,
|
|
29
|
+
MAX_SAFE_BUILD_LENGTH,
|
|
25
30
|
MAX_SAFE_INTEGER,
|
|
26
31
|
RELEASE_TYPES,
|
|
27
32
|
SEMVER_SPEC_VERSION,
|
|
@@ -1,19 +1,45 @@
|
|
|
1
|
-
const { MAX_SAFE_COMPONENT_LENGTH } = require('./constants')
|
|
1
|
+
const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = require('./constants')
|
|
2
2
|
const debug = require('./debug')
|
|
3
3
|
exports = module.exports = {}
|
|
4
4
|
|
|
5
5
|
// The actual regexps go on exports.re
|
|
6
6
|
const re = exports.re = []
|
|
7
|
+
const safeRe = exports.safeRe = []
|
|
7
8
|
const src = exports.src = []
|
|
8
9
|
const t = exports.t = {}
|
|
9
10
|
let R = 0
|
|
10
11
|
|
|
12
|
+
const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
|
|
13
|
+
|
|
14
|
+
// Replace some greedy regex tokens to prevent regex dos issues. These regex are
|
|
15
|
+
// used internally via the safeRe object since all inputs in this library get
|
|
16
|
+
// normalized first to trim and collapse all extra whitespace. The original
|
|
17
|
+
// regexes are exported for userland consumption and lower level usage. A
|
|
18
|
+
// future breaking change could export the safer regex only with a note that
|
|
19
|
+
// all input should have extra whitespace removed.
|
|
20
|
+
const safeRegexReplacements = [
|
|
21
|
+
['\\s', 1],
|
|
22
|
+
['\\d', MAX_SAFE_COMPONENT_LENGTH],
|
|
23
|
+
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
const makeSafeRegex = (value) => {
|
|
27
|
+
for (const [token, max] of safeRegexReplacements) {
|
|
28
|
+
value = value
|
|
29
|
+
.split(`${token}*`).join(`${token}{0,${max}}`)
|
|
30
|
+
.split(`${token}+`).join(`${token}{1,${max}}`)
|
|
31
|
+
}
|
|
32
|
+
return value
|
|
33
|
+
}
|
|
34
|
+
|
|
11
35
|
const createToken = (name, value, isGlobal) => {
|
|
36
|
+
const safe = makeSafeRegex(value)
|
|
12
37
|
const index = R++
|
|
13
38
|
debug(name, index, value)
|
|
14
39
|
t[name] = index
|
|
15
40
|
src[index] = value
|
|
16
41
|
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
|
|
42
|
+
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
|
|
17
43
|
}
|
|
18
44
|
|
|
19
45
|
// The following Regular Expressions can be used for tokenizing,
|
|
@@ -23,13 +49,13 @@ const createToken = (name, value, isGlobal) => {
|
|
|
23
49
|
// A single `0`, or a non-zero digit followed by zero or more digits.
|
|
24
50
|
|
|
25
51
|
createToken('NUMERICIDENTIFIER', '0|[1-9]\\d*')
|
|
26
|
-
createToken('NUMERICIDENTIFIERLOOSE', '
|
|
52
|
+
createToken('NUMERICIDENTIFIERLOOSE', '\\d+')
|
|
27
53
|
|
|
28
54
|
// ## Non-numeric Identifier
|
|
29
55
|
// Zero or more digits, followed by a letter or hyphen, and then zero or
|
|
30
56
|
// more letters, digits, or hyphens.
|
|
31
57
|
|
|
32
|
-
createToken('NONNUMERICIDENTIFIER',
|
|
58
|
+
createToken('NONNUMERICIDENTIFIER', `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`)
|
|
33
59
|
|
|
34
60
|
// ## Main Version
|
|
35
61
|
// Three dot-separated numeric identifiers.
|
|
@@ -64,7 +90,7 @@ createToken('PRERELEASELOOSE', `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]
|
|
|
64
90
|
// ## Build Metadata Identifier
|
|
65
91
|
// Any combination of digits, letters, or hyphens.
|
|
66
92
|
|
|
67
|
-
createToken('BUILDIDENTIFIER',
|
|
93
|
+
createToken('BUILDIDENTIFIER', `${LETTERDASHNUMBER}+`)
|
|
68
94
|
|
|
69
95
|
// ## Build Metadata
|
|
70
96
|
// Plus sign, followed by one or more period-separated build metadata
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.3",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@npmcli/eslint-config": "^4.0.0",
|
|
17
|
-
"@npmcli/template-oss": "4.
|
|
17
|
+
"@npmcli/template-oss": "4.15.1",
|
|
18
18
|
"tap": "^16.0.0"
|
|
19
19
|
},
|
|
20
20
|
"license": "ISC",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"range.bnf"
|
|
38
38
|
],
|
|
39
39
|
"tap": {
|
|
40
|
-
"
|
|
40
|
+
"timeout": 30,
|
|
41
41
|
"coverage-map": "map.js",
|
|
42
42
|
"nyc-arg": [
|
|
43
43
|
"--exclude",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"author": "GitHub Inc.",
|
|
54
54
|
"templateOSS": {
|
|
55
55
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
56
|
-
"version": "4.
|
|
56
|
+
"version": "4.15.1",
|
|
57
57
|
"engines": ">=10",
|
|
58
58
|
"ciVersions": [
|
|
59
59
|
"10.0.0",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const shebangRegex = require('shebang-regex');
|
|
3
|
+
|
|
4
|
+
module.exports = (string = '') => {
|
|
5
|
+
const match = string.match(shebangRegex);
|
|
6
|
+
|
|
7
|
+
if (!match) {
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const [path, argument] = match[0].replace(/#! ?/, '').split(' ');
|
|
12
|
+
const binary = path.split('/').pop();
|
|
13
|
+
|
|
14
|
+
if (binary === 'env') {
|
|
15
|
+
return argument;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
return argument ? `${binary} ${argument}` : binary;
|
|
19
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Kevin Mårtensson <kevinmartensson@gmail.com> (github.com/kevva)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "shebang-command",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "Get the command from a shebang",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "kevva/shebang-command",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Kevin Mårtensson",
|
|
9
|
+
"email": "kevinmartensson@gmail.com",
|
|
10
|
+
"url": "github.com/kevva"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=8"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js"
|
|
20
|
+
],
|
|
21
|
+
"keywords": [
|
|
22
|
+
"cmd",
|
|
23
|
+
"command",
|
|
24
|
+
"parse",
|
|
25
|
+
"shebang"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"shebang-regex": "^3.0.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"ava": "^2.3.0",
|
|
32
|
+
"xo": "^0.24.0"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|