@code-pushup/utils 0.16.5 → 0.16.7
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 +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -182,7 +182,7 @@ var auditSchema = z2.object({
|
|
|
182
182
|
);
|
|
183
183
|
var pluginAuditsSchema = z2.array(auditSchema, {
|
|
184
184
|
description: "List of audits maintained in a plugin"
|
|
185
|
-
}).refine(
|
|
185
|
+
}).min(1).refine(
|
|
186
186
|
(auditMetadata) => !getDuplicateSlugsInAudits(auditMetadata),
|
|
187
187
|
(auditMetadata) => ({
|
|
188
188
|
message: duplicateSlugsInAuditsErrorMsg(auditMetadata)
|
|
@@ -492,7 +492,7 @@ var pluginReportSchema = pluginMetaSchema.merge(
|
|
|
492
492
|
})
|
|
493
493
|
).merge(
|
|
494
494
|
z12.object({
|
|
495
|
-
audits: z12.array(auditReportSchema),
|
|
495
|
+
audits: z12.array(auditReportSchema).min(1),
|
|
496
496
|
groups: z12.array(groupSchema).optional()
|
|
497
497
|
})
|
|
498
498
|
).refine(
|