@nmakarov/cli-toolkit 0.61.0 → 0.65.0

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/init.js CHANGED
@@ -2378,6 +2378,9 @@ var Logger = class _Logger {
2378
2378
  const message = this.inspectChunks([operation, ...chunks]);
2379
2379
  this.out({ level: "response", message });
2380
2380
  }
2381
+ /**
2382
+ * @returns {boolean} true when the progress line was emitted (not throttled)
2383
+ */
2381
2384
  progress(message, opts) {
2382
2385
  const { prefix, count, total } = opts;
2383
2386
  const paddedTotal = String(total).length;
@@ -2411,7 +2414,9 @@ var Logger = class _Logger {
2411
2414
  if (this.options.progressThrottle && prefix) {
2412
2415
  this.lastProgressTimes[prefix] = Date.now();
2413
2416
  }
2417
+ return true;
2414
2418
  }
2419
+ return false;
2415
2420
  }
2416
2421
  shouldOutputProgress(prefix, count, total) {
2417
2422
  if (!this.options.progressThrottle) {