@riddledc/riddle-proof 0.7.42 → 0.7.43
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/README.md +4 -1
- package/dist/{chunk-MT2OZCCP.js → chunk-ZB5DSQF2.js} +30 -12
- package/dist/cli.cjs +30 -12
- package/dist/cli.js +1 -1
- package/dist/index.cjs +30 -12
- package/dist/index.js +1 -1
- package/dist/profile.cjs +30 -12
- package/dist/profile.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -252,7 +252,10 @@ known browser console error, such as a mocked `503` that the app recovers from:
|
|
|
252
252
|
Allowed console events and page errors are still counted in check evidence, but
|
|
253
253
|
only unallowed `error` / `assert` console events and page errors fail the check.
|
|
254
254
|
Use `allowed_page_error_patterns`, `allowed_console_texts`, or
|
|
255
|
-
`allowed_page_error_texts` for narrower matching when needed.
|
|
255
|
+
`allowed_page_error_texts` for narrower matching when needed. Console allowlists
|
|
256
|
+
match both the console text and the event location URL, which is useful for
|
|
257
|
+
expected resource probes where the browser message is generic but the URL is
|
|
258
|
+
specific.
|
|
256
259
|
|
|
257
260
|
Use `selector_absent` when a forbidden element must not render, and
|
|
258
261
|
`selector_count_equals` / `selector_count_equal` / `selector_count_eq` when a
|
|
@@ -570,8 +570,17 @@ function matchText(sample, check) {
|
|
|
570
570
|
}
|
|
571
571
|
return sample.includes(check.text || "");
|
|
572
572
|
}
|
|
573
|
-
function
|
|
574
|
-
|
|
573
|
+
function allowedMessageSample(input) {
|
|
574
|
+
if (!isRecord(input)) return String(input || "");
|
|
575
|
+
const parts = [
|
|
576
|
+
input.text,
|
|
577
|
+
input.message,
|
|
578
|
+
isRecord(input.location) ? input.location.url : void 0
|
|
579
|
+
];
|
|
580
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
581
|
+
}
|
|
582
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
583
|
+
const sample = allowedMessageSample(input);
|
|
575
584
|
if (texts?.some((text) => sample.includes(text))) return true;
|
|
576
585
|
for (const pattern of patterns || []) {
|
|
577
586
|
try {
|
|
@@ -899,11 +908,11 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
899
908
|
}
|
|
900
909
|
if (check.type === "no_fatal_console_errors") {
|
|
901
910
|
const fatalConsoleEvents = (evidence.console?.events || []).filter((event) => event.type === "error" || event.type === "assert");
|
|
902
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
903
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
911
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
912
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
904
913
|
const pageErrors = evidence.page_errors || [];
|
|
905
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
906
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
914
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
915
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
907
916
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
908
917
|
return {
|
|
909
918
|
type: check.type,
|
|
@@ -1188,8 +1197,17 @@ function textMatches(sample, check) {
|
|
|
1188
1197
|
}
|
|
1189
1198
|
return String(sample || "").includes(check.text || "");
|
|
1190
1199
|
}
|
|
1191
|
-
function
|
|
1192
|
-
|
|
1200
|
+
function allowedMessageSample(input) {
|
|
1201
|
+
if (!input || typeof input !== "object" || Array.isArray(input)) return String(input || "");
|
|
1202
|
+
const parts = [
|
|
1203
|
+
input.text,
|
|
1204
|
+
input.message,
|
|
1205
|
+
input.location && typeof input.location === "object" ? input.location.url : undefined,
|
|
1206
|
+
];
|
|
1207
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
1208
|
+
}
|
|
1209
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
1210
|
+
const sample = allowedMessageSample(input);
|
|
1193
1211
|
if ((texts || []).some((text) => sample.includes(text))) return true;
|
|
1194
1212
|
for (const pattern of patterns || []) {
|
|
1195
1213
|
try {
|
|
@@ -1670,11 +1688,11 @@ function assessProfile(profile, evidence) {
|
|
|
1670
1688
|
}
|
|
1671
1689
|
if (check.type === "no_fatal_console_errors") {
|
|
1672
1690
|
const fatalConsoleEvents = ((evidence.console && evidence.console.events) || []).filter((event) => event && (event.type === "error" || event.type === "assert"));
|
|
1673
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
1674
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
1691
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
1692
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
1675
1693
|
const pageErrors = evidence.page_errors || [];
|
|
1676
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
1677
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
1694
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
1695
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
1678
1696
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
1679
1697
|
checks.push({
|
|
1680
1698
|
type: check.type,
|
package/dist/cli.cjs
CHANGED
|
@@ -7443,8 +7443,17 @@ function matchText(sample, check) {
|
|
|
7443
7443
|
}
|
|
7444
7444
|
return sample.includes(check.text || "");
|
|
7445
7445
|
}
|
|
7446
|
-
function
|
|
7447
|
-
|
|
7446
|
+
function allowedMessageSample(input) {
|
|
7447
|
+
if (!isRecord(input)) return String(input || "");
|
|
7448
|
+
const parts = [
|
|
7449
|
+
input.text,
|
|
7450
|
+
input.message,
|
|
7451
|
+
isRecord(input.location) ? input.location.url : void 0
|
|
7452
|
+
];
|
|
7453
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
7454
|
+
}
|
|
7455
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
7456
|
+
const sample = allowedMessageSample(input);
|
|
7448
7457
|
if (texts?.some((text) => sample.includes(text))) return true;
|
|
7449
7458
|
for (const pattern of patterns || []) {
|
|
7450
7459
|
try {
|
|
@@ -7772,11 +7781,11 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
7772
7781
|
}
|
|
7773
7782
|
if (check.type === "no_fatal_console_errors") {
|
|
7774
7783
|
const fatalConsoleEvents = (evidence.console?.events || []).filter((event) => event.type === "error" || event.type === "assert");
|
|
7775
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
7776
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
7784
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
7785
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
7777
7786
|
const pageErrors = evidence.page_errors || [];
|
|
7778
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
7779
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
7787
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
7788
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
7780
7789
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
7781
7790
|
return {
|
|
7782
7791
|
type: check.type,
|
|
@@ -8045,8 +8054,17 @@ function textMatches(sample, check) {
|
|
|
8045
8054
|
}
|
|
8046
8055
|
return String(sample || "").includes(check.text || "");
|
|
8047
8056
|
}
|
|
8048
|
-
function
|
|
8049
|
-
|
|
8057
|
+
function allowedMessageSample(input) {
|
|
8058
|
+
if (!input || typeof input !== "object" || Array.isArray(input)) return String(input || "");
|
|
8059
|
+
const parts = [
|
|
8060
|
+
input.text,
|
|
8061
|
+
input.message,
|
|
8062
|
+
input.location && typeof input.location === "object" ? input.location.url : undefined,
|
|
8063
|
+
];
|
|
8064
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
8065
|
+
}
|
|
8066
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
8067
|
+
const sample = allowedMessageSample(input);
|
|
8050
8068
|
if ((texts || []).some((text) => sample.includes(text))) return true;
|
|
8051
8069
|
for (const pattern of patterns || []) {
|
|
8052
8070
|
try {
|
|
@@ -8527,11 +8545,11 @@ function assessProfile(profile, evidence) {
|
|
|
8527
8545
|
}
|
|
8528
8546
|
if (check.type === "no_fatal_console_errors") {
|
|
8529
8547
|
const fatalConsoleEvents = ((evidence.console && evidence.console.events) || []).filter((event) => event && (event.type === "error" || event.type === "assert"));
|
|
8530
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
8531
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
8548
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
8549
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
8532
8550
|
const pageErrors = evidence.page_errors || [];
|
|
8533
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
8534
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
8551
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
8552
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
8535
8553
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
8536
8554
|
checks.push({
|
|
8537
8555
|
type: check.type,
|
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -9284,8 +9284,17 @@ function matchText(sample, check) {
|
|
|
9284
9284
|
}
|
|
9285
9285
|
return sample.includes(check.text || "");
|
|
9286
9286
|
}
|
|
9287
|
-
function
|
|
9288
|
-
|
|
9287
|
+
function allowedMessageSample(input) {
|
|
9288
|
+
if (!isRecord2(input)) return String(input || "");
|
|
9289
|
+
const parts = [
|
|
9290
|
+
input.text,
|
|
9291
|
+
input.message,
|
|
9292
|
+
isRecord2(input.location) ? input.location.url : void 0
|
|
9293
|
+
];
|
|
9294
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
9295
|
+
}
|
|
9296
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
9297
|
+
const sample = allowedMessageSample(input);
|
|
9289
9298
|
if (texts?.some((text) => sample.includes(text))) return true;
|
|
9290
9299
|
for (const pattern of patterns || []) {
|
|
9291
9300
|
try {
|
|
@@ -9613,11 +9622,11 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
9613
9622
|
}
|
|
9614
9623
|
if (check.type === "no_fatal_console_errors") {
|
|
9615
9624
|
const fatalConsoleEvents = (evidence.console?.events || []).filter((event) => event.type === "error" || event.type === "assert");
|
|
9616
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
9617
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
9625
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
9626
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
9618
9627
|
const pageErrors = evidence.page_errors || [];
|
|
9619
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
9620
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
9628
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
9629
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
9621
9630
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
9622
9631
|
return {
|
|
9623
9632
|
type: check.type,
|
|
@@ -9902,8 +9911,17 @@ function textMatches(sample, check) {
|
|
|
9902
9911
|
}
|
|
9903
9912
|
return String(sample || "").includes(check.text || "");
|
|
9904
9913
|
}
|
|
9905
|
-
function
|
|
9906
|
-
|
|
9914
|
+
function allowedMessageSample(input) {
|
|
9915
|
+
if (!input || typeof input !== "object" || Array.isArray(input)) return String(input || "");
|
|
9916
|
+
const parts = [
|
|
9917
|
+
input.text,
|
|
9918
|
+
input.message,
|
|
9919
|
+
input.location && typeof input.location === "object" ? input.location.url : undefined,
|
|
9920
|
+
];
|
|
9921
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
9922
|
+
}
|
|
9923
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
9924
|
+
const sample = allowedMessageSample(input);
|
|
9907
9925
|
if ((texts || []).some((text) => sample.includes(text))) return true;
|
|
9908
9926
|
for (const pattern of patterns || []) {
|
|
9909
9927
|
try {
|
|
@@ -10384,11 +10402,11 @@ function assessProfile(profile, evidence) {
|
|
|
10384
10402
|
}
|
|
10385
10403
|
if (check.type === "no_fatal_console_errors") {
|
|
10386
10404
|
const fatalConsoleEvents = ((evidence.console && evidence.console.events) || []).filter((event) => event && (event.type === "error" || event.type === "assert"));
|
|
10387
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
10388
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
10405
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
10406
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
10389
10407
|
const pageErrors = evidence.page_errors || [];
|
|
10390
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
10391
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
10408
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
10409
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
10392
10410
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
10393
10411
|
checks.push({
|
|
10394
10412
|
type: check.type,
|
package/dist/index.js
CHANGED
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
resolveRiddleProofProfileTimeoutSec,
|
|
59
59
|
slugifyRiddleProofProfileName,
|
|
60
60
|
summarizeRiddleProofProfileResult
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-ZB5DSQF2.js";
|
|
62
62
|
import {
|
|
63
63
|
DEFAULT_RIDDLE_API_BASE_URL,
|
|
64
64
|
DEFAULT_RIDDLE_API_KEY_FILE,
|
package/dist/profile.cjs
CHANGED
|
@@ -613,8 +613,17 @@ function matchText(sample, check) {
|
|
|
613
613
|
}
|
|
614
614
|
return sample.includes(check.text || "");
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
|
|
616
|
+
function allowedMessageSample(input) {
|
|
617
|
+
if (!isRecord(input)) return String(input || "");
|
|
618
|
+
const parts = [
|
|
619
|
+
input.text,
|
|
620
|
+
input.message,
|
|
621
|
+
isRecord(input.location) ? input.location.url : void 0
|
|
622
|
+
];
|
|
623
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
624
|
+
}
|
|
625
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
626
|
+
const sample = allowedMessageSample(input);
|
|
618
627
|
if (texts?.some((text) => sample.includes(text))) return true;
|
|
619
628
|
for (const pattern of patterns || []) {
|
|
620
629
|
try {
|
|
@@ -942,11 +951,11 @@ function assessCheckFromEvidence(check, evidence) {
|
|
|
942
951
|
}
|
|
943
952
|
if (check.type === "no_fatal_console_errors") {
|
|
944
953
|
const fatalConsoleEvents = (evidence.console?.events || []).filter((event) => event.type === "error" || event.type === "assert");
|
|
945
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
946
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
954
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
955
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
947
956
|
const pageErrors = evidence.page_errors || [];
|
|
948
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
949
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
957
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
958
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
950
959
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
951
960
|
return {
|
|
952
961
|
type: check.type,
|
|
@@ -1231,8 +1240,17 @@ function textMatches(sample, check) {
|
|
|
1231
1240
|
}
|
|
1232
1241
|
return String(sample || "").includes(check.text || "");
|
|
1233
1242
|
}
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1243
|
+
function allowedMessageSample(input) {
|
|
1244
|
+
if (!input || typeof input !== "object" || Array.isArray(input)) return String(input || "");
|
|
1245
|
+
const parts = [
|
|
1246
|
+
input.text,
|
|
1247
|
+
input.message,
|
|
1248
|
+
input.location && typeof input.location === "object" ? input.location.url : undefined,
|
|
1249
|
+
];
|
|
1250
|
+
return parts.map((part) => String(part || "")).filter(Boolean).join(" ");
|
|
1251
|
+
}
|
|
1252
|
+
function matchesAllowedMessage(input, texts, patterns) {
|
|
1253
|
+
const sample = allowedMessageSample(input);
|
|
1236
1254
|
if ((texts || []).some((text) => sample.includes(text))) return true;
|
|
1237
1255
|
for (const pattern of patterns || []) {
|
|
1238
1256
|
try {
|
|
@@ -1713,11 +1731,11 @@ function assessProfile(profile, evidence) {
|
|
|
1713
1731
|
}
|
|
1714
1732
|
if (check.type === "no_fatal_console_errors") {
|
|
1715
1733
|
const fatalConsoleEvents = ((evidence.console && evidence.console.events) || []).filter((event) => event && (event.type === "error" || event.type === "assert"));
|
|
1716
|
-
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event
|
|
1717
|
-
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event
|
|
1734
|
+
const allowedConsoleEvents = fatalConsoleEvents.filter((event) => matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
1735
|
+
const unallowedConsoleEvents = fatalConsoleEvents.filter((event) => !matchesAllowedMessage(event, check.allowed_console_texts, check.allowed_console_patterns));
|
|
1718
1736
|
const pageErrors = evidence.page_errors || [];
|
|
1719
|
-
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error
|
|
1720
|
-
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error
|
|
1737
|
+
const allowedPageErrors = pageErrors.filter((error) => matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
1738
|
+
const unallowedPageErrors = pageErrors.filter((error) => !matchesAllowedMessage(error, check.allowed_page_error_texts, check.allowed_page_error_patterns));
|
|
1721
1739
|
const fatalCount = unallowedConsoleEvents.length + unallowedPageErrors.length;
|
|
1722
1740
|
checks.push({
|
|
1723
1741
|
type: check.type,
|
package/dist/profile.js
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
resolveRiddleProofProfileTimeoutSec,
|
|
20
20
|
slugifyRiddleProofProfileName,
|
|
21
21
|
summarizeRiddleProofProfileResult
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZB5DSQF2.js";
|
|
23
23
|
export {
|
|
24
24
|
RIDDLE_PROOF_PROFILE_CHECK_TYPES,
|
|
25
25
|
RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
|