@axe-core/reporter-earl 4.4.4-alpha.296 → 4.4.4-alpha.299
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.js
CHANGED
|
@@ -10,7 +10,7 @@ function createEarlReport(rawResults, url) {
|
|
|
10
10
|
'@context': context,
|
|
11
11
|
'@type': types_1.EarlType.WebPage,
|
|
12
12
|
url: url ? url : window.location.href,
|
|
13
|
-
assertions: axeResultToEarl_1.default(rawResults)
|
|
13
|
+
assertions: (0, axeResultToEarl_1.default)(rawResults)
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
exports.createEarlReport = createEarlReport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axeReporterEarl.js","sourceRoot":"","sources":["../src/axeReporterEarl.ts"],"names":[],"mappings":";;;AAAA,iCAA0D;AAC1D,wCAA0C;AAC1C,qDAAqD;AAErD,SAAgB,gBAAgB,CAC9B,UAAuB,EACvB,GAAY;IAEZ,QAAQ,CAAC;IACT,OAAO;QACL,UAAU,EAAE,OAAO;QACnB,OAAO,EAAE,gBAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI;QACrC,UAAU,EAAE,yBAAoB,
|
|
1
|
+
{"version":3,"file":"axeReporterEarl.js","sourceRoot":"","sources":["../src/axeReporterEarl.ts"],"names":[],"mappings":";;;AAAA,iCAA0D;AAC1D,wCAA0C;AAC1C,qDAAqD;AAErD,SAAgB,gBAAgB,CAC9B,UAAuB,EACvB,GAAY;IAEZ,QAAQ,CAAC;IACT,OAAO;QACL,UAAU,EAAE,OAAO;QACnB,OAAO,EAAE,gBAAQ,CAAC,OAAO;QACzB,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI;QACrC,UAAU,EAAE,IAAA,yBAAoB,EAAC,UAAU,CAAC;KAC7C,CAAC;AACJ,CAAC;AAXD,4CAWC;AAED,SAAwB,eAAe,CACrC,UAAuB,EACvB,EAAE,EACF,QAAkB;IAElB,QAAQ,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;AACzC,CAAC;AAND,kCAMC"}
|
package/dist/axeResultToEarl.js
CHANGED
|
@@ -5,9 +5,9 @@ var testResult_1 = require("./testResult");
|
|
|
5
5
|
function axeResultToEarl(rawResults) {
|
|
6
6
|
return rawResults.reduce(function (asserts, axeResult) {
|
|
7
7
|
var results = [];
|
|
8
|
-
results = results.concat(testResult_1.default(axeResult, axeResult.violations));
|
|
9
|
-
results = results.concat(testResult_1.default(axeResult, axeResult.passes));
|
|
10
|
-
results = results.concat(testResult_1.default(axeResult, axeResult.incomplete));
|
|
8
|
+
results = results.concat((0, testResult_1.default)(axeResult, axeResult.violations));
|
|
9
|
+
results = results.concat((0, testResult_1.default)(axeResult, axeResult.passes));
|
|
10
|
+
results = results.concat((0, testResult_1.default)(axeResult, axeResult.incomplete));
|
|
11
11
|
if (results.length === 0) {
|
|
12
12
|
results.push({
|
|
13
13
|
'@type': types_1.EarlType.TestResult,
|
|
@@ -21,7 +21,7 @@ function axeResultToEarl(rawResults) {
|
|
|
21
21
|
'@type': types_1.EarlType.Assertion,
|
|
22
22
|
mode: 'earl:automatic',
|
|
23
23
|
assertedBy: {
|
|
24
|
-
'@id': "https://github.com/dequelabs/axe-core/releases/tag/"
|
|
24
|
+
'@id': "https://github.com/dequelabs/axe-core/releases/tag/".concat(version, ".0"),
|
|
25
25
|
'@type': ['earl:Assertor', 'earl:Software', 'doap:Project'],
|
|
26
26
|
'doap:name': 'Axe',
|
|
27
27
|
'doap:vendor': {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axeResultToEarl.js","sourceRoot":"","sources":["../src/axeResultToEarl.ts"],"names":[],"mappings":";;AAAA,iCAAqE;AACrE,2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B,IAAI,EAAE,gBAAgB;gBACtB,UAAU,EAAE;oBACV,KAAK,EAAE,6DAAsD,OAAO,OAAI;oBACxE,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,cAAc,CAAC;oBAC3D,WAAW,EAAE,KAAK;oBAClB,aAAa,EAAE;wBACb,KAAK,EAAE,oBAAoB;wBAC3B,OAAO,EAAE,mBAAmB;wBAC5B,WAAW,EAAE,eAAe;qBAC7B;iBACF;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,gBAAQ,CAAC,QAAQ;oBAC1B,KAAK,EAAE,SAAS,CAAC,OAAO;iBACzB;gBACD,MAAM,QAAA;aACP,CAAC;QACJ,CAAC,CACF,CAAC;QAEF,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC,EACD,EAAE,CACH,CAAC;AACJ,CAAC;AA/CD,kCA+CC"}
|
package/jest.config.js
CHANGED
|
@@ -2,10 +2,11 @@ module.exports = {
|
|
|
2
2
|
testEnvironment: 'jsdom',
|
|
3
3
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json'],
|
|
4
4
|
transform: {
|
|
5
|
-
'\\.(ts|tsx)$': '
|
|
5
|
+
'\\.(ts|tsx)$': 'ts-jest'
|
|
6
6
|
},
|
|
7
7
|
testRegex: '/tests/.*\\.(ts|tsx|js)$',
|
|
8
8
|
testPathIgnorePatterns: ['/node_modules/', '/dist/', '/tests/utils.ts'],
|
|
9
|
+
silent: false,
|
|
9
10
|
coverageThreshold: {
|
|
10
11
|
global: {
|
|
11
12
|
branches: 80,
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/reporter-earl",
|
|
3
|
-
"version": "4.4.4-alpha.
|
|
3
|
+
"version": "4.4.4-alpha.299+598ab44",
|
|
4
4
|
"description": "A EARL+JSON-LD reporter for axe-core",
|
|
5
5
|
"main": "dist/axeReporterEarl.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"start": "jest --watch --env=jsdom",
|
|
7
|
+
"start": "node --experimental-vm-modules node_modules/.bin/jest --watch --env=jsdom",
|
|
8
8
|
"test": "npm run build && npm run test:unit",
|
|
9
|
-
"test:unit": "jest --collectCoverage",
|
|
9
|
+
"test:unit": "node --experimental-vm-modules node_modules/.bin/jest --collectCoverage",
|
|
10
10
|
"build": "tsc",
|
|
11
11
|
"prepublishOnly": "npm run build"
|
|
12
12
|
},
|
|
@@ -30,17 +30,19 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MPL-2.0",
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/clone": "^
|
|
34
|
-
"@types/jest": "^
|
|
33
|
+
"@types/clone": "^2.1.1",
|
|
34
|
+
"@types/jest": "^28.1.4",
|
|
35
35
|
"@types/jsonld": "github:types/jsonld",
|
|
36
|
-
"@types/node": "^
|
|
37
|
-
"axe-core": "^4.4.
|
|
36
|
+
"@types/node": "^18.0.3",
|
|
37
|
+
"axe-core": "^4.4.2",
|
|
38
38
|
"clone": "^2.1.2",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
39
|
+
"cross-env": "^7.0.3",
|
|
40
|
+
"jest": "^28.1.2",
|
|
41
|
+
"jest-environment-jsdom": "^28.1.2",
|
|
42
|
+
"jsonld": "^6.0.0",
|
|
43
|
+
"ts-jest": "^28.0.5",
|
|
44
|
+
"ts-node": "^10.8.2",
|
|
45
|
+
"typescript": "^4.7.4"
|
|
44
46
|
},
|
|
45
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "598ab440cfee90abc28bd73e90f1f33cad8225dc"
|
|
46
48
|
}
|