accessibility-checker 3.1.49 → 3.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -67
- package/bin/achecker.js +14 -17
- package/bin/achecker.js.map +1 -1
- package/index.d.ts +6 -4
- package/index.js +9 -8
- package/index.js.map +1 -1
- package/lib/ACBrowserManager.d.ts +2 -2
- package/lib/ACBrowserManager.js +2 -3
- package/lib/ACBrowserManager.js.map +1 -1
- package/lib/ACEngineManager.d.ts +1 -12
- package/lib/ACEngineManager.js +72 -40
- package/lib/ACEngineManager.js.map +1 -1
- package/lib/ACHelper.js +126 -137
- package/lib/ACHelper.js.map +1 -1
- package/lib/api/IChecker.d.ts +3 -114
- package/lib/api/IChecker.js +1 -1
- package/lib/api/IChecker.js.map +1 -1
- package/lib/common/api-ext/Fetch.d.ts +16 -0
- package/lib/common/api-ext/Fetch.js +83 -0
- package/lib/common/api-ext/Fetch.js.map +1 -0
- package/lib/common/api-ext/IAbstractAPI.d.ts +34 -0
- package/lib/common/api-ext/IAbstractAPI.js +18 -0
- package/lib/common/api-ext/IAbstractAPI.js.map +1 -0
- package/lib/common/config/ACConfigManager.d.ts +7 -0
- package/lib/{ACConfigManager.js → common/config/ACConfigManager.js} +28 -19
- package/lib/common/config/ACConfigManager.js.map +1 -0
- package/lib/{ACConstants.d.ts → common/config/ACConstants.d.ts} +2 -2
- package/lib/{ACConstants.js → common/config/ACConstants.js} +7 -5
- package/lib/common/config/ACConstants.js.map +1 -0
- package/lib/common/config/IArchive.d.ts +37 -0
- package/lib/{reporters/multiScanReportUtil.d.ts → common/config/IArchive.js} +4 -5
- package/lib/common/config/IArchive.js.map +1 -0
- package/lib/common/config/IConfig.d.ts +146 -0
- package/lib/common/config/IConfig.js +36 -0
- package/lib/common/config/IConfig.js.map +1 -0
- package/lib/common/report/ACReporterCSV.d.ts +27 -0
- package/lib/common/report/ACReporterCSV.js +105 -0
- package/lib/common/report/ACReporterCSV.js.map +1 -0
- package/lib/common/report/ACReporterHTML.d.ts +26 -0
- package/lib/common/report/ACReporterHTML.js +94 -0
- package/lib/common/report/ACReporterHTML.js.map +1 -0
- package/lib/common/report/ACReporterJSON.d.ts +46 -0
- package/lib/common/report/ACReporterJSON.js +140 -0
- package/lib/common/report/ACReporterJSON.js.map +1 -0
- package/lib/{log/ACMetricsLogger.d.ts → common/report/ACReporterMetrics.d.ts} +11 -6
- package/lib/{log/ACMetricsLogger.js → common/report/ACReporterMetrics.js} +85 -70
- package/lib/common/report/ACReporterMetrics.js.map +1 -0
- package/lib/common/report/ACReporterXLSX.d.ts +37 -0
- package/lib/common/report/ACReporterXLSX.js +1004 -0
- package/lib/common/report/ACReporterXLSX.js.map +1 -0
- package/lib/common/report/BaselineManager.d.ts +169 -0
- package/lib/common/report/BaselineManager.js +355 -0
- package/lib/common/report/BaselineManager.js.map +1 -0
- package/lib/common/report/ReporterManager.d.ts +79 -0
- package/lib/common/report/ReporterManager.js +552 -0
- package/lib/common/report/ReporterManager.js.map +1 -0
- package/lib/common/report/genReport.js.map +1 -0
- package/package.json +1 -1
- package/lib/ACConfigManager.d.ts +0 -7
- package/lib/ACConfigManager.js.map +0 -1
- package/lib/ACConstants.js.map +0 -1
- package/lib/ACReportManager.d.ts +0 -590
- package/lib/ACReportManager.js +0 -1201
- package/lib/ACReportManager.js.map +0 -1
- package/lib/api/IEngine.d.ts +0 -129
- package/lib/api/IEngine.js +0 -110
- package/lib/api/IEngine.js.map +0 -1
- package/lib/log/ACMetricsLogger.js.map +0 -1
- package/lib/reporters/ACReporterCSV.d.ts +0 -103
- package/lib/reporters/ACReporterCSV.js +0 -193
- package/lib/reporters/ACReporterCSV.js.map +0 -1
- package/lib/reporters/ACReporterHTML.d.ts +0 -114
- package/lib/reporters/ACReporterHTML.js +0 -360
- package/lib/reporters/ACReporterHTML.js.map +0 -1
- package/lib/reporters/ACReporterJSON.d.ts +0 -114
- package/lib/reporters/ACReporterJSON.js +0 -277
- package/lib/reporters/ACReporterJSON.js.map +0 -1
- package/lib/reporters/ACReporterXLSX.d.ts +0 -109
- package/lib/reporters/ACReporterXLSX.js +0 -405
- package/lib/reporters/ACReporterXLSX.js.map +0 -1
- package/lib/reporters/ReportUtil.d.ts +0 -33
- package/lib/reporters/ReportUtil.js +0 -65
- package/lib/reporters/ReportUtil.js.map +0 -1
- package/lib/reporters/genReport.js.map +0 -1
- package/lib/reporters/multiScanData.d.ts +0 -27
- package/lib/reporters/multiScanData.js +0 -190
- package/lib/reporters/multiScanData.js.map +0 -1
- package/lib/reporters/multiScanReport.d.ts +0 -25
- package/lib/reporters/multiScanReport.js +0 -1729
- package/lib/reporters/multiScanReport.js.map +0 -1
- package/lib/reporters/multiScanReportUtil.js +0 -49
- package/lib/reporters/multiScanReportUtil.js.map +0 -1
- /package/lib/{reporters → common/report}/genReport.d.ts +0 -0
- /package/lib/{reporters → common/report}/genReport.js +0 -0
package/README.md
CHANGED
|
@@ -2,11 +2,47 @@
|
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
4
|
|
|
5
|
-
`accessibility-checker` is a NodeJS
|
|
5
|
+
`accessibility-checker` is a NodeJS module that allows you to do the following:
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
- perform integrated accessibility testing within a continuous integration pipeline such as Travis CI
|
|
8
|
+
- works with test frameworks (parsing engines) such as Selenium, Puppeteer, Playwright, and Zombie
|
|
9
|
+
- allows users to scan HTML nodes/widgets, URLs, local files, HTML documents, and HTML content in the form of a string
|
|
10
|
+
- aside from just performing accessibility scanning, it provides a framework to validate accessibility scan results against baseline files and/or simply failing the test cases based on the levels of violations found during the scan
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
Note that we have seen some non-standard CSS parsing with Zombie, so be aware of inconsistencies as a result.
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
### Command-line and multi-scan
|
|
17
|
+
|
|
18
|
+
This module provides some basic command-line utilities that will allow scanning files, directories, and URLs:
|
|
19
|
+
|
|
20
|
+
- Create a .txt file with path(s) to files, directories, or a list of URLs to be scanned
|
|
21
|
+
- Provide the `npx achecker` the full path of the .txt file to start the scan (e.g. `npx achecker path/to/your/file.txt`)
|
|
22
|
+
- Run `npx achecker`
|
|
23
|
+
|
|
24
|
+
### Programmatic
|
|
25
|
+
|
|
26
|
+
The following is how to perform an accessibility scan within your test cases and verifying the scan results:
|
|
27
|
+
|
|
28
|
+
```javascript
|
|
29
|
+
const aChecker = require("accessibility-checker");
|
|
30
|
+
// Perform the accessibility scan using the aChecker.getCompliance API
|
|
31
|
+
aChecker.getCompliance(testDataFileContent, testLabel).then((results) => {
|
|
32
|
+
const report = results.report;
|
|
33
|
+
|
|
34
|
+
// Call the aChecker.assertCompliance API which is used to compare the results with baseline object if we can find one that
|
|
35
|
+
// matches the same label which was provided.
|
|
36
|
+
const returnCode = aChecker.assertCompliance(report);
|
|
37
|
+
|
|
38
|
+
// In the case that the violationData is not defined then trigger an error right away.
|
|
39
|
+
expect(returnCode).toBe(0, "Scanning " + testLabel + " failed.");
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Refer to [Examples](https://github.com/IBMa/equal-access/tree/master/accessibility-checker/boilerplates) for sample usage scenarios.
|
|
44
|
+
|
|
45
|
+
## Quick Start and installation
|
|
10
46
|
|
|
11
47
|
Grab a [boilerplate](https://github.com/IBMa/equal-access/tree/master/accessibility-checker/boilerplates)
|
|
12
48
|
|
|
@@ -26,7 +62,7 @@ $ npm install -g accessibility-checker
|
|
|
26
62
|
$ achecker
|
|
27
63
|
```
|
|
28
64
|
|
|
29
|
-
##
|
|
65
|
+
## Setup
|
|
30
66
|
|
|
31
67
|
1. Setup and Initialize - Follow the [Prerequisites](#prerequisites) and [Install](#install) instructions.
|
|
32
68
|
1. Configure accessibility-checker - Follow the [Configuration](#Configuration) instructions.
|
|
@@ -94,7 +130,7 @@ reportLevels:
|
|
|
94
130
|
- manual
|
|
95
131
|
|
|
96
132
|
# Optional - In which formats should the results be output
|
|
97
|
-
# Valid values: json, csv, xlsx, html
|
|
133
|
+
# Valid values: json, csv, xlsx, html, disable
|
|
98
134
|
# Default: json
|
|
99
135
|
outputFormat:
|
|
100
136
|
- json
|
|
@@ -148,55 +184,28 @@ module.exports = {
|
|
|
148
184
|
};
|
|
149
185
|
```
|
|
150
186
|
|
|
151
|
-
## Usage
|
|
152
|
-
|
|
153
|
-
### Command-line and multi-scan
|
|
154
|
-
|
|
155
|
-
The module provides some basic command-line utilities that will allow you to scan files, directories, or URLs. You can also create a .txt file with path(s) to files, directories or a list of urls to be scanned, then provide the `npx achecker` the full path of the .txt file to start the scan (e.g. `npx achecker path/to/your/file.txt`). Run `npx achecker` for more information.
|
|
156
|
-
|
|
157
|
-
### Programmatic
|
|
158
|
-
|
|
159
|
-
Following is how to perform an accessibility scan within your testcases and verifying the scan results:
|
|
160
|
-
|
|
161
|
-
```javascript
|
|
162
|
-
const aChecker = require("accessibility-checker");
|
|
163
|
-
// Perform the accessibility scan using the aChecker.getCompliance API
|
|
164
|
-
aChecker.getCompliance(testDataFileContent, testLabel).then((results) => {
|
|
165
|
-
const report = results.report;
|
|
166
|
-
|
|
167
|
-
// Call the aChecker.assertCompliance API which is used to compare the results with baseline object if we can find one that
|
|
168
|
-
// matches the same label which was provided.
|
|
169
|
-
const returnCode = aChecker.assertCompliance(report);
|
|
170
|
-
|
|
171
|
-
// In the case that the violationData is not defined then trigger an error right away.
|
|
172
|
-
expect(returnCode).toBe(0, "Scanning " + testLabel + " failed.");
|
|
173
|
-
});
|
|
174
|
-
```
|
|
175
|
-
|
|
176
|
-
Refer to [Examples](https://github.com/IBMa/equal-access/tree/master/accessibility-checker/boilerplates) for sample usage scenarios.
|
|
177
|
-
|
|
178
187
|
## APIs
|
|
179
188
|
|
|
180
189
|
### async aChecker.getCompliance(`content`, `label` : string)
|
|
181
190
|
|
|
182
191
|
Execute accessibility scan on provided content. `content` can be in the following form:
|
|
183
192
|
|
|
184
|
-
-
|
|
185
|
-
-
|
|
186
|
-
-
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
191
|
-
-
|
|
193
|
+
- HTML content (String)
|
|
194
|
+
- Single node/widget (HTMLElement)
|
|
195
|
+
- Local file path (String)
|
|
196
|
+
- URL (String)
|
|
197
|
+
- Document node (HTMLDocument)
|
|
198
|
+
- Selenium WebDriver (WebDriver)
|
|
199
|
+
- Puppeteer page
|
|
200
|
+
- Playwright page
|
|
192
201
|
|
|
193
202
|
Note: When using Selenium WebDriver the aChecker.getCompliance API will only take Selenium WebDriver (WebDriver) instance. When using puppeteer, aChecker.getCompliance expects the Page object.
|
|
194
203
|
|
|
195
204
|
Using a callback mechanism (`callback`) to extract the results and perform assertion using accessibility-checker APIs.
|
|
196
205
|
|
|
197
|
-
-
|
|
198
|
-
-
|
|
199
|
-
-
|
|
206
|
+
- `content` - (String | HTMLElement | HTMLDocument | Selenium WebDriver) content to be scanned for accessibility violations.
|
|
207
|
+
- `label` - (String) unique label to identify this accessibility scan from others. Using "/" in the label allows for directory hierarchy when results are saved.
|
|
208
|
+
- Returns a promise with an object of the form below:
|
|
200
209
|
|
|
201
210
|
```javascript
|
|
202
211
|
{
|
|
@@ -296,19 +305,16 @@ Using a callback mechanism (`callback`) to extract the results and perform asser
|
|
|
296
305
|
|
|
297
306
|
Perform assertion on the scan results. Will perform one of the following assertions based on the condition that is met:
|
|
298
307
|
|
|
299
|
-
1. In the case
|
|
300
|
-
|
|
301
|
-
2. In the case of NO baseline file is provided for this particular scan, assertion will be made based on the provided `failLevels`. In this case, it returns 2 if there are failures based on failLevels. (violation level matches at least one provided in the `failLevels` object)
|
|
308
|
+
1. In the case a baseline file is provided and available in memory for these scan results, a compare of baseline to `report` will be made. In this case if `report` matches baseline, it returns 0, otherwise returns 1. For this case, assertion is only run on the xpath and ruleId.
|
|
302
309
|
|
|
303
|
-
|
|
310
|
+
2. In the case **_no baseline_** file is provided for this particular scan, assertion will be made based on the provided `failLevels`. In this case, it returns 2 if there are failures based on failLevels. (violation level matches at least one provided in the `failLevels` object)
|
|
304
311
|
|
|
305
|
-
|
|
312
|
+
`report` - (Object) results for which assertion needs to be run. See above for report format.
|
|
306
313
|
|
|
307
|
-
Returns `
|
|
308
|
-
|
|
309
|
-
Returns `2` in the case that there is a failure based on failLevels.
|
|
310
|
-
|
|
311
|
-
Returns `-1` in the case that an exception has occurred during scanning and the results reflected that.
|
|
314
|
+
- Returns `0` in the case `actualResults` matches baseline or no violations fall into the failLevels
|
|
315
|
+
- Returns `1` in the case `actualResults` **_don't match_** baseline
|
|
316
|
+
- Returns `2` in the case that there is a failure based on failLevels.
|
|
317
|
+
- Returns `-1` in the case that an exception has occurred during scanning and the results reflected that.
|
|
312
318
|
|
|
313
319
|
### aChecker.getDiffResults(`label`)
|
|
314
320
|
|
|
@@ -326,7 +332,7 @@ Returns `undefined` if there are no differences.
|
|
|
326
332
|
|
|
327
333
|
Retrieve the baseline result object based on the label provided.
|
|
328
334
|
|
|
329
|
-
-
|
|
335
|
+
- `label` - (String) label for which to get the baseline for. (should match the one provided for aChecker.getCompliance(...))
|
|
330
336
|
|
|
331
337
|
Returns `object` which will follow the same structure as the results object outlined in aChecker.getCompliance
|
|
332
338
|
and aChecker.assertCompliance APIs.
|
|
@@ -337,11 +343,11 @@ Returns `undefined` in the case baseline is not found for the label provided.
|
|
|
337
343
|
|
|
338
344
|
Compare provided `actual` and `expected` objects and get the differences if there are any.
|
|
339
345
|
|
|
340
|
-
-
|
|
346
|
+
- `actual` - (Object) actual results which need to be compared.
|
|
341
347
|
Refer to aChecker.assertCompliance APIs for details on properties include.
|
|
342
|
-
-
|
|
348
|
+
- `expected` - (Object) expected results to compare to.
|
|
343
349
|
Refer to aChecker.assertCompliance APIs for details on properties include.
|
|
344
|
-
-
|
|
350
|
+
- `clean` - (boolean) clean the `actual` and `expected` results by converting the objects to match with a basic compliance
|
|
345
351
|
compare of only xpath and ruleID
|
|
346
352
|
|
|
347
353
|
Returns a diff object, where **left hand side (lhs) is actualResults** and **right hand side (rhs) is baseline**.
|
|
@@ -354,8 +360,8 @@ Returns `undefined` if there are no differences.
|
|
|
354
360
|
|
|
355
361
|
Retrieve the readable stringified representation of the scan results.
|
|
356
362
|
|
|
357
|
-
-
|
|
358
|
-
Refer to aChecker.assertCompliance APIs for details on properties include
|
|
363
|
+
- `report` - (Object) results which need to be stringified.
|
|
364
|
+
Refer to aChecker.assertCompliance APIs for details on properties to include
|
|
359
365
|
|
|
360
366
|
Returns `String` representation of the scan results which can be logged to console.
|
|
361
367
|
|
|
@@ -397,14 +403,6 @@ This is a subtype of `Error` defined by the `accessibility-checker` plugin. It i
|
|
|
397
403
|
`ValidPoliciesMissing` is thrown from `[aChecker.getCompliance(...)]` method call when no valid policies are in the configuration file.
|
|
398
404
|
Note: The valid policies will vary depending on the selected `ruleArchive`.
|
|
399
405
|
|
|
400
|
-
## Feedback
|
|
401
|
-
|
|
402
|
-
If you are an IBM employee, feel free to provide any feedback by in the `#accessibility-at-ibm` channel in IBM Slack. For all other users, please give use any feedback in [GitHub Issues](https://github.com/IBMa/equal-access/issues).
|
|
403
|
-
|
|
404
|
-
### Reporting bugs
|
|
405
|
-
|
|
406
|
-
If you think you've found a bug, have questions or suggestions, please report the bug in [GitHub Issues](https://github.com/IBMa/equal-access/issues).
|
|
407
|
-
|
|
408
406
|
## Known issues and workarounds
|
|
409
407
|
|
|
410
408
|
1. If you see `TypeError: ace.Checker is not a constructor`:
|
|
@@ -415,3 +413,13 @@ If you think you've found a bug, have questions or suggestions, please report th
|
|
|
415
413
|
> VM43:24 Refused to load the script ‘https://cdn.jsdelivr.net/npm/accessibility-checker-engine@3.1.42/ace.js’ because it violates the following Content Security Policy directive:
|
|
416
414
|
|
|
417
415
|
If you would prefer not to add cdn.jsdelivr.net to the CSP, you can add able.ibm.com instead via your config file (e.g., ruleServer: "https://able.ibm.com/rules")
|
|
416
|
+
|
|
417
|
+
## Feedback and reporting bugs
|
|
418
|
+
|
|
419
|
+
If you think you've found a bug, have questions or suggestions, open a [GitHub Issue](https://github.com/IBMa/equal-access/issues?q=is%3Aopen+is%3Aissue+label%3Anode-accessibility-checker), tagged with `node-accessibility-checker`.
|
|
420
|
+
|
|
421
|
+
If you are an IBM employee, feel free to ask questions in the IBM internal Slack channel `#accessibility-at-ibm`.
|
|
422
|
+
|
|
423
|
+
## License
|
|
424
|
+
|
|
425
|
+
[](./LICENSE)
|
package/bin/achecker.js
CHANGED
|
@@ -140,7 +140,7 @@ function showHelp(config) {
|
|
|
140
140
|
return __generator(this, function (_d) {
|
|
141
141
|
lastArg = config.inputFile;
|
|
142
142
|
if (!lastArg || lastArg === "help") {
|
|
143
|
-
console.log("Usage: achecker [flags] [command / file / directory / URL]\n\nCommands:\n archives : Display valid archive ids and policy ids\n\nFlags:\n Flags can be set via .achecker.yml or aceconfig.js files. Specifying the flags here\n will override those options.\n\n --ruleArchive : Archive id to use. Run \"achecker archives\" for valid ids\n --policies : Comma separated list of policies. Run \"achecker archives\"\n for valid ids\n --failLevels : Comma separated list of levels that will indicate\n a failure. Valid values: violation,\n potentialviolation, recommendation,\n potentialrecommendation, manual\n --reportLevels : Comma separated list of levels that will be included\n in reports. Valid values: violation,\n potentialviolation, recommendation,\n potentialrecommendation, manual, pass\n --outputFormat : Comma separated list of output report formats.\n Valid values: json, csv, xlsx, or
|
|
143
|
+
console.log("Usage: achecker [flags] [command / file / directory / URL]\n\nCommands:\n archives : Display valid archive ids and policy ids\n\nFlags:\n Flags can be set via .achecker.yml or aceconfig.js files. Specifying the flags here\n will override those options.\n\n --ruleArchive : Archive id to use. Run \"achecker archives\" for valid ids\n --policies : Comma separated list of policies. Run \"achecker archives\"\n for valid ids\n --failLevels : Comma separated list of levels that will indicate\n a failure. Valid values: violation,\n potentialviolation, recommendation,\n potentialrecommendation, manual\n --reportLevels : Comma separated list of levels that will be included\n in reports. Valid values: violation,\n potentialviolation, recommendation,\n potentialrecommendation, manual, pass\n --outputFormat : Comma separated list of output report formats.\n Valid values: json, csv, xlsx, html, or disable\n --label : Comma separated list of labels to include in reports\n --outputFolder : Folder to output results and reports\n --baselineFolder : Folder that includes baseline files\n");
|
|
144
144
|
process.exit(-1);
|
|
145
145
|
}
|
|
146
146
|
else if (lastArg === "archives") {
|
|
@@ -203,25 +203,22 @@ function getInputFileList() {
|
|
|
203
203
|
if (!(rl_1_1 = _g.sent(), _a = rl_1_1.done, !_a)) return [3 /*break*/, 7];
|
|
204
204
|
_c = rl_1_1.value;
|
|
205
205
|
_d = false;
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
inputs.push(line);
|
|
212
|
-
}
|
|
213
|
-
else if (line.match(/[a-z]{4,5}:\/\//)) {
|
|
214
|
-
inputs.push(line);
|
|
215
|
-
}
|
|
216
|
-
else {
|
|
217
|
-
inputs.push(path.join(path.dirname(filename), line));
|
|
218
|
-
}
|
|
206
|
+
line = _c;
|
|
207
|
+
if (line.trim().length === 0) {
|
|
208
|
+
}
|
|
209
|
+
else if (line.startsWith(path.sep)) {
|
|
210
|
+
inputs.push(line);
|
|
219
211
|
}
|
|
220
|
-
|
|
221
|
-
|
|
212
|
+
else if (line.match(/[a-z]{4,5}:\/\//)) {
|
|
213
|
+
inputs.push(line);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
inputs.push(path.join(path.dirname(filename), line));
|
|
222
217
|
}
|
|
223
218
|
_g.label = 6;
|
|
224
|
-
case 6:
|
|
219
|
+
case 6:
|
|
220
|
+
_d = true;
|
|
221
|
+
return [3 /*break*/, 4];
|
|
225
222
|
case 7: return [3 /*break*/, 14];
|
|
226
223
|
case 8:
|
|
227
224
|
e_1_1 = _g.sent();
|
package/bin/achecker.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"achecker.js","sourceRoot":"","sources":["../../src-ts/bin/achecker.js"],"names":[],"mappings":";;AAEA;;;;;;;;;;;;;;gFAcgF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AAM;oBACH,EAAE,MAAM,CAAC;oBACT,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;iBAC5B;;;gBAzBS,IAAa,CAAA;;;gBA2B3B,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;oBACrB,OAAO,CAAC,GAAG,EAAE,CAAC;oBACd,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;oBACrC,OAAO,CAAC,GAAG,EAAE,CAAC;oBACd,WAA2B,EAAR,qBAAQ,EAAR,sBAAQ,EAAR,IAAQ,EAAE;wBAAlB,IAAI;wBACX,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;qBACvD;iBACJ;gBACD,OAAO,CAAC,GAAG,EAAE,CAAC;gBACd,OAAO,CAAC,GAAG,CAAC,UAAG,aAAa,CAAC,MAAM,GAAC,QAAQ,CAAC,MAAM,GAAC,MAAM,iBAAO,aAAa,CAAC,MAAM,aAAU,CAAC,CAAA;gBAChG,qBAAM,QAAQ,CAAC,KAAK,EAAE,EAAA;;gBAAtB,SAAsB,CAAC;gBACvB,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,KAAK,CAAC,EAAE;oBACvC,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;iBACxB;;;;KACJ,CAAC,CAAA"}
|
package/index.d.ts
CHANGED
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
See the License for the specific language governing permissions and
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*****************************************************************************/
|
|
16
|
-
import { eAssertResult, ICheckerReport, ICheckerResult,
|
|
16
|
+
import { eAssertResult, ICheckerReport, ICheckerResult, ReportResult } from "./lib/api/IChecker";
|
|
17
|
+
import { IConfig, IConfigInternal } from "./lib/common/config/IConfig";
|
|
18
|
+
import { IBaselineReport } from "./lib/common/engine/IReport";
|
|
17
19
|
/**
|
|
18
20
|
* This function is responsible performing a scan based on the context that is provided, following are
|
|
19
21
|
* the supported context type:
|
|
@@ -46,7 +48,7 @@ export declare function getCompliance(content: any, label: string, callback?: (r
|
|
|
46
48
|
* return 2 in the case that there is a failure based on failLevels (this means no baseline found).
|
|
47
49
|
* return -1 in the case that there is an exception that occured in the results object which came from the scan engine.
|
|
48
50
|
*/
|
|
49
|
-
export declare function assertCompliance(report:
|
|
51
|
+
export declare function assertCompliance(report: IBaselineReport): eAssertResult;
|
|
50
52
|
/**
|
|
51
53
|
* This function is responsible for printing the scan results to console.
|
|
52
54
|
*
|
|
@@ -60,7 +62,7 @@ export declare function assertCompliance(report: ReportResult): eAssertResult;
|
|
|
60
62
|
*/
|
|
61
63
|
export declare function stringifyResults(report: ICheckerReport): string;
|
|
62
64
|
export declare function getConfig(): Promise<IConfig>;
|
|
63
|
-
export declare function getConfigUnsupported(): Promise<
|
|
65
|
+
export declare function getConfigUnsupported(): Promise<IConfigInternal>;
|
|
64
66
|
export declare function close(): Promise<void>;
|
|
65
67
|
/**
|
|
66
68
|
* This function is responsible for getting the diff results based on label for a scan that was already performed.
|
|
@@ -79,7 +81,7 @@ export declare function getDiffResults(label: string): any;
|
|
|
79
81
|
* @return {Object} - return the baseline object from global space based on label provided, the object will be
|
|
80
82
|
* in the same format as outlined in the return of aChecker.buildReport function.
|
|
81
83
|
*/
|
|
82
|
-
export declare function getBaseline(label: string):
|
|
84
|
+
export declare function getBaseline(label: string): IBaselineReport;
|
|
83
85
|
/**
|
|
84
86
|
* This function is responsible for comparing actual with expected and returning all the differences as an array.
|
|
85
87
|
*
|
package/index.js
CHANGED
|
@@ -53,10 +53,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
exports.ruleIdToLegacyId = exports.getRules = exports.getRulesets = exports.getRuleset = exports.addRuleset = exports.cleanComplianceObjectBeforeCompare = exports.diffResultsWithExpected = exports.getBaseline = exports.getDiffResults = exports.close = exports.getConfigUnsupported = exports.getConfig = exports.stringifyResults = exports.assertCompliance = exports.getCompliance = void 0;
|
|
55
55
|
var ACBrowserManager_1 = require("./lib/ACBrowserManager");
|
|
56
|
-
var ACConfigManager_1 = require("./lib/ACConfigManager");
|
|
57
56
|
var ACEngineManager_1 = require("./lib/ACEngineManager");
|
|
58
57
|
var ACHelper_1 = require("./lib/ACHelper");
|
|
59
|
-
var
|
|
58
|
+
var ACConfigManager_1 = require("./lib/common/config/ACConfigManager");
|
|
59
|
+
var BaselineManager_1 = require("./lib/common/report/BaselineManager");
|
|
60
|
+
var ReporterManager_1 = require("./lib/common/report/ReporterManager");
|
|
60
61
|
/**
|
|
61
62
|
* This function is responsible performing a scan based on the context that is provided, following are
|
|
62
63
|
* the supported context type:
|
|
@@ -101,7 +102,7 @@ exports.getCompliance = getCompliance;
|
|
|
101
102
|
* return -1 in the case that there is an exception that occured in the results object which came from the scan engine.
|
|
102
103
|
*/
|
|
103
104
|
function assertCompliance(report) {
|
|
104
|
-
return
|
|
105
|
+
return BaselineManager_1.BaselineManager.assertCompliance(report);
|
|
105
106
|
}
|
|
106
107
|
exports.assertCompliance = assertCompliance;
|
|
107
108
|
/**
|
|
@@ -116,7 +117,7 @@ exports.assertCompliance = assertCompliance;
|
|
|
116
117
|
* @memberOf this
|
|
117
118
|
*/
|
|
118
119
|
function stringifyResults(report) {
|
|
119
|
-
return
|
|
120
|
+
return ReporterManager_1.ReporterManager.stringifyResults(report);
|
|
120
121
|
}
|
|
121
122
|
exports.stringifyResults = stringifyResults;
|
|
122
123
|
function getConfig() {
|
|
@@ -140,7 +141,7 @@ exports.close = close;
|
|
|
140
141
|
* in the same format as outlined in the return of aChecker.diffResultsWithExpected function.
|
|
141
142
|
*/
|
|
142
143
|
function getDiffResults(label) {
|
|
143
|
-
return
|
|
144
|
+
return BaselineManager_1.BaselineManager.getDiffResults(label);
|
|
144
145
|
}
|
|
145
146
|
exports.getDiffResults = getDiffResults;
|
|
146
147
|
/**
|
|
@@ -152,7 +153,7 @@ exports.getDiffResults = getDiffResults;
|
|
|
152
153
|
* in the same format as outlined in the return of aChecker.buildReport function.
|
|
153
154
|
*/
|
|
154
155
|
function getBaseline(label) {
|
|
155
|
-
return
|
|
156
|
+
return BaselineManager_1.BaselineManager.getBaseline(label);
|
|
156
157
|
}
|
|
157
158
|
exports.getBaseline = getBaseline;
|
|
158
159
|
/**
|
|
@@ -189,7 +190,7 @@ exports.getBaseline = getBaseline;
|
|
|
189
190
|
* ]
|
|
190
191
|
*/
|
|
191
192
|
function diffResultsWithExpected(actual, expected, clean) {
|
|
192
|
-
return
|
|
193
|
+
return BaselineManager_1.BaselineManager.diffResultsWithExpected(actual, expected, clean);
|
|
193
194
|
}
|
|
194
195
|
exports.diffResultsWithExpected = diffResultsWithExpected;
|
|
195
196
|
/**
|
|
@@ -232,7 +233,7 @@ exports.diffResultsWithExpected = diffResultsWithExpected;
|
|
|
232
233
|
* }
|
|
233
234
|
*/
|
|
234
235
|
function cleanComplianceObjectBeforeCompare(objectToClean) {
|
|
235
|
-
return
|
|
236
|
+
return BaselineManager_1.BaselineManager.cleanComplianceObjectBeforeCompare(objectToClean);
|
|
236
237
|
}
|
|
237
238
|
exports.cleanComplianceObjectBeforeCompare = cleanComplianceObjectBeforeCompare;
|
|
238
239
|
function addRuleset(ruleset) {
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src-ts/index.ts"],"names":[],"mappings":";AAAC;;;;;;;;;;;;;;+EAc+E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhF,2DAA0D;AAC1D,yDAAwD;AACxD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src-ts/index.ts"],"names":[],"mappings":";AAAC;;;;;;;;;;;;;;+EAc+E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhF,2DAA0D;AAC1D,yDAAwD;AAC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AAE,MAAM;IAChC,qBAAqB,EAAE,MAAM;IAC7B,0BAA0B,EAAE,MAAM;IAClC,oBAAoB,EAAE,MAAM;IAC5B,0BAA0B,EAAE,MAAM;IAClC,qBAAqB,EAAE,MAAM;CAChC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IConfigInternal } from "./common/config/IConfig";
|
|
2
2
|
export declare class ACBrowserManager {
|
|
3
3
|
static browserP: any;
|
|
4
|
-
static config:
|
|
4
|
+
static config: IConfigInternal;
|
|
5
5
|
static numInits: 0;
|
|
6
6
|
static pages: any[];
|
|
7
7
|
static getBrowserChrome(force: boolean): Promise<any>;
|
package/lib/ACBrowserManager.js
CHANGED
|
@@ -38,8 +38,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ACBrowserManager = void 0;
|
|
40
40
|
var puppeteer = require("puppeteer");
|
|
41
|
-
var ACConfigManager_1 = require("./ACConfigManager");
|
|
42
|
-
var ACBrowserManager = /** @class */ (function () {
|
|
41
|
+
var ACConfigManager_1 = require("./common/config/ACConfigManager");
|
|
42
|
+
var ACBrowserManager = exports.ACBrowserManager = /** @class */ (function () {
|
|
43
43
|
function ACBrowserManager() {
|
|
44
44
|
}
|
|
45
45
|
ACBrowserManager.getBrowserChrome = function (force) {
|
|
@@ -233,5 +233,4 @@ var ACBrowserManager = /** @class */ (function () {
|
|
|
233
233
|
ACBrowserManager.pages = [];
|
|
234
234
|
return ACBrowserManager;
|
|
235
235
|
}());
|
|
236
|
-
exports.ACBrowserManager = ACBrowserManager;
|
|
237
236
|
//# sourceMappingURL=ACBrowserManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ACBrowserManager.js","sourceRoot":"","sources":["../../src-ts/lib/ACBrowserManager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A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AAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oCAC/B,UAAU,CAAC;;;;;oDACP,KAAA,OAAO,CAAA;oDAAC,qBAAM,gBAAgB,CAAC,oBAAoB,CAAC,uBAAuB,CAAC,EAAA;;oDAA5E,kBAAQ,SAAoE,EAAC,CAAC;;;;yCACjF,EAAE,CAAC,CAAC,CAAC;gCACV,CAAC,CAAC,EAAC;yBACN;wBACD,IAAI,MAAM,KAAK,IAAI,EAAE;4BACjB,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,GAAG,CAAC,CAAC;yBACrD;wBAED,sBAAO,MAAM,EAAC;;;;KACjB;IAAA,CAAC;IApHK,sBAAK,GAAU,EAAE,CAAC;IAqH7B,uBAAC;CAAA,AAzHD,IAyHC"}
|
package/lib/ACEngineManager.d.ts
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
1
|
export declare class ACEngineManager {
|
|
2
2
|
static customRulesets: any[];
|
|
3
|
+
static engineContent: any;
|
|
3
4
|
static loadEngine(content: any): Promise<any>;
|
|
4
5
|
static localLoadPromise: any;
|
|
5
6
|
static loadEngineLocal(): Promise<any>;
|
|
6
7
|
static isPuppeteer(content: any): any;
|
|
7
8
|
static isPlaywright(content: any): boolean;
|
|
8
9
|
static isSelenium(content: any): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* This function is responsible for building the full help file URL using rule server.
|
|
11
|
-
*
|
|
12
|
-
* @param {String} helpFileName - Provide the help file name
|
|
13
|
-
*
|
|
14
|
-
* @return {String} helpFileName - The full help file URL
|
|
15
|
-
*
|
|
16
|
-
* PRIVATE METHOD
|
|
17
|
-
*
|
|
18
|
-
* @memberOf this
|
|
19
|
-
*/
|
|
20
|
-
static getHelpURL(issue: any): string;
|
|
21
10
|
static addRuleset: (ruleset: any) => void;
|
|
22
11
|
static getRuleset: (rsId: any) => Promise<any>;
|
|
23
12
|
static getRulesets: () => Promise<any[]>;
|