@cms-lab/reporter 1.2.4 → 1.2.5
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/index.js +11 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -521,7 +521,14 @@ function plural(value, singular) {
|
|
|
521
521
|
return value === 1 ? singular : `${singular}s`;
|
|
522
522
|
}
|
|
523
523
|
function groupDiagnostics(diagnostics) {
|
|
524
|
-
const groupOrder = [
|
|
524
|
+
const groupOrder = [
|
|
525
|
+
"routes",
|
|
526
|
+
"fields",
|
|
527
|
+
"relationships",
|
|
528
|
+
"seo",
|
|
529
|
+
"a11y",
|
|
530
|
+
"other"
|
|
531
|
+
];
|
|
525
532
|
const groups = /* @__PURE__ */ new Map();
|
|
526
533
|
for (const diagnostic of diagnostics) {
|
|
527
534
|
const group = groupForDiagnostic(diagnostic);
|
|
@@ -536,6 +543,9 @@ function groupForDiagnostic(diagnostic) {
|
|
|
536
543
|
if (diagnostic.code.startsWith("CMS-FIELD")) {
|
|
537
544
|
return "fields";
|
|
538
545
|
}
|
|
546
|
+
if (diagnostic.code.startsWith("CMS-RELATIONSHIP")) {
|
|
547
|
+
return "relationships";
|
|
548
|
+
}
|
|
539
549
|
if (diagnostic.code.startsWith("SEO-")) {
|
|
540
550
|
return "seo";
|
|
541
551
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cms-lab/reporter",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "HTML report rendering for cms-lab.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@cms-lab/core": "1.2.
|
|
38
|
+
"@cms-lab/core": "1.2.5"
|
|
39
39
|
},
|
|
40
40
|
"author": "Afaq Rashid",
|
|
41
41
|
"scripts": {
|