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,81 @@
|
|
|
1
|
+
const conversions = require('./conversions');
|
|
2
|
+
const route = require('./route');
|
|
3
|
+
|
|
4
|
+
const convert = {};
|
|
5
|
+
|
|
6
|
+
const models = Object.keys(conversions);
|
|
7
|
+
|
|
8
|
+
function wrapRaw(fn) {
|
|
9
|
+
const wrappedFn = function (...args) {
|
|
10
|
+
const arg0 = args[0];
|
|
11
|
+
if (arg0 === undefined || arg0 === null) {
|
|
12
|
+
return arg0;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
if (arg0.length > 1) {
|
|
16
|
+
args = arg0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
return fn(args);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// Preserve .conversion property if there is one
|
|
23
|
+
if ('conversion' in fn) {
|
|
24
|
+
wrappedFn.conversion = fn.conversion;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return wrappedFn;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function wrapRounded(fn) {
|
|
31
|
+
const wrappedFn = function (...args) {
|
|
32
|
+
const arg0 = args[0];
|
|
33
|
+
|
|
34
|
+
if (arg0 === undefined || arg0 === null) {
|
|
35
|
+
return arg0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (arg0.length > 1) {
|
|
39
|
+
args = arg0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const result = fn(args);
|
|
43
|
+
|
|
44
|
+
// We're assuming the result is an array here.
|
|
45
|
+
// see notice in conversions.js; don't use box types
|
|
46
|
+
// in conversion functions.
|
|
47
|
+
if (typeof result === 'object') {
|
|
48
|
+
for (let len = result.length, i = 0; i < len; i++) {
|
|
49
|
+
result[i] = Math.round(result[i]);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return result;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// Preserve .conversion property if there is one
|
|
57
|
+
if ('conversion' in fn) {
|
|
58
|
+
wrappedFn.conversion = fn.conversion;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return wrappedFn;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
models.forEach(fromModel => {
|
|
65
|
+
convert[fromModel] = {};
|
|
66
|
+
|
|
67
|
+
Object.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});
|
|
68
|
+
Object.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});
|
|
69
|
+
|
|
70
|
+
const routes = route(fromModel);
|
|
71
|
+
const routeModels = Object.keys(routes);
|
|
72
|
+
|
|
73
|
+
routeModels.forEach(toModel => {
|
|
74
|
+
const fn = routes[toModel];
|
|
75
|
+
|
|
76
|
+
convert[fromModel][toModel] = wrapRounded(fn);
|
|
77
|
+
convert[fromModel][toModel].raw = wrapRaw(fn);
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
module.exports = convert;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "color-convert",
|
|
3
|
+
"description": "Plain color conversion functions",
|
|
4
|
+
"version": "2.0.1",
|
|
5
|
+
"author": "Heather Arthur <fayearthur@gmail.com>",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "Qix-/color-convert",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"pretest": "xo",
|
|
10
|
+
"test": "node test/basic.js"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=7.0.0"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"color",
|
|
17
|
+
"colour",
|
|
18
|
+
"convert",
|
|
19
|
+
"converter",
|
|
20
|
+
"conversion",
|
|
21
|
+
"rgb",
|
|
22
|
+
"hsl",
|
|
23
|
+
"hsv",
|
|
24
|
+
"hwb",
|
|
25
|
+
"cmyk",
|
|
26
|
+
"ansi",
|
|
27
|
+
"ansi16"
|
|
28
|
+
],
|
|
29
|
+
"files": [
|
|
30
|
+
"index.js",
|
|
31
|
+
"conversions.js",
|
|
32
|
+
"route.js"
|
|
33
|
+
],
|
|
34
|
+
"xo": {
|
|
35
|
+
"rules": {
|
|
36
|
+
"default-case": 0,
|
|
37
|
+
"no-inline-comments": 0,
|
|
38
|
+
"operator-linebreak": 0
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"chalk": "^2.4.2",
|
|
43
|
+
"xo": "^0.24.0"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"color-name": "~1.1.4"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
const conversions = require('./conversions');
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
This function routes a model to all other models.
|
|
5
|
+
|
|
6
|
+
all functions that are routed have a property `.conversion` attached
|
|
7
|
+
to the returned synthetic function. This property is an array
|
|
8
|
+
of strings, each with the steps in between the 'from' and 'to'
|
|
9
|
+
color models (inclusive).
|
|
10
|
+
|
|
11
|
+
conversions that are not possible simply are not included.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
function buildGraph() {
|
|
15
|
+
const graph = {};
|
|
16
|
+
// https://jsperf.com/object-keys-vs-for-in-with-closure/3
|
|
17
|
+
const models = Object.keys(conversions);
|
|
18
|
+
|
|
19
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
20
|
+
graph[models[i]] = {
|
|
21
|
+
// http://jsperf.com/1-vs-infinity
|
|
22
|
+
// micro-opt, but this is simple.
|
|
23
|
+
distance: -1,
|
|
24
|
+
parent: null
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
return graph;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// https://en.wikipedia.org/wiki/Breadth-first_search
|
|
32
|
+
function deriveBFS(fromModel) {
|
|
33
|
+
const graph = buildGraph();
|
|
34
|
+
const queue = [fromModel]; // Unshift -> queue -> pop
|
|
35
|
+
|
|
36
|
+
graph[fromModel].distance = 0;
|
|
37
|
+
|
|
38
|
+
while (queue.length) {
|
|
39
|
+
const current = queue.pop();
|
|
40
|
+
const adjacents = Object.keys(conversions[current]);
|
|
41
|
+
|
|
42
|
+
for (let len = adjacents.length, i = 0; i < len; i++) {
|
|
43
|
+
const adjacent = adjacents[i];
|
|
44
|
+
const node = graph[adjacent];
|
|
45
|
+
|
|
46
|
+
if (node.distance === -1) {
|
|
47
|
+
node.distance = graph[current].distance + 1;
|
|
48
|
+
node.parent = current;
|
|
49
|
+
queue.unshift(adjacent);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
return graph;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function link(from, to) {
|
|
58
|
+
return function (args) {
|
|
59
|
+
return to(from(args));
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function wrapConversion(toModel, graph) {
|
|
64
|
+
const path = [graph[toModel].parent, toModel];
|
|
65
|
+
let fn = conversions[graph[toModel].parent][toModel];
|
|
66
|
+
|
|
67
|
+
let cur = graph[toModel].parent;
|
|
68
|
+
while (graph[cur].parent) {
|
|
69
|
+
path.unshift(graph[cur].parent);
|
|
70
|
+
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
71
|
+
cur = graph[cur].parent;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
fn.conversion = path;
|
|
75
|
+
return fn;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
module.exports = function (fromModel) {
|
|
79
|
+
const graph = deriveBFS(fromModel);
|
|
80
|
+
const conversion = {};
|
|
81
|
+
|
|
82
|
+
const models = Object.keys(graph);
|
|
83
|
+
for (let len = models.length, i = 0; i < len; i++) {
|
|
84
|
+
const toModel = models[i];
|
|
85
|
+
const node = graph[toModel];
|
|
86
|
+
|
|
87
|
+
if (node.parent === null) {
|
|
88
|
+
// No possible conversion, or this node is the source model.
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
conversion[toModel] = wrapConversion(toModel, graph);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
return conversion;
|
|
96
|
+
};
|
|
97
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
Copyright (c) 2015 Dmitry Ivanov
|
|
3
|
+
|
|
4
|
+
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:
|
|
5
|
+
|
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
7
|
+
|
|
8
|
+
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,152 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
"aliceblue": [240, 248, 255],
|
|
5
|
+
"antiquewhite": [250, 235, 215],
|
|
6
|
+
"aqua": [0, 255, 255],
|
|
7
|
+
"aquamarine": [127, 255, 212],
|
|
8
|
+
"azure": [240, 255, 255],
|
|
9
|
+
"beige": [245, 245, 220],
|
|
10
|
+
"bisque": [255, 228, 196],
|
|
11
|
+
"black": [0, 0, 0],
|
|
12
|
+
"blanchedalmond": [255, 235, 205],
|
|
13
|
+
"blue": [0, 0, 255],
|
|
14
|
+
"blueviolet": [138, 43, 226],
|
|
15
|
+
"brown": [165, 42, 42],
|
|
16
|
+
"burlywood": [222, 184, 135],
|
|
17
|
+
"cadetblue": [95, 158, 160],
|
|
18
|
+
"chartreuse": [127, 255, 0],
|
|
19
|
+
"chocolate": [210, 105, 30],
|
|
20
|
+
"coral": [255, 127, 80],
|
|
21
|
+
"cornflowerblue": [100, 149, 237],
|
|
22
|
+
"cornsilk": [255, 248, 220],
|
|
23
|
+
"crimson": [220, 20, 60],
|
|
24
|
+
"cyan": [0, 255, 255],
|
|
25
|
+
"darkblue": [0, 0, 139],
|
|
26
|
+
"darkcyan": [0, 139, 139],
|
|
27
|
+
"darkgoldenrod": [184, 134, 11],
|
|
28
|
+
"darkgray": [169, 169, 169],
|
|
29
|
+
"darkgreen": [0, 100, 0],
|
|
30
|
+
"darkgrey": [169, 169, 169],
|
|
31
|
+
"darkkhaki": [189, 183, 107],
|
|
32
|
+
"darkmagenta": [139, 0, 139],
|
|
33
|
+
"darkolivegreen": [85, 107, 47],
|
|
34
|
+
"darkorange": [255, 140, 0],
|
|
35
|
+
"darkorchid": [153, 50, 204],
|
|
36
|
+
"darkred": [139, 0, 0],
|
|
37
|
+
"darksalmon": [233, 150, 122],
|
|
38
|
+
"darkseagreen": [143, 188, 143],
|
|
39
|
+
"darkslateblue": [72, 61, 139],
|
|
40
|
+
"darkslategray": [47, 79, 79],
|
|
41
|
+
"darkslategrey": [47, 79, 79],
|
|
42
|
+
"darkturquoise": [0, 206, 209],
|
|
43
|
+
"darkviolet": [148, 0, 211],
|
|
44
|
+
"deeppink": [255, 20, 147],
|
|
45
|
+
"deepskyblue": [0, 191, 255],
|
|
46
|
+
"dimgray": [105, 105, 105],
|
|
47
|
+
"dimgrey": [105, 105, 105],
|
|
48
|
+
"dodgerblue": [30, 144, 255],
|
|
49
|
+
"firebrick": [178, 34, 34],
|
|
50
|
+
"floralwhite": [255, 250, 240],
|
|
51
|
+
"forestgreen": [34, 139, 34],
|
|
52
|
+
"fuchsia": [255, 0, 255],
|
|
53
|
+
"gainsboro": [220, 220, 220],
|
|
54
|
+
"ghostwhite": [248, 248, 255],
|
|
55
|
+
"gold": [255, 215, 0],
|
|
56
|
+
"goldenrod": [218, 165, 32],
|
|
57
|
+
"gray": [128, 128, 128],
|
|
58
|
+
"green": [0, 128, 0],
|
|
59
|
+
"greenyellow": [173, 255, 47],
|
|
60
|
+
"grey": [128, 128, 128],
|
|
61
|
+
"honeydew": [240, 255, 240],
|
|
62
|
+
"hotpink": [255, 105, 180],
|
|
63
|
+
"indianred": [205, 92, 92],
|
|
64
|
+
"indigo": [75, 0, 130],
|
|
65
|
+
"ivory": [255, 255, 240],
|
|
66
|
+
"khaki": [240, 230, 140],
|
|
67
|
+
"lavender": [230, 230, 250],
|
|
68
|
+
"lavenderblush": [255, 240, 245],
|
|
69
|
+
"lawngreen": [124, 252, 0],
|
|
70
|
+
"lemonchiffon": [255, 250, 205],
|
|
71
|
+
"lightblue": [173, 216, 230],
|
|
72
|
+
"lightcoral": [240, 128, 128],
|
|
73
|
+
"lightcyan": [224, 255, 255],
|
|
74
|
+
"lightgoldenrodyellow": [250, 250, 210],
|
|
75
|
+
"lightgray": [211, 211, 211],
|
|
76
|
+
"lightgreen": [144, 238, 144],
|
|
77
|
+
"lightgrey": [211, 211, 211],
|
|
78
|
+
"lightpink": [255, 182, 193],
|
|
79
|
+
"lightsalmon": [255, 160, 122],
|
|
80
|
+
"lightseagreen": [32, 178, 170],
|
|
81
|
+
"lightskyblue": [135, 206, 250],
|
|
82
|
+
"lightslategray": [119, 136, 153],
|
|
83
|
+
"lightslategrey": [119, 136, 153],
|
|
84
|
+
"lightsteelblue": [176, 196, 222],
|
|
85
|
+
"lightyellow": [255, 255, 224],
|
|
86
|
+
"lime": [0, 255, 0],
|
|
87
|
+
"limegreen": [50, 205, 50],
|
|
88
|
+
"linen": [250, 240, 230],
|
|
89
|
+
"magenta": [255, 0, 255],
|
|
90
|
+
"maroon": [128, 0, 0],
|
|
91
|
+
"mediumaquamarine": [102, 205, 170],
|
|
92
|
+
"mediumblue": [0, 0, 205],
|
|
93
|
+
"mediumorchid": [186, 85, 211],
|
|
94
|
+
"mediumpurple": [147, 112, 219],
|
|
95
|
+
"mediumseagreen": [60, 179, 113],
|
|
96
|
+
"mediumslateblue": [123, 104, 238],
|
|
97
|
+
"mediumspringgreen": [0, 250, 154],
|
|
98
|
+
"mediumturquoise": [72, 209, 204],
|
|
99
|
+
"mediumvioletred": [199, 21, 133],
|
|
100
|
+
"midnightblue": [25, 25, 112],
|
|
101
|
+
"mintcream": [245, 255, 250],
|
|
102
|
+
"mistyrose": [255, 228, 225],
|
|
103
|
+
"moccasin": [255, 228, 181],
|
|
104
|
+
"navajowhite": [255, 222, 173],
|
|
105
|
+
"navy": [0, 0, 128],
|
|
106
|
+
"oldlace": [253, 245, 230],
|
|
107
|
+
"olive": [128, 128, 0],
|
|
108
|
+
"olivedrab": [107, 142, 35],
|
|
109
|
+
"orange": [255, 165, 0],
|
|
110
|
+
"orangered": [255, 69, 0],
|
|
111
|
+
"orchid": [218, 112, 214],
|
|
112
|
+
"palegoldenrod": [238, 232, 170],
|
|
113
|
+
"palegreen": [152, 251, 152],
|
|
114
|
+
"paleturquoise": [175, 238, 238],
|
|
115
|
+
"palevioletred": [219, 112, 147],
|
|
116
|
+
"papayawhip": [255, 239, 213],
|
|
117
|
+
"peachpuff": [255, 218, 185],
|
|
118
|
+
"peru": [205, 133, 63],
|
|
119
|
+
"pink": [255, 192, 203],
|
|
120
|
+
"plum": [221, 160, 221],
|
|
121
|
+
"powderblue": [176, 224, 230],
|
|
122
|
+
"purple": [128, 0, 128],
|
|
123
|
+
"rebeccapurple": [102, 51, 153],
|
|
124
|
+
"red": [255, 0, 0],
|
|
125
|
+
"rosybrown": [188, 143, 143],
|
|
126
|
+
"royalblue": [65, 105, 225],
|
|
127
|
+
"saddlebrown": [139, 69, 19],
|
|
128
|
+
"salmon": [250, 128, 114],
|
|
129
|
+
"sandybrown": [244, 164, 96],
|
|
130
|
+
"seagreen": [46, 139, 87],
|
|
131
|
+
"seashell": [255, 245, 238],
|
|
132
|
+
"sienna": [160, 82, 45],
|
|
133
|
+
"silver": [192, 192, 192],
|
|
134
|
+
"skyblue": [135, 206, 235],
|
|
135
|
+
"slateblue": [106, 90, 205],
|
|
136
|
+
"slategray": [112, 128, 144],
|
|
137
|
+
"slategrey": [112, 128, 144],
|
|
138
|
+
"snow": [255, 250, 250],
|
|
139
|
+
"springgreen": [0, 255, 127],
|
|
140
|
+
"steelblue": [70, 130, 180],
|
|
141
|
+
"tan": [210, 180, 140],
|
|
142
|
+
"teal": [0, 128, 128],
|
|
143
|
+
"thistle": [216, 191, 216],
|
|
144
|
+
"tomato": [255, 99, 71],
|
|
145
|
+
"turquoise": [64, 224, 208],
|
|
146
|
+
"violet": [238, 130, 238],
|
|
147
|
+
"wheat": [245, 222, 179],
|
|
148
|
+
"white": [255, 255, 255],
|
|
149
|
+
"whitesmoke": [245, 245, 245],
|
|
150
|
+
"yellow": [255, 255, 0],
|
|
151
|
+
"yellowgreen": [154, 205, 50]
|
|
152
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "color-name",
|
|
3
|
+
"version": "1.1.4",
|
|
4
|
+
"description": "A list of color names and its values",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"index.js"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"test": "node test.js"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git@github.com:colorjs/color-name.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"color-name",
|
|
18
|
+
"color",
|
|
19
|
+
"color-keyword",
|
|
20
|
+
"keyword"
|
|
21
|
+
],
|
|
22
|
+
"author": "DY <dfcreative@gmail.com>",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"bugs": {
|
|
25
|
+
"url": "https://github.com/colorjs/color-name/issues"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/colorjs/color-name"
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Made With MOXY Lda <hello@moxy.studio>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const cp = require('child_process');
|
|
4
|
+
const parse = require('./lib/parse');
|
|
5
|
+
const enoent = require('./lib/enoent');
|
|
6
|
+
|
|
7
|
+
function spawn(command, args, options) {
|
|
8
|
+
// Parse the arguments
|
|
9
|
+
const parsed = parse(command, args, options);
|
|
10
|
+
|
|
11
|
+
// Spawn the child process
|
|
12
|
+
const spawned = cp.spawn(parsed.command, parsed.args, parsed.options);
|
|
13
|
+
|
|
14
|
+
// Hook into child process "exit" event to emit an error if the command
|
|
15
|
+
// does not exists, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
16
|
+
enoent.hookChildProcess(spawned, parsed);
|
|
17
|
+
|
|
18
|
+
return spawned;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function spawnSync(command, args, options) {
|
|
22
|
+
// Parse the arguments
|
|
23
|
+
const parsed = parse(command, args, options);
|
|
24
|
+
|
|
25
|
+
// Spawn the child process
|
|
26
|
+
const result = cp.spawnSync(parsed.command, parsed.args, parsed.options);
|
|
27
|
+
|
|
28
|
+
// Analyze if the command does not exist, see: https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
29
|
+
result.error = result.error || enoent.verifyENOENTSync(result.status, parsed);
|
|
30
|
+
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
module.exports = spawn;
|
|
35
|
+
module.exports.spawn = spawn;
|
|
36
|
+
module.exports.sync = spawnSync;
|
|
37
|
+
|
|
38
|
+
module.exports._parse = parse;
|
|
39
|
+
module.exports._enoent = enoent;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const isWin = process.platform === 'win32';
|
|
4
|
+
|
|
5
|
+
function notFoundError(original, syscall) {
|
|
6
|
+
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
7
|
+
code: 'ENOENT',
|
|
8
|
+
errno: 'ENOENT',
|
|
9
|
+
syscall: `${syscall} ${original.command}`,
|
|
10
|
+
path: original.command,
|
|
11
|
+
spawnargs: original.args,
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function hookChildProcess(cp, parsed) {
|
|
16
|
+
if (!isWin) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const originalEmit = cp.emit;
|
|
21
|
+
|
|
22
|
+
cp.emit = function (name, arg1) {
|
|
23
|
+
// If emitting "exit" event and exit code is 1, we need to check if
|
|
24
|
+
// the command exists and emit an "error" instead
|
|
25
|
+
// See https://github.com/IndigoUnited/node-cross-spawn/issues/16
|
|
26
|
+
if (name === 'exit') {
|
|
27
|
+
const err = verifyENOENT(arg1, parsed, 'spawn');
|
|
28
|
+
|
|
29
|
+
if (err) {
|
|
30
|
+
return originalEmit.call(cp, 'error', err);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
return originalEmit.apply(cp, arguments); // eslint-disable-line prefer-rest-params
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function verifyENOENT(status, parsed) {
|
|
39
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
40
|
+
return notFoundError(parsed.original, 'spawn');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function verifyENOENTSync(status, parsed) {
|
|
47
|
+
if (isWin && status === 1 && !parsed.file) {
|
|
48
|
+
return notFoundError(parsed.original, 'spawnSync');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
module.exports = {
|
|
55
|
+
hookChildProcess,
|
|
56
|
+
verifyENOENT,
|
|
57
|
+
verifyENOENTSync,
|
|
58
|
+
notFoundError,
|
|
59
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const path = require('path');
|
|
4
|
+
const resolveCommand = require('./util/resolveCommand');
|
|
5
|
+
const escape = require('./util/escape');
|
|
6
|
+
const readShebang = require('./util/readShebang');
|
|
7
|
+
|
|
8
|
+
const isWin = process.platform === 'win32';
|
|
9
|
+
const isExecutableRegExp = /\.(?:com|exe)$/i;
|
|
10
|
+
const isCmdShimRegExp = /node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;
|
|
11
|
+
|
|
12
|
+
function detectShebang(parsed) {
|
|
13
|
+
parsed.file = resolveCommand(parsed);
|
|
14
|
+
|
|
15
|
+
const shebang = parsed.file && readShebang(parsed.file);
|
|
16
|
+
|
|
17
|
+
if (shebang) {
|
|
18
|
+
parsed.args.unshift(parsed.file);
|
|
19
|
+
parsed.command = shebang;
|
|
20
|
+
|
|
21
|
+
return resolveCommand(parsed);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return parsed.file;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function parseNonShell(parsed) {
|
|
28
|
+
if (!isWin) {
|
|
29
|
+
return parsed;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// Detect & add support for shebangs
|
|
33
|
+
const commandFile = detectShebang(parsed);
|
|
34
|
+
|
|
35
|
+
// We don't need a shell if the command filename is an executable
|
|
36
|
+
const needsShell = !isExecutableRegExp.test(commandFile);
|
|
37
|
+
|
|
38
|
+
// If a shell is required, use cmd.exe and take care of escaping everything correctly
|
|
39
|
+
// Note that `forceShell` is an hidden option used only in tests
|
|
40
|
+
if (parsed.options.forceShell || needsShell) {
|
|
41
|
+
// Need to double escape meta chars if the command is a cmd-shim located in `node_modules/.bin/`
|
|
42
|
+
// The cmd-shim simply calls execute the package bin file with NodeJS, proxying any argument
|
|
43
|
+
// Because the escape of metachars with ^ gets interpreted when the cmd.exe is first called,
|
|
44
|
+
// we need to double escape them
|
|
45
|
+
const needsDoubleEscapeMetaChars = isCmdShimRegExp.test(commandFile);
|
|
46
|
+
|
|
47
|
+
// Normalize posix paths into OS compatible paths (e.g.: foo/bar -> foo\bar)
|
|
48
|
+
// This is necessary otherwise it will always fail with ENOENT in those cases
|
|
49
|
+
parsed.command = path.normalize(parsed.command);
|
|
50
|
+
|
|
51
|
+
// Escape command & arguments
|
|
52
|
+
parsed.command = escape.command(parsed.command);
|
|
53
|
+
parsed.args = parsed.args.map((arg) => escape.argument(arg, needsDoubleEscapeMetaChars));
|
|
54
|
+
|
|
55
|
+
const shellCommand = [parsed.command].concat(parsed.args).join(' ');
|
|
56
|
+
|
|
57
|
+
parsed.args = ['/d', '/s', '/c', `"${shellCommand}"`];
|
|
58
|
+
parsed.command = process.env.comspec || 'cmd.exe';
|
|
59
|
+
parsed.options.windowsVerbatimArguments = true; // Tell node's spawn that the arguments are already escaped
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return parsed;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function parse(command, args, options) {
|
|
66
|
+
// Normalize arguments, similar to nodejs
|
|
67
|
+
if (args && !Array.isArray(args)) {
|
|
68
|
+
options = args;
|
|
69
|
+
args = null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
args = args ? args.slice(0) : []; // Clone array to avoid changing the original
|
|
73
|
+
options = Object.assign({}, options); // Clone object to avoid changing the original
|
|
74
|
+
|
|
75
|
+
// Build our parsed object
|
|
76
|
+
const parsed = {
|
|
77
|
+
command,
|
|
78
|
+
args,
|
|
79
|
+
options,
|
|
80
|
+
file: undefined,
|
|
81
|
+
original: {
|
|
82
|
+
command,
|
|
83
|
+
args,
|
|
84
|
+
},
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// Delegate further parsing to shell or non-shell
|
|
88
|
+
return options.shell ? parsed : parseNonShell(parsed);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
module.exports = parse;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// See http://www.robvanderwoude.com/escapechars.php
|
|
4
|
+
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
5
|
+
|
|
6
|
+
function escapeCommand(arg) {
|
|
7
|
+
// Escape meta chars
|
|
8
|
+
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
9
|
+
|
|
10
|
+
return arg;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function escapeArgument(arg, doubleEscapeMetaChars) {
|
|
14
|
+
// Convert to string
|
|
15
|
+
arg = `${arg}`;
|
|
16
|
+
|
|
17
|
+
// Algorithm below is based on https://qntm.org/cmd
|
|
18
|
+
|
|
19
|
+
// Sequence of backslashes followed by a double quote:
|
|
20
|
+
// double up all the backslashes and escape the double quote
|
|
21
|
+
arg = arg.replace(/(\\*)"/g, '$1$1\\"');
|
|
22
|
+
|
|
23
|
+
// Sequence of backslashes followed by the end of the string
|
|
24
|
+
// (which will become a double quote later):
|
|
25
|
+
// double up all the backslashes
|
|
26
|
+
arg = arg.replace(/(\\*)$/, '$1$1');
|
|
27
|
+
|
|
28
|
+
// All other backslashes occur literally
|
|
29
|
+
|
|
30
|
+
// Quote the whole thing:
|
|
31
|
+
arg = `"${arg}"`;
|
|
32
|
+
|
|
33
|
+
// Escape meta chars
|
|
34
|
+
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
35
|
+
|
|
36
|
+
// Double escape meta chars if necessary
|
|
37
|
+
if (doubleEscapeMetaChars) {
|
|
38
|
+
arg = arg.replace(metaCharsRegExp, '^$1');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return arg;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports.command = escapeCommand;
|
|
45
|
+
module.exports.argument = escapeArgument;
|