@uxf/scripts 11.53.0 → 11.58.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/scripts",
3
- "version": "11.53.0",
3
+ "version": "11.58.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -348,13 +348,16 @@ async function testNested(urls, parentIndex, parentUrl, label, webUrl) {
348
348
  }
349
349
  }
350
350
 
351
+ let lastLogTime = 0;
351
352
  function printProgress() {
352
- stdout.clearLine(0);
353
- stdout.cursorTo(0);
354
-
355
- stdout.write(`Completed: ${TESTED_URLS.length}/${URLS_TO_CHECK.size}${createTabSpace(2)}`);
356
- stdout.write(`Skipped: ${TESTED_URLS.filter((u) => u.skipped).length}${createTabSpace(2)}`);
357
- stdout.write(`Errors: ${TESTED_URLS.filter((u) => u.status !== 200 && u.skipped === false).length}`);
353
+ const now = Date.now();
354
+ // Only log every 5 seconds in non-TTY
355
+ if (now - lastLogTime > 5000) {
356
+ stdout.write(
357
+ `Progress: ${TESTED_URLS.length}/${URLS_TO_CHECK.size} completed, ${TESTED_URLS.filter((u) => u.skipped).length} skipped, ${TESTED_URLS.filter((u) => u.status !== 200 && u.skipped === false).length} errors\n`,
358
+ );
359
+ lastLogTime = now;
360
+ }
358
361
  }
359
362
 
360
363
  /**