dowwntime 1.3.2 → 1.3.3
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 +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
package/dist/cli.mjs
CHANGED
|
@@ -28386,7 +28386,7 @@ const run = async (options) => {
|
|
|
28386
28386
|
let status = "down";
|
|
28387
28387
|
const statusCode = Math.max(...filteredResults.map((r) => r?.statusCode ?? 0));
|
|
28388
28388
|
if (options.getStatus) status = options.getStatus(statusCode, path$4, durationMs);
|
|
28389
|
-
else status = statusCode >= 200 ? "up" : "down";
|
|
28389
|
+
else status = statusCode >= 200 && statusCode < 300 ? "up" : "down";
|
|
28390
28390
|
const measurement = {
|
|
28391
28391
|
status,
|
|
28392
28392
|
durationMs,
|