@axe-core/reporter-earl 4.10.3-7b6ba66.0 → 4.10.3-833ea82.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.
|
@@ -44,6 +44,6 @@ type SelectorItem = string[] | string;
|
|
|
44
44
|
type Selector = SelectorItem[];
|
|
45
45
|
|
|
46
46
|
declare function createEarlReport(rawResults: RawResult[], url?: string): EarlResult;
|
|
47
|
-
declare function axeReporterEarl(rawResults: RawResult[], {}: {}, callback:
|
|
47
|
+
declare function axeReporterEarl(rawResults: RawResult[], {}: {}, callback: (result: EarlResult) => unknown): void;
|
|
48
48
|
|
|
49
49
|
export { createEarlReport, axeReporterEarl as default };
|
|
@@ -44,6 +44,6 @@ type SelectorItem = string[] | string;
|
|
|
44
44
|
type Selector = SelectorItem[];
|
|
45
45
|
|
|
46
46
|
declare function createEarlReport(rawResults: RawResult[], url?: string): EarlResult;
|
|
47
|
-
declare function axeReporterEarl(rawResults: RawResult[], {}: {}, callback:
|
|
47
|
+
declare function axeReporterEarl(rawResults: RawResult[], {}: {}, callback: (result: EarlResult) => unknown): void;
|
|
48
48
|
|
|
49
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.10.3-
|
|
3
|
+
"version": "4.10.3-833ea82.0+833ea82",
|
|
4
4
|
"description": "A EARL+JSON-LD reporter for axe-core",
|
|
5
5
|
"main": "dist/axeReporterEarl.js",
|
|
6
6
|
"module": "./dist/axeReporterEarl.mjs",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"tsup": "^8.0.1",
|
|
58
58
|
"typescript": "^5.2.2"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "833ea82ec6ef8a70c3cc41cf05a403467db5c3e8"
|
|
61
61
|
}
|
package/src/axeReporterEarl.ts
CHANGED
package/tests/utils.ts
CHANGED
|
@@ -13,7 +13,7 @@ export async function getDummyData(version = '3.1'): Promise<RawResult[]> {
|
|
|
13
13
|
</main>
|
|
14
14
|
`;
|
|
15
15
|
const params: any = {
|
|
16
|
-
reporter: function (raw: any, _: any, callback:
|
|
16
|
+
reporter: function (raw: any, _: any, callback: (arg: unknown) => any) {
|
|
17
17
|
callback(JSON.parse(JSON.stringify(raw)));
|
|
18
18
|
},
|
|
19
19
|
rules: [
|