axe-core 4.10.3-canary.b93ab81 → 4.10.3-canary.bc33f4c
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/axe.d.ts +26 -2
- package/axe.js +15142 -15009
- package/axe.min.js +2 -2
- package/locales/_template.json +4 -0
- package/package.json +1 -1
- package/sri-history.json +3 -3
package/axe.d.ts
CHANGED
|
@@ -155,7 +155,7 @@ declare namespace axe {
|
|
|
155
155
|
toolOptions: RunOptions;
|
|
156
156
|
passes: Result[];
|
|
157
157
|
violations: Result[];
|
|
158
|
-
incomplete:
|
|
158
|
+
incomplete: IncompleteResult[];
|
|
159
159
|
inapplicable: Result[];
|
|
160
160
|
}
|
|
161
161
|
interface Result {
|
|
@@ -167,6 +167,9 @@ declare namespace axe {
|
|
|
167
167
|
tags: TagValue[];
|
|
168
168
|
nodes: NodeResult[];
|
|
169
169
|
}
|
|
170
|
+
interface IncompleteResult extends Result {
|
|
171
|
+
error?: Omit<RuleError, 'errorNode'>;
|
|
172
|
+
}
|
|
170
173
|
interface NodeResult {
|
|
171
174
|
html: string;
|
|
172
175
|
impact?: ImpactValue;
|
|
@@ -204,6 +207,21 @@ declare namespace axe {
|
|
|
204
207
|
fail: string | { [key: string]: string };
|
|
205
208
|
incomplete?: string | { [key: string]: string };
|
|
206
209
|
}
|
|
210
|
+
interface RuleError {
|
|
211
|
+
name: string;
|
|
212
|
+
message: string;
|
|
213
|
+
stack: string;
|
|
214
|
+
ruleId?: string;
|
|
215
|
+
method?: string;
|
|
216
|
+
cause?: SerialError;
|
|
217
|
+
errorNode?: DqElement;
|
|
218
|
+
}
|
|
219
|
+
interface SerialError {
|
|
220
|
+
message: string;
|
|
221
|
+
stack: string;
|
|
222
|
+
name: string;
|
|
223
|
+
cause?: SerialError;
|
|
224
|
+
}
|
|
207
225
|
interface CheckLocale {
|
|
208
226
|
[key: string]: CheckMessages;
|
|
209
227
|
}
|
|
@@ -461,7 +479,13 @@ declare namespace axe {
|
|
|
461
479
|
isLabelledShadowDomSelector: (
|
|
462
480
|
selector: unknown
|
|
463
481
|
) => selector is LabelledShadowDomSelector;
|
|
464
|
-
|
|
482
|
+
RuleError: new (options: {
|
|
483
|
+
error: Error;
|
|
484
|
+
ruleId?: string;
|
|
485
|
+
method?: string;
|
|
486
|
+
errorNode?: DqElement;
|
|
487
|
+
}) => RuleError;
|
|
488
|
+
serializeError: (error: Error) => SerialError;
|
|
465
489
|
DqElement: DqElementConstructor;
|
|
466
490
|
uuid: (
|
|
467
491
|
options?: { random?: Uint8Array | Array<number> },
|