@oneblink/release-cli 1.1.1 → 1.2.0-beta.3
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/CHANGELOG.md +28 -0
- package/dist/bin.js +59 -59
- package/dist/startReleaseProcess.js +170 -170
- package/node_modules/@yarnpkg/lockfile/README.md +22 -0
- package/node_modules/@yarnpkg/lockfile/index.js +10273 -0
- package/node_modules/@yarnpkg/lockfile/package.json +19 -0
- package/node_modules/ansi-styles/index.js +165 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +60 -0
- package/node_modules/ansi-styles/readme.md +147 -0
- package/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/node_modules/balanced-match/LICENSE.md +21 -0
- package/node_modules/balanced-match/README.md +97 -0
- package/node_modules/balanced-match/index.js +62 -0
- package/node_modules/balanced-match/package.json +52 -0
- package/node_modules/brace-expansion/LICENSE +21 -0
- package/node_modules/brace-expansion/README.md +129 -0
- package/node_modules/brace-expansion/index.js +201 -0
- package/node_modules/brace-expansion/package.json +51 -0
- package/node_modules/braces/CHANGELOG.md +184 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +593 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +57 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +333 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +112 -0
- package/node_modules/braces/package.json +81 -0
- package/node_modules/chalk/index.js +228 -0
- package/node_modules/chalk/index.js.flow +93 -0
- package/node_modules/chalk/license +9 -0
- package/node_modules/chalk/package.json +75 -0
- package/node_modules/chalk/readme.md +314 -0
- package/node_modules/chalk/templates.js +128 -0
- package/node_modules/chalk/types/index.d.ts +97 -0
- package/node_modules/changelog-parser/.DS_Store +0 -0
- package/node_modules/changelog-parser/.travis.yml +7 -0
- package/node_modules/changelog-parser/CHANGELOG.md +128 -0
- package/node_modules/changelog-parser/CONTRIBUTING.md +55 -0
- package/node_modules/changelog-parser/LICENSE.md +15 -0
- package/node_modules/changelog-parser/README.md +247 -0
- package/node_modules/changelog-parser/bin/cli.js +19 -0
- package/node_modules/changelog-parser/index.js +201 -0
- package/node_modules/changelog-parser/package.json +54 -0
- package/node_modules/changelog-parser/test/fixtures/CHANGELOG.md +44 -0
- package/node_modules/changelog-parser/test/fixtures/expected.js +113 -0
- package/node_modules/changelog-parser/test/fixtures/remove-markdown-expected.js +113 -0
- package/node_modules/changelog-parser/test/index.js +105 -0
- package/node_modules/ci-info/CHANGELOG.md +78 -0
- package/node_modules/ci-info/LICENSE +21 -0
- package/node_modules/ci-info/README.md +108 -0
- package/node_modules/ci-info/index.js +66 -0
- package/node_modules/ci-info/package.json +40 -0
- package/node_modules/ci-info/vendors.json +153 -0
- package/node_modules/color-convert/CHANGELOG.md +54 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color-convert/index.js +78 -0
- package/node_modules/color-convert/package.json +50 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +29 -0
- package/node_modules/color-name/test.js +7 -0
- package/node_modules/concat-map/.travis.yml +4 -0
- package/node_modules/concat-map/LICENSE +18 -0
- package/node_modules/concat-map/README.markdown +62 -0
- package/node_modules/concat-map/example/map.js +6 -0
- package/node_modules/concat-map/index.js +13 -0
- package/node_modules/concat-map/package.json +47 -0
- package/node_modules/concat-map/test/map.js +39 -0
- package/node_modules/escape-string-regexp/index.js +11 -0
- package/node_modules/escape-string-regexp/license +21 -0
- package/node_modules/escape-string-regexp/package.json +45 -0
- package/node_modules/escape-string-regexp/readme.md +27 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +249 -0
- package/node_modules/fill-range/package.json +73 -0
- package/node_modules/find-yarn-workspace-root/CHANGELOG.md +53 -0
- package/node_modules/find-yarn-workspace-root/LICENSE +201 -0
- package/node_modules/find-yarn-workspace-root/README.md +56 -0
- package/node_modules/find-yarn-workspace-root/index.d.ts +3 -0
- package/node_modules/find-yarn-workspace-root/index.js +53 -0
- package/node_modules/find-yarn-workspace-root/package.json +38 -0
- package/node_modules/fs-extra/CHANGELOG.md +842 -0
- package/node_modules/fs-extra/LICENSE +15 -0
- package/node_modules/fs-extra/README.md +261 -0
- package/node_modules/fs-extra/lib/copy/copy.js +246 -0
- package/node_modules/fs-extra/lib/copy/index.js +6 -0
- package/node_modules/fs-extra/lib/copy-sync/copy-sync.js +193 -0
- package/node_modules/fs-extra/lib/copy-sync/index.js +5 -0
- package/node_modules/fs-extra/lib/empty/index.js +48 -0
- package/node_modules/fs-extra/lib/ensure/file.js +49 -0
- package/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/node_modules/fs-extra/lib/ensure/link.js +61 -0
- package/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/node_modules/fs-extra/lib/ensure/symlink.js +63 -0
- package/node_modules/fs-extra/lib/fs/index.js +104 -0
- package/node_modules/fs-extra/lib/index.js +28 -0
- package/node_modules/fs-extra/lib/json/index.js +16 -0
- package/node_modules/fs-extra/lib/json/jsonfile.js +12 -0
- package/node_modules/fs-extra/lib/json/output-json-sync.js +18 -0
- package/node_modules/fs-extra/lib/json/output-json.js +27 -0
- package/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js +54 -0
- package/node_modules/fs-extra/lib/mkdirs/mkdirs.js +63 -0
- package/node_modules/fs-extra/lib/mkdirs/win32.js +25 -0
- package/node_modules/fs-extra/lib/move/index.js +82 -0
- package/node_modules/fs-extra/lib/move-sync/index.js +117 -0
- package/node_modules/fs-extra/lib/output/index.js +40 -0
- package/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/node_modules/fs-extra/lib/remove/index.js +9 -0
- package/node_modules/fs-extra/lib/remove/rimraf.js +314 -0
- package/node_modules/fs-extra/lib/util/buffer.js +12 -0
- package/node_modules/fs-extra/lib/util/utimes.js +79 -0
- package/node_modules/fs-extra/package.json +72 -0
- package/node_modules/fs.realpath/LICENSE +43 -0
- package/node_modules/fs.realpath/README.md +33 -0
- package/node_modules/fs.realpath/index.js +66 -0
- package/node_modules/fs.realpath/old.js +303 -0
- package/node_modules/fs.realpath/package.json +30 -0
- package/node_modules/glob/LICENSE +21 -0
- package/node_modules/glob/README.md +375 -0
- package/node_modules/glob/changelog.md +67 -0
- package/node_modules/glob/common.js +240 -0
- package/node_modules/glob/glob.js +790 -0
- package/node_modules/glob/package.json +50 -0
- package/node_modules/glob/sync.js +486 -0
- package/node_modules/graceful-fs/LICENSE +15 -0
- package/node_modules/graceful-fs/README.md +133 -0
- package/node_modules/graceful-fs/clone.js +23 -0
- package/node_modules/graceful-fs/graceful-fs.js +373 -0
- package/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/node_modules/graceful-fs/package.json +54 -0
- package/node_modules/graceful-fs/polyfills.js +346 -0
- package/node_modules/has-flag/index.js +8 -0
- package/node_modules/has-flag/license +9 -0
- package/node_modules/has-flag/package.json +48 -0
- package/node_modules/has-flag/readme.md +70 -0
- package/node_modules/inflight/LICENSE +15 -0
- package/node_modules/inflight/README.md +37 -0
- package/node_modules/inflight/inflight.js +54 -0
- package/node_modules/inflight/package.json +33 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +33 -0
- package/node_modules/is-ci/CHANGELOG.md +14 -0
- package/node_modules/is-ci/LICENSE +21 -0
- package/node_modules/is-ci/README.md +50 -0
- package/node_modules/is-ci/bin.js +4 -0
- package/node_modules/is-ci/index.js +3 -0
- package/node_modules/is-ci/package.json +42 -0
- package/node_modules/is-docker/cli.js +5 -0
- package/node_modules/is-docker/index.d.ts +15 -0
- package/node_modules/is-docker/index.js +29 -0
- package/node_modules/is-docker/license +9 -0
- package/node_modules/is-docker/package.json +46 -0
- package/node_modules/is-docker/readme.md +27 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +86 -0
- package/node_modules/is-wsl/index.d.ts +15 -0
- package/node_modules/is-wsl/index.js +31 -0
- package/node_modules/is-wsl/license +9 -0
- package/node_modules/is-wsl/package.json +49 -0
- package/node_modules/is-wsl/readme.md +36 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +35 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/jsonfile/CHANGELOG.md +145 -0
- package/node_modules/jsonfile/LICENSE +15 -0
- package/node_modules/jsonfile/README.md +168 -0
- package/node_modules/jsonfile/index.js +134 -0
- package/node_modules/jsonfile/package.json +41 -0
- package/node_modules/klaw-sync/CHANGELOG.md +73 -0
- package/node_modules/klaw-sync/LICENSE +20 -0
- package/node_modules/klaw-sync/README.md +164 -0
- package/node_modules/klaw-sync/klaw-sync.js +29 -0
- package/node_modules/klaw-sync/package.json +51 -0
- package/node_modules/line-reader/LICENSE +20 -0
- package/node_modules/line-reader/README.md +75 -0
- package/node_modules/line-reader/lib/line_reader.js +174 -0
- package/node_modules/line-reader/package.json +18 -0
- package/node_modules/line-reader/test/data/empty_file.txt +0 -0
- package/node_modules/line-reader/test/data/multi_separator_file.txt +2 -0
- package/node_modules/line-reader/test/data/multibyte_file.txt +2 -0
- package/node_modules/line-reader/test/data/normal_file.txt +6 -0
- package/node_modules/line-reader/test/data/one_line_file.txt +1 -0
- package/node_modules/line-reader/test/data/separator_file.txt +2 -0
- package/node_modules/line-reader/test/data/three_line_file.txt +3 -0
- package/node_modules/line-reader/test/line_reader.js +222 -0
- package/node_modules/lru-cache/LICENSE +15 -0
- package/node_modules/lru-cache/README.md +166 -0
- package/node_modules/lru-cache/index.js +334 -0
- package/node_modules/lru-cache/package.json +38 -0
- package/node_modules/micromatch/CHANGELOG.md +109 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1008 -0
- package/node_modules/micromatch/index.js +467 -0
- package/node_modules/micromatch/package.json +123 -0
- package/node_modules/minimatch/LICENSE +15 -0
- package/node_modules/minimatch/README.md +209 -0
- package/node_modules/minimatch/minimatch.js +923 -0
- package/node_modules/minimatch/package.json +34 -0
- package/node_modules/minimist/.travis.yml +8 -0
- package/node_modules/minimist/LICENSE +18 -0
- package/node_modules/minimist/example/parse.js +2 -0
- package/node_modules/minimist/index.js +245 -0
- package/node_modules/minimist/package.json +49 -0
- package/node_modules/minimist/readme.markdown +95 -0
- package/node_modules/minimist/test/all_bool.js +32 -0
- package/node_modules/minimist/test/bool.js +178 -0
- package/node_modules/minimist/test/dash.js +31 -0
- package/node_modules/minimist/test/default_bool.js +35 -0
- package/node_modules/minimist/test/dotted.js +22 -0
- package/node_modules/minimist/test/kv_short.js +16 -0
- package/node_modules/minimist/test/long.js +31 -0
- package/node_modules/minimist/test/num.js +36 -0
- package/node_modules/minimist/test/parse.js +197 -0
- package/node_modules/minimist/test/parse_modified.js +9 -0
- package/node_modules/minimist/test/proto.js +44 -0
- package/node_modules/minimist/test/short.js +67 -0
- package/node_modules/minimist/test/stop_early.js +15 -0
- package/node_modules/minimist/test/unknown.js +102 -0
- package/node_modules/minimist/test/whitespace.js +8 -0
- package/node_modules/nice-try/CHANGELOG.md +21 -0
- package/node_modules/nice-try/LICENSE +21 -0
- package/node_modules/nice-try/README.md +32 -0
- package/node_modules/nice-try/package.json +37 -0
- package/node_modules/nice-try/src/index.js +12 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +37 -0
- package/node_modules/open/index.d.ts +88 -0
- package/node_modules/open/index.js +195 -0
- package/node_modules/open/license +9 -0
- package/node_modules/open/package.json +64 -0
- package/node_modules/open/readme.md +154 -0
- package/node_modules/open/xdg-open +1066 -0
- package/node_modules/os-tmpdir/index.js +25 -0
- package/node_modules/os-tmpdir/license +21 -0
- package/node_modules/os-tmpdir/package.json +45 -0
- package/node_modules/os-tmpdir/readme.md +32 -0
- package/node_modules/patch-package/CHANGELOG.md +389 -0
- package/node_modules/patch-package/LICENSE +19 -0
- package/node_modules/patch-package/README.md +269 -0
- package/node_modules/patch-package/dist/PackageDetails.js +102 -0
- package/node_modules/patch-package/dist/PackageDetails.test.js +228 -0
- package/node_modules/patch-package/dist/applyPatches.js +261 -0
- package/node_modules/patch-package/dist/assertNever.js +8 -0
- package/node_modules/patch-package/dist/createIssue.js +83 -0
- package/node_modules/patch-package/dist/detectPackageManager.js +64 -0
- package/node_modules/patch-package/dist/filterFiles.js +17 -0
- package/node_modules/patch-package/dist/getAppRootPath.js +22 -0
- package/node_modules/patch-package/dist/getPackageResolution.js +85 -0
- package/node_modules/patch-package/dist/getPackageVersion.js +9 -0
- package/node_modules/patch-package/dist/index.js +161 -0
- package/node_modules/patch-package/dist/makePatch.js +231 -0
- package/node_modules/patch-package/dist/makeRegExp.js +28 -0
- package/node_modules/patch-package/dist/packageIsDevDependency.js +15 -0
- package/node_modules/patch-package/dist/packageIsDevDependency.test.js +32 -0
- package/node_modules/patch-package/dist/patch/apply.js +197 -0
- package/node_modules/patch-package/dist/patch/parse.js +330 -0
- package/node_modules/patch-package/dist/patch/read.js +49 -0
- package/node_modules/patch-package/dist/patch/reverse.js +96 -0
- package/node_modules/patch-package/dist/patchFs.js +20 -0
- package/node_modules/patch-package/dist/path.js +17 -0
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.js +21 -0
- package/node_modules/patch-package/dist/resolveRelativeFileDependencies.test.js +22 -0
- package/node_modules/patch-package/dist/spawnSafe.js +28 -0
- package/node_modules/patch-package/index.js +3 -0
- package/node_modules/patch-package/node_modules/cross-spawn/CHANGELOG.md +100 -0
- package/node_modules/patch-package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/patch-package/node_modules/cross-spawn/README.md +94 -0
- package/node_modules/patch-package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/parse.js +125 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
- package/node_modules/patch-package/node_modules/cross-spawn/lib/util/resolveCommand.js +47 -0
- package/node_modules/patch-package/node_modules/cross-spawn/package.json +80 -0
- package/node_modules/patch-package/node_modules/path-key/index.js +13 -0
- package/node_modules/patch-package/node_modules/path-key/license +21 -0
- package/node_modules/patch-package/node_modules/path-key/package.json +43 -0
- package/node_modules/patch-package/node_modules/path-key/readme.md +51 -0
- package/node_modules/patch-package/node_modules/rimraf/LICENSE +15 -0
- package/node_modules/patch-package/node_modules/rimraf/README.md +101 -0
- package/node_modules/patch-package/node_modules/rimraf/bin.js +50 -0
- package/node_modules/patch-package/node_modules/rimraf/package.json +33 -0
- package/node_modules/patch-package/node_modules/rimraf/rimraf.js +372 -0
- package/node_modules/patch-package/node_modules/semver/CHANGELOG.md +39 -0
- package/node_modules/patch-package/node_modules/semver/LICENSE +15 -0
- package/node_modules/patch-package/node_modules/semver/README.md +412 -0
- package/node_modules/patch-package/node_modules/semver/bin/semver +160 -0
- package/node_modules/patch-package/node_modules/semver/package.json +32 -0
- package/node_modules/patch-package/node_modules/semver/range.bnf +16 -0
- package/node_modules/patch-package/node_modules/semver/semver.js +1483 -0
- package/node_modules/patch-package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/patch-package/node_modules/shebang-command/license +21 -0
- package/node_modules/patch-package/node_modules/shebang-command/package.json +43 -0
- package/node_modules/patch-package/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/patch-package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/patch-package/node_modules/shebang-regex/license +21 -0
- package/node_modules/patch-package/node_modules/shebang-regex/package.json +36 -0
- package/node_modules/patch-package/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/patch-package/node_modules/slash/index.js +11 -0
- package/node_modules/patch-package/node_modules/slash/license +9 -0
- package/node_modules/patch-package/node_modules/slash/package.json +38 -0
- package/node_modules/patch-package/node_modules/slash/readme.md +44 -0
- package/node_modules/patch-package/node_modules/which/CHANGELOG.md +152 -0
- package/node_modules/patch-package/node_modules/which/LICENSE +15 -0
- package/node_modules/patch-package/node_modules/which/README.md +51 -0
- package/node_modules/patch-package/node_modules/which/bin/which +52 -0
- package/node_modules/patch-package/node_modules/which/package.json +34 -0
- package/node_modules/patch-package/node_modules/which/which.js +135 -0
- package/node_modules/patch-package/package.json +100 -0
- package/node_modules/path-is-absolute/index.js +20 -0
- package/node_modules/path-is-absolute/license +21 -0
- package/node_modules/path-is-absolute/package.json +47 -0
- package/node_modules/path-is-absolute/readme.md +59 -0
- package/node_modules/picomatch/CHANGELOG.md +120 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +691 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1078 -0
- package/node_modules/picomatch/lib/picomatch.js +339 -0
- package/node_modules/picomatch/lib/scan.js +385 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +85 -0
- package/node_modules/remove-markdown/.npmignore +1 -0
- package/node_modules/remove-markdown/LICENSE +21 -0
- package/node_modules/remove-markdown/README.md +44 -0
- package/node_modules/remove-markdown/index.js +60 -0
- package/node_modules/remove-markdown/package.json +31 -0
- package/node_modules/remove-markdown/test/remove-markdown.js +139 -0
- package/node_modules/semver/CHANGELOG.md +111 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +566 -0
- package/node_modules/semver/bin/semver.js +173 -0
- package/node_modules/semver/classes/comparator.js +135 -0
- package/node_modules/semver/classes/index.js +5 -0
- package/node_modules/semver/classes/range.js +510 -0
- package/node_modules/semver/classes/semver.js +287 -0
- package/node_modules/semver/functions/clean.js +6 -0
- package/node_modules/semver/functions/cmp.js +48 -0
- package/node_modules/semver/functions/coerce.js +51 -0
- package/node_modules/semver/functions/compare-build.js +7 -0
- package/node_modules/semver/functions/compare-loose.js +3 -0
- package/node_modules/semver/functions/compare.js +5 -0
- package/node_modules/semver/functions/diff.js +23 -0
- package/node_modules/semver/functions/eq.js +3 -0
- package/node_modules/semver/functions/gt.js +3 -0
- package/node_modules/semver/functions/gte.js +3 -0
- package/node_modules/semver/functions/inc.js +15 -0
- package/node_modules/semver/functions/lt.js +3 -0
- package/node_modules/semver/functions/lte.js +3 -0
- package/node_modules/semver/functions/major.js +3 -0
- package/node_modules/semver/functions/minor.js +3 -0
- package/node_modules/semver/functions/neq.js +3 -0
- package/node_modules/semver/functions/parse.js +33 -0
- package/node_modules/semver/functions/patch.js +3 -0
- package/node_modules/semver/functions/prerelease.js +6 -0
- package/node_modules/semver/functions/rcompare.js +3 -0
- package/node_modules/semver/functions/rsort.js +3 -0
- package/node_modules/semver/functions/satisfies.js +10 -0
- package/node_modules/semver/functions/sort.js +3 -0
- package/node_modules/semver/functions/valid.js +6 -0
- package/node_modules/semver/index.js +48 -0
- package/node_modules/semver/internal/constants.js +17 -0
- package/node_modules/semver/internal/debug.js +9 -0
- package/node_modules/semver/internal/identifiers.js +23 -0
- package/node_modules/semver/internal/parse-options.js +11 -0
- package/node_modules/semver/internal/re.js +182 -0
- package/node_modules/semver/package.json +45 -0
- package/node_modules/semver/preload.js +2 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/ranges/gtr.js +4 -0
- package/node_modules/semver/ranges/intersects.js +7 -0
- package/node_modules/semver/ranges/ltr.js +4 -0
- package/node_modules/semver/ranges/max-satisfying.js +25 -0
- package/node_modules/semver/ranges/min-satisfying.js +24 -0
- package/node_modules/semver/ranges/min-version.js +60 -0
- package/node_modules/semver/ranges/outside.js +80 -0
- package/node_modules/semver/ranges/simplify.js +44 -0
- package/node_modules/semver/ranges/subset.js +222 -0
- package/node_modules/semver/ranges/to-comparators.js +8 -0
- package/node_modules/semver/ranges/valid.js +11 -0
- package/node_modules/supports-color/browser.js +5 -0
- package/node_modules/supports-color/index.js +131 -0
- package/node_modules/supports-color/license +9 -0
- package/node_modules/supports-color/package.json +57 -0
- package/node_modules/supports-color/readme.md +66 -0
- package/node_modules/tmp/LICENSE +21 -0
- package/node_modules/tmp/README.md +314 -0
- package/node_modules/tmp/lib/tmp.js +611 -0
- package/node_modules/tmp/package.json +42 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +92 -0
- package/node_modules/universalify/LICENSE +20 -0
- package/node_modules/universalify/README.md +76 -0
- package/node_modules/universalify/index.js +25 -0
- package/node_modules/universalify/package.json +38 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +33 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/yallist/LICENSE +15 -0
- package/node_modules/yallist/README.md +204 -0
- package/node_modules/yallist/iterator.js +8 -0
- package/node_modules/yallist/package.json +33 -0
- package/node_modules/yallist/yallist.js +426 -0
- package/package.json +8 -3
- package/patches/changelog-parser+2.8.0.patch +10 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
const Range = require('../classes/range.js')
|
|
2
|
+
const Comparator = require('../classes/comparator.js')
|
|
3
|
+
const { ANY } = Comparator
|
|
4
|
+
const satisfies = require('../functions/satisfies.js')
|
|
5
|
+
const compare = require('../functions/compare.js')
|
|
6
|
+
|
|
7
|
+
// Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff:
|
|
8
|
+
// - Every simple range `r1, r2, ...` is a null set, OR
|
|
9
|
+
// - Every simple range `r1, r2, ...` which is not a null set is a subset of
|
|
10
|
+
// some `R1, R2, ...`
|
|
11
|
+
//
|
|
12
|
+
// Simple range `c1 c2 ...` is a subset of simple range `C1 C2 ...` iff:
|
|
13
|
+
// - If c is only the ANY comparator
|
|
14
|
+
// - If C is only the ANY comparator, return true
|
|
15
|
+
// - Else if in prerelease mode, return false
|
|
16
|
+
// - else replace c with `[>=0.0.0]`
|
|
17
|
+
// - If C is only the ANY comparator
|
|
18
|
+
// - if in prerelease mode, return true
|
|
19
|
+
// - else replace C with `[>=0.0.0]`
|
|
20
|
+
// - Let EQ be the set of = comparators in c
|
|
21
|
+
// - If EQ is more than one, return true (null set)
|
|
22
|
+
// - Let GT be the highest > or >= comparator in c
|
|
23
|
+
// - Let LT be the lowest < or <= comparator in c
|
|
24
|
+
// - If GT and LT, and GT.semver > LT.semver, return true (null set)
|
|
25
|
+
// - If any C is a = range, and GT or LT are set, return false
|
|
26
|
+
// - If EQ
|
|
27
|
+
// - If GT, and EQ does not satisfy GT, return true (null set)
|
|
28
|
+
// - If LT, and EQ does not satisfy LT, return true (null set)
|
|
29
|
+
// - If EQ satisfies every C, return true
|
|
30
|
+
// - Else return false
|
|
31
|
+
// - If GT
|
|
32
|
+
// - If GT.semver is lower than any > or >= comp in C, return false
|
|
33
|
+
// - If GT is >=, and GT.semver does not satisfy every C, return false
|
|
34
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
35
|
+
// - If no C has a prerelease and the GT.semver tuple, return false
|
|
36
|
+
// - If LT
|
|
37
|
+
// - If LT.semver is greater than any < or <= comp in C, return false
|
|
38
|
+
// - If LT is <=, and LT.semver does not satisfy every C, return false
|
|
39
|
+
// - If GT.semver has a prerelease, and not in prerelease mode
|
|
40
|
+
// - If no C has a prerelease and the LT.semver tuple, return false
|
|
41
|
+
// - Else return true
|
|
42
|
+
|
|
43
|
+
const subset = (sub, dom, options = {}) => {
|
|
44
|
+
if (sub === dom)
|
|
45
|
+
return true
|
|
46
|
+
|
|
47
|
+
sub = new Range(sub, options)
|
|
48
|
+
dom = new Range(dom, options)
|
|
49
|
+
let sawNonNull = false
|
|
50
|
+
|
|
51
|
+
OUTER: for (const simpleSub of sub.set) {
|
|
52
|
+
for (const simpleDom of dom.set) {
|
|
53
|
+
const isSub = simpleSubset(simpleSub, simpleDom, options)
|
|
54
|
+
sawNonNull = sawNonNull || isSub !== null
|
|
55
|
+
if (isSub)
|
|
56
|
+
continue OUTER
|
|
57
|
+
}
|
|
58
|
+
// the null set is a subset of everything, but null simple ranges in
|
|
59
|
+
// a complex range should be ignored. so if we saw a non-null range,
|
|
60
|
+
// then we know this isn't a subset, but if EVERY simple range was null,
|
|
61
|
+
// then it is a subset.
|
|
62
|
+
if (sawNonNull)
|
|
63
|
+
return false
|
|
64
|
+
}
|
|
65
|
+
return true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const simpleSubset = (sub, dom, options) => {
|
|
69
|
+
if (sub === dom)
|
|
70
|
+
return true
|
|
71
|
+
|
|
72
|
+
if (sub.length === 1 && sub[0].semver === ANY) {
|
|
73
|
+
if (dom.length === 1 && dom[0].semver === ANY)
|
|
74
|
+
return true
|
|
75
|
+
else if (options.includePrerelease)
|
|
76
|
+
sub = [ new Comparator('>=0.0.0-0') ]
|
|
77
|
+
else
|
|
78
|
+
sub = [ new Comparator('>=0.0.0') ]
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (dom.length === 1 && dom[0].semver === ANY) {
|
|
82
|
+
if (options.includePrerelease)
|
|
83
|
+
return true
|
|
84
|
+
else
|
|
85
|
+
dom = [ new Comparator('>=0.0.0') ]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const eqSet = new Set()
|
|
89
|
+
let gt, lt
|
|
90
|
+
for (const c of sub) {
|
|
91
|
+
if (c.operator === '>' || c.operator === '>=')
|
|
92
|
+
gt = higherGT(gt, c, options)
|
|
93
|
+
else if (c.operator === '<' || c.operator === '<=')
|
|
94
|
+
lt = lowerLT(lt, c, options)
|
|
95
|
+
else
|
|
96
|
+
eqSet.add(c.semver)
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (eqSet.size > 1)
|
|
100
|
+
return null
|
|
101
|
+
|
|
102
|
+
let gtltComp
|
|
103
|
+
if (gt && lt) {
|
|
104
|
+
gtltComp = compare(gt.semver, lt.semver, options)
|
|
105
|
+
if (gtltComp > 0)
|
|
106
|
+
return null
|
|
107
|
+
else if (gtltComp === 0 && (gt.operator !== '>=' || lt.operator !== '<='))
|
|
108
|
+
return null
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// will iterate one or zero times
|
|
112
|
+
for (const eq of eqSet) {
|
|
113
|
+
if (gt && !satisfies(eq, String(gt), options))
|
|
114
|
+
return null
|
|
115
|
+
|
|
116
|
+
if (lt && !satisfies(eq, String(lt), options))
|
|
117
|
+
return null
|
|
118
|
+
|
|
119
|
+
for (const c of dom) {
|
|
120
|
+
if (!satisfies(eq, String(c), options))
|
|
121
|
+
return false
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
let higher, lower
|
|
128
|
+
let hasDomLT, hasDomGT
|
|
129
|
+
// if the subset has a prerelease, we need a comparator in the superset
|
|
130
|
+
// with the same tuple and a prerelease, or it's not a subset
|
|
131
|
+
let needDomLTPre = lt &&
|
|
132
|
+
!options.includePrerelease &&
|
|
133
|
+
lt.semver.prerelease.length ? lt.semver : false
|
|
134
|
+
let needDomGTPre = gt &&
|
|
135
|
+
!options.includePrerelease &&
|
|
136
|
+
gt.semver.prerelease.length ? gt.semver : false
|
|
137
|
+
// exception: <1.2.3-0 is the same as <1.2.3
|
|
138
|
+
if (needDomLTPre && needDomLTPre.prerelease.length === 1 &&
|
|
139
|
+
lt.operator === '<' && needDomLTPre.prerelease[0] === 0) {
|
|
140
|
+
needDomLTPre = false
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
for (const c of dom) {
|
|
144
|
+
hasDomGT = hasDomGT || c.operator === '>' || c.operator === '>='
|
|
145
|
+
hasDomLT = hasDomLT || c.operator === '<' || c.operator === '<='
|
|
146
|
+
if (gt) {
|
|
147
|
+
if (needDomGTPre) {
|
|
148
|
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
149
|
+
c.semver.major === needDomGTPre.major &&
|
|
150
|
+
c.semver.minor === needDomGTPre.minor &&
|
|
151
|
+
c.semver.patch === needDomGTPre.patch) {
|
|
152
|
+
needDomGTPre = false
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
if (c.operator === '>' || c.operator === '>=') {
|
|
156
|
+
higher = higherGT(gt, c, options)
|
|
157
|
+
if (higher === c && higher !== gt)
|
|
158
|
+
return false
|
|
159
|
+
} else if (gt.operator === '>=' && !satisfies(gt.semver, String(c), options))
|
|
160
|
+
return false
|
|
161
|
+
}
|
|
162
|
+
if (lt) {
|
|
163
|
+
if (needDomLTPre) {
|
|
164
|
+
if (c.semver.prerelease && c.semver.prerelease.length &&
|
|
165
|
+
c.semver.major === needDomLTPre.major &&
|
|
166
|
+
c.semver.minor === needDomLTPre.minor &&
|
|
167
|
+
c.semver.patch === needDomLTPre.patch) {
|
|
168
|
+
needDomLTPre = false
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
if (c.operator === '<' || c.operator === '<=') {
|
|
172
|
+
lower = lowerLT(lt, c, options)
|
|
173
|
+
if (lower === c && lower !== lt)
|
|
174
|
+
return false
|
|
175
|
+
} else if (lt.operator === '<=' && !satisfies(lt.semver, String(c), options))
|
|
176
|
+
return false
|
|
177
|
+
}
|
|
178
|
+
if (!c.operator && (lt || gt) && gtltComp !== 0)
|
|
179
|
+
return false
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// if there was a < or >, and nothing in the dom, then must be false
|
|
183
|
+
// UNLESS it was limited by another range in the other direction.
|
|
184
|
+
// Eg, >1.0.0 <1.0.1 is still a subset of <2.0.0
|
|
185
|
+
if (gt && hasDomLT && !lt && gtltComp !== 0)
|
|
186
|
+
return false
|
|
187
|
+
|
|
188
|
+
if (lt && hasDomGT && !gt && gtltComp !== 0)
|
|
189
|
+
return false
|
|
190
|
+
|
|
191
|
+
// we needed a prerelease range in a specific tuple, but didn't get one
|
|
192
|
+
// then this isn't a subset. eg >=1.2.3-pre is not a subset of >=1.0.0,
|
|
193
|
+
// because it includes prereleases in the 1.2.3 tuple
|
|
194
|
+
if (needDomGTPre || needDomLTPre)
|
|
195
|
+
return false
|
|
196
|
+
|
|
197
|
+
return true
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// >=1.2.3 is lower than >1.2.3
|
|
201
|
+
const higherGT = (a, b, options) => {
|
|
202
|
+
if (!a)
|
|
203
|
+
return b
|
|
204
|
+
const comp = compare(a.semver, b.semver, options)
|
|
205
|
+
return comp > 0 ? a
|
|
206
|
+
: comp < 0 ? b
|
|
207
|
+
: b.operator === '>' && a.operator === '>=' ? b
|
|
208
|
+
: a
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// <=1.2.3 is higher than <1.2.3
|
|
212
|
+
const lowerLT = (a, b, options) => {
|
|
213
|
+
if (!a)
|
|
214
|
+
return b
|
|
215
|
+
const comp = compare(a.semver, b.semver, options)
|
|
216
|
+
return comp < 0 ? a
|
|
217
|
+
: comp > 0 ? b
|
|
218
|
+
: b.operator === '<' && a.operator === '<=' ? b
|
|
219
|
+
: a
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
module.exports = subset
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const Range = require('../classes/range')
|
|
2
|
+
|
|
3
|
+
// Mostly just for testing and legacy API reasons
|
|
4
|
+
const toComparators = (range, options) =>
|
|
5
|
+
new Range(range, options).set
|
|
6
|
+
.map(comp => comp.map(c => c.value).join(' ').trim().split(' '))
|
|
7
|
+
|
|
8
|
+
module.exports = toComparators
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const Range = require('../classes/range')
|
|
2
|
+
const validRange = (range, options) => {
|
|
3
|
+
try {
|
|
4
|
+
// Return '*' instead of '' so that truthiness works.
|
|
5
|
+
// This will throw if it's invalid anyway
|
|
6
|
+
return new Range(range, options).range || '*'
|
|
7
|
+
} catch (er) {
|
|
8
|
+
return null
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
module.exports = validRange
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const os = require('os');
|
|
3
|
+
const hasFlag = require('has-flag');
|
|
4
|
+
|
|
5
|
+
const env = process.env;
|
|
6
|
+
|
|
7
|
+
let forceColor;
|
|
8
|
+
if (hasFlag('no-color') ||
|
|
9
|
+
hasFlag('no-colors') ||
|
|
10
|
+
hasFlag('color=false')) {
|
|
11
|
+
forceColor = false;
|
|
12
|
+
} else if (hasFlag('color') ||
|
|
13
|
+
hasFlag('colors') ||
|
|
14
|
+
hasFlag('color=true') ||
|
|
15
|
+
hasFlag('color=always')) {
|
|
16
|
+
forceColor = true;
|
|
17
|
+
}
|
|
18
|
+
if ('FORCE_COLOR' in env) {
|
|
19
|
+
forceColor = env.FORCE_COLOR.length === 0 || parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function translateLevel(level) {
|
|
23
|
+
if (level === 0) {
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
level,
|
|
29
|
+
hasBasic: true,
|
|
30
|
+
has256: level >= 2,
|
|
31
|
+
has16m: level >= 3
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function supportsColor(stream) {
|
|
36
|
+
if (forceColor === false) {
|
|
37
|
+
return 0;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (hasFlag('color=16m') ||
|
|
41
|
+
hasFlag('color=full') ||
|
|
42
|
+
hasFlag('color=truecolor')) {
|
|
43
|
+
return 3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (hasFlag('color=256')) {
|
|
47
|
+
return 2;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (stream && !stream.isTTY && forceColor !== true) {
|
|
51
|
+
return 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const min = forceColor ? 1 : 0;
|
|
55
|
+
|
|
56
|
+
if (process.platform === 'win32') {
|
|
57
|
+
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
|
58
|
+
// libuv that enables 256 color output on Windows. Anything earlier and it
|
|
59
|
+
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
|
|
60
|
+
// release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows
|
|
61
|
+
// release that supports 256 colors. Windows 10 build 14931 is the first release
|
|
62
|
+
// that supports 16m/TrueColor.
|
|
63
|
+
const osRelease = os.release().split('.');
|
|
64
|
+
if (
|
|
65
|
+
Number(process.versions.node.split('.')[0]) >= 8 &&
|
|
66
|
+
Number(osRelease[0]) >= 10 &&
|
|
67
|
+
Number(osRelease[2]) >= 10586
|
|
68
|
+
) {
|
|
69
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
return 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
if ('CI' in env) {
|
|
76
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') {
|
|
77
|
+
return 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return min;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
84
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if (env.COLORTERM === 'truecolor') {
|
|
88
|
+
return 3;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
if ('TERM_PROGRAM' in env) {
|
|
92
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
93
|
+
|
|
94
|
+
switch (env.TERM_PROGRAM) {
|
|
95
|
+
case 'iTerm.app':
|
|
96
|
+
return version >= 3 ? 3 : 2;
|
|
97
|
+
case 'Apple_Terminal':
|
|
98
|
+
return 2;
|
|
99
|
+
// No default
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
104
|
+
return 2;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
108
|
+
return 1;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if ('COLORTERM' in env) {
|
|
112
|
+
return 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (env.TERM === 'dumb') {
|
|
116
|
+
return min;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return min;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function getSupportLevel(stream) {
|
|
123
|
+
const level = supportsColor(stream);
|
|
124
|
+
return translateLevel(level);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
module.exports = {
|
|
128
|
+
supportsColor: getSupportLevel,
|
|
129
|
+
stdout: getSupportLevel(process.stdout),
|
|
130
|
+
stderr: getSupportLevel(process.stderr)
|
|
131
|
+
};
|
|
@@ -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.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "supports-color",
|
|
3
|
+
"version": "5.5.0",
|
|
4
|
+
"description": "Detect whether a terminal supports color",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "chalk/supports-color",
|
|
7
|
+
"author": {
|
|
8
|
+
"name": "Sindre Sorhus",
|
|
9
|
+
"email": "sindresorhus@gmail.com",
|
|
10
|
+
"url": "sindresorhus.com"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=4"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "xo && ava"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"index.js",
|
|
20
|
+
"browser.js"
|
|
21
|
+
],
|
|
22
|
+
"keywords": [
|
|
23
|
+
"color",
|
|
24
|
+
"colour",
|
|
25
|
+
"colors",
|
|
26
|
+
"terminal",
|
|
27
|
+
"console",
|
|
28
|
+
"cli",
|
|
29
|
+
"ansi",
|
|
30
|
+
"styles",
|
|
31
|
+
"tty",
|
|
32
|
+
"rgb",
|
|
33
|
+
"256",
|
|
34
|
+
"shell",
|
|
35
|
+
"xterm",
|
|
36
|
+
"command-line",
|
|
37
|
+
"support",
|
|
38
|
+
"supports",
|
|
39
|
+
"capability",
|
|
40
|
+
"detect",
|
|
41
|
+
"truecolor",
|
|
42
|
+
"16m"
|
|
43
|
+
],
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"has-flag": "^3.0.0"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"ava": "^0.25.0",
|
|
49
|
+
"import-fresh": "^2.0.0",
|
|
50
|
+
"xo": "^0.20.0"
|
|
51
|
+
},
|
|
52
|
+
"browser": "browser.js"
|
|
53
|
+
|
|
54
|
+
,"_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz"
|
|
55
|
+
,"_integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow=="
|
|
56
|
+
,"_from": "supports-color@5.5.0"
|
|
57
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# supports-color [](https://travis-ci.org/chalk/supports-color)
|
|
2
|
+
|
|
3
|
+
> Detect whether a terminal supports color
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## Install
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
$ npm install supports-color
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
const supportsColor = require('supports-color');
|
|
17
|
+
|
|
18
|
+
if (supportsColor.stdout) {
|
|
19
|
+
console.log('Terminal stdout supports color');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (supportsColor.stdout.has256) {
|
|
23
|
+
console.log('Terminal stdout supports 256 colors');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (supportsColor.stderr.has16m) {
|
|
27
|
+
console.log('Terminal stderr supports 16 million colors (truecolor)');
|
|
28
|
+
}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## API
|
|
33
|
+
|
|
34
|
+
Returns an `Object` with a `stdout` and `stderr` property for testing either streams. Each property is an `Object`, or `false` if color is not supported.
|
|
35
|
+
|
|
36
|
+
The `stdout`/`stderr` objects specifies a level of support for color through a `.level` property and a corresponding flag:
|
|
37
|
+
|
|
38
|
+
- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors)
|
|
39
|
+
- `.level = 2` and `.has256 = true`: 256 color support
|
|
40
|
+
- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## Info
|
|
44
|
+
|
|
45
|
+
It obeys the `--color` and `--no-color` CLI flags.
|
|
46
|
+
|
|
47
|
+
Can be overridden by the user with the flags `--color` and `--no-color`. For situations where using `--color` is not possible, add the environment variable `FORCE_COLOR=1` to forcefully enable color or `FORCE_COLOR=0` to forcefully disable. The use of `FORCE_COLOR` overrides all other color support checks.
|
|
48
|
+
|
|
49
|
+
Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively.
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
## Related
|
|
53
|
+
|
|
54
|
+
- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module
|
|
55
|
+
- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
## Maintainers
|
|
59
|
+
|
|
60
|
+
- [Sindre Sorhus](https://github.com/sindresorhus)
|
|
61
|
+
- [Josh Junon](https://github.com/qix-)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
MIT
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 KARASZI István
|
|
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 all
|
|
13
|
+
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 THE
|
|
21
|
+
SOFTWARE.
|