@brunoluizdesiqueira/bbuilder-cli 1.0.13 → 1.0.14
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/ui/output.js +4 -13
- package/package.json +1 -1
package/dist/ui/output.js
CHANGED
|
@@ -171,21 +171,13 @@ async function withProgress(stage, total, label, task, options) {
|
|
|
171
171
|
drawProgressLine(renderProgressLine(stage, total, label, startTime, frameIndex));
|
|
172
172
|
rendered = true;
|
|
173
173
|
};
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
timer = setInterval(() => {
|
|
178
|
-
frameIndex += 1;
|
|
179
|
-
render();
|
|
180
|
-
}, 120);
|
|
181
|
-
};
|
|
182
|
-
const initialDelay = setTimeout(() => {
|
|
174
|
+
render();
|
|
175
|
+
timer = setInterval(() => {
|
|
176
|
+
frameIndex += 1;
|
|
183
177
|
render();
|
|
184
|
-
|
|
185
|
-
}, 180);
|
|
178
|
+
}, 120);
|
|
186
179
|
try {
|
|
187
180
|
const result = await task();
|
|
188
|
-
clearTimeout(initialDelay);
|
|
189
181
|
if (timer)
|
|
190
182
|
clearInterval(timer);
|
|
191
183
|
if (rendered)
|
|
@@ -194,7 +186,6 @@ async function withProgress(stage, total, label, task, options) {
|
|
|
194
186
|
return result;
|
|
195
187
|
}
|
|
196
188
|
catch (error) {
|
|
197
|
-
clearTimeout(initialDelay);
|
|
198
189
|
if (timer)
|
|
199
190
|
clearInterval(timer);
|
|
200
191
|
if (rendered)
|