progress
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -101,3 +101,3 @@ /*! | ||
if (this.curr >= this.total) { | ||
this.render(); | ||
this.render(undefined, true); | ||
this.complete = true; | ||
@@ -118,3 +118,3 @@ this.terminate(); | ||
ProgressBar.prototype.render = function (tokens) { | ||
ProgressBar.prototype.render = function (tokens, force = false) { | ||
if (tokens) this.tokens = tokens; | ||
@@ -126,3 +126,3 @@ | ||
var delta = now - this.lastRender; | ||
if (delta < this.renderThrottle) { | ||
if (!force && (delta < this.renderThrottle)) { | ||
return; | ||
@@ -129,0 +129,0 @@ } else { |
{ | ||
"name": "progress", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Flexible ascii progress bar", | ||
@@ -5,0 +5,0 @@ "repository": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
15460
0