Comparing version 2.5.1 to 2.5.2
@@ -0,1 +1,5 @@ | ||
### v2.5.2 | ||
* Externalized `./console-strings.js` into `console-control-strings`. | ||
### v2.5.1 | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "gauge", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"description": "A terminal based horizontal guage", | ||
@@ -26,2 +26,3 @@ "main": "index.js", | ||
"aproba": "^1.0.3", | ||
"console-control-strings": "^1.0.0", | ||
"has-color": "^0.1.7", | ||
@@ -45,3 +46,2 @@ "has-unicode": "^2.0.0", | ||
"CHANGELOG.md", | ||
"console-strings.js", | ||
"error.js", | ||
@@ -48,0 +48,0 @@ "has-color.js", |
'use strict' | ||
var consoleStrings = require('./console-strings.js') | ||
var consoleControl = require('console-control-strings') | ||
var renderTemplate = require('./render-template.js') | ||
@@ -32,8 +32,8 @@ var validate = require('aproba') | ||
Plumbing.prototype.hide = function () { | ||
return consoleStrings.gotoSOL() + consoleStrings.eraseLine() | ||
return consoleControl.gotoSOL() + consoleControl.eraseLine() | ||
} | ||
Plumbing.prototype.hideCursor = consoleStrings.hideCursor | ||
Plumbing.prototype.hideCursor = consoleControl.hideCursor | ||
Plumbing.prototype.showCursor = consoleStrings.showCursor | ||
Plumbing.prototype.showCursor = consoleControl.showCursor | ||
@@ -47,3 +47,3 @@ Plumbing.prototype.show = function (status) { | ||
return renderTemplate(this.width, this.template, values).trim() + | ||
consoleStrings.eraseLine() + consoleStrings.gotoSOL() | ||
consoleControl.eraseLine() + consoleControl.gotoSOL() | ||
} |
'use strict' | ||
var consoleStrings = require('./console-strings') | ||
var consoleControl = require('console-control-strings') | ||
var ThemeSet = require('./theme-set.js') | ||
@@ -20,8 +20,8 @@ | ||
progressbarTheme: { | ||
preComplete: consoleStrings.color('inverse'), | ||
preComplete: consoleControl.color('inverse'), | ||
complete: ' ', | ||
postComplete: consoleStrings.color('stopInverse'), | ||
preRemaining: consoleStrings.color('brightBlack'), | ||
postComplete: consoleControl.color('stopInverse'), | ||
preRemaining: consoleControl.color('brightBlack'), | ||
remaining: '.', | ||
postRemaining: consoleStrings.color('reset') | ||
postRemaining: consoleControl.color('reset') | ||
} | ||
@@ -43,8 +43,8 @@ }) | ||
progressbarTheme: { | ||
preComplete: consoleStrings.color('inverse'), | ||
preComplete: consoleControl.color('inverse'), | ||
complete: ' ', | ||
postComplete: consoleStrings.color('stopInverse'), | ||
preRemaining: consoleStrings.color('brightBlack'), | ||
postComplete: consoleControl.color('stopInverse'), | ||
preRemaining: consoleControl.color('brightBlack'), | ||
remaining: '░', | ||
postRemaining: consoleStrings.color('reset') | ||
postRemaining: consoleControl.color('reset') | ||
} | ||
@@ -51,0 +51,0 @@ }) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
50960
0
394
9
718
+ Addedconsole-control-strings@1.1.0(transitive)