diff options
Diffstat (limited to 'deps/npm/node_modules/npmlog/node_modules/gauge')
17 files changed, 161 insertions, 579 deletions
diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/CHANGELOG.md b/deps/npm/node_modules/npmlog/node_modules/gauge/CHANGELOG.md index dcd9fe0177..407bc192e7 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/CHANGELOG.md +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/CHANGELOG.md @@ -1,3 +1,18 @@ +### v2.7.4 + +* Reset colors prior to ending a line, to eliminate flicker when a line + is trucated between start and end color sequences. + +### v2.7.3 + +* Only create our onExit handler when we're enabled and remove it when we're + disabled. This stops us from creating multiple onExit handlers when + multiple gauge objects are being used. +* Fix bug where if a theme name were given instead of a theme object, it + would crash. +* Remove supports-color because it's not actually used. Uhm. Yes, I just + updated it. >.> + ### v2.7.2 * Use supports-color instead of has-color (as the module has been renamed) diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/index.js index 17b4ece06e..c55324008c 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/index.js +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/index.js @@ -62,9 +62,8 @@ function Gauge (arg1, arg2) { this._$$doRedraw = callWith(this, this._doRedraw) this._$$handleSizeChange = callWith(this, this._handleSizeChange) - if (options.cleanupOnExit == null || options.cleanupOnExit) { - onExit(callWith(this, this.disable)) - } + this._cleanupOnExit = options.cleanupOnExit == null || options.cleanupOnExit + this._removeOnExit = null if (options.enabled || (options.enabled == null && this._tty && this._tty.isTTY)) { this.enable() @@ -85,12 +84,12 @@ Gauge.prototype.setTemplate = function (template) { Gauge.prototype._computeTheme = function (theme) { if (!theme) theme = {} - if (theme && (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null)) { + if (typeof theme === 'string') { + theme = this._themes.getTheme(theme) + } else if (theme && (Object.keys(theme).length === 0 || theme.hasUnicode != null || theme.hasColor != null)) { var useUnicode = theme.hasUnicode == null ? hasUnicode() : theme.hasUnicode var useColor = theme.hasColor == null ? hasColor : theme.hasColor theme = this._themes.getDefault({hasUnicode: useUnicode, hasColor: useColor, platform: theme.platform}) - } else if (typeof theme === 'string') { - theme = this._themes.getTheme(theme) } return theme } @@ -147,6 +146,9 @@ Gauge.prototype.disable = function () { } Gauge.prototype._enableEvents = function () { + if (this._cleanupOnExit) { + this._removeOnExit = onExit(callWith(this, this.disable)) + } this._tty.on('resize', this._$$handleSizeChange) if (this._fixedFramerate) { this.redrawTracker = setInterval(this._$$doRedraw, this._updateInterval) @@ -157,6 +159,7 @@ Gauge.prototype._enableEvents = function () { Gauge.prototype._disableEvents = function () { this._tty.removeListener('resize', this._$$handleSizeChange) if (this._fixedFramerate) clearInterval(this.redrawTracker) + if (this._removeOnExit) this._removeOnExit() } Gauge.prototype.hide = function (cb) { diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/index.js index 508504840d..0930cf8890 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/index.js +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/index.js @@ -1,5 +1,12 @@ +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/ + 'use strict'; /* eslint-disable no-unused-vars */ +var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; @@ -20,7 +27,7 @@ function shouldUseNative() { // Detect buggy property enumeration order in older V8 versions. // https://bugs.chromium.org/p/v8/issues/detail?id=4118 - var test1 = new String('abc'); // eslint-disable-line + var test1 = new String('abc'); // eslint-disable-line no-new-wrappers test1[5] = 'de'; if (Object.getOwnPropertyNames(test1)[0] === '5') { return false; @@ -49,7 +56,7 @@ function shouldUseNative() { } return true; - } catch (e) { + } catch (err) { // We don't expect any of the above to throw, but better to be safe. return false; } @@ -69,8 +76,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) { } } - if (Object.getOwnPropertySymbols) { - symbols = Object.getOwnPropertySymbols(from); + if (getOwnPropertySymbols) { + symbols = getOwnPropertySymbols(from); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from, symbols[i])) { to[symbols[i]] = from[symbols[i]]; diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/package.json index f27b55175b..84ac73a4a7 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/package.json @@ -1,62 +1,45 @@ { - "_args": [ - [ - "object-assign@^4.0.1", - "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge" - ] - ], - "_from": "object-assign@>=4.0.1 <5.0.0", - "_id": "object-assign@4.1.0", - "_inCache": true, - "_installable": true, + "_from": "object-assign@^4.1.0", + "_id": "object-assign@4.1.1", + "_integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "_location": "/npmlog/gauge/object-assign", - "_nodeVersion": "4.1.0", - "_npmOperationalInternal": { - "host": "packages-16-east.internal.npmjs.com", - "tmp": "tmp/object-assign-4.1.0.tgz_1462212593641_0.3332549517508596" - }, - "_npmUser": { - "email": "ben@benalpert.com", - "name": "spicyj" - }, - "_npmVersion": "2.14.19", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, + "raw": "object-assign@^4.1.0", "name": "object-assign", - "raw": "object-assign@^4.0.1", - "rawSpec": "^4.0.1", - "scope": null, - "spec": ">=4.0.1 <5.0.0", - "type": "range" + "escapedName": "object-assign", + "rawSpec": "^4.1.0", + "saveSpec": null, + "fetchSpec": "^4.1.0" }, "_requiredBy": [ "/npmlog/gauge" ], - "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz", - "_shasum": "7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0", + "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "_shasum": "2109adc7965887cfc05cbbd442cac8bfbb360863", "_shrinkwrap": null, - "_spec": "object-assign@^4.0.1", - "_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge", + "_spec": "object-assign@^4.1.0", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge", "author": { - "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, + "bin": null, "bugs": { "url": "https://github.com/sindresorhus/object-assign/issues" }, + "bundleDependencies": false, "dependencies": {}, - "description": "ES2015 Object.assign() ponyfill", + "deprecated": false, + "description": "ES2015 `Object.assign()` ponyfill", "devDependencies": { - "lodash": "^4.8.2", + "ava": "^0.16.0", + "lodash": "^4.16.4", "matcha": "^0.7.0", - "mocha": "*", - "xo": "*" - }, - "directories": {}, - "dist": { - "shasum": "7a3b3d0e98063d43f4c03f2e8ae6cd51a86883a0", - "tarball": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.0.tgz" + "xo": "^0.16.0" }, "engines": { "node": ">=0.10.0" @@ -64,7 +47,6 @@ "files": [ "index.js" ], - "gitHead": "72fe21c86911758f3342fdf41c2a57860d5829bc", "homepage": "https://github.com/sindresorhus/object-assign#readme", "keywords": [ "object", @@ -81,26 +63,16 @@ "browser" ], "license": "MIT", - "maintainers": [ - { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - }, - { - "email": "ben@benalpert.com", - "name": "spicyj" - } - ], "name": "object-assign", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/object-assign.git" }, "scripts": { "bench": "matcha bench.js", - "test": "xo && mocha" + "test": "xo && ava" }, - "version": "4.1.0" + "version": "4.1.1" } diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/readme.md b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/readme.md index 13c097734c..1be09d35c7 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/readme.md +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/object-assign/readme.md @@ -1,8 +1,13 @@ # object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign) -> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) ponyfill +> ES2015 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) [ponyfill](https://ponyfill.com) -> Ponyfill: A polyfill that doesn't overwrite the native method + +## Use the built-in + +Node.js 4 and up, as well as every evergreen browser (Chrome, Edge, Firefox, Opera, Safari), +support `Object.assign()` :tada:. If you target only those environments, then by all +means, use `Object.assign()` instead of this package. ## Install @@ -36,7 +41,7 @@ objectAssign({foo: 0}, null, {bar: 1}, undefined); ## API -### objectAssign(target, source, [source, ...]) +### objectAssign(target, [source, ...]) Assigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones. 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 e3792dd72e..cc10a8bbd1 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 @@ -1,41 +1,18 @@ { - "_args": [ - [ - { - "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/npm/node_modules/npmlog/node_modules/gauge" - ] - ], - "_from": "signal-exit@>=3.0.0 <4.0.0", + "_from": "signal-exit@^3.0.0", "_id": "signal-exit@3.0.2", - "_inCache": true, + "_integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "_location": "/npmlog/gauge/signal-exit", - "_nodeVersion": "6.5.0", - "_npmOperationalInternal": { - "host": "packages-18-east.internal.npmjs.com", - "tmp": "tmp/signal-exit-3.0.2.tgz_1480821660838_0.6809983775019646" - }, - "_npmUser": { - "name": "isaacs", - "email": "i@izs.me" - }, - "_npmVersion": "3.10.9", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "signal-exit@^3.0.0", - "scope": null, - "escapedName": "signal-exit", "name": "signal-exit", + "escapedName": "signal-exit", "rawSpec": "^3.0.0", - "spec": ">=3.0.0 <4.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^3.0.0" }, "_requiredBy": [ "/npmlog/gauge" @@ -44,15 +21,18 @@ "_shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", "_shrinkwrap": null, "_spec": "signal-exit@^3.0.0", - "_where": "/Users/rebecca/code/npm/node_modules/npmlog/node_modules/gauge", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge", "author": { "name": "Ben Coe", "email": "ben@npmjs.com" }, + "bin": null, "bugs": { "url": "https://github.com/tapjs/signal-exit/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "when you want to fire an event no matter how a process exits.", "devDependencies": { "chai": "^3.5.0", @@ -62,16 +42,10 @@ "standard-version": "^2.3.0", "tap": "^8.0.1" }, - "directories": {}, - "dist": { - "shasum": "b5fdc08f1287ea1178628e415e25132b73646c6d", - "tarball": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz" - }, "files": [ "index.js", "signals.js" ], - "gitHead": "9c5ad9809fe6135ef22e2623989deaffe2a4fa8a", "homepage": "https://github.com/tapjs/signal-exit", "keywords": [ "signal", @@ -79,19 +53,9 @@ ], "license": "ISC", "main": "index.js", - "maintainers": [ - { - "name": "bcoe", - "email": "ben@npmjs.com" - }, - { - "name": "isaacs", - "email": "isaacs@npmjs.com" - } - ], "name": "signal-exit", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/tapjs/signal-exit.git" diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json index dd1f05b6a1..e1ac1e25c6 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/code-point-at/package.json @@ -1,41 +1,18 @@ { - "_args": [ - [ - { - "raw": "code-point-at@^1.0.0", - "scope": null, - "escapedName": "code-point-at", - "name": "code-point-at", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/rebecca/code/npm-latest/node_modules/npmlog/node_modules/gauge/node_modules/string-width" - ] - ], - "_from": "code-point-at@>=1.0.0 <2.0.0", + "_from": "code-point-at@^1.0.0", "_id": "code-point-at@1.1.0", - "_inCache": true, + "_integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "_location": "/npmlog/gauge/string-width/code-point-at", - "_nodeVersion": "4.6.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/code-point-at-1.1.0.tgz_1478169780337_0.8445875702891499" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.9", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "code-point-at@^1.0.0", - "scope": null, - "escapedName": "code-point-at", "name": "code-point-at", + "escapedName": "code-point-at", "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/npmlog/gauge/string-width" @@ -44,33 +21,30 @@ "_shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77", "_shrinkwrap": null, "_spec": "code-point-at@^1.0.0", - "_where": "/Users/rebecca/code/npm-latest/node_modules/npmlog/node_modules/gauge/node_modules/string-width", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, + "bin": null, "bugs": { "url": "https://github.com/sindresorhus/code-point-at/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "ES2015 `String#codePointAt()` ponyfill", "devDependencies": { "ava": "*", "xo": "^0.16.0" }, - "directories": {}, - "dist": { - "shasum": "0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77", - "tarball": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "f8f21c8df2d40248fef1b36ca9076e59c0c34791", "homepage": "https://github.com/sindresorhus/code-point-at#readme", "keywords": [ "es2015", @@ -86,15 +60,9 @@ "unicode" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "code-point-at", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/code-point-at.git" diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json index 5430e54f92..fc17ba2bd6 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan/package.json @@ -1,41 +1,18 @@ { - "_args": [ - [ - { - "raw": "number-is-nan@^1.0.0", - "scope": null, - "escapedName": "number-is-nan", - "name": "number-is-nan", - "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" - }, - "/Users/rebecca/code/npm-latest/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point" - ] - ], - "_from": "number-is-nan@>=1.0.0 <2.0.0", + "_from": "number-is-nan@^1.0.0", "_id": "number-is-nan@1.0.1", - "_inCache": true, + "_integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "_location": "/npmlog/gauge/string-width/is-fullwidth-code-point/number-is-nan", - "_nodeVersion": "4.5.0", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/number-is-nan-1.0.1.tgz_1475212313367_0.9480371843092144" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.9", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "number-is-nan@^1.0.0", - "scope": null, - "escapedName": "number-is-nan", "name": "number-is-nan", + "escapedName": "number-is-nan", "rawSpec": "^1.0.0", - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/npmlog/gauge/string-width/is-fullwidth-code-point" @@ -44,32 +21,29 @@ "_shasum": "097b602b53422a522c1afb8790318336941a011d", "_shrinkwrap": null, "_spec": "number-is-nan@^1.0.0", - "_where": "/Users/rebecca/code/npm-latest/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, + "bin": null, "bugs": { "url": "https://github.com/sindresorhus/number-is-nan/issues" }, + "bundleDependencies": false, "dependencies": {}, + "deprecated": false, "description": "ES2015 Number.isNaN() ponyfill", "devDependencies": { "ava": "*" }, - "directories": {}, - "dist": { - "shasum": "097b602b53422a522c1afb8790318336941a011d", - "tarball": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "ed9cdac3f428cc929b61bb230da42c87477af4b9", "homepage": "https://github.com/sindresorhus/number-is-nan#readme", "keywords": [ "es2015", @@ -83,15 +57,9 @@ "not" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "number-is-nan", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/number-is-nan.git" diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json index 25fb5000dc..f138d7677a 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/package.json @@ -1,29 +1,18 @@ { - "_args": [ - [ - "is-fullwidth-code-point@^1.0.0", - "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge/node_modules/string-width" - ] - ], - "_from": "is-fullwidth-code-point@>=1.0.0 <2.0.0", + "_from": "is-fullwidth-code-point@^1.0.0", "_id": "is-fullwidth-code-point@1.0.0", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "_location": "/npmlog/gauge/string-width/is-fullwidth-code-point", - "_nodeVersion": "0.12.5", - "_npmUser": { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - }, - "_npmVersion": "2.11.2", "_phantomChildren": {}, "_requested": { - "name": "is-fullwidth-code-point", + "type": "range", + "registry": true, "raw": "is-fullwidth-code-point@^1.0.0", + "name": "is-fullwidth-code-point", + "escapedName": "is-fullwidth-code-point", "rawSpec": "^1.0.0", - "scope": null, - "spec": ">=1.0.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.0" }, "_requiredBy": [ "/npmlog/gauge/string-width" @@ -32,36 +21,33 @@ "_shasum": "ef9e31386f031a7f0d643af82fde50c457ef00cb", "_shrinkwrap": null, "_spec": "is-fullwidth-code-point@^1.0.0", - "_where": "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge/node_modules/string-width", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width", "author": { - "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, + "bin": null, "bugs": { "url": "https://github.com/sindresorhus/is-fullwidth-code-point/issues" }, + "bundleDependencies": false, "dependencies": { "number-is-nan": "^1.0.0" }, + "deprecated": false, "description": "Check if the character represented by a given Unicode code point is fullwidth", "devDependencies": { "ava": "0.0.4", "code-point-at": "^1.0.0" }, - "directories": {}, - "dist": { - "shasum": "ef9e31386f031a7f0d643af82fde50c457ef00cb", - "tarball": "http://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "f2152d357f41f82785436d428e4f8ede143b7548", - "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point", + "homepage": "https://github.com/sindresorhus/is-fullwidth-code-point#readme", "keywords": [ "fullwidth", "full-width", @@ -80,15 +66,9 @@ "check" ], "license": "MIT", - "maintainers": [ - { - "email": "sindresorhus@gmail.com", - "name": "sindresorhus" - } - ], "name": "is-fullwidth-code-point", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/is-fullwidth-code-point.git" diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/package.json index ee7bc6c9f3..87284bb270 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/string-width/package.json @@ -1,41 +1,18 @@ { - "_args": [ - [ - { - "raw": "string-width@^1.0.1", - "scope": null, - "escapedName": "string-width", - "name": "string-width", - "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" - }, - "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge" - ] - ], - "_from": "string-width@>=1.0.1 <2.0.0", + "_from": "string-width@^1.0.1", "_id": "string-width@1.0.2", - "_inCache": true, + "_integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "_location": "/npmlog/gauge/string-width", - "_nodeVersion": "4.4.5", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/string-width-1.0.2.tgz_1471188233009_0.6573935742489994" - }, - "_npmUser": { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - }, - "_npmVersion": "2.15.5", "_phantomChildren": {}, "_requested": { + "type": "range", + "registry": true, "raw": "string-width@^1.0.1", - "scope": null, - "escapedName": "string-width", "name": "string-width", + "escapedName": "string-width", "rawSpec": "^1.0.1", - "spec": ">=1.0.1 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.0.1" }, "_requiredBy": [ "/npmlog/gauge", @@ -51,31 +28,28 @@ "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, + "bin": null, "bugs": { "url": "https://github.com/sindresorhus/string-width/issues" }, + "bundleDependencies": false, "dependencies": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", "strip-ansi": "^3.0.0" }, + "deprecated": false, "description": "Get the visual width of a string - the number of columns required to display it", "devDependencies": { "ava": "*", "xo": "*" }, - "directories": {}, - "dist": { - "shasum": "118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3", - "tarball": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz" - }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], - "gitHead": "282cf3d53918a92cc3ee0778dcf938039bcbc47b", "homepage": "https://github.com/sindresorhus/string-width#readme", "keywords": [ "string", @@ -104,15 +78,9 @@ "fixed-width" ], "license": "MIT", - "maintainers": [ - { - "name": "sindresorhus", - "email": "sindresorhus@gmail.com" - } - ], "name": "string-width", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/string-width.git" 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 deleted file mode 100755 index 0617971e6f..0000000000 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/cli.js +++ /dev/null @@ -1,28 +0,0 @@ -#!/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/supports-color/index.js b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/index.js deleted file mode 100644 index 092d0baef6..0000000000 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/index.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; -module.exports = (function () { - if (process.argv.indexOf('--no-color') !== -1) { - return false; - } - - if (process.argv.indexOf('--color') !== -1) { - return true; - } - - if (process.stdout && !process.stdout.isTTY) { - return false; - } - - if (process.platform === 'win32') { - return true; - } - - if ('COLORTERM' in process.env) { - return true; - } - - if (process.env.TERM === 'dumb') { - return false; - } - - if (/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)) { - return true; - } - - return false; -})(); 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 deleted file mode 100644 index 4a834e5786..0000000000 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/package.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "_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 deleted file mode 100644 index 7f07e5fb0f..0000000000 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/supports-color/readme.md +++ /dev/null @@ -1,44 +0,0 @@ -# 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) diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/package.json index 8d3c8cf0c2..f74d76b181 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/node_modules/wide-align/package.json @@ -1,29 +1,18 @@ { - "_args": [ - [ - "wide-align@^1.1.0", - "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge" - ] - ], - "_from": "wide-align@>=1.1.0 <2.0.0", + "_from": "wide-align@^1.1.0", "_id": "wide-align@1.1.0", - "_inCache": true, - "_installable": true, + "_integrity": "sha1-QO3egCpx/qHwcNo+YtzaLnrdlq0=", "_location": "/npmlog/gauge/wide-align", - "_nodeVersion": "4.2.2", - "_npmUser": { - "email": "me@re-becca.org", - "name": "iarna" - }, - "_npmVersion": "3.5.3", "_phantomChildren": {}, "_requested": { - "name": "wide-align", + "type": "range", + "registry": true, "raw": "wide-align@^1.1.0", + "name": "wide-align", + "escapedName": "wide-align", "rawSpec": "^1.1.0", - "scope": null, - "spec": ">=1.1.0 <2.0.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "^1.1.0" }, "_requiredBy": [ "/npmlog/gauge" @@ -32,28 +21,25 @@ "_shasum": "40edde802a71fea1f070da3e62dcda2e7add96ad", "_shrinkwrap": null, "_spec": "wide-align@^1.1.0", - "_where": "/Users/rebecca/code/npm-with-new-gauge/node_modules/npmlog/node_modules/gauge", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog/node_modules/gauge", "author": { - "email": "me@re-becca.org", "name": "Rebecca Turner", + "email": "me@re-becca.org", "url": "http://re-becca.org/" }, + "bin": null, "bugs": { "url": "https://github.com/iarna/wide-align/issues" }, + "bundleDependencies": false, "dependencies": { "string-width": "^1.0.1" }, + "deprecated": false, "description": "A wide-character aware text alignment function for use on the console or with fixed width fonts.", "devDependencies": { "tap": "^2.3.2" }, - "directories": {}, - "dist": { - "shasum": "40edde802a71fea1f070da3e62dcda2e7add96ad", - "tarball": "http://registry.npmjs.org/wide-align/-/wide-align-1.1.0.tgz" - }, - "gitHead": "fe3f7f210650913d5bee702d7e19938f6977bc8a", "homepage": "https://github.com/iarna/wide-align#readme", "keywords": [ "wide", @@ -65,15 +51,9 @@ ], "license": "ISC", "main": "align.js", - "maintainers": [ - { - "email": "me@re-becca.org", - "name": "iarna" - } - ], "name": "wide-align", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/iarna/wide-align.git" diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/package.json b/deps/npm/node_modules/npmlog/node_modules/gauge/package.json index ed2eb61e98..7a9b397581 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/package.json +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/package.json @@ -1,59 +1,38 @@ { - "_args": [ - [ - { - "raw": "gauge@~2.7.1", - "scope": null, - "escapedName": "gauge", - "name": "gauge", - "rawSpec": "~2.7.1", - "spec": ">=2.7.1 <2.8.0", - "type": "range" - }, - "/Users/rebecca/code/npm/node_modules/npmlog" - ] - ], - "_from": "gauge@>=2.7.1 <2.8.0", - "_id": "gauge@2.7.2", - "_inCache": true, + "_from": "gauge@~2.7.1", + "_id": "gauge@2.7.4", + "_integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "_location": "/npmlog/gauge", - "_nodeVersion": "6.9.1", - "_npmOperationalInternal": { - "host": "packages-12-west.internal.npmjs.com", - "tmp": "tmp/gauge-2.7.2.tgz_1480851024801_0.17901206784881651" - }, - "_npmUser": { - "name": "iarna", - "email": "me@re-becca.org" - }, - "_npmVersion": "4.0.5", "_phantomChildren": { "strip-ansi": "3.0.1" }, "_requested": { + "type": "range", + "registry": true, "raw": "gauge@~2.7.1", - "scope": null, - "escapedName": "gauge", "name": "gauge", + "escapedName": "gauge", "rawSpec": "~2.7.1", - "spec": ">=2.7.1 <2.8.0", - "type": "range" + "saveSpec": null, + "fetchSpec": "~2.7.1" }, "_requiredBy": [ "/npmlog" ], - "_resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.2.tgz", - "_shasum": "15cecc31b02d05345a5d6b0e171cdb3ad2307774", + "_resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "_shasum": "2c03405c7538c39d7eb37b317022e325fb018bf7", "_shrinkwrap": null, "_spec": "gauge@~2.7.1", - "_where": "/Users/rebecca/code/npm/node_modules/npmlog", + "_where": "/Users/zkat/Documents/code/npm/node_modules/npmlog", "author": { "name": "Rebecca Turner", "email": "me@re-becca.org" }, + "bin": null, "bugs": { "url": "https://github.com/iarna/gauge/issues" }, + "bundleDependencies": false, "dependencies": { "aproba": "^1.0.3", "console-control-strings": "^1.0.0", @@ -62,9 +41,9 @@ "signal-exit": "^3.0.0", "string-width": "^1.0.1", "strip-ansi": "^3.0.1", - "supports-color": "^0.2.0", "wide-align": "^1.1.0" }, + "deprecated": false, "description": "A terminal based horizontal guage", "devDependencies": { "readable-stream": "^2.0.6", @@ -73,11 +52,6 @@ "tap": "^5.7.2", "through2": "^2.0.0" }, - "directories": {}, - "dist": { - "shasum": "15cecc31b02d05345a5d6b0e171cdb3ad2307774", - "tarball": "https://registry.npmjs.org/gauge/-/gauge-2.7.2.tgz" - }, "files": [ "base-theme.js", "CHANGELOG.md", @@ -99,7 +73,6 @@ "themes.js", "wide-truncate.js" ], - "gitHead": "6971e27a577d165cde360ebed86a59dfc18ac55b", "homepage": "https://github.com/iarna/gauge", "keywords": [ "progressbar", @@ -108,15 +81,9 @@ ], "license": "ISC", "main": "index.js", - "maintainers": [ - { - "name": "iarna", - "email": "me@re-becca.org" - } - ], "name": "gauge", "optionalDependencies": {}, - "readme": "ERROR: No README data found!", + "peerDependencies": {}, "repository": { "type": "git", "url": "git+https://github.com/iarna/gauge.git" @@ -125,5 +92,5 @@ "prepublish": "rm -f *~", "test": "standard && tap test/*.js --coverage" }, - "version": "2.7.2" + "version": "2.7.4" } diff --git a/deps/npm/node_modules/npmlog/node_modules/gauge/plumbing.js b/deps/npm/node_modules/npmlog/node_modules/gauge/plumbing.js index 589a9c9287..1afb4af6d5 100644 --- a/deps/npm/node_modules/npmlog/node_modules/gauge/plumbing.js +++ b/deps/npm/node_modules/npmlog/node_modules/gauge/plumbing.js @@ -43,5 +43,6 @@ Plumbing.prototype.show = function (status) { } return renderTemplate(this.width, this.template, values).trim() + + consoleControl.color('reset') + consoleControl.eraseLine() + consoleControl.gotoSOL() } |