pa11y-ci-reporter-runner 5.0.1 → 5.0.3
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/README.md +1 -1
- package/lib/reporter-builder.js +2 -2
- package/package.json +12 -11
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ The reporter runner has five control functions:
|
|
|
88
88
|
- `runUntil(targetState, targetUrl)`: Simulates Pa11y CI running the analysis
|
|
89
89
|
from the provided JSON results file from the current state through the
|
|
90
90
|
specified state/URL, calling the associated reporter functions as noted
|
|
91
|
-
|
|
91
|
+
previously. An error is thrown if the end of the results are reached and the
|
|
92
92
|
target wasn't found. This function takes the following arguments:
|
|
93
93
|
- `targetState`: The target state of the runner (any state noted previously
|
|
94
94
|
except `init`, or any valid value of the `RunnerStates` enum).
|
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
|
};
|
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.3",
|
|
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": "^32.0.0",
|
|
46
|
+
"eslint": "^9.13.0",
|
|
47
|
+
"globals": "^15.11.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.3.
|
|
52
|
-
"tsd": "^0.31.
|
|
53
|
-
"typescript": "^5.
|
|
50
|
+
"markdownlint-cli2": "^0.14.0",
|
|
51
|
+
"pa11y-ci-reporter-cli-summary": "^4.0.0",
|
|
52
|
+
"prettier": "^3.3.3",
|
|
53
|
+
"tsd": "^0.31.2",
|
|
54
|
+
"typescript": "^5.6.3"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
57
|
"lodash": "^4.17.21",
|
|
57
|
-
"xstate": "^5.
|
|
58
|
+
"xstate": "^5.18.2"
|
|
58
59
|
}
|
|
59
60
|
}
|