@axe-core/react 4.7.4-alpha.408 → 4.7.4-f03670b.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.ts +3 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -19,5 +19,8 @@ interface ReactSpec extends axeCore.Spec {
|
|
|
19
19
|
* @param {Function} _logger Logger implementation
|
|
20
20
|
*/
|
|
21
21
|
declare function reactAxe(_React: typeof React, _ReactDOM: typeof ReactDOM, _timeout: number, _conf?: ReactSpec, _context?: axeCore.ElementContext, _logger?: (results: axeCore.AxeResults) => void): Promise<void>;
|
|
22
|
+
declare namespace reactAxe {
|
|
23
|
+
var logToConsole: (results: axeCore.AxeResults) => void;
|
|
24
|
+
}
|
|
22
25
|
|
|
23
26
|
export { reactAxe as default };
|
package/dist/index.js
CHANGED
|
@@ -347,6 +347,7 @@ function reactAxe(_React, _ReactDOM, _timeout, _conf = {}, _context, _logger) {
|
|
|
347
347
|
}
|
|
348
348
|
return checkAndReport(document.body, timeout);
|
|
349
349
|
}
|
|
350
|
+
reactAxe.logToConsole = logToConsole;
|
|
350
351
|
if (typeof module === "object") {
|
|
351
352
|
exports = module.exports = reactAxe;
|
|
352
353
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -314,6 +314,7 @@ function reactAxe(_React, _ReactDOM, _timeout, _conf = {}, _context, _logger) {
|
|
|
314
314
|
}
|
|
315
315
|
return checkAndReport(document.body, timeout);
|
|
316
316
|
}
|
|
317
|
+
reactAxe.logToConsole = logToConsole;
|
|
317
318
|
if (typeof module === "object") {
|
|
318
319
|
exports = module.exports = reactAxe;
|
|
319
320
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/react",
|
|
3
|
-
"version": "4.7.4-
|
|
3
|
+
"version": "4.7.4-f03670b.0+f03670b",
|
|
4
4
|
"description": "Dynamic accessibility analysis for React using axe-core",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"author": "Dylan Barrell (dylan@barrell.com)",
|
|
58
58
|
"license": "MPL-2.0",
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"axe-core": "
|
|
60
|
+
"axe-core": "~4.8.2",
|
|
61
61
|
"requestidlecallback": "^0.3.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"<rootDir>/test/jest.setup.js"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "f03670beb2c3f46c698a3d607de6bdae7565d79d"
|
|
96
96
|
}
|