@code-pushup/utils 0.4.2 → 0.4.4
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/index.js +7 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -238,19 +238,18 @@ var auditGroupRefSchema = weightedRefSchema(
|
|
|
238
238
|
"Weighted references to audits",
|
|
239
239
|
"Reference slug to an audit within this plugin (e.g. 'max-lines')"
|
|
240
240
|
);
|
|
241
|
+
var auditGroupMetaSchema = metaSchema({
|
|
242
|
+
titleDescription: "Descriptive name for the group",
|
|
243
|
+
descriptionDescription: "Description of the group (markdown)",
|
|
244
|
+
docsUrlDescription: "Group documentation site",
|
|
245
|
+
description: "Group metadata"
|
|
246
|
+
});
|
|
241
247
|
var auditGroupSchema = scorableSchema(
|
|
242
248
|
'An audit group aggregates a set of audits into a single score which can be referenced from a category. E.g. the group slug "performance" groups audits and can be referenced in a category',
|
|
243
249
|
auditGroupRefSchema,
|
|
244
250
|
getDuplicateRefsInGroups,
|
|
245
251
|
duplicateRefsInGroupsErrorMsg
|
|
246
|
-
).merge(
|
|
247
|
-
metaSchema({
|
|
248
|
-
titleDescription: "Descriptive name for the group",
|
|
249
|
-
descriptionDescription: "Description of the group (markdown)",
|
|
250
|
-
docsUrlDescription: "Group documentation site",
|
|
251
|
-
description: "Group metadata"
|
|
252
|
-
})
|
|
253
|
-
);
|
|
252
|
+
).merge(auditGroupMetaSchema);
|
|
254
253
|
var auditGroupsSchema = z5.array(auditGroupSchema, {
|
|
255
254
|
description: "List of groups"
|
|
256
255
|
}).optional().refine(
|