@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
|
@@ -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
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
/**
|