@axe-core/reporter-earl 4.11.2-9a07fd7.0 → 4.11.2-fe1cdbd.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/reporter-earl",
|
|
3
|
-
"version": "4.11.2-
|
|
3
|
+
"version": "4.11.2-fe1cdbd.0+fe1cdbd",
|
|
4
4
|
"description": "A EARL+JSON-LD reporter for axe-core",
|
|
5
5
|
"main": "dist/axeReporterEarl.js",
|
|
6
6
|
"module": "./dist/axeReporterEarl.mjs",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/clone": "^2.1.1",
|
|
47
47
|
"@types/jsonld": "github:types/jsonld",
|
|
48
|
-
"@types/node": "^
|
|
48
|
+
"@types/node": "^24.10.13",
|
|
49
49
|
"axe-core": "~4.11.1",
|
|
50
50
|
"clone": "^2.1.2",
|
|
51
51
|
"jest": "^30.0.5",
|
|
52
52
|
"jest-environment-jsdom": "^30.1.2",
|
|
53
|
-
"jsonld": "^
|
|
53
|
+
"jsonld": "^9.0.0",
|
|
54
54
|
"ts-jest": "^29.0.3",
|
|
55
55
|
"ts-node": "^10.9.1",
|
|
56
56
|
"tsup": "^8.0.1",
|
|
57
57
|
"typescript": "^5.2.2"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "fe1cdbdeca911638e04de366ffbc0638e485e489"
|
|
60
60
|
}
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
// jsonld depends on @digitalbazaar/http-client, which depends on the undici HTTP client,
|
|
2
|
-
//
|
|
3
|
-
// https://github.com/jsdom/jsdom/issues/2524
|
|
4
|
-
|
|
1
|
+
// jsonld depends on @digitalbazaar/http-client, which depends on the undici HTTP client, which depends
|
|
2
|
+
// on TextEncoder, TextDecoder, and ReadableStream ... which however isn't provided by jsdom
|
|
3
|
+
// @see https://github.com/jsdom/jsdom/issues/2524
|
|
4
|
+
// @see https://github.com/mswjs/msw/discussions/1934
|
|
5
|
+
import { TextEncoder, TextDecoder } from 'node:util';
|
|
6
|
+
import ReadableStream from 'node:stream/web';
|
|
5
7
|
type Encoder = typeof global.TextEncoder;
|
|
6
8
|
type Decoder = typeof global.TextDecoder;
|
|
9
|
+
type ReadableStream = typeof global.ReadableStream;
|
|
7
10
|
|
|
8
11
|
global.TextEncoder = TextEncoder as unknown as Encoder;
|
|
9
12
|
global.TextDecoder = TextDecoder as unknown as Decoder;
|
|
13
|
+
global.ReadableStream = ReadableStream as unknown as ReadableStream;
|
|
14
|
+
|
|
15
|
+
// jsonld depends on @digitalbazaar/rdf-canonize, which depends on setImmedate which jsdom overrides?
|
|
16
|
+
// @see https://github.com/prisma/prisma/issues/8558#issuecomment-2192317371
|
|
17
|
+
import { setImmediate } from 'node:timers';
|
|
18
|
+
global.setImmediate = setImmediate;
|
|
10
19
|
|
|
11
20
|
import jsonld from 'jsonld';
|
|
12
21
|
import axe from 'axe-core';
|