@code-pushup/utils 0.16.6 → 0.16.8
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 +4 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { z as z2 } from "zod";
|
|
3
3
|
|
|
4
4
|
// packages/models/src/lib/implementation/schemas.ts
|
|
5
|
+
import { MATERIAL_ICONS } from "vscode-material-icons";
|
|
5
6
|
import { z } from "zod";
|
|
6
|
-
import { MATERIAL_ICONS } from "@code-pushup/portal-client";
|
|
7
7
|
|
|
8
8
|
// packages/models/src/lib/implementation/limits.ts
|
|
9
9
|
var MAX_SLUG_LENGTH = 128;
|
|
@@ -161,10 +161,9 @@ function scorableSchema(description, refSchema, duplicateCheckFn, duplicateMessa
|
|
|
161
161
|
{ description }
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
|
-
var materialIconSchema = z.enum(
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
);
|
|
164
|
+
var materialIconSchema = z.enum(MATERIAL_ICONS, {
|
|
165
|
+
description: "Icon from VSCode Material Icons extension"
|
|
166
|
+
});
|
|
168
167
|
function hasWeightedRefsInCategories(categoryRefs) {
|
|
169
168
|
return categoryRefs.reduce((acc, { weight }) => weight + acc, 0) !== 0;
|
|
170
169
|
}
|