@stage5/lumine 0.3.70 → 0.3.71
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.
|
@@ -12,6 +12,15 @@ function jevPosition(cursor, since, until) {
|
|
|
12
12
|
} catch { return null; }
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
// MySQL BIGINT columns are serialized as decimal strings in production.
|
|
16
|
+
// Normalize only the comparison key; keep the original source rows intact.
|
|
17
|
+
function diagnosticId(value) {
|
|
18
|
+
if (typeof value !== "number" && typeof value !== "string") return null;
|
|
19
|
+
const id = Number(value);
|
|
20
|
+
return Number.isSafeInteger(id) && id > 0 &&
|
|
21
|
+
(typeof value === "number" || String(id) === value) ? id : null;
|
|
22
|
+
}
|
|
23
|
+
|
|
15
24
|
export function collectDiagnosticPages({ name, command, since, until, ownerTrace = false, jevReview = false, step, failLast }) {
|
|
16
25
|
const events = [];
|
|
17
26
|
const ids = new Set();
|
|
@@ -53,8 +62,8 @@ export function collectDiagnosticPages({ name, command, since, until, ownerTrace
|
|
|
53
62
|
failLast(failure);
|
|
54
63
|
break;
|
|
55
64
|
}
|
|
56
|
-
const idOf = row => jevReview ? row
|
|
57
|
-
if (rows.some(row =>
|
|
65
|
+
const idOf = row => diagnosticId(jevReview ? row?.eventId : row?.id);
|
|
66
|
+
if (rows.some(row => idOf(row) === null)) {
|
|
58
67
|
failure = "Diagnostic page contains an invalid event ID.";
|
|
59
68
|
failLast(failure);
|
|
60
69
|
break;
|