@axe-core/reporter-earl 4.8.2-70ceac0.0 → 4.8.2-8731be9.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/dist/axeReporterEarl.d.mts +49 -0
- package/package.json +4 -4
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare enum EarlType {
|
|
2
|
+
WebPage = "WebPage",
|
|
3
|
+
Assertion = "Assertion",
|
|
4
|
+
TestCase = "TestCase",
|
|
5
|
+
TestResult = "TestResult"
|
|
6
|
+
}
|
|
7
|
+
interface EarlResult {
|
|
8
|
+
'@context': object;
|
|
9
|
+
'@type': EarlType.WebPage;
|
|
10
|
+
url: string;
|
|
11
|
+
assertions: Assertion[];
|
|
12
|
+
}
|
|
13
|
+
interface Assertion {
|
|
14
|
+
'@type': EarlType.Assertion;
|
|
15
|
+
mode: 'earl:automatic';
|
|
16
|
+
assertedBy: {};
|
|
17
|
+
test: {
|
|
18
|
+
'@type': EarlType.TestCase;
|
|
19
|
+
'@id': string;
|
|
20
|
+
};
|
|
21
|
+
result: TestResult;
|
|
22
|
+
}
|
|
23
|
+
interface TestResult {
|
|
24
|
+
'@type': EarlType.TestResult;
|
|
25
|
+
outcome: string;
|
|
26
|
+
pointer?: string;
|
|
27
|
+
info?: string;
|
|
28
|
+
}
|
|
29
|
+
interface RawResult {
|
|
30
|
+
id: string;
|
|
31
|
+
helpUrl: string;
|
|
32
|
+
description: string;
|
|
33
|
+
violations?: RawNodeResult[];
|
|
34
|
+
passes?: RawNodeResult[];
|
|
35
|
+
incomplete?: RawNodeResult[];
|
|
36
|
+
}
|
|
37
|
+
interface RawNodeResult {
|
|
38
|
+
node: {
|
|
39
|
+
selector: Selector;
|
|
40
|
+
};
|
|
41
|
+
result?: 'passed' | 'failed' | 'inapplicable' | 'incomplete';
|
|
42
|
+
}
|
|
43
|
+
type SelectorItem = string[] | string;
|
|
44
|
+
type Selector = SelectorItem[];
|
|
45
|
+
|
|
46
|
+
declare function createEarlReport(rawResults: RawResult[], url?: string): EarlResult;
|
|
47
|
+
declare function axeReporterEarl(rawResults: RawResult[], {}: {}, callback: Function): void;
|
|
48
|
+
|
|
49
|
+
export { createEarlReport, axeReporterEarl as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/reporter-earl",
|
|
3
|
-
"version": "4.8.2-
|
|
3
|
+
"version": "4.8.2-8731be9.0+8731be9",
|
|
4
4
|
"description": "A EARL+JSON-LD reporter for axe-core",
|
|
5
5
|
"main": "dist/axeReporterEarl.js",
|
|
6
6
|
"module": "./dist/axeReporterEarl.mjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/clone": "^2.1.1",
|
|
44
44
|
"@types/jsonld": "github:types/jsonld",
|
|
45
|
-
"@types/node": "^
|
|
45
|
+
"@types/node": "^20.8.10",
|
|
46
46
|
"axe-core": "~4.8.2",
|
|
47
47
|
"clone": "^2.1.2",
|
|
48
48
|
"cross-env": "^7.0.3",
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"jsonld": "^8.2.1",
|
|
52
52
|
"ts-jest": "^29.0.3",
|
|
53
53
|
"ts-node": "^10.9.1",
|
|
54
|
-
"tsup": "^
|
|
54
|
+
"tsup": "^7.2.0",
|
|
55
55
|
"typescript": "^4.8.4"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "8731be963f049f63b49c55e6cd5f1463a670064c"
|
|
58
58
|
}
|