gauge
Advanced tools
Comparing version 2.7.0 to 2.7.1
@@ -0,1 +1,6 @@ | ||
### v2.7.1 | ||
* Bug fix: Calls to show/pulse while the progress bar is disabled should still | ||
update our internal representation of what would be shown should it be enabled. | ||
### v2.7.0 | ||
@@ -2,0 +7,0 @@ |
@@ -171,3 +171,2 @@ 'use strict' | ||
Gauge.prototype.show = function (section, completed) { | ||
if (this._disabled) return | ||
this._showing = true | ||
@@ -184,2 +183,3 @@ if (typeof section === 'string') { | ||
if (completed != null) this._status.completed = completed | ||
if (this._disabled) return | ||
this._requestRedraw() | ||
@@ -189,6 +189,6 @@ } | ||
Gauge.prototype.pulse = function (subsection) { | ||
this._status.subsection = subsection || '' | ||
this._status.spun ++ | ||
if (this._disabled) return | ||
if (!this._showing) return | ||
this._status.subsection = subsection || '' | ||
this._status.spun ++ | ||
this._requestRedraw() | ||
@@ -195,0 +195,0 @@ } |
{ | ||
"name": "gauge", | ||
"version": "2.7.0", | ||
"version": "2.7.1", | ||
"description": "A terminal based horizontal guage", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
47521