@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.
Files changed (2) hide show
  1. package/index.js +7 -8
  2. 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(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@code-pushup/utils",
3
- "version": "0.4.2",
3
+ "version": "0.4.4",
4
4
  "dependencies": {
5
5
  "@code-pushup/models": "*",
6
6
  "bundle-require": "^4.0.1",