@axe-core/webdriverjs 4.11.2-fe1cdbd.0 → 4.11.3-39d9967.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.
- package/dist/index.d.mts +1 -49
- package/dist/index.d.ts +1 -49
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +4 -7
package/dist/index.d.mts
CHANGED
|
@@ -5,7 +5,7 @@ interface BuilderOptions {
|
|
|
5
5
|
noSandbox?: boolean;
|
|
6
6
|
logIframeErrors?: boolean;
|
|
7
7
|
}
|
|
8
|
-
type CallbackFunction = (
|
|
8
|
+
type CallbackFunction = (...args: [Error, null] | [null, AxeResults]) => void;
|
|
9
9
|
|
|
10
10
|
declare class AxeBuilder {
|
|
11
11
|
private driver;
|
|
@@ -18,66 +18,18 @@ declare class AxeBuilder {
|
|
|
18
18
|
private legacyMode;
|
|
19
19
|
private errorUrl;
|
|
20
20
|
constructor(driver: WebDriver, axeSource?: string | null, builderOptions?: BuilderOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Selector to include in analysis.
|
|
23
|
-
* This may be called any number of times.
|
|
24
|
-
*/
|
|
25
21
|
include(selector: SerialFrameSelector): this;
|
|
26
|
-
/**
|
|
27
|
-
* Selector to exclude in analysis.
|
|
28
|
-
* This may be called any number of times.
|
|
29
|
-
*/
|
|
30
22
|
exclude(selector: SerialFrameSelector): this;
|
|
31
|
-
/**
|
|
32
|
-
* Set options to be passed into axe-core
|
|
33
|
-
*/
|
|
34
23
|
options(options: RunOptions): this;
|
|
35
|
-
/**
|
|
36
|
-
* Limit analysis to only the specified rules.
|
|
37
|
-
* Cannot be used with `AxeBuilder#withTags`
|
|
38
|
-
*/
|
|
39
24
|
withRules(rules: string | string[]): this;
|
|
40
|
-
/**
|
|
41
|
-
* Limit analysis to only specified tags.
|
|
42
|
-
* Cannot be used with `AxeBuilder#withRules`
|
|
43
|
-
*/
|
|
44
25
|
withTags(tags: string | string[]): this;
|
|
45
|
-
/**
|
|
46
|
-
* Set the list of rules to skip when running an analysis.
|
|
47
|
-
*/
|
|
48
26
|
disableRules(rules: string | string[]): this;
|
|
49
|
-
/**
|
|
50
|
-
* Set configuration for `axe-core`.
|
|
51
|
-
* This value is passed directly to `axe.configure()`
|
|
52
|
-
*/
|
|
53
27
|
configure(config: Spec): this;
|
|
54
|
-
/**
|
|
55
|
-
* Performs an analysis and retrieves results.
|
|
56
|
-
*/
|
|
57
28
|
analyze(callback?: CallbackFunction): Promise<AxeResults>;
|
|
58
|
-
/**
|
|
59
|
-
* Use frameMessenger with <same_origin_only>
|
|
60
|
-
*
|
|
61
|
-
* This disables use of axe.runPartial() which is called in each frame, and
|
|
62
|
-
* axe.finishRun() which is called in a blank page. This uses axe.run() instead,
|
|
63
|
-
* but with the restriction that cross-origin frames will not be tested.
|
|
64
|
-
*/
|
|
65
29
|
setLegacyMode(legacyMode?: boolean): this;
|
|
66
|
-
/**
|
|
67
|
-
* Analyzes the page, returning a promise
|
|
68
|
-
*/
|
|
69
30
|
private analyzePromise;
|
|
70
|
-
/**
|
|
71
|
-
* Use axe.run() to get results from the page
|
|
72
|
-
*/
|
|
73
31
|
private runLegacy;
|
|
74
|
-
/**
|
|
75
|
-
* Get partial results from the current context and its child frames
|
|
76
|
-
*/
|
|
77
32
|
private runPartialRecursive;
|
|
78
|
-
/**
|
|
79
|
-
* Use axe.finishRun() to turn partial results into actual results
|
|
80
|
-
*/
|
|
81
33
|
private finishRun;
|
|
82
34
|
}
|
|
83
35
|
|
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ interface BuilderOptions {
|
|
|
5
5
|
noSandbox?: boolean;
|
|
6
6
|
logIframeErrors?: boolean;
|
|
7
7
|
}
|
|
8
|
-
type CallbackFunction = (
|
|
8
|
+
type CallbackFunction = (...args: [Error, null] | [null, AxeResults]) => void;
|
|
9
9
|
|
|
10
10
|
declare class AxeBuilder {
|
|
11
11
|
private driver;
|
|
@@ -18,66 +18,18 @@ declare class AxeBuilder {
|
|
|
18
18
|
private legacyMode;
|
|
19
19
|
private errorUrl;
|
|
20
20
|
constructor(driver: WebDriver, axeSource?: string | null, builderOptions?: BuilderOptions);
|
|
21
|
-
/**
|
|
22
|
-
* Selector to include in analysis.
|
|
23
|
-
* This may be called any number of times.
|
|
24
|
-
*/
|
|
25
21
|
include(selector: SerialFrameSelector): this;
|
|
26
|
-
/**
|
|
27
|
-
* Selector to exclude in analysis.
|
|
28
|
-
* This may be called any number of times.
|
|
29
|
-
*/
|
|
30
22
|
exclude(selector: SerialFrameSelector): this;
|
|
31
|
-
/**
|
|
32
|
-
* Set options to be passed into axe-core
|
|
33
|
-
*/
|
|
34
23
|
options(options: RunOptions): this;
|
|
35
|
-
/**
|
|
36
|
-
* Limit analysis to only the specified rules.
|
|
37
|
-
* Cannot be used with `AxeBuilder#withTags`
|
|
38
|
-
*/
|
|
39
24
|
withRules(rules: string | string[]): this;
|
|
40
|
-
/**
|
|
41
|
-
* Limit analysis to only specified tags.
|
|
42
|
-
* Cannot be used with `AxeBuilder#withRules`
|
|
43
|
-
*/
|
|
44
25
|
withTags(tags: string | string[]): this;
|
|
45
|
-
/**
|
|
46
|
-
* Set the list of rules to skip when running an analysis.
|
|
47
|
-
*/
|
|
48
26
|
disableRules(rules: string | string[]): this;
|
|
49
|
-
/**
|
|
50
|
-
* Set configuration for `axe-core`.
|
|
51
|
-
* This value is passed directly to `axe.configure()`
|
|
52
|
-
*/
|
|
53
27
|
configure(config: Spec): this;
|
|
54
|
-
/**
|
|
55
|
-
* Performs an analysis and retrieves results.
|
|
56
|
-
*/
|
|
57
28
|
analyze(callback?: CallbackFunction): Promise<AxeResults>;
|
|
58
|
-
/**
|
|
59
|
-
* Use frameMessenger with <same_origin_only>
|
|
60
|
-
*
|
|
61
|
-
* This disables use of axe.runPartial() which is called in each frame, and
|
|
62
|
-
* axe.finishRun() which is called in a blank page. This uses axe.run() instead,
|
|
63
|
-
* but with the restriction that cross-origin frames will not be tested.
|
|
64
|
-
*/
|
|
65
29
|
setLegacyMode(legacyMode?: boolean): this;
|
|
66
|
-
/**
|
|
67
|
-
* Analyzes the page, returning a promise
|
|
68
|
-
*/
|
|
69
30
|
private analyzePromise;
|
|
70
|
-
/**
|
|
71
|
-
* Use axe.run() to get results from the page
|
|
72
|
-
*/
|
|
73
31
|
private runLegacy;
|
|
74
|
-
/**
|
|
75
|
-
* Get partial results from the current context and its child frames
|
|
76
|
-
*/
|
|
77
32
|
private runPartialRecursive;
|
|
78
|
-
/**
|
|
79
|
-
* Use axe.finishRun() to turn partial results into actual results
|
|
80
|
-
*/
|
|
81
33
|
private finishRun;
|
|
82
34
|
}
|
|
83
35
|
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/webdriverjs",
|
|
3
|
-
"version": "4.11.
|
|
3
|
+
"version": "4.11.3-39d9967.0+39d9967",
|
|
4
4
|
"description": "Provides a method to inject and analyze web pages using axe",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -72,7 +72,6 @@
|
|
|
72
72
|
"@types/chai": "^4.3.3",
|
|
73
73
|
"@types/express": "^5.0.3",
|
|
74
74
|
"@types/mocha": "^10.0.0",
|
|
75
|
-
"@types/node": "^24.10.13",
|
|
76
75
|
"@types/selenium-webdriver": "^4.1.5",
|
|
77
76
|
"async-listen": "^3.0.1",
|
|
78
77
|
"axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
|
|
@@ -82,12 +81,10 @@
|
|
|
82
81
|
"nyc": "^17.1.0",
|
|
83
82
|
"rimraf": "^6.0.1",
|
|
84
83
|
"selenium-webdriver": "^4.8.1",
|
|
85
|
-
"
|
|
86
|
-
"tsup": "^8.0.1",
|
|
87
|
-
"typescript": "^5.2.2"
|
|
84
|
+
"tsup": "^8.0.1"
|
|
88
85
|
},
|
|
89
86
|
"dependencies": {
|
|
90
|
-
"axe-core": "~4.11.
|
|
87
|
+
"axe-core": "~4.11.3"
|
|
91
88
|
},
|
|
92
89
|
"peerDependencies": {
|
|
93
90
|
"selenium-webdriver": ">3.0.0-beta || >=2.53.1 || >4.0.0-alpha"
|
|
@@ -111,5 +108,5 @@
|
|
|
111
108
|
"functions": 85,
|
|
112
109
|
"lines": 85
|
|
113
110
|
},
|
|
114
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "39d99670b124852b51390221f1b4c43ea7ec1495"
|
|
115
112
|
}
|