vidistill 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -266,6 +266,7 @@ function createProgressDisplay() {
|
|
|
266
266
|
seenTotalSteps = true;
|
|
267
267
|
s.stop("");
|
|
268
268
|
progressBar = progress({ max: status.totalSteps });
|
|
269
|
+
progressBar.start(label);
|
|
269
270
|
}
|
|
270
271
|
if (progressBar != null) {
|
|
271
272
|
if (status.status === "done" && status.currentStep != null) {
|
|
@@ -281,7 +282,16 @@ function createProgressDisplay() {
|
|
|
281
282
|
}
|
|
282
283
|
function onWait(_delayMs) {
|
|
283
284
|
}
|
|
284
|
-
function complete(
|
|
285
|
+
function complete(result, _elapsedMs) {
|
|
286
|
+
if (progressBar != null) {
|
|
287
|
+
if (result.errors.length > 0) {
|
|
288
|
+
progressBar.stop("");
|
|
289
|
+
} else {
|
|
290
|
+
progressBar.stop("");
|
|
291
|
+
}
|
|
292
|
+
} else {
|
|
293
|
+
s.stop("");
|
|
294
|
+
}
|
|
285
295
|
}
|
|
286
296
|
return { update, onWait, complete };
|
|
287
297
|
}
|
package/package.json
CHANGED