pa11y-ci-reporter-runner 6.0.1 → 6.0.2

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/index.js CHANGED
@@ -34,7 +34,9 @@ const loadPa11yciResults = (fileName) => {
34
34
  const results = JSON.parse(fs.readFileSync(fileName, 'utf8'));
35
35
  return formatter.convertJsonToResultsObject(results);
36
36
  } catch (error) {
37
- throw new Error(`Error loading results file - ${error.message}`);
37
+ throw new Error(`Error loading results file - ${error.message}`, {
38
+ cause: error
39
+ });
38
40
  }
39
41
  };
40
42
 
@@ -83,7 +85,8 @@ const validateUrls = (results, config) => {
83
85
  const configUrls = getUrlList(config.urls);
84
86
  if (
85
87
  resultUrls.length !== configUrls.length ||
86
- JSON.stringify(resultUrls.sort()) !== JSON.stringify(configUrls.sort())
88
+ JSON.stringify(resultUrls.toSorted()) !==
89
+ JSON.stringify(configUrls.toSorted())
87
90
  ) {
88
91
  throw new TypeError(
89
92
  'config.urls is specified and does not match results'
@@ -53,7 +53,9 @@ const buildReporter = (reporterName, options, config) => {
53
53
  }
54
54
  return reporter;
55
55
  } catch (error) {
56
- throw new Error(`Error loading reporter: ${error.message}`);
56
+ throw new Error(`Error loading reporter: ${error.message}`, {
57
+ cause: error
58
+ });
57
59
  }
58
60
  };
59
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pa11y-ci-reporter-runner",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
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
  "types": "index.d.ts",
@@ -43,19 +43,19 @@
43
43
  },
44
44
  "homepage": "https://gitlab.com/gitlab-ci-utils/pa11y-ci-reporter-runner",
45
45
  "devDependencies": {
46
- "@aarongoldenthal/eslint-config-standard": "^39.0.2",
47
- "eslint": "^9.35.0",
48
- "globals": "^16.4.0",
49
- "jest": "^30.1.3",
46
+ "@aarongoldenthal/eslint-config-standard": "^42.0.1",
47
+ "eslint": "^9.39.2",
48
+ "globals": "^16.5.0",
49
+ "jest": "^30.2.0",
50
50
  "jest-junit": "^16.0.0",
51
- "markdownlint-cli2": "^0.18.1",
51
+ "markdownlint-cli2": "^0.20.0",
52
52
  "pa11y-ci-reporter-cli-summary": "^5.0.1",
53
- "prettier": "^3.6.2",
53
+ "prettier": "^3.7.4",
54
54
  "tsd": "^0.33.0",
55
- "typescript": "^5.9.2"
55
+ "typescript": "^5.9.3"
56
56
  },
57
57
  "dependencies": {
58
58
  "lodash": "^4.17.21",
59
- "xstate": "^5.21.0"
59
+ "xstate": "^5.25.0"
60
60
  }
61
61
  }