@riddledc/riddle-proof 0.7.110 → 0.7.111
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.cjs +8 -1
- package/dist/cli.js +8 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -12951,7 +12951,14 @@ function profileCheckMarkdownTarget(check) {
|
|
|
12951
12951
|
return maxOverflow !== void 0 ? `<= ${maxOverflow}px` : void 0;
|
|
12952
12952
|
}
|
|
12953
12953
|
if (check.type === "no_fatal_console_errors") {
|
|
12954
|
-
|
|
12954
|
+
const fatalCount = cliFiniteNumber(evidence.console_fatal_count) ?? cliFiniteNumber(evidence.fatal_error_count) ?? 0;
|
|
12955
|
+
const totalConsoleCount = cliFiniteNumber(evidence.total_console_fatal_count);
|
|
12956
|
+
const allowedConsoleCount = cliFiniteNumber(evidence.allowed_console_fatal_count);
|
|
12957
|
+
const parts = [`${fatalCount} unallowed fatal error${fatalCount === 1 ? "" : "s"}`];
|
|
12958
|
+
if (totalConsoleCount !== void 0 && allowedConsoleCount !== void 0) {
|
|
12959
|
+
parts.push(`${allowedConsoleCount}/${totalConsoleCount} console fatal allowed`);
|
|
12960
|
+
}
|
|
12961
|
+
return parts.join(", ");
|
|
12955
12962
|
}
|
|
12956
12963
|
if (check.type === "no_console_warnings") {
|
|
12957
12964
|
const warningCount = cliFiniteNumber(evidence.console_warning_count) ?? 0;
|
package/dist/cli.js
CHANGED
|
@@ -449,7 +449,14 @@ function profileCheckMarkdownTarget(check) {
|
|
|
449
449
|
return maxOverflow !== void 0 ? `<= ${maxOverflow}px` : void 0;
|
|
450
450
|
}
|
|
451
451
|
if (check.type === "no_fatal_console_errors") {
|
|
452
|
-
|
|
452
|
+
const fatalCount = cliFiniteNumber(evidence.console_fatal_count) ?? cliFiniteNumber(evidence.fatal_error_count) ?? 0;
|
|
453
|
+
const totalConsoleCount = cliFiniteNumber(evidence.total_console_fatal_count);
|
|
454
|
+
const allowedConsoleCount = cliFiniteNumber(evidence.allowed_console_fatal_count);
|
|
455
|
+
const parts = [`${fatalCount} unallowed fatal error${fatalCount === 1 ? "" : "s"}`];
|
|
456
|
+
if (totalConsoleCount !== void 0 && allowedConsoleCount !== void 0) {
|
|
457
|
+
parts.push(`${allowedConsoleCount}/${totalConsoleCount} console fatal allowed`);
|
|
458
|
+
}
|
|
459
|
+
return parts.join(", ");
|
|
453
460
|
}
|
|
454
461
|
if (check.type === "no_console_warnings") {
|
|
455
462
|
const warningCount = cliFiniteNumber(evidence.console_warning_count) ?? 0;
|