@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.
Files changed (2) hide show
  1. package/dist/ui/output.js +4 -13
  2. 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
- const startTimer = () => {
175
- if (timer)
176
- return;
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
- startTimer();
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunoluizdesiqueira/bbuilder-cli",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "CLI de build local para projetos Delphi do Bimer",
5
5
  "license": "ISC",
6
6
  "repository": {