@brandlab-digital/conformance 0.1.0-alpha.19 → 0.1.0-alpha.3
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/dist/vitest.d.ts +0 -86
- package/dist/vitest.d.ts.map +1 -1
- package/dist/vitest.js +16 -2614
- package/dist/vitest.js.map +1 -1
- package/package.json +2 -12
- package/dist/locations.d.ts +0 -63
- package/dist/locations.d.ts.map +0 -1
- package/dist/locations.js +0 -105
- package/dist/locations.js.map +0 -1
- package/dist/schema-hygiene.d.ts +0 -25
- package/dist/schema-hygiene.d.ts.map +0 -1
- package/dist/schema-hygiene.js +0 -19
- package/dist/schema-hygiene.js.map +0 -1
package/dist/vitest.d.ts
CHANGED
|
@@ -13,72 +13,6 @@ export interface SourcePatternMatch {
|
|
|
13
13
|
column: number;
|
|
14
14
|
text: string;
|
|
15
15
|
}
|
|
16
|
-
export interface PackageJsonLike {
|
|
17
|
-
dependencies?: Record<string, string>;
|
|
18
|
-
devDependencies?: Record<string, string>;
|
|
19
|
-
scripts?: Record<string, string>;
|
|
20
|
-
engines?: Record<string, string>;
|
|
21
|
-
packageManager?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SharedPackageVersionIssue {
|
|
24
|
-
packageName: string;
|
|
25
|
-
installedVersion: string | null;
|
|
26
|
-
issue: "missing" | "mismatch" | "not-exact";
|
|
27
|
-
}
|
|
28
|
-
export interface NpmDistTagIssue {
|
|
29
|
-
packageName: string;
|
|
30
|
-
tag: string;
|
|
31
|
-
expectedVersion: string;
|
|
32
|
-
actualVersion: string | null;
|
|
33
|
-
}
|
|
34
|
-
export type BrandlabArchitectureProfile = "dynamic-data-driven" | "root-level-data-driven" | "static-route-heavy-legacy";
|
|
35
|
-
export type BrandlabArchitectureStatus = "standard" | "legacy-exception";
|
|
36
|
-
export interface BrandlabArchitectureConfigLike {
|
|
37
|
-
profile?: string;
|
|
38
|
-
status?: string;
|
|
39
|
-
targetProfile?: string;
|
|
40
|
-
migrationRationale?: string;
|
|
41
|
-
staticRouteFileLimit?: number;
|
|
42
|
-
largeRouteFileLineLimit?: number;
|
|
43
|
-
routeFileContentCharLimit?: number;
|
|
44
|
-
routeFamilies?: readonly {
|
|
45
|
-
name?: string;
|
|
46
|
-
model?: string;
|
|
47
|
-
route?: string;
|
|
48
|
-
dataSource?: string;
|
|
49
|
-
}[];
|
|
50
|
-
contentOwnership?: {
|
|
51
|
-
routeFiles?: string;
|
|
52
|
-
pageData?: string;
|
|
53
|
-
componentCopy?: string;
|
|
54
|
-
};
|
|
55
|
-
topology?: {
|
|
56
|
-
allowedRootDirs?: readonly string[];
|
|
57
|
-
allowedComponentDirs?: readonly string[];
|
|
58
|
-
allowedLibDirs?: readonly string[];
|
|
59
|
-
allowedTypeFiles?: readonly string[];
|
|
60
|
-
legacyAllowedRootDirs?: readonly string[];
|
|
61
|
-
legacyAllowedComponentDirs?: readonly string[];
|
|
62
|
-
legacyAllowedLibDirs?: readonly string[];
|
|
63
|
-
legacyAllowedTypeFiles?: readonly string[];
|
|
64
|
-
targetTopology?: string;
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
export interface BrandlabArchitectureIssue {
|
|
68
|
-
code: string;
|
|
69
|
-
severity: "error" | "warning" | "legacy-accepted";
|
|
70
|
-
detail: string;
|
|
71
|
-
fix?: string;
|
|
72
|
-
path?: string;
|
|
73
|
-
}
|
|
74
|
-
export interface BrandlabArchitectureReport {
|
|
75
|
-
profile: string | null;
|
|
76
|
-
status: string | null;
|
|
77
|
-
pageFileCount: number;
|
|
78
|
-
staticPageFileCount: number;
|
|
79
|
-
dynamicPageFileCount: number;
|
|
80
|
-
issues: BrandlabArchitectureIssue[];
|
|
81
|
-
}
|
|
82
16
|
export declare const BRANDLAB_FORBIDDEN_SOURCE_PATTERNS: readonly SourcePattern[];
|
|
83
17
|
export declare function scanTextFiles(options: {
|
|
84
18
|
roots: readonly string[];
|
|
@@ -87,24 +21,4 @@ export declare function findForbiddenBrandlabPatterns(options: {
|
|
|
87
21
|
roots: readonly string[];
|
|
88
22
|
patterns?: readonly SourcePattern[];
|
|
89
23
|
}): SourcePatternMatch[];
|
|
90
|
-
export declare function evaluateSharedPackageVersionSpecs(options: {
|
|
91
|
-
packageJson: PackageJsonLike;
|
|
92
|
-
expectedVersion: string;
|
|
93
|
-
packageNames: readonly string[];
|
|
94
|
-
}): SharedPackageVersionIssue[];
|
|
95
|
-
export declare function evaluateNpmDistTags(options: {
|
|
96
|
-
packageName: string;
|
|
97
|
-
expectedVersion: string;
|
|
98
|
-
distTags: Record<string, string | undefined>;
|
|
99
|
-
tags?: readonly string[];
|
|
100
|
-
}): NpmDistTagIssue[];
|
|
101
|
-
export declare function isSearchCertificationFresh(evidence: {
|
|
102
|
-
evidenceRecordedAt?: string;
|
|
103
|
-
} | null | undefined, now?: number, maxAgeDays?: number): boolean;
|
|
104
|
-
export declare function evaluateBrandlabArchitecture(options: {
|
|
105
|
-
root: string;
|
|
106
|
-
architecture?: BrandlabArchitectureConfigLike | null;
|
|
107
|
-
largeRouteFileLineLimit?: number;
|
|
108
|
-
routeFileContentCharLimit?: number;
|
|
109
|
-
}): BrandlabArchitectureReport;
|
|
110
24
|
//# sourceMappingURL=vitest.d.ts.map
|
package/dist/vitest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../src/vitest.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"vitest.d.ts","sourceRoot":"","sources":["../src/vitest.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;CACb;AAcD,eAAO,MAAM,kCAAkC,EAAE,SAAS,aAAa,EAiBtE,CAAA;AAwBD,wBAAgB,aAAa,CAAC,OAAO,EAAE;IAAE,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAAG,cAAc,EAAE,CAOrF;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE;IACrD,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;IACxB,QAAQ,CAAC,EAAE,SAAS,aAAa,EAAE,CAAA;CACpC,GAAG,kBAAkB,EAAE,CAyBvB"}
|