@anhcodo13/lattice 0.4.0 → 0.5.0
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/README.md +16 -16
- package/dist/cli.js +350 -75
- package/dist/index.d.ts +47 -22
- package/dist/index.js +395 -178
- package/governance/policy.json +23 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -50,6 +50,17 @@ interface AssessmentPolicy {
|
|
|
50
50
|
compatibility: {
|
|
51
51
|
requiredProjects: string[];
|
|
52
52
|
minimumTestsPerProject: number;
|
|
53
|
+
minimumTestedBrowserVersions?: Record<string, string>;
|
|
54
|
+
minimumEmulatedOsVersions?: Record<string, string>;
|
|
55
|
+
};
|
|
56
|
+
accessibility?: {
|
|
57
|
+
requiredProjects: string[];
|
|
58
|
+
minimumScansPerProject: number;
|
|
59
|
+
minimumChecksPerScan: number;
|
|
60
|
+
minimumAxeVersion: string;
|
|
61
|
+
maximumViolations: number;
|
|
62
|
+
maximumNeedsReview: number;
|
|
63
|
+
requiredTags: string[];
|
|
53
64
|
};
|
|
54
65
|
};
|
|
55
66
|
}
|
|
@@ -57,6 +68,7 @@ interface VersionPolicy {
|
|
|
57
68
|
schemaVersion: 2;
|
|
58
69
|
policyVersion: string;
|
|
59
70
|
profiles: Record<string, Record<string, string>>;
|
|
71
|
+
managedPackages?: Record<string, string>;
|
|
60
72
|
assessment?: AssessmentPolicy;
|
|
61
73
|
source: string;
|
|
62
74
|
sha256: string;
|
|
@@ -113,6 +125,21 @@ interface ScoreBreakdown {
|
|
|
113
125
|
}
|
|
114
126
|
|
|
115
127
|
type EvidenceStatus = "pass" | "fail" | "incomplete";
|
|
128
|
+
interface CompatibilityProject {
|
|
129
|
+
name: string;
|
|
130
|
+
passed: number;
|
|
131
|
+
failed: number;
|
|
132
|
+
skipped: number;
|
|
133
|
+
engine?: string;
|
|
134
|
+
mobile?: boolean;
|
|
135
|
+
browserVersion?: string;
|
|
136
|
+
device?: string;
|
|
137
|
+
emulatedOs?: string;
|
|
138
|
+
emulatedOsVersion?: string;
|
|
139
|
+
viewportWidths?: number[];
|
|
140
|
+
minimumTestedBrowserVersion?: string;
|
|
141
|
+
minimumEmulatedOsVersion?: string;
|
|
142
|
+
}
|
|
116
143
|
interface EvidenceDomain {
|
|
117
144
|
status: EvidenceStatus;
|
|
118
145
|
issues: string[];
|
|
@@ -121,17 +148,8 @@ interface EvidenceDomain {
|
|
|
121
148
|
scanned?: number;
|
|
122
149
|
findings?: EvidenceFinding[];
|
|
123
150
|
metrics?: Record<string, string | number | boolean>;
|
|
124
|
-
matrix?:
|
|
125
|
-
|
|
126
|
-
passed: number;
|
|
127
|
-
failed: number;
|
|
128
|
-
skipped: number;
|
|
129
|
-
engine?: string;
|
|
130
|
-
mobile?: boolean;
|
|
131
|
-
browserVersion?: string;
|
|
132
|
-
device?: string;
|
|
133
|
-
viewportWidths?: number[];
|
|
134
|
-
}>;
|
|
151
|
+
matrix?: CompatibilityProject[];
|
|
152
|
+
routes?: Array<Pick<AccessibilityScan, "project" | "route" | "axeVersion" | "checks" | "needsReview">>;
|
|
135
153
|
}
|
|
136
154
|
interface EvidenceFinding {
|
|
137
155
|
id: string;
|
|
@@ -140,6 +158,15 @@ interface EvidenceFinding {
|
|
|
140
158
|
message: string;
|
|
141
159
|
remediation?: string;
|
|
142
160
|
}
|
|
161
|
+
interface AccessibilityScan {
|
|
162
|
+
project: string;
|
|
163
|
+
route: string;
|
|
164
|
+
axeVersion: string;
|
|
165
|
+
tags: string[];
|
|
166
|
+
checks: number;
|
|
167
|
+
violations: EvidenceFinding[];
|
|
168
|
+
needsReview: number;
|
|
169
|
+
}
|
|
143
170
|
interface AppScanEvidence {
|
|
144
171
|
path: string;
|
|
145
172
|
profile: string;
|
|
@@ -207,17 +234,14 @@ interface AppScanEvidence {
|
|
|
207
234
|
tool: string;
|
|
208
235
|
version: string;
|
|
209
236
|
complete: boolean;
|
|
210
|
-
projects:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
device?: string;
|
|
219
|
-
viewportWidths?: number[];
|
|
220
|
-
}>;
|
|
237
|
+
projects: CompatibilityProject[];
|
|
238
|
+
errors: string[];
|
|
239
|
+
};
|
|
240
|
+
accessibility?: {
|
|
241
|
+
tool: string;
|
|
242
|
+
version: string;
|
|
243
|
+
complete: boolean;
|
|
244
|
+
scans: AccessibilityScan[];
|
|
221
245
|
errors: string[];
|
|
222
246
|
};
|
|
223
247
|
}
|
|
@@ -284,6 +308,7 @@ interface AssessmentReport {
|
|
|
284
308
|
codeQuality?: EvidenceDomain;
|
|
285
309
|
codeSecurity?: EvidenceDomain;
|
|
286
310
|
compatibility?: EvidenceDomain;
|
|
311
|
+
accessibility?: EvidenceDomain;
|
|
287
312
|
};
|
|
288
313
|
}>;
|
|
289
314
|
}
|