pa11y-ci-reporter-runner 5.0.2 → 5.0.4
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/LICENSE +1 -1
- package/lib/reporter-builder.js +3 -3
- package/package.json +12 -11
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2022 -
|
|
3
|
+
Copyright (c) 2022 - 2025 Aaron Goldenthal
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/lib/reporter-builder.js
CHANGED
|
@@ -9,10 +9,10 @@ const noop = () => {};
|
|
|
9
9
|
user-provided reporters */
|
|
10
10
|
const loadReporter = (reporterName) => {
|
|
11
11
|
try {
|
|
12
|
-
// nosemgrep:
|
|
12
|
+
// nosemgrep: eslint.detect-non-literal-require
|
|
13
13
|
return require(reporterName);
|
|
14
14
|
} catch {
|
|
15
|
-
// nosemgrep:
|
|
15
|
+
// nosemgrep: eslint.detect-non-literal-require
|
|
16
16
|
return require(path.resolve(process.cwd(), reporterName));
|
|
17
17
|
}
|
|
18
18
|
};
|
|
@@ -31,7 +31,7 @@ const loadReporter = (reporterName) => {
|
|
|
31
31
|
* @returns {object} The reporter object.
|
|
32
32
|
* @throws {TypeError} Throws if reporterName is not a string.
|
|
33
33
|
*/
|
|
34
|
-
// eslint-disable-next-line
|
|
34
|
+
// eslint-disable-next-line complexity -- allow low threshold
|
|
35
35
|
const buildReporter = (reporterName, options, config) => {
|
|
36
36
|
if (typeof reporterName !== 'string') {
|
|
37
37
|
throw new TypeError('reporterName must be a string');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pa11y-ci-reporter-runner",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Pa11y CI Reporter Runner is designed to facilitate testing of Pa11y CI reporters. Given a Pa11y CI JSON results file and optional configuration it simulates the Pa11y CI calls to the reporter.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,11 +13,12 @@
|
|
|
13
13
|
"prettier:check": "prettier --check .",
|
|
14
14
|
"prettier:fix": "prettier --write .",
|
|
15
15
|
"test": "jest --ci",
|
|
16
|
+
"test:no-coverage": "jest --ci --collectCoverage false",
|
|
16
17
|
"test:types": "tsd"
|
|
17
18
|
},
|
|
18
19
|
"repository": {
|
|
19
20
|
"type": "git",
|
|
20
|
-
"url": "https://gitlab.com/gitlab-ci-utils/pa11y-ci-reporter-runner.git"
|
|
21
|
+
"url": "git+https://gitlab.com/gitlab-ci-utils/pa11y-ci-reporter-runner.git"
|
|
21
22
|
},
|
|
22
23
|
"keywords": [
|
|
23
24
|
"pa11y-ci",
|
|
@@ -41,19 +42,19 @@
|
|
|
41
42
|
},
|
|
42
43
|
"homepage": "https://gitlab.com/gitlab-ci-utils/pa11y-ci-reporter-runner",
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@aarongoldenthal/eslint-config-standard": "^
|
|
45
|
-
"eslint": "^9.
|
|
46
|
-
"globals": "^15.
|
|
45
|
+
"@aarongoldenthal/eslint-config-standard": "^33.0.2",
|
|
46
|
+
"eslint": "^9.17.0",
|
|
47
|
+
"globals": "^15.14.0",
|
|
47
48
|
"jest": "^29.7.0",
|
|
48
49
|
"jest-junit": "^16.0.0",
|
|
49
|
-
"markdownlint-cli2": "^0.
|
|
50
|
-
"pa11y-ci-reporter-cli-summary": "^
|
|
51
|
-
"prettier": "^3.
|
|
52
|
-
"tsd": "^0.31.
|
|
53
|
-
"typescript": "^5.
|
|
50
|
+
"markdownlint-cli2": "^0.17.1",
|
|
51
|
+
"pa11y-ci-reporter-cli-summary": "^4.0.1",
|
|
52
|
+
"prettier": "^3.4.2",
|
|
53
|
+
"tsd": "^0.31.2",
|
|
54
|
+
"typescript": "^5.7.2"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"lodash": "^4.17.21",
|
|
57
|
-
"xstate": "^5.
|
|
58
|
+
"xstate": "^5.19.1"
|
|
58
59
|
}
|
|
59
60
|
}
|