From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/ava/node_modules/chalk/index.js | 228 -- node_modules/ava/node_modules/chalk/license | 9 - .../chalk/node_modules/supports-color/browser.js | 2 - .../chalk/node_modules/supports-color/index.js | 115 - .../chalk/node_modules/supports-color/license | 9 - .../chalk/node_modules/supports-color/package.json | 53 - .../chalk/node_modules/supports-color/readme.md | 66 - node_modules/ava/node_modules/chalk/package.json | 66 - node_modules/ava/node_modules/chalk/readme.md | 309 -- node_modules/ava/node_modules/chalk/templates.js | 128 - .../ava/node_modules/chalk/types/index.d.ts | 97 - node_modules/ava/node_modules/debug/.coveralls.yml | 1 - node_modules/ava/node_modules/debug/.eslintrc | 14 - node_modules/ava/node_modules/debug/.npmignore | 9 - node_modules/ava/node_modules/debug/.travis.yml | 20 - node_modules/ava/node_modules/debug/Makefile | 58 - node_modules/ava/node_modules/debug/README.md | 73 +- node_modules/ava/node_modules/debug/karma.conf.js | 70 - .../node_modules/debug/node_modules/ms/index.js | 152 - .../node_modules/debug/node_modules/ms/license.md | 21 - .../debug/node_modules/ms/package.json | 37 - .../node_modules/debug/node_modules/ms/readme.md | 51 - node_modules/ava/node_modules/debug/package.json | 28 +- node_modules/ava/node_modules/debug/src/browser.js | 165 +- node_modules/ava/node_modules/debug/src/debug.js | 225 -- node_modules/ava/node_modules/debug/src/index.js | 8 +- node_modules/ava/node_modules/debug/src/node.js | 134 +- .../ava/node_modules/find-cache-dir/index.js | 34 - .../ava/node_modules/find-cache-dir/license | 21 - .../ava/node_modules/find-cache-dir/package.json | 47 - .../ava/node_modules/find-cache-dir/readme.md | 113 - .../ava/node_modules/source-map-support/LICENSE.md | 21 - .../ava/node_modules/source-map-support/README.md | 251 -- .../browser-source-map-support.js | 112 - .../node_modules/source-map-support/package.json | 30 - .../node_modules/source-map-support/register.js | 1 - .../source-map-support/source-map-support.js | 527 ---- .../ava/node_modules/source-map/CHANGELOG.md | 301 -- node_modules/ava/node_modules/source-map/LICENSE | 28 - node_modules/ava/node_modules/source-map/README.md | 742 ----- .../source-map/dist/source-map.debug.js | 3234 -------------------- .../ava/node_modules/source-map/dist/source-map.js | 3233 ------------------- .../node_modules/source-map/dist/source-map.min.js | 2 - .../source-map/dist/source-map.min.js.map | 1 - .../ava/node_modules/source-map/lib/array-set.js | 121 - .../ava/node_modules/source-map/lib/base64-vlq.js | 140 - .../ava/node_modules/source-map/lib/base64.js | 67 - .../node_modules/source-map/lib/binary-search.js | 111 - .../node_modules/source-map/lib/mapping-list.js | 79 - .../ava/node_modules/source-map/lib/quick-sort.js | 114 - .../source-map/lib/source-map-consumer.js | 1145 ------- .../source-map/lib/source-map-generator.js | 425 --- .../ava/node_modules/source-map/lib/source-node.js | 413 --- .../ava/node_modules/source-map/lib/util.js | 488 --- .../ava/node_modules/source-map/package.json | 73 - .../ava/node_modules/source-map/source-map.d.ts | 98 - .../ava/node_modules/source-map/source-map.js | 8 - .../ava/node_modules/supports-color/browser.js | 5 - .../ava/node_modules/supports-color/index.js | 126 - .../ava/node_modules/supports-color/license | 9 - .../ava/node_modules/supports-color/package.json | 53 - .../ava/node_modules/supports-color/readme.md | 66 - 62 files changed, 230 insertions(+), 14157 deletions(-) delete mode 100644 node_modules/ava/node_modules/chalk/index.js delete mode 100644 node_modules/ava/node_modules/chalk/license delete mode 100644 node_modules/ava/node_modules/chalk/node_modules/supports-color/browser.js delete mode 100644 node_modules/ava/node_modules/chalk/node_modules/supports-color/index.js delete mode 100644 node_modules/ava/node_modules/chalk/node_modules/supports-color/license delete mode 100644 node_modules/ava/node_modules/chalk/node_modules/supports-color/package.json delete mode 100644 node_modules/ava/node_modules/chalk/node_modules/supports-color/readme.md delete mode 100644 node_modules/ava/node_modules/chalk/package.json delete mode 100644 node_modules/ava/node_modules/chalk/readme.md delete mode 100644 node_modules/ava/node_modules/chalk/templates.js delete mode 100644 node_modules/ava/node_modules/chalk/types/index.d.ts delete mode 100644 node_modules/ava/node_modules/debug/.coveralls.yml delete mode 100644 node_modules/ava/node_modules/debug/.eslintrc delete mode 100644 node_modules/ava/node_modules/debug/.npmignore delete mode 100644 node_modules/ava/node_modules/debug/.travis.yml delete mode 100644 node_modules/ava/node_modules/debug/Makefile delete mode 100644 node_modules/ava/node_modules/debug/karma.conf.js delete mode 100644 node_modules/ava/node_modules/debug/node_modules/ms/index.js delete mode 100644 node_modules/ava/node_modules/debug/node_modules/ms/license.md delete mode 100644 node_modules/ava/node_modules/debug/node_modules/ms/package.json delete mode 100644 node_modules/ava/node_modules/debug/node_modules/ms/readme.md delete mode 100644 node_modules/ava/node_modules/debug/src/debug.js delete mode 100644 node_modules/ava/node_modules/find-cache-dir/index.js delete mode 100644 node_modules/ava/node_modules/find-cache-dir/license delete mode 100644 node_modules/ava/node_modules/find-cache-dir/package.json delete mode 100644 node_modules/ava/node_modules/find-cache-dir/readme.md delete mode 100644 node_modules/ava/node_modules/source-map-support/LICENSE.md delete mode 100644 node_modules/ava/node_modules/source-map-support/README.md delete mode 100644 node_modules/ava/node_modules/source-map-support/browser-source-map-support.js delete mode 100644 node_modules/ava/node_modules/source-map-support/package.json delete mode 100644 node_modules/ava/node_modules/source-map-support/register.js delete mode 100644 node_modules/ava/node_modules/source-map-support/source-map-support.js delete mode 100644 node_modules/ava/node_modules/source-map/CHANGELOG.md delete mode 100644 node_modules/ava/node_modules/source-map/LICENSE delete mode 100644 node_modules/ava/node_modules/source-map/README.md delete mode 100644 node_modules/ava/node_modules/source-map/dist/source-map.debug.js delete mode 100644 node_modules/ava/node_modules/source-map/dist/source-map.js delete mode 100644 node_modules/ava/node_modules/source-map/dist/source-map.min.js delete mode 100644 node_modules/ava/node_modules/source-map/dist/source-map.min.js.map delete mode 100644 node_modules/ava/node_modules/source-map/lib/array-set.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/base64-vlq.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/base64.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/binary-search.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/mapping-list.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/quick-sort.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/source-map-consumer.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/source-map-generator.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/source-node.js delete mode 100644 node_modules/ava/node_modules/source-map/lib/util.js delete mode 100644 node_modules/ava/node_modules/source-map/package.json delete mode 100644 node_modules/ava/node_modules/source-map/source-map.d.ts delete mode 100644 node_modules/ava/node_modules/source-map/source-map.js delete mode 100644 node_modules/ava/node_modules/supports-color/browser.js delete mode 100644 node_modules/ava/node_modules/supports-color/index.js delete mode 100644 node_modules/ava/node_modules/supports-color/license delete mode 100644 node_modules/ava/node_modules/supports-color/package.json delete mode 100644 node_modules/ava/node_modules/supports-color/readme.md (limited to 'node_modules/ava') diff --git a/node_modules/ava/node_modules/chalk/index.js b/node_modules/ava/node_modules/chalk/index.js deleted file mode 100644 index 05e62b346..000000000 --- a/node_modules/ava/node_modules/chalk/index.js +++ /dev/null @@ -1,228 +0,0 @@ -'use strict'; -const escapeStringRegexp = require('escape-string-regexp'); -const ansiStyles = require('ansi-styles'); -const supportsColor = require('supports-color'); - -const template = require('./templates.js'); - -const isSimpleWindowsTerm = process.platform === 'win32' && !(process.env.TERM || '').toLowerCase().startsWith('xterm'); - -// `supportsColor.level` → `ansiStyles.color[name]` mapping -const levelMapping = ['ansi', 'ansi', 'ansi256', 'ansi16m']; - -// `color-convert` models to exclude from the Chalk API due to conflicts and such -const skipModels = new Set(['gray']); - -const styles = Object.create(null); - -function applyOptions(obj, options) { - options = options || {}; - - // Detect level if not set manually - const scLevel = supportsColor ? supportsColor.level : 0; - obj.level = options.level === undefined ? scLevel : options.level; - obj.enabled = 'enabled' in options ? options.enabled : obj.level > 0; -} - -function Chalk(options) { - // We check for this.template here since calling `chalk.constructor()` - // by itself will have a `this` of a previously constructed chalk object - if (!this || !(this instanceof Chalk) || this.template) { - const chalk = {}; - applyOptions(chalk, options); - - chalk.template = function () { - const args = [].slice.call(arguments); - return chalkTag.apply(null, [chalk.template].concat(args)); - }; - - Object.setPrototypeOf(chalk, Chalk.prototype); - Object.setPrototypeOf(chalk.template, chalk); - - chalk.template.constructor = Chalk; - - return chalk.template; - } - - applyOptions(this, options); -} - -// Use bright blue on Windows as the normal blue color is illegible -if (isSimpleWindowsTerm) { - ansiStyles.blue.open = '\u001B[94m'; -} - -for (const key of Object.keys(ansiStyles)) { - ansiStyles[key].closeRe = new RegExp(escapeStringRegexp(ansiStyles[key].close), 'g'); - - styles[key] = { - get() { - const codes = ansiStyles[key]; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, key); - } - }; -} - -styles.visible = { - get() { - return build.call(this, this._styles || [], true, 'visible'); - } -}; - -ansiStyles.color.closeRe = new RegExp(escapeStringRegexp(ansiStyles.color.close), 'g'); -for (const model of Object.keys(ansiStyles.color.ansi)) { - if (skipModels.has(model)) { - continue; - } - - styles[model] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.color[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.color.close, - closeRe: ansiStyles.color.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -ansiStyles.bgColor.closeRe = new RegExp(escapeStringRegexp(ansiStyles.bgColor.close), 'g'); -for (const model of Object.keys(ansiStyles.bgColor.ansi)) { - if (skipModels.has(model)) { - continue; - } - - const bgModel = 'bg' + model[0].toUpperCase() + model.slice(1); - styles[bgModel] = { - get() { - const level = this.level; - return function () { - const open = ansiStyles.bgColor[levelMapping[level]][model].apply(null, arguments); - const codes = { - open, - close: ansiStyles.bgColor.close, - closeRe: ansiStyles.bgColor.closeRe - }; - return build.call(this, this._styles ? this._styles.concat(codes) : [codes], this._empty, model); - }; - } - }; -} - -const proto = Object.defineProperties(() => {}, styles); - -function build(_styles, _empty, key) { - const builder = function () { - return applyStyle.apply(builder, arguments); - }; - - builder._styles = _styles; - builder._empty = _empty; - - const self = this; - - Object.defineProperty(builder, 'level', { - enumerable: true, - get() { - return self.level; - }, - set(level) { - self.level = level; - } - }); - - Object.defineProperty(builder, 'enabled', { - enumerable: true, - get() { - return self.enabled; - }, - set(enabled) { - self.enabled = enabled; - } - }); - - // See below for fix regarding invisible grey/dim combination on Windows - builder.hasGrey = this.hasGrey || key === 'gray' || key === 'grey'; - - // `__proto__` is used because we must return a function, but there is - // no way to create a function with a different prototype - builder.__proto__ = proto; // eslint-disable-line no-proto - - return builder; -} - -function applyStyle() { - // Support varags, but simply cast to string in case there's only one arg - const args = arguments; - const argsLen = args.length; - let str = String(arguments[0]); - - if (argsLen === 0) { - return ''; - } - - if (argsLen > 1) { - // Don't slice `arguments`, it prevents V8 optimizations - for (let a = 1; a < argsLen; a++) { - str += ' ' + args[a]; - } - } - - if (!this.enabled || this.level <= 0 || !str) { - return this._empty ? '' : str; - } - - // Turns out that on Windows dimmed gray text becomes invisible in cmd.exe, - // see https://github.com/chalk/chalk/issues/58 - // If we're on Windows and we're dealing with a gray color, temporarily make 'dim' a noop. - const originalDim = ansiStyles.dim.open; - if (isSimpleWindowsTerm && this.hasGrey) { - ansiStyles.dim.open = ''; - } - - for (const code of this._styles.slice().reverse()) { - // Replace any instances already present with a re-opening code - // otherwise only the part of the string until said closing code - // will be colored, and the rest will simply be 'plain'. - str = code.open + str.replace(code.closeRe, code.open) + code.close; - - // Close the styling before a linebreak and reopen - // after next line to fix a bleed issue on macOS - // https://github.com/chalk/chalk/pull/92 - str = str.replace(/\r?\n/g, `${code.close}$&${code.open}`); - } - - // Reset the original `dim` if we changed it to work around the Windows dimmed gray issue - ansiStyles.dim.open = originalDim; - - return str; -} - -function chalkTag(chalk, strings) { - if (!Array.isArray(strings)) { - // If chalk() was called by itself or with a string, - // return the string itself as a string. - return [].slice.call(arguments, 1).join(' '); - } - - const args = [].slice.call(arguments, 2); - const parts = [strings.raw[0]]; - - for (let i = 1; i < strings.length; i++) { - parts.push(String(args[i - 1]).replace(/[{}\\]/g, '\\$&')); - parts.push(String(strings.raw[i])); - } - - return template(chalk, parts.join('')); -} - -Object.defineProperties(Chalk.prototype, styles); - -module.exports = Chalk(); // eslint-disable-line new-cap -module.exports.supportsColor = supportsColor; -module.exports.default = module.exports; // For TypeScript diff --git a/node_modules/ava/node_modules/chalk/license b/node_modules/ava/node_modules/chalk/license deleted file mode 100644 index e7af2f771..000000000 --- a/node_modules/ava/node_modules/chalk/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -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. diff --git a/node_modules/ava/node_modules/chalk/node_modules/supports-color/browser.js b/node_modules/ava/node_modules/chalk/node_modules/supports-color/browser.js deleted file mode 100644 index ae7c87b17..000000000 --- a/node_modules/ava/node_modules/chalk/node_modules/supports-color/browser.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict'; -module.exports = false; diff --git a/node_modules/ava/node_modules/chalk/node_modules/supports-color/index.js b/node_modules/ava/node_modules/chalk/node_modules/supports-color/index.js deleted file mode 100644 index 20a29230e..000000000 --- a/node_modules/ava/node_modules/chalk/node_modules/supports-color/index.js +++ /dev/null @@ -1,115 +0,0 @@ -'use strict'; -const os = require('os'); -const hasFlag = require('has-flag'); - -const env = process.env; - -const support = level => { - if (level === 0) { - return false; - } - - return { - level, - hasBasic: true, - has256: level >= 2, - has16m: level >= 3 - }; -}; - -let supportLevel = (() => { - if (hasFlag('no-color') || - hasFlag('no-colors') || - hasFlag('color=false')) { - return 0; - } - - if (hasFlag('color=16m') || - hasFlag('color=full') || - hasFlag('color=truecolor')) { - return 3; - } - - if (hasFlag('color=256')) { - return 2; - } - - if (hasFlag('color') || - hasFlag('colors') || - hasFlag('color=true') || - hasFlag('color=always')) { - return 1; - } - - if (process.stdout && !process.stdout.isTTY) { - return 0; - } - - if (process.platform === 'win32') { - // Node.js 7.5.0 is the first version of Node.js to include a patch to - // libuv that enables 256 color output on Windows. Anything earlier and it - // won't work. However, here we target Node.js 8 at minimum as it is an LTS - // release, and Node.js 7 is not. Windows 10 build 10586 is the first Windows - // release that supports 256 colors. - const osRelease = os.release().split('.'); - if ( - Number(process.versions.node.split('.')[0]) >= 8 && - Number(osRelease[0]) >= 10 && - Number(osRelease[2]) >= 10586 - ) { - return 2; - } - - return 1; - } - - if ('CI' in env) { - if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(sign => sign in env) || env.CI_NAME === 'codeship') { - return 1; - } - - return 0; - } - - if ('TEAMCITY_VERSION' in env) { - return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0; - } - - if ('TERM_PROGRAM' in env) { - const version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10); - - switch (env.TERM_PROGRAM) { - case 'iTerm.app': - return version >= 3 ? 3 : 2; - case 'Hyper': - return 3; - case 'Apple_Terminal': - return 2; - // No default - } - } - - if (/-256(color)?$/i.test(env.TERM)) { - return 2; - } - - if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) { - return 1; - } - - if ('COLORTERM' in env) { - return 1; - } - - if (env.TERM === 'dumb') { - return 0; - } - - return 0; -})(); - -if ('FORCE_COLOR' in env) { - supportLevel = parseInt(env.FORCE_COLOR, 10) === 0 ? 0 : (supportLevel || 1); -} - -module.exports = process && support(supportLevel); diff --git a/node_modules/ava/node_modules/chalk/node_modules/supports-color/license b/node_modules/ava/node_modules/chalk/node_modules/supports-color/license deleted file mode 100644 index e7af2f771..000000000 --- a/node_modules/ava/node_modules/chalk/node_modules/supports-color/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -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: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -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. diff --git a/node_modules/ava/node_modules/chalk/node_modules/supports-color/package.json b/node_modules/ava/node_modules/chalk/node_modules/supports-color/package.json deleted file mode 100644 index b665bab8b..000000000 --- a/node_modules/ava/node_modules/chalk/node_modules/supports-color/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "name": "supports-color", - "version": "4.5.0", - "description": "Detect whether a terminal supports color", - "license": "MIT", - "repository": "chalk/supports-color", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && ava" - }, - "files": [ - "index.js", - "browser.js" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "supports", - "capability", - "detect", - "truecolor", - "16m" - ], - "dependencies": { - "has-flag": "^2.0.0" - }, - "devDependencies": { - "ava": "*", - "import-fresh": "^2.0.0", - "xo": "*" - }, - "browser": "browser.js" -} diff --git a/node_modules/ava/node_modules/chalk/node_modules/supports-color/readme.md b/node_modules/ava/node_modules/chalk/node_modules/supports-color/readme.md deleted file mode 100644 index 3bef57db0..000000000 --- a/node_modules/ava/node_modules/chalk/node_modules/supports-color/readme.md +++ /dev/null @@ -1,66 +0,0 @@ -# supports-color [![Build Status](https://travis-ci.org/chalk/supports-color.svg?branch=master)](https://travis-ci.org/chalk/supports-color) - -> Detect whether a terminal supports color - - -## Install - -``` -$ npm install supports-color -``` - - -## Usage - -```js -const supportsColor = require('supports-color'); - -if (supportsColor) { - console.log('Terminal supports color'); -} - -if (supportsColor.has256) { - console.log('Terminal supports 256 colors'); -} - -if (supportsColor.has16m) { - console.log('Terminal supports 16 million colors (truecolor)'); -} -``` - - -## API - -Returns an `Object`, or `false` if color is not supported. - -The returned object specifies a level of support for color through a `.level` property and a corresponding flag: - -- `.level = 1` and `.hasBasic = true`: Basic color support (16 colors) -- `.level = 2` and `.has256 = true`: 256 color support -- `.level = 3` and `.has16m = true`: Truecolor support (16 million colors) - - -## Info - -It obeys the `--color` and `--no-color` CLI flags. - -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. - -Explicit 256/Truecolor mode can be enabled using the `--color=256` and `--color=16m` flags, respectively. - - -## Related - -- [supports-color-cli](https://github.com/chalk/supports-color-cli) - CLI for this module -- [chalk](https://github.com/chalk/chalk) - Terminal string styling done right - - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Josh Junon](https://github.com/qix-) - - -## License - -MIT diff --git a/node_modules/ava/node_modules/chalk/package.json b/node_modules/ava/node_modules/chalk/package.json deleted file mode 100644 index 69889f0cd..000000000 --- a/node_modules/ava/node_modules/chalk/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "chalk", - "version": "2.3.0", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "engines": { - "node": ">=4" - }, - "scripts": { - "test": "xo && tsc --project types && nyc ava", - "bench": "matcha benchmark.js", - "coveralls": "nyc report --reporter=text-lcov | coveralls" - }, - "files": [ - "index.js", - "templates.js", - "types/index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^3.1.0", - "escape-string-regexp": "^1.0.5", - "supports-color": "^4.0.0" - }, - "devDependencies": { - "ava": "*", - "coveralls": "^3.0.0", - "execa": "^0.8.0", - "import-fresh": "^2.0.0", - "matcha": "^0.7.0", - "nyc": "^11.0.2", - "resolve-from": "^4.0.0", - "typescript": "^2.5.3", - "xo": "*" - }, - "types": "types/index.d.ts", - "xo": { - "envs": [ - "node", - "mocha" - ] - } -} diff --git a/node_modules/ava/node_modules/chalk/readme.md b/node_modules/ava/node_modules/chalk/readme.md deleted file mode 100644 index 9bb2e65e8..000000000 --- a/node_modules/ava/node_modules/chalk/readme.md +++ /dev/null @@ -1,309 +0,0 @@ -

-
-
- chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) [![Mentioned in Awesome Node.js](https://awesome.re/mentioned-badge.svg)](https://github.com/sindresorhus/awesome-nodejs) - -### [See what's new in Chalk 2](https://github.com/chalk/chalk/releases/tag/v2.0.0) - -![](https://github.com/chalk/ansi-styles/raw/master/screenshot.png) - - -## Highlights - -- Expressive API -- Highly performant -- Ability to nest styles -- [256/Truecolor color support](#256-and-truecolor-color-support) -- Auto-detects color support -- Doesn't extend `String.prototype` -- Clean and focused -- Actively maintained -- [Used by ~17,000 packages](https://www.npmjs.com/browse/depended/chalk) as of June 20th, 2017 - - -## Install - -```console -$ npm install chalk -``` - - -## Usage - -```js -const chalk = require('chalk'); - -console.log(chalk.blue('Hello world!')); -``` - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -const chalk = require('chalk'); -const log = console.log; - -// Combine styled and normal strings -log(chalk.blue('Hello') + 'World' + chalk.red('!')); - -// Compose multiple styles using the chainable API -log(chalk.blue.bgRed.bold('Hello world!')); - -// Pass in multiple arguments -log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); - -// Nest styles -log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); - -// Nest styles of the same type even (color, underline, background) -log(chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -)); - -// ES2015 template literal -log(` -CPU: ${chalk.red('90%')} -RAM: ${chalk.green('40%')} -DISK: ${chalk.yellow('70%')} -`); - -// ES2015 tagged template literal -log(chalk` -CPU: {red ${cpu.totalPercent}%} -RAM: {green ${ram.used / ram.total * 100}%} -DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} -`); - -// Use RGB colors in terminal emulators that support it. -log(chalk.keyword('orange')('Yay for orange colored text!')); -log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); -log(chalk.hex('#DEADED').bold('Bold gray!')); -``` - -Easily define your own themes: - -```js -const chalk = require('chalk'); - -const error = chalk.bold.red; -const warning = chalk.keyword('orange'); - -console.log(error('Error!')); -console.log(warning('Warning!')); -``` - -Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): - -```js -const name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> 'Hello Sindre' -``` - - -## API - -### chalk.`