diff options
Diffstat (limited to 'deps/npm/node_modules/npmlog/node_modules/gauge/node_modules')
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/package.json | 97 | ||||
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md | 30 | ||||
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js | 9 | ||||
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/package.json | 44 | ||||
-rwxr-xr-x | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/cli.js | 28 | ||||
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/index.js (renamed from deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/index.js) | 0 | ||||
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/package.json | 112 | ||||
-rw-r--r-- | deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/readme.md | 44 |
8 files changed, 209 insertions, 155 deletions
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/package.json deleted file mode 100644 index 2e469520b4..0000000000 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/package.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "_args": [ - [ - "has-color@^0.1.7", - "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge" - ] - ], - "_from": "has-color@>=0.1.7 <0.2.0", - "_id": "has-color@0.1.7", - "_inCache": true, - "_installable": true, - "_location": "/npmlog/gauge/has-color", - "_npmUser": { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - }, - "_npmVersion": "1.4.6", - "_phantomChildren": {}, - "_requested": { - "name": "has-color", - "raw": "has-color@^0.1.7", - "rawSpec": "^0.1.7", - "scope": null, - "spec": ">=0.1.7 <0.2.0", - "type": "range" - }, - "_requiredBy": [ - "/npmlog/gauge" - ], - "_resolved": "https://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz", - "_shasum": "67144a5260c34fc3cca677d041daf52fe7b78b2f", - "_shrinkwrap": null, - "_spec": "has-color@^0.1.7", - "_where": "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge", - "author": { - "email": "sindresorhus@gmail.com", - "name": "Sindre Sorhus", - "url": "http://sindresorhus.com" - }, - "bugs": { - "url": "https://github.com/sindresorhus/has-color/issues" - }, - "dependencies": {}, - "description": "Detect whether a terminal supports color", - "devDependencies": { - "mocha": "*" - }, - "directories": {}, - "dist": { - "shasum": "67144a5260c34fc3cca677d041daf52fe7b78b2f", - "tarball": "http://registry.npmjs.org/has-color/-/has-color-0.1.7.tgz" - }, - "engines": { - "node": ">=0.10.0" - }, - "files": [ - "index.js" - ], - "homepage": "https://github.com/sindresorhus/has-color", - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "ansi", - "styles", - "tty", - "rgb", - "256", - "shell", - "xterm", - "command-line", - "support", - "capability", - "detect" - ], - "license": "MIT", - "maintainers": [ - { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - } - ], - "name": "has-color", - "optionalDependencies": {}, - "readme": "ERROR: No README data found!", - "repository": { - "type": "git", - "url": "git://github.com/sindresorhus/has-color.git" - }, - "scripts": { - "test": "mocha" - }, - "version": "0.1.7" -} diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md deleted file mode 100644 index 37bbd8991a..0000000000 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/readme.md +++ /dev/null @@ -1,30 +0,0 @@ -# has-color [![Build Status](https://travis-ci.org/sindresorhus/has-color.svg?branch=master)](https://travis-ci.org/sindresorhus/has-color) - -> Detect whether a terminal supports color. - -Used in the terminal color module [chalk](https://github.com/sindresorhus/chalk). - - -## Install - -```bash -$ npm install --save has-color -``` - - -## Usage - -```js -var hasColor = require('has-color'); - -if (hasColor) { - console.log('Terminal supports color.'); -} -``` - -It obeys the `--color` and `--no-color` CLI flags. - - -## License - -[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com) diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js index 7dd8d917dc..337f691ed2 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/index.js @@ -19,6 +19,15 @@ if (process.__signal_exit_emitter__) { emitter.emitted = {} } +// Because this emitter is a global, we have to check to see if a +// previous version of this library failed to enable infinite listeners. +// I know what you're about to say. But literally everything about +// signal-exit is a compromise with evil. Get used to it. +if (!emitter.infinite) { + emitter.setMaxListeners(Infinity) + emitter.infinite = true +} + module.exports = function (cb, opts) { assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler') diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/package.json index 84b00e1d11..e3792dd72e 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/signal-exit/package.json @@ -10,35 +10,23 @@ "spec": ">=3.0.0 <4.0.0", "type": "range" }, - "/Users/rebecca/code/npm2/node_modules/node-gyp/node_modules/npmlog/node_modules/gauge" - ], - [ - { - "raw": "signal-exit@^3.0.0", - "scope": null, - "escapedName": "signal-exit", - "name": "signal-exit", - "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" - }, - "/Users/rebecca/code/npm2/node_modules/npmlog/node_modules/gauge" + "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge" ] ], - "_from": "signal-exit@^3.0.0", - "_id": "signal-exit@3.0.1", + "_from": "signal-exit@>=3.0.0 <4.0.0", + "_id": "signal-exit@3.0.2", "_inCache": true, "_location": "/npmlog/gauge/signal-exit", "_nodeVersion": "6.5.0", "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/signal-exit-3.0.1.tgz_1473354783379_0.4592130535747856" + "host": "packages-18-east.internal.npmjs.com", + "tmp": "tmp/signal-exit-3.0.2.tgz_1480821660838_0.6809983775019646" }, "_npmUser": { - "name": "bcoe", - "email": "ben@npmjs.com" + "name": "isaacs", + "email": "i@izs.me" }, - "_npmVersion": "3.10.3", + "_npmVersion": "3.10.9", "_phantomChildren": {}, "_requested": { "raw": "signal-exit@^3.0.0", @@ -52,11 +40,11 @@ "_requiredBy": [ "/npmlog/gauge" ], - "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.1.tgz", - "_shasum": "5a4c884992b63a7acd9badb7894c3ee9cfccad81", + "_resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "_shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", "_shrinkwrap": null, "_spec": "signal-exit@^3.0.0", - "_where": "/Users/rebecca/code/npm2/node_modules/npmlog/node_modules/gauge", + "_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" @@ -72,18 +60,18 @@ "nyc": "^8.1.0", "standard": "^7.1.2", "standard-version": "^2.3.0", - "tap": "^7.1.0" + "tap": "^8.0.1" }, "directories": {}, "dist": { - "shasum": "5a4c884992b63a7acd9badb7894c3ee9cfccad81", - "tarball": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.1.tgz" + "shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", + "tarball": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" }, "files": [ "index.js", "signals.js" ], - "gitHead": "6859aff54f5198c63fff91baef279b86026bde69", + "gitHead": "9c5ad9809fe6135ef22e2623989deaffe2a4fa8a", "homepage": "https://github.com/tapjs/signal-exit", "keywords": [ "signal", @@ -114,5 +102,5 @@ "release": "standard-version", "test": "tap --timeout=240 ./test/*.js --cov" }, - "version": "3.0.1" + "version": "3.0.2" } diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/cli.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/cli.js new file mode 100755 index 0000000000..0617971e6f --- /dev/null +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/cli.js @@ -0,0 +1,28 @@ +#!/usr/bin/env node +'use strict'; +var pkg = require('./package.json'); +var supportsColor = require('./'); +var input = process.argv[2]; + +function help() { + console.log([ + pkg.description, + '', + 'Usage', + ' $ supports-color', + '', + 'Exits with code 0 if color is supported and 1 if not' + ].join('\n')); +} + +if (!input || process.argv.indexOf('--help') !== -1) { + help(); + return; +} + +if (process.argv.indexOf('--version') !== -1) { + console.log(pkg.version); + return; +} + +process.exit(supportsColor ? 0 : 1); diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/index.js index 092d0baef6..092d0baef6 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/has-color/index.js +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/index.js diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/package.json new file mode 100644 index 0000000000..4a834e5786 --- /dev/null +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/package.json @@ -0,0 +1,112 @@ +{ + "_args": [ + [ + { + "raw": "supports-color@^0.2.0", + "scope": null, + "escapedName": "supports-color", + "name": "supports-color", + "rawSpec": "^0.2.0", + "spec": ">=0.2.0 <0.3.0", + "type": "range" + }, + "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge" + ] + ], + "_from": "supports-color@>=0.2.0 <0.3.0", + "_id": "supports-color@0.2.0", + "_inCache": true, + "_location": "/npmlog/gauge/supports-color", + "_npmUser": { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + }, + "_npmVersion": "1.4.9", + "_phantomChildren": {}, + "_requested": { + "raw": "supports-color@^0.2.0", + "scope": null, + "escapedName": "supports-color", + "name": "supports-color", + "rawSpec": "^0.2.0", + "spec": ">=0.2.0 <0.3.0", + "type": "range" + }, + "_requiredBy": [ + "/npmlog/gauge" + ], + "_resolved": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz", + "_shasum": "d92de2694eb3f67323973d7ae3d8b55b4c22190a", + "_shrinkwrap": null, + "_spec": "supports-color@^0.2.0", + "_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "http://sindresorhus.com" + }, + "bin": { + "supports-color": "cli.js" + }, + "bugs": { + "url": "https://github.com/sindresorhus/supports-color/issues" + }, + "dependencies": {}, + "description": "Detect whether a terminal supports color", + "devDependencies": { + "mocha": "*" + }, + "directories": {}, + "dist": { + "shasum": "d92de2694eb3f67323973d7ae3d8b55b4c22190a", + "tarball": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz" + }, + "engines": { + "node": ">=0.10.0" + }, + "files": [ + "index.js", + "cli.js" + ], + "homepage": "https://github.com/sindresorhus/supports-color", + "keywords": [ + "cli", + "bin", + "color", + "colour", + "colors", + "terminal", + "console", + "cli", + "ansi", + "styles", + "tty", + "rgb", + "256", + "shell", + "xterm", + "command-line", + "support", + "supports", + "capability", + "detect" + ], + "license": "MIT", + "maintainers": [ + { + "name": "sindresorhus", + "email": "sindresorhus@gmail.com" + } + ], + "name": "supports-color", + "optionalDependencies": {}, + "readme": "ERROR: No README data found!", + "repository": { + "type": "git", + "url": "git://github.com/sindresorhus/supports-color.git" + }, + "scripts": { + "test": "mocha" + }, + "version": "0.2.0" +} diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/readme.md b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/readme.md new file mode 100644 index 0000000000..7f07e5fb0f --- /dev/null +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/readme.md @@ -0,0 +1,44 @@ +# supports-color [![Build Status](https://travis-ci.org/sindresorhus/supports-color.svg?branch=master)](https://travis-ci.org/sindresorhus/supports-color) + +> Detect whether a terminal supports color + + +## Install + +```sh +$ npm install --save supports-color +``` + + +## Usage + +```js +var supportsColor = require('supports-color'); + +if (supportsColor) { + console.log('Terminal supports color'); +} +``` + +It obeys the `--color` and `--no-color` CLI flags. + + +## CLI + +```sh +$ npm install --global supports-color +``` + +```sh +$ supports-color --help + +Usage + $ supports-color + +# Exits with code 0 if color is supported and 1 if not +``` + + +## License + +MIT © [Sindre Sorhus](http://sindresorhus.com) |