@axe-core/cli 4.7.4-alpha.408 → 4.7.4-bbfaae4.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.
Files changed (64) hide show
  1. package/package.json +12 -11
  2. package/.eslintrc.js +0 -18
  3. package/CHANGELOG.md +0 -235
  4. package/dist/package.json +0 -91
  5. package/dist/src/bin/cli.d.ts +0 -2
  6. package/dist/src/bin/cli.js +0 -39
  7. package/dist/src/bin/cli.js.map +0 -1
  8. package/dist/src/bin/cli.test.d.ts +0 -1
  9. package/dist/src/bin/cli.test.js +0 -251
  10. package/dist/src/bin/cli.test.js.map +0 -1
  11. package/dist/src/bin/index.d.ts +0 -5
  12. package/dist/src/bin/index.js +0 -138
  13. package/dist/src/bin/index.js.map +0 -1
  14. package/dist/src/lib/axe-test-urls.d.ts +0 -4
  15. package/dist/src/lib/axe-test-urls.js +0 -89
  16. package/dist/src/lib/axe-test-urls.js.map +0 -1
  17. package/dist/src/lib/axe-test-urls.test.d.ts +0 -1
  18. package/dist/src/lib/axe-test-urls.test.js +0 -73
  19. package/dist/src/lib/axe-test-urls.test.js.map +0 -1
  20. package/dist/src/lib/events.d.ts +0 -10
  21. package/dist/src/lib/events.js +0 -54
  22. package/dist/src/lib/events.js.map +0 -1
  23. package/dist/src/lib/events.test.d.ts +0 -1
  24. package/dist/src/lib/events.test.js +0 -31
  25. package/dist/src/lib/events.test.js.map +0 -1
  26. package/dist/src/lib/index.d.ts +0 -4
  27. package/dist/src/lib/index.js +0 -36
  28. package/dist/src/lib/index.js.map +0 -1
  29. package/dist/src/lib/utils.d.ts +0 -15
  30. package/dist/src/lib/utils.js +0 -120
  31. package/dist/src/lib/utils.js.map +0 -1
  32. package/dist/src/lib/utils.test.d.ts +0 -1
  33. package/dist/src/lib/utils.test.js +0 -140
  34. package/dist/src/lib/utils.test.js.map +0 -1
  35. package/dist/src/lib/webdriver.d.ts +0 -4
  36. package/dist/src/lib/webdriver.js +0 -46
  37. package/dist/src/lib/webdriver.js.map +0 -1
  38. package/dist/src/lib/webdriver.test.d.ts +0 -1
  39. package/dist/src/lib/webdriver.test.js +0 -102
  40. package/dist/src/lib/webdriver.test.js.map +0 -1
  41. package/dist/src/testutils/index.d.ts +0 -19
  42. package/dist/src/testutils/index.js +0 -51
  43. package/dist/src/testutils/index.js.map +0 -1
  44. package/dist/src/types.d.ts +0 -36
  45. package/dist/src/types.js +0 -18
  46. package/dist/src/types.js.map +0 -1
  47. package/src/bin/cli.test.ts +0 -407
  48. package/src/bin/cli.ts +0 -82
  49. package/src/bin/index.ts +0 -184
  50. package/src/lib/axe-test-urls.test.ts +0 -73
  51. package/src/lib/axe-test-urls.ts +0 -98
  52. package/src/lib/events.test.ts +0 -26
  53. package/src/lib/events.ts +0 -68
  54. package/src/lib/index.ts +0 -5
  55. package/src/lib/utils.test.ts +0 -130
  56. package/src/lib/utils.ts +0 -143
  57. package/src/lib/webdriver.test.ts +0 -104
  58. package/src/lib/webdriver.ts +0 -38
  59. package/src/testutils/axe-core@2.5.0.js +0 -18941
  60. package/src/testutils/index.ts +0 -47
  61. package/src/testutils/simple-clean.html +0 -11
  62. package/src/testutils/simple.html +0 -12
  63. package/src/types.ts +0 -41
  64. package/tsconfig.json +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axe-core/cli",
3
- "version": "4.7.4-alpha.408+502b6c2",
3
+ "version": "4.7.4-bbfaae4.0+bbfaae4",
4
4
  "description": "A CLI for accessibility testing using axe-core",
5
5
  "author": {
6
6
  "name": "Wilco Fiers",
@@ -17,6 +17,10 @@
17
17
  "url": "https://github.com/dequelabs/axe-core-npm.git"
18
18
  },
19
19
  "license": "MPL-2.0",
20
+ "files": [
21
+ "dist",
22
+ "postinstall.js"
23
+ ],
20
24
  "main": "dist/src/lib/index.js",
21
25
  "typings": "dist/src/types.d.ts",
22
26
  "bin": {
@@ -32,8 +36,7 @@
32
36
  "prebuild": "rimraf dist",
33
37
  "build": "tsc",
34
38
  "test": "mocha --timeout 60000 -r ts-node/register 'src/**/**.test.ts'",
35
- "coverage": "nyc npm run test",
36
- "prepare": "npm run build"
39
+ "coverage": "nyc npm run test"
37
40
  },
38
41
  "keywords": [
39
42
  "axe-core",
@@ -44,9 +47,9 @@
44
47
  "testing"
45
48
  ],
46
49
  "dependencies": {
47
- "@axe-core/webdriverjs": "4.7.4-alpha.408+502b6c2",
48
- "axe-core": "^4.7.0",
49
- "chromedriver": "^113.0.0",
50
+ "@axe-core/webdriverjs": "4.7.4-bbfaae4.0+bbfaae4",
51
+ "axe-core": "~4.8.2",
52
+ "chromedriver": "latest",
50
53
  "colors": "^1.4.0",
51
54
  "commander": "^9.4.1",
52
55
  "selenium-webdriver": "^4.8.1"
@@ -55,15 +58,13 @@
55
58
  "@types/chai": "^4.3.3",
56
59
  "@types/chromedriver": "^81.0.1",
57
60
  "@types/mocha": "^10.0.0",
58
- "@types/mock-fs": "^4.13.1",
59
61
  "@types/selenium-webdriver": "^4.1.5",
60
62
  "chai": "^4.3.6",
61
63
  "execa": "5.1.0",
62
64
  "mocha": "^10.0.0",
63
- "mock-fs": "^5.1.4",
64
65
  "nyc": "^15.1.0",
65
66
  "rimraf": "^3.0.2",
66
- "tempy": "1.0.0",
67
+ "tempy": "^1.0.0",
67
68
  "ts-node": "^10.9.1",
68
69
  "typescript": "^4.8.4"
69
70
  },
@@ -77,7 +78,7 @@
77
78
  "html"
78
79
  ],
79
80
  "statements": 95,
80
- "branches": 92,
81
+ "branches": 91,
81
82
  "functions": 94,
82
83
  "lines": 95,
83
84
  "exclude": [
@@ -87,5 +88,5 @@
87
88
  "src/testutils"
88
89
  ]
89
90
  },
90
- "gitHead": "502b6c2954bee68bb483bfcf58af9b34471f06d0"
91
+ "gitHead": "bbfaae4e6621e7b6040ff79e7e15af208809a438"
91
92
  }
package/.eslintrc.js DELETED
@@ -1,18 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- '@typescript-eslint/no-empty-function': 'off',
4
- '@typescript-eslint/ban-ts-comment': 'off',
5
- '@typescript-eslint/explicit-function-return-type': 'off'
6
- },
7
- overrides: [
8
- {
9
- files: '**/**/*.test.ts',
10
- env: {
11
- mocha: true
12
- },
13
- rules: {
14
- '@typescript-eslint/no-explicit-any': 'off'
15
- }
16
- }
17
- ]
18
- };
package/CHANGELOG.md DELETED
@@ -1,235 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [4.7.3](https://github.com/dequelabs/axe-core-npm/compare/v4.7.2...v4.7.3) (2023-06-09)
7
-
8
- **Note:** Version bump only for package @axe-core/cli
9
-
10
-
11
-
12
-
13
-
14
- ## [4.7.2](https://github.com/dequelabs/axe-core-npm/compare/v4.7.1...v4.7.2) (2023-06-01)
15
-
16
-
17
- ### Bug Fixes
18
-
19
- * **packages/cli:** revert ESM ([#730](https://github.com/dequelabs/axe-core-npm/issues/730)) ([4e1fb95](https://github.com/dequelabs/axe-core-npm/commit/4e1fb958fa251db7eea3433f91f2a2f3adbda1e8))
20
-
21
-
22
-
23
-
24
-
25
- ## [4.7.1](https://github.com/dequelabs/axe-core-npm/compare/v4.7.0...v4.7.1) (2023-05-02)
26
-
27
- **Note:** Version bump only for package @axe-core/cli
28
-
29
-
30
-
31
-
32
-
33
- # [4.7.0](https://github.com/dequelabs/axe-core-npm/compare/v4.6.1...v4.7.0) (2023-04-28)
34
-
35
-
36
- ### Bug Fixes
37
-
38
- * **cli:** do not inject script tags due to pages not allowing script tags ([#710](https://github.com/dequelabs/axe-core-npm/issues/710)) ([2e0fdb4](https://github.com/dequelabs/axe-core-npm/commit/2e0fdb4a4661040b9b8dbb91bed1a96142e4fe0c))
39
-
40
-
41
- ### Features
42
-
43
- * enable esm import ([#713](https://github.com/dequelabs/axe-core-npm/issues/713)) ([076bfa9](https://github.com/dequelabs/axe-core-npm/commit/076bfa99f27f416b4eaff6d24cc23e8573fc72ee))
44
- * Update axe-core to v4.7.0 ([#709](https://github.com/dequelabs/axe-core-npm/issues/709)) ([d418d09](https://github.com/dequelabs/axe-core-npm/commit/d418d093b4c462d5d60e0f7ad3d5147bcaf52aa2))
45
-
46
-
47
-
48
-
49
-
50
- ## [4.6.1](https://github.com/dequelabs/axe-core-npm/compare/v4.6.0...v4.6.1) (2023-03-28)
51
-
52
-
53
- ### Bug Fixes
54
-
55
- * **cli:** increase --timeout default to 90 seconds (to match --help) ([#683](https://github.com/dequelabs/axe-core-npm/issues/683)) ([d11481b](https://github.com/dequelabs/axe-core-npm/commit/d11481b8c74598617260586fe14c8ceba32c6792))
56
- * Update axe-core to v4.6.3 ([#698](https://github.com/dequelabs/axe-core-npm/issues/698)) ([a7d53a4](https://github.com/dequelabs/axe-core-npm/commit/a7d53a4876237c74bb8dc2836b703cdaf2f7ace5))
57
-
58
-
59
-
60
-
61
-
62
- # [4.6.0](https://github.com/dequelabs/axe-core-npm/compare/v4.5.2...v4.6.0) (2023-01-19)
63
-
64
-
65
- ### Features
66
-
67
- * support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b))
68
- * Update axe-core to v4.6.1 ([#633](https://github.com/dequelabs/axe-core-npm/issues/633)) ([8bab5b2](https://github.com/dequelabs/axe-core-npm/commit/8bab5b23b3653a6a0603f10d889e22418a4fff3e))
69
-
70
-
71
-
72
-
73
-
74
- ## [4.5.2](https://github.com/dequelabs/axe-core-npm/compare/v4.5.1...v4.5.2) (2022-11-15)
75
-
76
-
77
- ### Bug Fixes
78
-
79
- * **cli:** include all functions in types file ([#603](https://github.com/dequelabs/axe-core-npm/issues/603)) ([30042ef](https://github.com/dequelabs/axe-core-npm/commit/30042ef3acc0cab7f67ddcf284df089f243f53e6))
80
- * **cli:** use correct driver typings ([#604](https://github.com/dequelabs/axe-core-npm/issues/604)) ([d33bbdf](https://github.com/dequelabs/axe-core-npm/commit/d33bbdf2b3d05c3ba0106d717ba1c8d706c5e05c))
81
- * update to use axe-core 4.5.2 ([#607](https://github.com/dequelabs/axe-core-npm/issues/607)) ([61312ff](https://github.com/dequelabs/axe-core-npm/commit/61312fff2e9ee4e0f218a29a1608f69b45206fad))
82
-
83
-
84
-
85
-
86
-
87
- ## [4.5.1](https://github.com/dequelabs/axe-core-npm/compare/v4.5.0...v4.5.1) (2022-11-03)
88
-
89
- ### Bug Fixes
90
-
91
- - update to use axe-core 4.5.1 ([#597](https://github.com/dequelabs/axe-core-npm/issues/597)) ([173bf05](https://github.com/dequelabs/axe-core-npm/commit/173bf0521fafc2be092bf61523e05cf3aab1de75))
92
-
93
- # [4.5.0](https://github.com/dequelabs/axe-core-npm/compare/v4.4.5...v4.5.0) (2022-10-26)
94
-
95
- ### Features
96
-
97
- - upgrade to use axe-core@4.5.0 ([#589](https://github.com/dequelabs/axe-core-npm/issues/589)) ([4343d9d](https://github.com/dequelabs/axe-core-npm/commit/4343d9d633036ee10198f2a9b757de29b240624e))
98
-
99
- ## [4.4.5](https://github.com/dequelabs/axe-core-npm/compare/v4.4.4...v4.4.5) (2022-09-26)
100
-
101
- ### Bug Fixes
102
-
103
- - **cli:** display stack trace on errors by default ([#555](https://github.com/dequelabs/axe-core-npm/issues/555)) ([a47100c](https://github.com/dequelabs/axe-core-npm/commit/a47100cc74ba3edc76bf49d4e6a7cba39a19a4ac))
104
- - provide proper typings for axe-cli ([#559](https://github.com/dequelabs/axe-core-npm/issues/559)) ([e4ccfa5](https://github.com/dequelabs/axe-core-npm/commit/e4ccfa5c404a0a2156008d5b1e57f6de2431a305))
105
-
106
- ## [4.4.4](https://github.com/dequelabs/axe-core-npm/compare/v4.4.3...v4.4.4) (2022-08-10)
107
-
108
- **Note:** Version bump only for package @axe-core/cli
109
-
110
- ## [4.4.3](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.3) (2022-06-03)
111
-
112
- **Note:** Version bump only for package @axe-core/cli
113
-
114
- ## [4.4.2](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.2) (2022-03-14)
115
-
116
- **Note:** Version bump only for package @axe-core/cli
117
-
118
- ## [4.4.1](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.1) (2022-02-15)
119
-
120
- ### Bug Fixes
121
-
122
- - **cli:** update packages to use `latest` version of ChromeDriver ([#454](https://github.com/dequelabs/axe-core-npm/issues/454)) ([607fa1b](https://github.com/dequelabs/axe-core-npm/commit/607fa1b3f9d7f0d8181a2ef19df03d53e65f7237))
123
-
124
- # [4.4.0](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.0) (2022-02-10)
125
-
126
- ### Bug Fixes
127
-
128
- - **cli:** add `endTimer()` for page load timer ([#236](https://github.com/dequelabs/axe-core-npm/issues/236)) ([e0a19a3](https://github.com/dequelabs/axe-core-npm/commit/e0a19a3bad9b9965df9b98f391efb3403ab737ae))
129
- - **cli:** add timeout waiting for page to be ready ([#250](https://github.com/dequelabs/axe-core-npm/issues/250)) ([cbb795f](https://github.com/dequelabs/axe-core-npm/commit/cbb795f1a92c419794a5f1f9645e28493d7c9bdb))
130
- - **cli:** find axe-core when installed globally ([#232](https://github.com/dequelabs/axe-core-npm/issues/232)) ([75c273d](https://github.com/dequelabs/axe-core-npm/commit/75c273d6b8b4dcec1f953605a5bf4c9b818436cb))
131
- - **cli:** pass chromedriver-path arg to webdriver ([#416](https://github.com/dequelabs/axe-core-npm/issues/416)) ([14e5125](https://github.com/dequelabs/axe-core-npm/commit/14e512551506a333b0249049c3c08c605b2026c3))
132
- - **cli:** provide a more robust error message if analysis fails ([#421](https://github.com/dequelabs/axe-core-npm/issues/421)) ([9f1fa5d](https://github.com/dequelabs/axe-core-npm/commit/9f1fa5d8cb7c2c87bd6e92fe7b13b961e3d73f37))
133
- - pass chrome options to `chromeOptions.addArguments()` ([#262](https://github.com/dequelabs/axe-core-npm/issues/262)) ([715f463](https://github.com/dequelabs/axe-core-npm/commit/715f463c1324d11cafec4a357ee55f446584cd1c))
134
- - selenium-webdriverjs peer dependency to allow newer versions ([#258](https://github.com/dequelabs/axe-core-npm/issues/258)) ([2dc2788](https://github.com/dequelabs/axe-core-npm/commit/2dc27883aa4aa40e64766b0bc60191cb1a4f8963))
135
- - update axe-core to 4.2.1 ([#254](https://github.com/dequelabs/axe-core-npm/issues/254)) ([9d90185](https://github.com/dequelabs/axe-core-npm/commit/9d9018525a4d799f6d763d0329f05ccbfd20dbe4))
136
- - **webdriverjs:** prevent selnium undefined -> null transformation ([#402](https://github.com/dequelabs/axe-core-npm/issues/402)) ([5095f43](https://github.com/dequelabs/axe-core-npm/commit/5095f43d371a3ad5c8b5a6b3f94e0ad686e85d7b))
137
- - **webdriverjs:** prevent selnium undefined -> null transformation ([#402](https://github.com/dequelabs/axe-core-npm/issues/402)) ([be3912d](https://github.com/dequelabs/axe-core-npm/commit/be3912d47f6a9d5507aec6af2a01484de554daec))
138
- - **webdriverjs:** Reject with actual `Error`s (not strings) ([#423](https://github.com/dequelabs/axe-core-npm/issues/423)) ([3fdb50a](https://github.com/dequelabs/axe-core-npm/commit/3fdb50ad7b9106fa288d7c2b3092ec31de5d984b)), closes [#422](https://github.com/dequelabs/axe-core-npm/issues/422) [#421](https://github.com/dequelabs/axe-core-npm/issues/421) [#387](https://github.com/dequelabs/axe-core-npm/issues/387) [#308](https://github.com/dequelabs/axe-core-npm/issues/308) [#207](https://github.com/dequelabs/axe-core-npm/issues/207)
139
-
140
- ### Features
141
-
142
- - **react:** Add configuration option to optional disable cache (deduplication) ([#309](https://github.com/dequelabs/axe-core-npm/issues/309)) ([435811c](https://github.com/dequelabs/axe-core-npm/commit/435811cb3957cf84b1c1701f6de5c4eb740c8301))
143
- - update `axe-core@4.2.2` ([#263](https://github.com/dequelabs/axe-core-npm/issues/263)) ([8c609e1](https://github.com/dequelabs/axe-core-npm/commit/8c609e1e3580a63f8697ca94e146b0e2ed28e579))
144
- - update axe-core to 4.2.0 ([#240](https://github.com/dequelabs/axe-core-npm/issues/240)) ([4e8f7fe](https://github.com/dequelabs/axe-core-npm/commit/4e8f7fee9db09fb56f91ea34f9984be66a29033e))
145
- - update to use `axe-core@4.2.3` ([#280](https://github.com/dequelabs/axe-core-npm/issues/280)) ([8aebba5](https://github.com/dequelabs/axe-core-npm/commit/8aebba5c6069ca047f649446e072259c069c9a22))
146
- - upgrade axe-core to 4.4.1 ([#441](https://github.com/dequelabs/axe-core-npm/issues/441)) ([765c81a](https://github.com/dequelabs/axe-core-npm/commit/765c81a2ae63e8c72ec086b86174a5c5f343ea9b))
147
- - **webdriverjs:** upgrade to axe-core 4.3 ([#312](https://github.com/dequelabs/axe-core-npm/issues/312)) ([b416e74](https://github.com/dequelabs/axe-core-npm/commit/b416e74fb56526021b010996c0e1382269627efa))
148
-
149
- ## [4.3.1](https://github.com/dequelabs/axe-core-npm/compare/v4.3.0...v4.3.1) (2021-09-20)
150
-
151
- ### Bug Fixes
152
-
153
- - **cli,reporter-earl,react:** use correct version of axe-core ([#378](https://github.com/dequelabs/axe-core-npm/issues/378)) ([0c7d050](https://github.com/dequelabs/axe-core-npm/commit/0c7d0506b7d397df3c96414fc37a408e90fe9a9c))
154
-
155
- # [4.3.0](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.3.0) (2021-09-20)
156
-
157
- ### Bug Fixes
158
-
159
- - pass chrome options to `chromeOptions.addArguments()` ([#262](https://github.com/dequelabs/axe-core-npm/issues/262)) ([715f463](https://github.com/dequelabs/axe-core-npm/commit/715f463c1324d11cafec4a357ee55f446584cd1c))
160
- - selenium-webdriverjs peer dependency to allow newer versions ([#258](https://github.com/dequelabs/axe-core-npm/issues/258)) ([2dc2788](https://github.com/dequelabs/axe-core-npm/commit/2dc27883aa4aa40e64766b0bc60191cb1a4f8963))
161
- - update axe-core to 4.2.1 ([#254](https://github.com/dequelabs/axe-core-npm/issues/254)) ([9d90185](https://github.com/dequelabs/axe-core-npm/commit/9d9018525a4d799f6d763d0329f05ccbfd20dbe4))
162
- - **cli:** add timeout waiting for page to be ready ([#250](https://github.com/dequelabs/axe-core-npm/issues/250)) ([cbb795f](https://github.com/dequelabs/axe-core-npm/commit/cbb795f1a92c419794a5f1f9645e28493d7c9bdb))
163
-
164
- ### Features
165
-
166
- - **react:** Add configuration option to optional disable cache (deduplication) ([#309](https://github.com/dequelabs/axe-core-npm/issues/309)) ([435811c](https://github.com/dequelabs/axe-core-npm/commit/435811cb3957cf84b1c1701f6de5c4eb740c8301))
167
- - **webdriverjs:** upgrade to axe-core 4.3 ([#312](https://github.com/dequelabs/axe-core-npm/issues/312)) ([b416e74](https://github.com/dequelabs/axe-core-npm/commit/b416e74fb56526021b010996c0e1382269627efa))
168
- - update `axe-core@4.2.2` ([#263](https://github.com/dequelabs/axe-core-npm/issues/263)) ([8c609e1](https://github.com/dequelabs/axe-core-npm/commit/8c609e1e3580a63f8697ca94e146b0e2ed28e579))
169
- - update to use `axe-core@4.2.3` ([#280](https://github.com/dequelabs/axe-core-npm/issues/280)) ([8aebba5](https://github.com/dequelabs/axe-core-npm/commit/8aebba5c6069ca047f649446e072259c069c9a22))
170
-
171
- ## [4.2.2](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.2.2) (2021-06-23)
172
-
173
- ### Bug Fixes
174
-
175
- - pass chrome options to `chromeOptions.addArguments()` ([#262](https://github.com/dequelabs/axe-core-npm/issues/262)) ([715f463](https://github.com/dequelabs/axe-core-npm/commit/715f463c1324d11cafec4a357ee55f446584cd1c))
176
- - selenium-webdriverjs peer dependency to allow newer versions ([#258](https://github.com/dequelabs/axe-core-npm/issues/258)) ([2dc2788](https://github.com/dequelabs/axe-core-npm/commit/2dc27883aa4aa40e64766b0bc60191cb1a4f8963))
177
- - update axe-core to 4.2.1 ([#254](https://github.com/dequelabs/axe-core-npm/issues/254)) ([9d90185](https://github.com/dequelabs/axe-core-npm/commit/9d9018525a4d799f6d763d0329f05ccbfd20dbe4))
178
- - **cli:** add timeout waiting for page to be ready ([#250](https://github.com/dequelabs/axe-core-npm/issues/250)) ([cbb795f](https://github.com/dequelabs/axe-core-npm/commit/cbb795f1a92c419794a5f1f9645e28493d7c9bdb))
179
-
180
- ### Features
181
-
182
- - update `axe-core@4.2.2` ([#263](https://github.com/dequelabs/axe-core-npm/issues/263)) ([8c609e1](https://github.com/dequelabs/axe-core-npm/commit/8c609e1e3580a63f8697ca94e146b0e2ed28e579))
183
- - update to use `axe-core@4.2.3` ([#280](https://github.com/dequelabs/axe-core-npm/issues/280)) ([8aebba5](https://github.com/dequelabs/axe-core-npm/commit/8aebba5c6069ca047f649446e072259c069c9a22))
184
-
185
- ## [4.2.1](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.2.1) (2021-05-19)
186
-
187
- ### Bug Fixes
188
-
189
- - update axe-core to 4.2.1 ([#254](https://github.com/dequelabs/axe-core-npm/issues/254)) ([9d90185](https://github.com/dequelabs/axe-core-npm/commit/9d9018525a4d799f6d763d0329f05ccbfd20dbe4))
190
- - **cli:** add timeout waiting for page to be ready ([#250](https://github.com/dequelabs/axe-core-npm/issues/250)) ([cbb795f](https://github.com/dequelabs/axe-core-npm/commit/cbb795f1a92c419794a5f1f9645e28493d7c9bdb))
191
-
192
- # [4.2.0](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.2.0) (2021-05-05)
193
-
194
- ### Bug Fixes
195
-
196
- - **cli:** add `endTimer()` for page load timer ([#236](https://github.com/dequelabs/axe-core-npm/issues/236)) ([e0a19a3](https://github.com/dequelabs/axe-core-npm/commit/e0a19a3bad9b9965df9b98f391efb3403ab737ae))
197
- - **cli:** find axe-core when installed globally ([#232](https://github.com/dequelabs/axe-core-npm/issues/232)) ([75c273d](https://github.com/dequelabs/axe-core-npm/commit/75c273d6b8b4dcec1f953605a5bf4c9b818436cb))
198
-
199
- ### Features
200
-
201
- - update axe-core to 4.2.0 ([#240](https://github.com/dequelabs/axe-core-npm/issues/240)) ([4e8f7fe](https://github.com/dequelabs/axe-core-npm/commit/4e8f7fee9db09fb56f91ea34f9984be66a29033e))
202
-
203
- ## [4.1.1](https://github.com/dequelabs/axe-core-npm/compare/v4.0.0...v4.1.1) (2021-01-28)
204
-
205
- ### Bug Fixes
206
-
207
- - **cli:** create a directory when one does not exist ([#187](https://github.com/dequelabs/axe-core-npm/issues/187)) ([814cabf](https://github.com/dequelabs/axe-core-npm/commit/814cabf1082a758940b0a7917a1993fdd1d013af))
208
- - **react:** Prevent config TypeError ([708c463](https://github.com/dequelabs/axe-core-npm/commit/708c46366d5f2069a4f25238beb32299abc962b9))
209
-
210
- # [4.1.0](https://github.com/dequelabs/axe-core-npm/compare/v4.0.0...v4.1.0) (2020-11-20)
211
-
212
- **Note:** Version bump only for package @axe-core/cli
213
-
214
- # 4.0.0 (2020-08-25)
215
-
216
- ### Bug Fixes
217
-
218
- - **cli:** add timeout to `webdriver.js` ([#47](https://github.com/dequelabs/axe-core-npm/issues/47)) ([b9a3a3d](https://github.com/dequelabs/axe-core-npm/commit/b9a3a3d2bd1fc5c8a749dfa78d1b52f77756bca1))
219
- - **cli:** change default mocha timeout for testing ([#18](https://github.com/dequelabs/axe-core-npm/issues/18)) ([f1e770c](https://github.com/dequelabs/axe-core-npm/commit/f1e770c22e2f170eec5757d58cc140818fb6a76b))
220
- - **cli:** Enable program to work with `pkg` ([#48](https://github.com/dequelabs/axe-core-npm/issues/48)) ([a9ccea6](https://github.com/dequelabs/axe-core-npm/commit/a9ccea6cf7f152daa016f5ccc9fa85222ab9bdc0))
221
- - **cli:** fix main in `package.json` so that we can use functions in `axe-test-urls` file ([#26](https://github.com/dequelabs/axe-core-npm/issues/26)) ([651af8f](https://github.com/dequelabs/axe-core-npm/commit/651af8faa2d4e44e49bcb311fc4b4e4d03f70d84))
222
- - **cli:** fix webdriver being passed from index.js ([#33](https://github.com/dequelabs/axe-core-npm/issues/33)) ([7c939d6](https://github.com/dequelabs/axe-core-npm/commit/7c939d667c02d594ef810fefdc9663b6c856cfbc))
223
- - **cli:** start webdriver correctly ([#69](https://github.com/dequelabs/axe-core-npm/issues/69)) ([90675b4](https://github.com/dequelabs/axe-core-npm/commit/90675b47a0d9301dd5578785888e56785c6a442f))
224
- - **webdriverjs:** Require `new` when instantiating ([#31](https://github.com/dequelabs/axe-core-npm/issues/31)) ([c0aa15c](https://github.com/dequelabs/axe-core-npm/commit/c0aa15ca0134f300fa5db4887d73c4e9633af2ca))
225
- - Make packages public ([#23](https://github.com/dequelabs/axe-core-npm/issues/23)) ([56395f0](https://github.com/dequelabs/axe-core-npm/commit/56395f047985f8f81951531de84b79ff8bb33881))
226
-
227
- ### Features
228
-
229
- - update `@axe-core/*` to use axe-core v4.0.1 ([#56](https://github.com/dequelabs/axe-core-npm/issues/56)) ([4b0ea09](https://github.com/dequelabs/axe-core-npm/commit/4b0ea095fe0963640e1e11f53665a66ad775f4df))
230
- - **cli:** replace axe-webdriverjs in favor of @axe-core/webdriverjs ([#51](https://github.com/dequelabs/axe-core-npm/issues/51)) ([734a795](https://github.com/dequelabs/axe-core-npm/commit/734a795c2b7b6478ba9c3586d4489a04244a7011))
231
- - Add `@axe-core/cli` ([#6](https://github.com/dequelabs/axe-core-npm/issues/6)) ([2db54c2](https://github.com/dequelabs/axe-core-npm/commit/2db54c2476a3d5c2a1b3c85da58f90ac077e61e5))
232
-
233
- ### BREAKING CHANGES
234
-
235
- - **webdriverjs:** use `new AxeBuilder()`, not `AxeBuilder()`
package/dist/package.json DELETED
@@ -1,91 +0,0 @@
1
- {
2
- "name": "@axe-core/cli",
3
- "version": "4.7.4-alpha.408+502b6c2",
4
- "description": "A CLI for accessibility testing using axe-core",
5
- "author": {
6
- "name": "Wilco Fiers",
7
- "organization": "Deque Systems, Inc.",
8
- "url": "http://github.com/wilcofiers/"
9
- },
10
- "contributors": [
11
- {
12
- "name": "Michael Siek (me@michaelsiek.com)"
13
- }
14
- ],
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/dequelabs/axe-core-npm.git"
18
- },
19
- "license": "MPL-2.0",
20
- "main": "dist/src/lib/index.js",
21
- "typings": "dist/src/types.d.ts",
22
- "bin": {
23
- "axe": "./dist/src/bin/cli.js"
24
- },
25
- "publishConfig": {
26
- "access": "public"
27
- },
28
- "engines": {
29
- "node": ">=8"
30
- },
31
- "scripts": {
32
- "prebuild": "rimraf dist",
33
- "build": "tsc",
34
- "test": "mocha --timeout 60000 -r ts-node/register 'src/**/**.test.ts'",
35
- "coverage": "nyc npm run test",
36
- "prepare": "npm run build"
37
- },
38
- "keywords": [
39
- "axe-core",
40
- "accessibility",
41
- "a11y",
42
- "wcag",
43
- "cli",
44
- "testing"
45
- ],
46
- "dependencies": {
47
- "@axe-core/webdriverjs": "4.7.4-alpha.408+502b6c2",
48
- "axe-core": "^4.7.0",
49
- "chromedriver": "^113.0.0",
50
- "colors": "^1.4.0",
51
- "commander": "^9.4.1",
52
- "selenium-webdriver": "^4.8.1"
53
- },
54
- "devDependencies": {
55
- "@types/chai": "^4.3.3",
56
- "@types/chromedriver": "^81.0.1",
57
- "@types/mocha": "^10.0.0",
58
- "@types/mock-fs": "^4.13.1",
59
- "@types/selenium-webdriver": "^4.1.5",
60
- "chai": "^4.3.6",
61
- "execa": "5.1.0",
62
- "mocha": "^10.0.0",
63
- "mock-fs": "^5.1.4",
64
- "nyc": "^15.1.0",
65
- "rimraf": "^3.0.2",
66
- "tempy": "1.0.0",
67
- "ts-node": "^10.9.1",
68
- "typescript": "^4.8.4"
69
- },
70
- "nyc": {
71
- "checkCoverage": true,
72
- "extension": [
73
- ".ts"
74
- ],
75
- "reporter": [
76
- "text-summary",
77
- "html"
78
- ],
79
- "statements": 95,
80
- "branches": 92,
81
- "functions": 94,
82
- "lines": 95,
83
- "exclude": [
84
- "dist",
85
- "coverage",
86
- "**/*.test.ts",
87
- "src/testutils"
88
- ]
89
- },
90
- "gitHead": "502b6c2954bee68bb483bfcf58af9b34471f06d0"
91
- }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,39 +0,0 @@
1
- #!/usr/bin/env node
2
- "use strict";
3
- var __importDefault = (this && this.__importDefault) || function (mod) {
4
- return (mod && mod.__esModule) ? mod : { "default": mod };
5
- };
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- const commander_1 = require("commander");
8
- const package_json_1 = require("../../package.json");
9
- const utils_1 = require("../lib/utils");
10
- const _1 = __importDefault(require("."));
11
- const program = new commander_1.Command();
12
- program
13
- .version(package_json_1.version)
14
- .usage('<url...> [options]')
15
- .option('-i, --include <list>', 'CSS selector of included elements, comma separated', utils_1.splitList)
16
- .option('-e, --exclude <list>', 'CSS selector of excluded elements, comma separated', utils_1.splitList)
17
- .option('-r, --rules <list>', 'IDs of rules to run, comma separated', utils_1.splitList)
18
- .option('-t, --tags <list>', 'Tags of rules to run, comma separated', utils_1.splitList)
19
- .option('-l, --disable <list>', 'IDs of rules to disable, comma separated', utils_1.splitList)
20
- .option('-b, --browser [browser-name]', 'Which browser to run (Webdriver required)')
21
- .option('-s, --save [filename]', 'Save the output as a JSON file. Filename is optional')
22
- .option('-j, --stdout', 'Output results to STDOUT and silence all other output')
23
- .option('-d, --dir <path>', 'Output directory')
24
- .option('-a, --axe-source <path>', 'Path to axe.js file')
25
- .option('-q, --exit', 'Exit with `1` failure code if any a11y tests fail')
26
- .option('-v, --verbose', 'Output metadata like test tool name, version and environment')
27
- .option('--load-delay <n>', 'Set how much time (milliseconds) axe will wait after page load before running the audit (default: 0)')
28
- .option('--timeout <n>', 'Set how much time (seconds) axe has to run',
29
- // @ts-ignore
30
- 90)
31
- .option('--timer', 'Log the time it takes to run')
32
- .option('--show-errors [boolean]', 'Display the full error stack', true)
33
- // TODO: Replace this with a reporter option, this required adding
34
- .option('--no-reporter', 'Turn the CLI reporter off')
35
- .option('--chrome-options [options]', 'Options to provide to headless Chrome', utils_1.splitList)
36
- .option('--chromedriver-path <path>', 'Absolute path to the desired chromedriver executable')
37
- .action(_1.default);
38
- program.parse(process.argv);
39
- //# sourceMappingURL=cli.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/bin/cli.ts"],"names":[],"mappings":";;;;;;AAEA,yCAAoC;AACpC,qDAA6C;AAC7C,wCAAyC;AACzC,yCAAoB;AAEpB,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,OAAO,CAAC,sBAAO,CAAC;KAChB,KAAK,CAAC,oBAAoB,CAAC;KAC3B,MAAM,CACL,sBAAsB,EACtB,oDAAoD,EACpD,iBAAS,CACV;KACA,MAAM,CACL,sBAAsB,EACtB,oDAAoD,EACpD,iBAAS,CACV;KACA,MAAM,CACL,oBAAoB,EACpB,sCAAsC,EACtC,iBAAS,CACV;KACA,MAAM,CACL,mBAAmB,EACnB,uCAAuC,EACvC,iBAAS,CACV;KACA,MAAM,CACL,sBAAsB,EACtB,0CAA0C,EAC1C,iBAAS,CACV;KACA,MAAM,CACL,8BAA8B,EAC9B,2CAA2C,CAC5C;KACA,MAAM,CACL,uBAAuB,EACvB,sDAAsD,CACvD;KACA,MAAM,CACL,cAAc,EACd,uDAAuD,CACxD;KACA,MAAM,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;KAC9C,MAAM,CAAC,yBAAyB,EAAE,qBAAqB,CAAC;KACxD,MAAM,CAAC,YAAY,EAAE,mDAAmD,CAAC;KACzE,MAAM,CACL,eAAe,EACf,8DAA8D,CAC/D;KACA,MAAM,CACL,kBAAkB,EAClB,sGAAsG,CACvG;KACA,MAAM,CACL,eAAe,EACf,4CAA4C;AAC5C,aAAa;AACb,EAAE,CACH;KACA,MAAM,CAAC,SAAS,EAAE,8BAA8B,CAAC;KACjD,MAAM,CAAC,yBAAyB,EAAE,8BAA8B,EAAE,IAAI,CAAC;IACxE,kEAAkE;KACjE,MAAM,CAAC,eAAe,EAAE,2BAA2B,CAAC;KACpD,MAAM,CACL,4BAA4B,EAC5B,uCAAuC,EACvC,iBAAS,CACV;KACA,MAAM,CACL,4BAA4B,EAC5B,sDAAsD,CACvD;KACA,MAAM,CAAC,UAAG,CAAC,CAAC;AAEf,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- import 'mocha';