dowwntime 1.0.10 → 1.0.12
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/cli.mjs +4 -2
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +7 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +50 -49
package/dist/cli.mjs
CHANGED
|
@@ -28025,12 +28025,14 @@ const run = async (options) => {
|
|
|
28025
28025
|
durationMs = Date.now() - start;
|
|
28026
28026
|
status = "down";
|
|
28027
28027
|
}
|
|
28028
|
-
|
|
28028
|
+
const measurement = {
|
|
28029
28029
|
status,
|
|
28030
28030
|
durationMs,
|
|
28031
28031
|
timestamp: start,
|
|
28032
28032
|
url: url$2.toString()
|
|
28033
28033
|
};
|
|
28034
|
+
debug$1(`Measured ${path$4}:`, measurement);
|
|
28035
|
+
return measurement;
|
|
28034
28036
|
};
|
|
28035
28037
|
const throttledMeasure = pThrottle({
|
|
28036
28038
|
limit: options.concurrency ?? 5,
|
|
@@ -28044,7 +28046,7 @@ const run = async (options) => {
|
|
|
28044
28046
|
acc.durationMs = Math.round((acc.durationMs + curr.durationMs) / 2);
|
|
28045
28047
|
return acc;
|
|
28046
28048
|
}, void 0);
|
|
28047
|
-
debug$1(`Measured ${path$4}:`, measurement);
|
|
28049
|
+
debug$1(`Measured ${path$4} (avg):`, measurement);
|
|
28048
28050
|
if (!measurement) return;
|
|
28049
28051
|
await measurements.add(path$4, measurement);
|
|
28050
28052
|
}));
|