@code-pushup/models 0.8.7 → 0.8.9
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 +3 -1
- package/package.json +1 -1
- package/src/index.d.ts +1 -1
- package/src/lib/core-config.d.ts +12 -12
- package/src/lib/implementation/limits.d.ts +1 -0
package/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import { MATERIAL_ICONS } from "@code-pushup/portal-client";
|
|
|
9
9
|
var MAX_SLUG_LENGTH = 128;
|
|
10
10
|
var MAX_TITLE_LENGTH = 256;
|
|
11
11
|
var MAX_DESCRIPTION_LENGTH = 65536;
|
|
12
|
+
var MAX_ISSUE_MESSAGE_LENGTH = 1024;
|
|
12
13
|
|
|
13
14
|
// packages/models/src/lib/implementation/utils.ts
|
|
14
15
|
var slugRegex = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
@@ -189,7 +190,7 @@ var issueSeveritySchema = z3.enum(["info", "warning", "error"], {
|
|
|
189
190
|
});
|
|
190
191
|
var issueSchema = z3.object(
|
|
191
192
|
{
|
|
192
|
-
message: z3.string({ description: "Descriptive error message" }).max(
|
|
193
|
+
message: z3.string({ description: "Descriptive error message" }).max(MAX_ISSUE_MESSAGE_LENGTH),
|
|
193
194
|
severity: issueSeveritySchema,
|
|
194
195
|
source: sourceFileLocationSchema.optional()
|
|
195
196
|
},
|
|
@@ -531,6 +532,7 @@ var reportSchema = packageVersionSchema({
|
|
|
531
532
|
);
|
|
532
533
|
export {
|
|
533
534
|
MAX_DESCRIPTION_LENGTH,
|
|
535
|
+
MAX_ISSUE_MESSAGE_LENGTH,
|
|
534
536
|
MAX_SLUG_LENGTH,
|
|
535
537
|
MAX_TITLE_LENGTH,
|
|
536
538
|
PERSIST_FILENAME,
|
package/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { CategoryConfig, CategoryRef, categoryConfigSchema, categoryRefSchema, }
|
|
|
5
5
|
export { CoreConfig, coreConfigSchema, refineCoreConfig, unrefinedCoreConfigSchema, } from './lib/core-config';
|
|
6
6
|
export { Group, GroupRef, groupSchema } from './lib/group';
|
|
7
7
|
export { PERSIST_FILENAME, PERSIST_FORMAT, PERSIST_OUTPUT_DIR, } from './lib/implementation/constants';
|
|
8
|
-
export { MAX_DESCRIPTION_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits';
|
|
8
|
+
export { MAX_DESCRIPTION_LENGTH, MAX_ISSUE_MESSAGE_LENGTH, MAX_SLUG_LENGTH, MAX_TITLE_LENGTH, } from './lib/implementation/limits';
|
|
9
9
|
export { fileNameSchema, filePathSchema, materialIconSchema, urlSchema, } from './lib/implementation/schemas';
|
|
10
10
|
export { Format, PersistConfig, formatSchema, persistConfigSchema, } from './lib/persist-config';
|
|
11
11
|
export { PluginConfig, PluginMeta, pluginConfigSchema, } from './lib/plugin-config';
|
package/src/lib/core-config.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
26
26
|
position: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
startLine: z.ZodNumber;
|
|
28
28
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
30
30
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
32
|
startLine: number;
|
|
@@ -204,7 +204,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
204
204
|
position: z.ZodOptional<z.ZodObject<{
|
|
205
205
|
startLine: z.ZodNumber;
|
|
206
206
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
207
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
208
208
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
210
|
startLine: number;
|
|
@@ -473,7 +473,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
473
473
|
position: z.ZodOptional<z.ZodObject<{
|
|
474
474
|
startLine: z.ZodNumber;
|
|
475
475
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
476
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
477
477
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
478
478
|
}, "strip", z.ZodTypeAny, {
|
|
479
479
|
startLine: number;
|
|
@@ -651,7 +651,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
|
|
|
651
651
|
position: z.ZodOptional<z.ZodObject<{
|
|
652
652
|
startLine: z.ZodNumber;
|
|
653
653
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
654
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
654
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
655
655
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
656
656
|
}, "strip", z.ZodTypeAny, {
|
|
657
657
|
startLine: number;
|
|
@@ -2279,7 +2279,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2279
2279
|
position: z.ZodOptional<z.ZodObject<{
|
|
2280
2280
|
startLine: z.ZodNumber;
|
|
2281
2281
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
2282
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
2282
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
2283
2283
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
2284
2284
|
}, "strip", z.ZodTypeAny, {
|
|
2285
2285
|
startLine: number;
|
|
@@ -2457,7 +2457,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2457
2457
|
position: z.ZodOptional<z.ZodObject<{
|
|
2458
2458
|
startLine: z.ZodNumber;
|
|
2459
2459
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
2460
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
2460
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
2461
2461
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
2462
2462
|
}, "strip", z.ZodTypeAny, {
|
|
2463
2463
|
startLine: number;
|
|
@@ -2726,7 +2726,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2726
2726
|
position: z.ZodOptional<z.ZodObject<{
|
|
2727
2727
|
startLine: z.ZodNumber;
|
|
2728
2728
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
2729
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
2729
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
2730
2730
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
2731
2731
|
}, "strip", z.ZodTypeAny, {
|
|
2732
2732
|
startLine: number;
|
|
@@ -2904,7 +2904,7 @@ export declare const coreConfigSchema: z.ZodObject<{
|
|
|
2904
2904
|
position: z.ZodOptional<z.ZodObject<{
|
|
2905
2905
|
startLine: z.ZodNumber;
|
|
2906
2906
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
2907
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
2907
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
2908
2908
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
2909
2909
|
}, "strip", z.ZodTypeAny, {
|
|
2910
2910
|
startLine: number;
|
|
@@ -4537,7 +4537,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
4537
4537
|
position: z.ZodOptional<z.ZodObject<{
|
|
4538
4538
|
startLine: z.ZodNumber;
|
|
4539
4539
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
4540
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4540
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
4541
4541
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
4542
4542
|
}, "strip", z.ZodTypeAny, {
|
|
4543
4543
|
startLine: number;
|
|
@@ -4715,7 +4715,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
4715
4715
|
position: z.ZodOptional<z.ZodObject<{
|
|
4716
4716
|
startLine: z.ZodNumber;
|
|
4717
4717
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
4718
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4718
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
4719
4719
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
4720
4720
|
}, "strip", z.ZodTypeAny, {
|
|
4721
4721
|
startLine: number;
|
|
@@ -4984,7 +4984,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
4984
4984
|
position: z.ZodOptional<z.ZodObject<{
|
|
4985
4985
|
startLine: z.ZodNumber;
|
|
4986
4986
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
4987
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
4987
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
4988
4988
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
4989
4989
|
}, "strip", z.ZodTypeAny, {
|
|
4990
4990
|
startLine: number;
|
|
@@ -5162,7 +5162,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
|
|
|
5162
5162
|
position: z.ZodOptional<z.ZodObject<{
|
|
5163
5163
|
startLine: z.ZodNumber;
|
|
5164
5164
|
startColumn: z.ZodOptional<z.ZodNumber>;
|
|
5165
|
-
endLine: z.ZodOptional<z.ZodNumber>;
|
|
5165
|
+
endLine: z.ZodOptional<z.ZodNumber>; /** portal configuration for persisting results */
|
|
5166
5166
|
endColumn: z.ZodOptional<z.ZodNumber>;
|
|
5167
5167
|
}, "strip", z.ZodTypeAny, {
|
|
5168
5168
|
startLine: number;
|