accessibility-checker 4.0.1 → 4.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.
Files changed (209) hide show
  1. package/bin/achecker.js +213 -262
  2. package/bin/achecker.js.map +1 -1
  3. package/cjs/bin/achecker.d.ts +2 -0
  4. package/cjs/bin/achecker.js +306 -0
  5. package/cjs/bin/achecker.js.map +1 -0
  6. package/cjs/index.d.ts +319 -0
  7. package/cjs/index.js +402 -0
  8. package/cjs/index.js.map +1 -0
  9. package/cjs/lib/ACBrowserManager.d.ts +22 -0
  10. package/cjs/lib/ACBrowserManager.js +172 -0
  11. package/cjs/lib/ACBrowserManager.js.map +1 -0
  12. package/cjs/lib/ACEngineManager.d.ts +19 -0
  13. package/cjs/lib/ACEngineManager.js +457 -0
  14. package/cjs/lib/ACEngineManager.js.map +1 -0
  15. package/cjs/lib/ACHelper.d.ts +2 -0
  16. package/cjs/lib/ACHelper.js +678 -0
  17. package/cjs/lib/ACHelper.js.map +1 -0
  18. package/cjs/lib/api/IChecker.d.ts +28 -0
  19. package/cjs/lib/api/IChecker.js +11 -0
  20. package/cjs/lib/api/IChecker.js.map +1 -0
  21. package/cjs/lib/api/IMapper.d.ts +37 -0
  22. package/cjs/lib/api/IMapper.js +18 -0
  23. package/cjs/lib/api/IMapper.js.map +1 -0
  24. package/cjs/lib/common/api-ext/Fetch.d.ts +17 -0
  25. package/cjs/lib/common/api-ext/Fetch.js +95 -0
  26. package/cjs/lib/common/api-ext/Fetch.js.map +1 -0
  27. package/cjs/lib/common/api-ext/IAbstractAPI.d.ts +33 -0
  28. package/cjs/lib/common/api-ext/IAbstractAPI.js +18 -0
  29. package/cjs/lib/common/api-ext/IAbstractAPI.js.map +1 -0
  30. package/cjs/lib/common/config/ACConfigManager.d.ts +13 -0
  31. package/cjs/lib/common/config/ACConfigManager.js +483 -0
  32. package/cjs/lib/common/config/ACConfigManager.js.map +1 -0
  33. package/cjs/lib/common/config/ACConstants.d.ts +17 -0
  34. package/cjs/lib/common/config/ACConstants.js +111 -0
  35. package/cjs/lib/common/config/ACConstants.js.map +1 -0
  36. package/cjs/lib/common/config/IArchive.d.ts +37 -0
  37. package/cjs/lib/common/config/IArchive.js +18 -0
  38. package/cjs/lib/common/config/IArchive.js.map +1 -0
  39. package/cjs/lib/common/config/IConfig.d.ts +152 -0
  40. package/cjs/lib/common/config/IConfig.js +36 -0
  41. package/cjs/lib/common/config/IConfig.js.map +1 -0
  42. package/cjs/lib/common/engine/IBounds.d.ts +21 -0
  43. package/cjs/lib/common/engine/IBounds.js +18 -0
  44. package/cjs/lib/common/engine/IBounds.js.map +1 -0
  45. package/cjs/lib/common/engine/IChecker.d.ts +23 -0
  46. package/cjs/lib/common/engine/IChecker.js +18 -0
  47. package/cjs/lib/common/engine/IChecker.js.map +1 -0
  48. package/cjs/lib/common/engine/IEngine.d.ts +39 -0
  49. package/cjs/lib/common/engine/IEngine.js +18 -0
  50. package/cjs/lib/common/engine/IEngine.js.map +1 -0
  51. package/cjs/lib/common/engine/IGuideline.d.ts +53 -0
  52. package/cjs/lib/common/engine/IGuideline.js +37 -0
  53. package/cjs/lib/common/engine/IGuideline.js.map +1 -0
  54. package/cjs/lib/common/engine/IMapper.d.ts +32 -0
  55. package/cjs/lib/common/engine/IMapper.js +18 -0
  56. package/cjs/lib/common/engine/IMapper.js.map +1 -0
  57. package/cjs/lib/common/engine/IReport.d.ts +143 -0
  58. package/cjs/lib/common/engine/IReport.js +44 -0
  59. package/cjs/lib/common/engine/IReport.js.map +1 -0
  60. package/cjs/lib/common/engine/IRule.d.ts +100 -0
  61. package/cjs/lib/common/engine/IRule.js +87 -0
  62. package/cjs/lib/common/engine/IRule.js.map +1 -0
  63. package/cjs/lib/common/engine/IRuleset.d.ts +20 -0
  64. package/cjs/lib/common/engine/IRuleset.js +18 -0
  65. package/cjs/lib/common/engine/IRuleset.js.map +1 -0
  66. package/cjs/lib/common/report/ACReporterCSV.d.ts +28 -0
  67. package/cjs/lib/common/report/ACReporterCSV.js +75 -0
  68. package/cjs/lib/common/report/ACReporterCSV.js.map +1 -0
  69. package/cjs/lib/common/report/ACReporterHTML.d.ts +27 -0
  70. package/cjs/lib/common/report/ACReporterHTML.js +61 -0
  71. package/cjs/lib/common/report/ACReporterHTML.js.map +1 -0
  72. package/cjs/lib/common/report/ACReporterJSON.d.ts +36 -0
  73. package/cjs/lib/common/report/ACReporterJSON.js +109 -0
  74. package/cjs/lib/common/report/ACReporterJSON.js.map +1 -0
  75. package/cjs/lib/common/report/ACReporterMetrics.d.ts +78 -0
  76. package/cjs/lib/common/report/ACReporterMetrics.js +135 -0
  77. package/cjs/lib/common/report/ACReporterMetrics.js.map +1 -0
  78. package/cjs/lib/common/report/ACReporterXLSX.d.ts +38 -0
  79. package/cjs/lib/common/report/ACReporterXLSX.js +996 -0
  80. package/cjs/lib/common/report/ACReporterXLSX.js.map +1 -0
  81. package/cjs/lib/common/report/BaselineManager.d.ts +169 -0
  82. package/cjs/lib/common/report/BaselineManager.js +382 -0
  83. package/cjs/lib/common/report/BaselineManager.js.map +1 -0
  84. package/cjs/lib/common/report/ReporterManager.d.ts +79 -0
  85. package/cjs/lib/common/report/ReporterManager.js +469 -0
  86. package/cjs/lib/common/report/ReporterManager.js.map +1 -0
  87. package/cjs/lib/common/report/genReport.d.ts +1 -0
  88. package/cjs/lib/common/report/genReport.js +12 -0
  89. package/cjs/lib/common/report/genReport.js.map +1 -0
  90. package/cjs/package.json +3 -0
  91. package/index.js +21 -63
  92. package/index.js.map +1 -1
  93. package/lib/ACBrowserManager.js +138 -203
  94. package/lib/ACBrowserManager.js.map +1 -1
  95. package/lib/ACEngineManager.js +395 -402
  96. package/lib/ACEngineManager.js.map +1 -1
  97. package/lib/ACHelper.js +581 -642
  98. package/lib/ACHelper.js.map +1 -1
  99. package/lib/common/api-ext/Fetch.js +58 -78
  100. package/lib/common/api-ext/Fetch.js.map +1 -1
  101. package/lib/common/config/ACConfigManager.js +271 -281
  102. package/lib/common/config/ACConfigManager.js.map +1 -1
  103. package/lib/common/config/ACConstants.js +38 -4
  104. package/lib/common/config/ACConstants.js.map +1 -1
  105. package/lib/common/config/IConfig.d.ts +1 -1
  106. package/lib/common/report/ACReporterCSV.js +42 -77
  107. package/lib/common/report/ACReporterCSV.js.map +1 -1
  108. package/lib/common/report/ACReporterHTML.js +15 -48
  109. package/lib/common/report/ACReporterHTML.js.map +1 -1
  110. package/lib/common/report/ACReporterJSON.js +59 -94
  111. package/lib/common/report/ACReporterJSON.js.map +1 -1
  112. package/lib/common/report/ACReporterMetrics.js +45 -108
  113. package/lib/common/report/ACReporterMetrics.js.map +1 -1
  114. package/lib/common/report/ACReporterXLSX.js +282 -300
  115. package/lib/common/report/ACReporterXLSX.js.map +1 -1
  116. package/lib/common/report/BaselineManager.js +82 -56
  117. package/lib/common/report/BaselineManager.js.map +1 -1
  118. package/lib/common/report/ReporterManager.js +125 -190
  119. package/lib/common/report/ReporterManager.js.map +1 -1
  120. package/lib/common/report/genReport.js +2 -2
  121. package/mjs/bin/achecker.d.ts +2 -0
  122. package/mjs/bin/achecker.js +236 -0
  123. package/mjs/bin/achecker.js.map +1 -0
  124. package/mjs/index.d.ts +319 -0
  125. package/mjs/index.js +368 -0
  126. package/mjs/index.js.map +1 -0
  127. package/mjs/lib/ACBrowserManager.d.ts +22 -0
  128. package/mjs/lib/ACBrowserManager.js +121 -0
  129. package/mjs/lib/ACBrowserManager.js.map +1 -0
  130. package/mjs/lib/ACEngineManager.d.ts +19 -0
  131. package/mjs/lib/ACEngineManager.js +397 -0
  132. package/mjs/lib/ACEngineManager.js.map +1 -0
  133. package/mjs/lib/ACHelper.d.ts +2 -0
  134. package/mjs/lib/ACHelper.js +614 -0
  135. package/mjs/lib/ACHelper.js.map +1 -0
  136. package/mjs/lib/api/IChecker.d.ts +28 -0
  137. package/mjs/lib/api/IChecker.js +8 -0
  138. package/mjs/lib/api/IChecker.js.map +1 -0
  139. package/mjs/lib/api/IMapper.d.ts +37 -0
  140. package/mjs/lib/api/IMapper.js +17 -0
  141. package/mjs/lib/api/IMapper.js.map +1 -0
  142. package/mjs/lib/common/api-ext/Fetch.d.ts +17 -0
  143. package/mjs/lib/common/api-ext/Fetch.js +45 -0
  144. package/mjs/lib/common/api-ext/Fetch.js.map +1 -0
  145. package/mjs/lib/common/api-ext/IAbstractAPI.d.ts +33 -0
  146. package/mjs/lib/common/api-ext/IAbstractAPI.js +17 -0
  147. package/mjs/lib/common/api-ext/IAbstractAPI.js.map +1 -0
  148. package/mjs/lib/common/config/ACConfigManager.d.ts +13 -0
  149. package/mjs/lib/common/config/ACConfigManager.js +421 -0
  150. package/mjs/lib/common/config/ACConfigManager.js.map +1 -0
  151. package/mjs/lib/common/config/ACConstants.d.ts +17 -0
  152. package/mjs/lib/common/config/ACConstants.js +75 -0
  153. package/mjs/lib/common/config/ACConstants.js.map +1 -0
  154. package/mjs/lib/common/config/IArchive.d.ts +37 -0
  155. package/mjs/lib/common/config/IArchive.js +17 -0
  156. package/mjs/lib/common/config/IArchive.js.map +1 -0
  157. package/mjs/lib/common/config/IConfig.d.ts +152 -0
  158. package/mjs/lib/common/config/IConfig.js +33 -0
  159. package/mjs/lib/common/config/IConfig.js.map +1 -0
  160. package/mjs/lib/common/engine/IBounds.d.ts +21 -0
  161. package/mjs/lib/common/engine/IBounds.js +17 -0
  162. package/mjs/lib/common/engine/IBounds.js.map +1 -0
  163. package/mjs/lib/common/engine/IChecker.d.ts +23 -0
  164. package/mjs/lib/common/engine/IChecker.js +17 -0
  165. package/mjs/lib/common/engine/IChecker.js.map +1 -0
  166. package/mjs/lib/common/engine/IEngine.d.ts +39 -0
  167. package/mjs/lib/common/engine/IEngine.js +17 -0
  168. package/mjs/lib/common/engine/IEngine.js.map +1 -0
  169. package/mjs/lib/common/engine/IGuideline.d.ts +53 -0
  170. package/mjs/lib/common/engine/IGuideline.js +34 -0
  171. package/mjs/lib/common/engine/IGuideline.js.map +1 -0
  172. package/mjs/lib/common/engine/IMapper.d.ts +32 -0
  173. package/mjs/lib/common/engine/IMapper.js +17 -0
  174. package/mjs/lib/common/engine/IMapper.js.map +1 -0
  175. package/mjs/lib/common/engine/IReport.d.ts +143 -0
  176. package/mjs/lib/common/engine/IReport.js +36 -0
  177. package/mjs/lib/common/engine/IReport.js.map +1 -0
  178. package/mjs/lib/common/engine/IRule.d.ts +100 -0
  179. package/mjs/lib/common/engine/IRule.js +79 -0
  180. package/mjs/lib/common/engine/IRule.js.map +1 -0
  181. package/mjs/lib/common/engine/IRuleset.d.ts +20 -0
  182. package/mjs/lib/common/engine/IRuleset.js +17 -0
  183. package/mjs/lib/common/engine/IRuleset.js.map +1 -0
  184. package/mjs/lib/common/report/ACReporterCSV.d.ts +28 -0
  185. package/mjs/lib/common/report/ACReporterCSV.js +60 -0
  186. package/mjs/lib/common/report/ACReporterCSV.js.map +1 -0
  187. package/mjs/lib/common/report/ACReporterHTML.d.ts +27 -0
  188. package/mjs/lib/common/report/ACReporterHTML.js +46 -0
  189. package/mjs/lib/common/report/ACReporterHTML.js.map +1 -0
  190. package/mjs/lib/common/report/ACReporterJSON.d.ts +36 -0
  191. package/mjs/lib/common/report/ACReporterJSON.js +94 -0
  192. package/mjs/lib/common/report/ACReporterJSON.js.map +1 -0
  193. package/mjs/lib/common/report/ACReporterMetrics.d.ts +78 -0
  194. package/mjs/lib/common/report/ACReporterMetrics.js +122 -0
  195. package/mjs/lib/common/report/ACReporterMetrics.js.map +1 -0
  196. package/mjs/lib/common/report/ACReporterXLSX.d.ts +38 -0
  197. package/mjs/lib/common/report/ACReporterXLSX.js +948 -0
  198. package/mjs/lib/common/report/ACReporterXLSX.js.map +1 -0
  199. package/mjs/lib/common/report/BaselineManager.d.ts +169 -0
  200. package/mjs/lib/common/report/BaselineManager.js +348 -0
  201. package/mjs/lib/common/report/BaselineManager.js.map +1 -0
  202. package/mjs/lib/common/report/ReporterManager.d.ts +79 -0
  203. package/mjs/lib/common/report/ReporterManager.js +469 -0
  204. package/mjs/lib/common/report/ReporterManager.js.map +1 -0
  205. package/mjs/lib/common/report/genReport.d.ts +1 -0
  206. package/mjs/lib/common/report/genReport.js +9 -0
  207. package/mjs/lib/common/report/genReport.js.map +1 -0
  208. package/mjs/package.json +3 -0
  209. package/package.json +10 -4
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ export {};
@@ -0,0 +1,236 @@
1
+ #!/usr/bin/env node
2
+ /******************************************************************************
3
+ Copyright:: 2020- IBM, Inc
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
16
+ *****************************************************************************/
17
+ import * as aChecker from "../index.js";
18
+ import * as fs from "fs";
19
+ import * as readline from "readline";
20
+ import * as path from "path";
21
+ let validCLParams = [
22
+ "inputFile"
23
+ ];
24
+ let splitCLParams = [
25
+ "policies",
26
+ "failLevels",
27
+ "reportLevels",
28
+ "outputFormat",
29
+ "label"
30
+ ];
31
+ function processCommandLine(ACConfig) {
32
+ const [, , ...args] = process.argv;
33
+ let lastArg = null;
34
+ let lastFlag = null;
35
+ for (let arg of args) {
36
+ if (arg.match(/^--.*$/)) {
37
+ lastFlag = arg.substring(2);
38
+ lastArg = null;
39
+ }
40
+ else if (lastFlag) {
41
+ if (lastFlag in ACConfig || validCLParams.includes(lastFlag)) {
42
+ if (splitCLParams.includes(lastFlag)) {
43
+ arg = arg.split(",");
44
+ }
45
+ ACConfig[lastFlag] = arg;
46
+ }
47
+ lastFlag = lastArg = null;
48
+ }
49
+ else {
50
+ lastArg = arg;
51
+ }
52
+ }
53
+ if (lastArg) {
54
+ ACConfig.inputFile = lastArg;
55
+ }
56
+ }
57
+ async function getFiles(dir) {
58
+ let retVal = [];
59
+ for (let f of fs.readdirSync(dir)) {
60
+ if (f[0] === ".") {
61
+ // skip
62
+ }
63
+ else {
64
+ f = path.join(dir, f);
65
+ if (fs.lstatSync(f).isDirectory()) {
66
+ retVal = retVal.concat(await getFiles(f));
67
+ }
68
+ else if (f.endsWith(".htm") || f.endsWith(".html")) {
69
+ retVal.push(f);
70
+ }
71
+ }
72
+ }
73
+ return retVal;
74
+ }
75
+ async function showHelp(config) {
76
+ let lastArg = config.inputFile;
77
+ if (!lastArg || lastArg === "help") {
78
+ console.log(`Usage: achecker [flags] [command / file / directory / URL]
79
+
80
+ Commands:
81
+ archives : Display valid archive ids and policy ids
82
+
83
+ Flags:
84
+ Flags can be set via .achecker.yml or aceconfig.js files. Specifying the flags here
85
+ will override those options.
86
+
87
+ --ruleArchive : Archive id to use. Run "achecker archives" for valid ids
88
+ --policies : Comma separated list of policies. Run "achecker archives"
89
+ for valid ids
90
+ --failLevels : Comma separated list of levels that will indicate
91
+ a failure. Valid values: violation,
92
+ potentialviolation, recommendation,
93
+ potentialrecommendation, manual
94
+ --reportLevels : Comma separated list of levels that will be included
95
+ in reports. Valid values: violation,
96
+ potentialviolation, recommendation,
97
+ potentialrecommendation, manual, pass
98
+ --outputFormat : Comma separated list of output report formats.
99
+ Valid values: json, csv, xlsx, html, or disable
100
+ --label : Comma separated list of labels to include in reports
101
+ --outputFolder : Folder to output results and reports
102
+ --baselineFolder : Folder that includes baseline files
103
+ `);
104
+ process.exit(-1);
105
+ }
106
+ else if (lastArg === "archives") {
107
+ let archiveInfo = {
108
+ "latest": []
109
+ };
110
+ console.log();
111
+ console.log("Archive [Archive Id]");
112
+ console.log(" - Policy [Policy Id]:");
113
+ console.log("-----------------------");
114
+ console.log();
115
+ for (const archive of config.ruleArchiveSet) {
116
+ if (archive.sunset)
117
+ continue;
118
+ console.log(`${archive.name} [${archive.id}]`);
119
+ for (const policy of archive.policies) {
120
+ console.log(` - ${policy.name} [${policy.id}]`);
121
+ }
122
+ archiveInfo[archive.id] = archive.policies;
123
+ if (archive.latest) {
124
+ archiveInfo['latest'] = archiveInfo[archive.id];
125
+ }
126
+ }
127
+ process.exit(-1);
128
+ }
129
+ }
130
+ async function getInputFileList() {
131
+ let config = await aChecker.getConfig();
132
+ processCommandLine(config);
133
+ await showHelp(config);
134
+ let inputs = [];
135
+ let filename = config.inputFile.trim();
136
+ if (filename.endsWith(".txt")) {
137
+ const fileStream = fs.createReadStream(filename);
138
+ const rl = readline.createInterface({
139
+ input: fileStream,
140
+ crlfDelay: Infinity
141
+ });
142
+ // Note: we use the crlfDelay option to recognize all instances of CR LF
143
+ // ('\r\n') in input.txt as a single line break.
144
+ for await (const line of rl) {
145
+ if (line.trim().length === 0) {
146
+ }
147
+ else if (line.startsWith(path.sep)) {
148
+ inputs.push(line);
149
+ }
150
+ else if (line.match(/[a-z]{4,5}:\/\//)) {
151
+ inputs.push(line);
152
+ }
153
+ else {
154
+ inputs.push(path.join(path.dirname(filename), line));
155
+ }
156
+ }
157
+ }
158
+ else {
159
+ inputs = [filename];
160
+ }
161
+ let retVal = [];
162
+ for (const input of inputs) {
163
+ let isDirectory = false;
164
+ try {
165
+ isDirectory = fs.lstatSync(input).isDirectory();
166
+ }
167
+ catch (e) { }
168
+ if (isDirectory) {
169
+ retVal = retVal.concat(await getFiles(input));
170
+ }
171
+ else {
172
+ retVal.push(input);
173
+ }
174
+ }
175
+ return retVal;
176
+ }
177
+ // Prepare the configuration
178
+ getInputFileList().then(async (rptInputFiles) => {
179
+ let idx = 0;
180
+ let failures = [];
181
+ let errors = 0;
182
+ try {
183
+ for (let f of rptInputFiles) {
184
+ let result;
185
+ let isFile = false;
186
+ try {
187
+ isFile = fs.lstatSync(f).isFile();
188
+ f = path.resolve(f);
189
+ }
190
+ catch (e) { }
191
+ if (isFile) {
192
+ result = await aChecker.getCompliance("file://" + f, f.replace(/^file:\/\//, "").replace(/[:?&=]/g, "_"));
193
+ }
194
+ else {
195
+ result = await aChecker.getCompliance(f, f.replace(/^(https?:|file:)\/\//, "").replace(/[:?&=]/g, "_"));
196
+ }
197
+ if (result) {
198
+ if (aChecker.assertCompliance(result.report) === 0) {
199
+ console.log("Passed:", f);
200
+ }
201
+ else {
202
+ failures.push({
203
+ file: f,
204
+ report: result.report
205
+ });
206
+ console.log("Failed:", f);
207
+ }
208
+ }
209
+ else {
210
+ ++errors;
211
+ console.log("Error:", f);
212
+ }
213
+ }
214
+ }
215
+ catch (e) {
216
+ console.error(e);
217
+ }
218
+ finally {
219
+ await aChecker.close();
220
+ }
221
+ if (failures.length > 0) {
222
+ console.log();
223
+ console.log("Failing scan details:");
224
+ console.log();
225
+ for (const fail of failures) {
226
+ console.log(aChecker.stringifyResults(fail.report));
227
+ }
228
+ }
229
+ console.log();
230
+ console.log(`${rptInputFiles.length - failures.length - errors} of ${rptInputFiles.length} passed.`);
231
+ //await aChecker.close();
232
+ if (failures.length !== 0 || errors !== 0) {
233
+ process.exitCode = 1;
234
+ }
235
+ });
236
+ //# sourceMappingURL=achecker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"achecker.js","sourceRoot":"","sources":["../../../src-ts/bin/achecker.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;gFAcgF;AAEhF,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,QAAQ,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,IAAI,aAAa,GAAG;IAChB,WAAW;CACd,CAAA;AAED,IAAI,aAAa,GAAG;IAChB,UAAU;IACV,YAAY;IACZ,cAAc;IACd,cAAc;IACd,OAAO;CACV,CAAA;AAED,SAAS,kBAAkB,CAAC,QAAQ;IAChC,MAAM,CAAC,EAAE,AAAD,EAAG,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IACnC,IAAI,OAAO,GAAG,I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,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;QACrC,OAAO,CAAC,GAAG,EAAE,CAAC;QACd,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE,CAAC;YAC1B,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACxD,CAAC;IACL,CAAC;IACD,OAAO,CAAC,GAAG,EAAE,CAAC;IACd,OAAO,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,MAAM,GAAC,QAAQ,CAAC,MAAM,GAAC,MAAM,OAAO,aAAa,CAAC,MAAM,UAAU,CAAC,CAAA;IAChG,yBAAyB;IACzB,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,KAAK,CAAC,EAAE,CAAC;QACxC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACzB,CAAC;AACL,CAAC,CAAC,CAAA"}
package/mjs/index.d.ts ADDED
@@ -0,0 +1,319 @@
1
+ /******************************************************************************
2
+ Copyright:: 2020- IBM, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ *****************************************************************************/
16
+ import { eAssertResult, ICheckerReport, ICheckerResult, ReportResult } from "./lib/api/IChecker.js";
17
+ import { IConfig, IConfigInternal } from "./lib/common/config/IConfig.js";
18
+ import { IBaselineReport } from "./lib/common/engine/IReport.js";
19
+ /**
20
+ * This function is responsible performing a scan based on the context that is provided, following are
21
+ * the supported context type:
22
+ * Single node (HTMLElement)
23
+ * Local file path (String)
24
+ * URL (String)
25
+ * document node
26
+ * data stream for html content (String)
27
+ *
28
+ * Future Items
29
+ * Multiple node (Array of HTMLElements) ---> FUTURE
30
+ *
31
+ * @param {(String|HTMLElement|DocumentNode|Puppeteer Page |)} content - Provide the context to scan, which includes the items from above.
32
+ * @param {String} label - Provide a label for the scan that is being performed
33
+ * @param {Function} callback - (optional) Provide callback function which will be executed once the results are extracted.
34
+ * @return Promise with the ICheckerResult
35
+ */
36
+ export declare function getCompliance(content: any, label: string, callback?: (report: ReportResult, webdriver: any) => void): Promise<ICheckerResult>;
37
+ /**
38
+ * This function is responsible for comparing the scan results with baseline or checking that there are
39
+ * no violations which fall into the failsLevels levels. In the case a baseline is found then baseline will
40
+ * be used to perform the check, in the case no baseline is provided then we comply with only failing if
41
+ * there is a sinble violation which falls into failLevels.
42
+ *
43
+ * @param {ReportResult} actual - the actual results object provided by the user, this object should follow the
44
+ * same format as outlined in the return of aChecker.buildReport function.
45
+ *
46
+ * @return {int} - return 0 in the case actual matches baseline or no violations fall into failsLevels,
47
+ * return 1 in the case actual results does not match baseline results,
48
+ * return 2 in the case that there is a failure based on failLevels (this means no baseline found).
49
+ * return -1 in the case that there is an exception that occured in the results object which came from the scan engine.
50
+ */
51
+ export declare function assertCompliance(report: IBaselineReport): eAssertResult;
52
+ /**
53
+ * This function is responsible for printing the scan results to console.
54
+ *
55
+ * @param {Object} results - Provide the results from the scan.
56
+ *
57
+ * @return {String} resultsString - String representation of the results/violations.
58
+ *
59
+ * PUBLIC API
60
+ *
61
+ * @memberOf this
62
+ */
63
+ export declare function stringifyResults(report: ICheckerReport): string;
64
+ export declare function getConfig(): Promise<IConfig>;
65
+ export declare function getConfigUnsupported(): Promise<IConfigInternal>;
66
+ export declare function close(): Promise<void>;
67
+ /**
68
+ * This function is responsible for getting the diff results based on label for a scan that was already performed.
69
+ *
70
+ * @param {String} label - Provide a lable for which to get the diff results for.
71
+ *
72
+ * @return {Object} - return the diff results object from global space based on label provided, the object will be
73
+ * in the same format as outlined in the return of aChecker.diffResultsWithExpected function.
74
+ */
75
+ export declare function getDiffResults(label: string): any;
76
+ /**
77
+ * This function is responsible for getting the baseline object for a label that was provided.
78
+ *
79
+ * @param {String} label - Provide a lable for which to get the baseline for.
80
+ *
81
+ * @return {Object} - return the baseline object from global space based on label provided, the object will be
82
+ * in the same format as outlined in the return of aChecker.buildReport function.
83
+ */
84
+ export declare function getBaseline(label: string): IBaselineReport;
85
+ /**
86
+ * This function is responsible for comparing actual with expected and returning all the differences as an array.
87
+ *
88
+ * @param {Object} actual - Provide the actual object to be used for compare
89
+ * @param {Object} expected - Provide the expected object to be used for compare
90
+ * @param {boolean} clean - Provide a boolean if both the actual and expected objects need to be cleaned
91
+ * cleaning refers to converting the objects to match with a basic compliance
92
+ * compare of xpath and ruleId.
93
+ *
94
+ * @return {Object} differences - return an array of diff objects that were found, following is the format of the object:
95
+ * [
96
+ * {
97
+ * "kind": "E",
98
+ * "path": [
99
+ * "reports",
100
+ * 0,
101
+ * "issues",
102
+ * 10,
103
+ * "xpath"
104
+ * ],
105
+ * "lhs": "/html[1]/body[1]/div[2]/table[5]",
106
+ * "rhs": "/html[1]/body[1]/div[2]/table[5]d",
107
+ * },
108
+ * {
109
+ * "kind": "E",
110
+ * "path": [
111
+ * "label"
112
+ * ],
113
+ * "lhs": "Table-layoutMultiple",
114
+ * "rhs": "dependencies/tools-rules-html/v2/a11y/test/g471/Table-layoutMultiple.html",
115
+ * }
116
+ * ]
117
+ */
118
+ export declare function diffResultsWithExpected(actual: any, expected: any, clean: any): any;
119
+ /**
120
+ * This function is responsible for cleaning up the compliance baseline or actual results, based on
121
+ * a pre-defined set of criterias, such as the following:
122
+ * 1. No need to compare summary object
123
+ * 2. Only need to compare the ruleId and xpath in for each of the issues
124
+ *
125
+ * @param {Object} objectToClean - Provide either an baseline or actual results object which would be in the
126
+ * the same format as outlined in the return of aChecker.buildReport function.
127
+ *
128
+ * @return {Object} objectToClean - return an object that was cleaned to only contain the information that is
129
+ * needed for compare. Following is a sample of how the cleaned object will look like:
130
+ * {
131
+ * "label": "unitTestContent",
132
+ * "reports": [
133
+ * {
134
+ * "frameIdx": "0",
135
+ * "frameTitle": "Frame 0",
136
+ * "issues": [
137
+ * {
138
+ * "ruleId": "1",
139
+ * "xpath": "/html[1]/head[1]/style[1]"
140
+ * }
141
+ * ....
142
+ * ]
143
+ * },
144
+ * {
145
+ * "frameIdx": "1",
146
+ * "frameTitle": "Frame 1",
147
+ * "issues": [
148
+ * {
149
+ * "ruleId": "471",
150
+ * "xpath": "/html[1]/body[1]/div[2]/table[3]"
151
+ * }
152
+ * ....
153
+ * ]
154
+ * }
155
+ * ]
156
+ * }
157
+ */
158
+ export declare function cleanComplianceObjectBeforeCompare(objectToClean: any): any;
159
+ export declare function addRuleset(ruleset: any): void;
160
+ export declare function getRuleset(rsId: any): Promise<any>;
161
+ export declare function getRulesets(): Promise<any[]>;
162
+ export declare function getRules(): Promise<any[]>;
163
+ export declare const ruleIdToLegacyId: {
164
+ list_structure_proper: string;
165
+ marquee_elem_avoid: string;
166
+ heading_markup_misuse: string;
167
+ imagebutton_alt_exists: string;
168
+ img_ismap_misuse: string;
169
+ object_text_exists: string;
170
+ applet_alt_exists: string;
171
+ media_audio_transcribed: string;
172
+ blockquote_cite_exists: string;
173
+ meta_refresh_delay: string;
174
+ frame_title_exists: string;
175
+ input_label_exists: string;
176
+ media_alt_brief: string;
177
+ a_target_warning: string;
178
+ area_alt_exists: string;
179
+ RPT_Media_ImgColorUsage: string;
180
+ meta_redirect_optional: string;
181
+ element_attribute_deprecated: string;
182
+ text_quoted_correctly: string;
183
+ element_mouseevent_keyboard: string;
184
+ page_title_exists: string;
185
+ text_block_heading: string;
186
+ form_submit_button_exists: string;
187
+ element_id_unique: string;
188
+ form_font_color: string;
189
+ form_label_unique: string;
190
+ img_alt_misuse: string;
191
+ img_longdesc_misuse: string;
192
+ img_alt_valid: string;
193
+ style_background_decorative: string;
194
+ asciiart_alt_exists: string;
195
+ media_track_available: string;
196
+ media_alt_exists: string;
197
+ style_color_misuse: string;
198
+ select_options_grouped: string;
199
+ list_markup_review: string;
200
+ script_onclick_misuse: string;
201
+ table_structure_misuse: string;
202
+ WCAG20_Img_AltTriggerNonDecorative: string;
203
+ blink_elem_deprecated: string;
204
+ blink_css_review: string;
205
+ html_skipnav_exists: string;
206
+ page_title_valid: string;
207
+ heading_content_exists: string;
208
+ html_lang_exists: string;
209
+ form_interaction_review: string;
210
+ a_text_purpose: string;
211
+ fieldset_legend_valid: string;
212
+ media_live_captioned: string;
213
+ text_sensory_misuse: string;
214
+ media_autostart_controllable: string;
215
+ style_focus_visible: string;
216
+ img_alt_redundant: string;
217
+ RPT_Style_ExternalStyleSheet: string;
218
+ script_onclick_avoid: string;
219
+ table_summary_redundant: string;
220
+ input_label_before: string;
221
+ input_label_after: string;
222
+ embed_noembed_exists: string;
223
+ table_scope_valid: string;
224
+ img_alt_null: string;
225
+ input_fields_grouped: string;
226
+ input_checkboxes_grouped: string;
227
+ script_select_review: string;
228
+ input_onchange_review: string;
229
+ embed_alt_exists: string;
230
+ noembed_content_exists: string;
231
+ table_caption_empty: string;
232
+ table_caption_nested: string;
233
+ label_content_exists: string;
234
+ dir_attribute_valid: string;
235
+ frame_src_valid: string;
236
+ table_headers_related: string;
237
+ table_layout_linearized: string;
238
+ table_headers_exists: string;
239
+ label_ref_valid: string;
240
+ element_accesskey_unique: string;
241
+ script_focus_blur_review: string;
242
+ imagemap_alt_exists: string;
243
+ emoticons_alt_exists: string;
244
+ style_before_after_review: string;
245
+ text_whitespace_valid: string;
246
+ aria_role_allowed: string;
247
+ aria_attribute_value_valid: string;
248
+ aria_id_unique: string;
249
+ aria_attribute_required: string;
250
+ aria_attribute_exists: string;
251
+ aria_attribute_allowed: string;
252
+ aria_activedescendant_tabindex_valid: string;
253
+ aria_child_tabbable: string;
254
+ aria_keyboard_handler_exists: string;
255
+ img_alt_decorative: string;
256
+ aria_search_label_unique: string;
257
+ aria_application_label_unique: string;
258
+ aria_application_labelled: string;
259
+ aria_document_label_unique: string;
260
+ WCAG20_Label_TargetInvisible: string;
261
+ caption_track_exists: string;
262
+ media_keyboard_controllable: string;
263
+ HAAC_Input_HasRequired: string;
264
+ aria_img_labelled: string;
265
+ img_alt_background: string;
266
+ element_accesskey_labelled: string;
267
+ aria_attribute_conflict: string;
268
+ canvas_content_described: string;
269
+ figure_label_exists: string;
270
+ input_placeholder_label_visible: string;
271
+ form_submit_review: string;
272
+ text_contrast_sufficient: string;
273
+ text_contrast_sufficient_PV: string;
274
+ skip_main_exists: string;
275
+ skip_main_described: string;
276
+ aria_child_valid: string;
277
+ aria_parent_required: string;
278
+ aria_eventhandler_role_valid: string;
279
+ aria_widget_labelled: string;
280
+ aria_content_in_landmark: string;
281
+ aria_region_labelled: string;
282
+ aria_main_label_visible: string;
283
+ aria_banner_label_unique: string;
284
+ aria_complementary_label_unique: string;
285
+ aria_contentinfo_label_unique: string;
286
+ aria_form_label_unique: string;
287
+ aria_navigation_label_unique: string;
288
+ aria_complementary_label_visible: string;
289
+ aria_article_label_unique: string;
290
+ Rpt_Aria_ArticleRoleLabel_Implicit: string;
291
+ Rpt_Aria_MultipleGroupRoles_Implicit: string;
292
+ Rpt_Aria_GroupRoleLabel_Implicit: string;
293
+ aria_contentinfo_single: string;
294
+ aria_banner_single: string;
295
+ aria_contentinfo_misuse: string;
296
+ aria_complementary_labelled: string;
297
+ aria_region_label_unique: string;
298
+ widget_tabbable_exists: string;
299
+ widget_tabbable_single: string;
300
+ style_highcontrast_visible: string;
301
+ aria_main_label_unique: string;
302
+ download_keyboard_controllable: string;
303
+ error_message_exists: string;
304
+ list_children_valid: string;
305
+ aria_activedescendant_valid: string;
306
+ application_content_accessible: string;
307
+ aria_toolbar_label_unique: string;
308
+ HAAC_Combobox_ARIA_11_Guideline: string;
309
+ HAAC_Combobox_Must_Have_Text_Input: string;
310
+ HAAC_Combobox_DOM_Focus: string;
311
+ HAAC_Combobox_Autocomplete: string;
312
+ HAAC_Combobox_Autocomplete_Invalid: string;
313
+ HAAC_Combobox_Expanded: string;
314
+ HAAC_Combobox_Popup: string;
315
+ style_viewport_resizable: string;
316
+ label_name_visible: string;
317
+ input_autocomplete_valid: string;
318
+ input_label_visible: string;
319
+ };