@axe-core/cli 4.7.4-10cf350.0 → 4.7.4-3f1ff4b.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 +9 -6
  2. package/.eslintrc.js +0 -18
  3. package/CHANGELOG.md +0 -201
  4. package/dist/package.json +0 -89
  5. package/dist/src/bin/cli.d.ts +0 -2
  6. package/dist/src/bin/cli.js +0 -40
  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 -257
  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 -168
  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 -127
  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 -165
  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 -50
  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 -37
  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 -418
  48. package/src/bin/cli.ts +0 -86
  49. package/src/bin/index.ts +0 -216
  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 -160
  56. package/src/lib/utils.ts +0 -155
  57. package/src/lib/webdriver.test.ts +0 -104
  58. package/src/lib/webdriver.ts +0 -43
  59. package/src/testutils/axe-core@2.5.0.js +0 -18929
  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 -42
  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-10cf350.0+10cf350",
3
+ "version": "4.7.4-3f1ff4b.0+3f1ff4b",
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,8 +47,8 @@
44
47
  "testing"
45
48
  ],
46
49
  "dependencies": {
47
- "@axe-core/webdriverjs": "4.7.4-10cf350.0+10cf350",
48
- "axe-core": "^4.7.0",
50
+ "@axe-core/webdriverjs": "4.7.4-3f1ff4b.0+3f1ff4b",
51
+ "axe-core": "~4.8.2",
49
52
  "chromedriver": "latest",
50
53
  "colors": "^1.4.0",
51
54
  "commander": "^9.4.1",
@@ -85,5 +88,5 @@
85
88
  "src/testutils"
86
89
  ]
87
90
  },
88
- "gitHead": "10cf3509449587a14799fb168678258249bc1900"
91
+ "gitHead": "3f1ff4bd464215ce2eb1a243907872aaceadd21f"
89
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,201 +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
- ## [4.7.2](https://github.com/dequelabs/axe-core-npm/compare/v4.7.1...v4.7.2) (2023-06-01)
11
-
12
- ### Bug Fixes
13
-
14
- - **packages/cli:** revert ESM ([#730](https://github.com/dequelabs/axe-core-npm/issues/730)) ([4e1fb95](https://github.com/dequelabs/axe-core-npm/commit/4e1fb958fa251db7eea3433f91f2a2f3adbda1e8))
15
-
16
- ## [4.7.1](https://github.com/dequelabs/axe-core-npm/compare/v4.7.0...v4.7.1) (2023-05-02)
17
-
18
- **Note:** Version bump only for package @axe-core/cli
19
-
20
- # [4.7.0](https://github.com/dequelabs/axe-core-npm/compare/v4.6.1...v4.7.0) (2023-04-28)
21
-
22
- ### Bug Fixes
23
-
24
- - **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))
25
-
26
- ### Features
27
-
28
- - enable esm import ([#713](https://github.com/dequelabs/axe-core-npm/issues/713)) ([076bfa9](https://github.com/dequelabs/axe-core-npm/commit/076bfa99f27f416b4eaff6d24cc23e8573fc72ee))
29
- - 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))
30
-
31
- ## [4.6.1](https://github.com/dequelabs/axe-core-npm/compare/v4.6.0...v4.6.1) (2023-03-28)
32
-
33
- ### Bug Fixes
34
-
35
- - **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))
36
- - 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))
37
-
38
- # [4.6.0](https://github.com/dequelabs/axe-core-npm/compare/v4.5.2...v4.6.0) (2023-01-19)
39
-
40
- ### Features
41
-
42
- - support shadow dom selectors ([#619](https://github.com/dequelabs/axe-core-npm/issues/619)) ([6065b56](https://github.com/dequelabs/axe-core-npm/commit/6065b562adf289341033a7233426ba3dcfb8a24b))
43
- - 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))
44
-
45
- ## [4.5.2](https://github.com/dequelabs/axe-core-npm/compare/v4.5.1...v4.5.2) (2022-11-15)
46
-
47
- ### Bug Fixes
48
-
49
- - **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))
50
- - **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))
51
- - 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))
52
-
53
- ## [4.5.1](https://github.com/dequelabs/axe-core-npm/compare/v4.5.0...v4.5.1) (2022-11-03)
54
-
55
- ### Bug Fixes
56
-
57
- - 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))
58
-
59
- # [4.5.0](https://github.com/dequelabs/axe-core-npm/compare/v4.4.5...v4.5.0) (2022-10-26)
60
-
61
- ### Features
62
-
63
- - 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))
64
-
65
- ## [4.4.5](https://github.com/dequelabs/axe-core-npm/compare/v4.4.4...v4.4.5) (2022-09-26)
66
-
67
- ### Bug Fixes
68
-
69
- - **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))
70
- - 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))
71
-
72
- ## [4.4.4](https://github.com/dequelabs/axe-core-npm/compare/v4.4.3...v4.4.4) (2022-08-10)
73
-
74
- **Note:** Version bump only for package @axe-core/cli
75
-
76
- ## [4.4.3](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.3) (2022-06-03)
77
-
78
- **Note:** Version bump only for package @axe-core/cli
79
-
80
- ## [4.4.2](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.2) (2022-03-14)
81
-
82
- **Note:** Version bump only for package @axe-core/cli
83
-
84
- ## [4.4.1](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.1) (2022-02-15)
85
-
86
- ### Bug Fixes
87
-
88
- - **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))
89
-
90
- # [4.4.0](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.4.0) (2022-02-10)
91
-
92
- ### Bug Fixes
93
-
94
- - **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))
95
- - **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))
96
- - **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))
97
- - **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))
98
- - **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))
99
- - 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))
100
- - 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))
101
- - 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))
102
- - **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))
103
- - **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))
104
- - **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)
105
-
106
- ### Features
107
-
108
- - **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))
109
- - 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))
110
- - 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))
111
- - 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))
112
- - 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))
113
- - **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))
114
-
115
- ## [4.3.1](https://github.com/dequelabs/axe-core-npm/compare/v4.3.0...v4.3.1) (2021-09-20)
116
-
117
- ### Bug Fixes
118
-
119
- - **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))
120
-
121
- # [4.3.0](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.3.0) (2021-09-20)
122
-
123
- ### Bug Fixes
124
-
125
- - 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))
126
- - 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))
127
- - 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))
128
- - **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))
129
-
130
- ### Features
131
-
132
- - **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))
133
- - **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))
134
- - 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))
135
- - 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))
136
-
137
- ## [4.2.2](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.2.2) (2021-06-23)
138
-
139
- ### Bug Fixes
140
-
141
- - 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))
142
- - 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))
143
- - 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))
144
- - **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))
145
-
146
- ### Features
147
-
148
- - 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))
149
- - 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))
150
-
151
- ## [4.2.1](https://github.com/dequelabs/axe-core-npm/compare/v4.2.0...v4.2.1) (2021-05-19)
152
-
153
- ### Bug Fixes
154
-
155
- - 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))
156
- - **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))
157
-
158
- # [4.2.0](https://github.com/dequelabs/axe-core-npm/compare/v4.1.1...v4.2.0) (2021-05-05)
159
-
160
- ### Bug Fixes
161
-
162
- - **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))
163
- - **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))
164
-
165
- ### Features
166
-
167
- - 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))
168
-
169
- ## [4.1.1](https://github.com/dequelabs/axe-core-npm/compare/v4.0.0...v4.1.1) (2021-01-28)
170
-
171
- ### Bug Fixes
172
-
173
- - **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))
174
- - **react:** Prevent config TypeError ([708c463](https://github.com/dequelabs/axe-core-npm/commit/708c46366d5f2069a4f25238beb32299abc962b9))
175
-
176
- # [4.1.0](https://github.com/dequelabs/axe-core-npm/compare/v4.0.0...v4.1.0) (2020-11-20)
177
-
178
- **Note:** Version bump only for package @axe-core/cli
179
-
180
- # 4.0.0 (2020-08-25)
181
-
182
- ### Bug Fixes
183
-
184
- - **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))
185
- - **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))
186
- - **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))
187
- - **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))
188
- - **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))
189
- - **cli:** start webdriver correctly ([#69](https://github.com/dequelabs/axe-core-npm/issues/69)) ([90675b4](https://github.com/dequelabs/axe-core-npm/commit/90675b47a0d9301dd5578785888e56785c6a442f))
190
- - **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))
191
- - Make packages public ([#23](https://github.com/dequelabs/axe-core-npm/issues/23)) ([56395f0](https://github.com/dequelabs/axe-core-npm/commit/56395f047985f8f81951531de84b79ff8bb33881))
192
-
193
- ### Features
194
-
195
- - 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))
196
- - **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))
197
- - Add `@axe-core/cli` ([#6](https://github.com/dequelabs/axe-core-npm/issues/6)) ([2db54c2](https://github.com/dequelabs/axe-core-npm/commit/2db54c2476a3d5c2a1b3c85da58f90ac077e61e5))
198
-
199
- ### BREAKING CHANGES
200
-
201
- - **webdriverjs:** use `new AxeBuilder()`, not `AxeBuilder()`
package/dist/package.json DELETED
@@ -1,89 +0,0 @@
1
- {
2
- "name": "@axe-core/cli",
3
- "version": "4.7.4-10cf350.0+10cf350",
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-10cf350.0+10cf350",
48
- "axe-core": "^4.7.0",
49
- "chromedriver": "latest",
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/selenium-webdriver": "^4.1.5",
59
- "chai": "^4.3.6",
60
- "execa": "5.1.0",
61
- "mocha": "^10.0.0",
62
- "nyc": "^15.1.0",
63
- "rimraf": "^3.0.2",
64
- "tempy": "^1.0.0",
65
- "ts-node": "^10.9.1",
66
- "typescript": "^4.8.4"
67
- },
68
- "nyc": {
69
- "checkCoverage": true,
70
- "extension": [
71
- ".ts"
72
- ],
73
- "reporter": [
74
- "text-summary",
75
- "html"
76
- ],
77
- "statements": 95,
78
- "branches": 91,
79
- "functions": 94,
80
- "lines": 95,
81
- "exclude": [
82
- "dist",
83
- "coverage",
84
- "**/*.test.ts",
85
- "src/testutils"
86
- ]
87
- },
88
- "gitHead": "10cf3509449587a14799fb168678258249bc1900"
89
- }
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,40 +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
- .option('--chrome-path <path>', 'Path to the desired chrome executable')
38
- .action(_1.default);
39
- program.parse(process.argv);
40
- //# 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,CACL,sBAAsB,EACtB,uCAAuC,CACxC;KACA,MAAM,CAAC,UAAG,CAAC,CAAC;AAEf,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- import 'mocha';