@axe-core/puppeteer 4.8.2-e8094c1.0 → 4.8.3-854eeb3.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.js +13 -0
- package/package.json +6 -4
package/dist/index.js
CHANGED
|
@@ -535,3 +535,16 @@ var src_default = AxePuppeteer;
|
|
|
535
535
|
AxePuppeteer,
|
|
536
536
|
loadPage
|
|
537
537
|
});
|
|
538
|
+
|
|
539
|
+
if (module.exports.default) {
|
|
540
|
+
var ___default_export = module.exports.default;
|
|
541
|
+
var ___export_entries = Object.entries(module.exports);
|
|
542
|
+
module.exports = ___default_export;
|
|
543
|
+
___export_entries.forEach(([key, value]) => {
|
|
544
|
+
if (module.exports[key]) {
|
|
545
|
+
throw new Error(`Export "${key}" already exists on default export`);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
module.exports[key] = value;
|
|
549
|
+
});
|
|
550
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/puppeteer",
|
|
3
|
-
"version": "4.8.
|
|
3
|
+
"version": "4.8.3-854eeb3.0+854eeb3",
|
|
4
4
|
"description": "Provides a chainable axe API for Puppeteer and automatically injects into all frames",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
27
27
|
"test": "mocha --timeout 60000 -r ts-node/register 'test/**.spec.ts'",
|
|
28
|
+
"test:export": "npm run test:esm && npm run test:commonjs && npm run test:ts",
|
|
28
29
|
"test:esm": "node test/esmTest.mjs",
|
|
30
|
+
"test:commonjs": "node test/commonjsTest.js",
|
|
31
|
+
"test:ts": "tsc test/tsTest.ts --noEmit --skipLibCheck --esModuleInterop",
|
|
29
32
|
"coverage": "nyc npm run test",
|
|
30
33
|
"prepublishOnly": "npm run build"
|
|
31
34
|
},
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
"@types/mocha": "^10.0.0",
|
|
38
41
|
"@types/node": "^20.8.10",
|
|
39
42
|
"@types/sinon": "^10.0.13",
|
|
40
|
-
"
|
|
43
|
+
"async-listen": "^3.0.1",
|
|
41
44
|
"axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
|
|
42
45
|
"chai": "^4.3.6",
|
|
43
46
|
"cross-dirname": "^0.1.0",
|
|
@@ -47,7 +50,6 @@
|
|
|
47
50
|
"puppeteer": "19.7.3",
|
|
48
51
|
"sinon": "^14.0.1",
|
|
49
52
|
"source-map-support": "^0.5.21",
|
|
50
|
-
"test-listen": "^1.1.0",
|
|
51
53
|
"ts-node": "^10.9.1",
|
|
52
54
|
"tsup": "^7.2.0",
|
|
53
55
|
"typescript": "^4.8.4"
|
|
@@ -88,5 +90,5 @@
|
|
|
88
90
|
"functions": 85,
|
|
89
91
|
"lines": 85
|
|
90
92
|
},
|
|
91
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "854eeb31d9b540ed30d602452c1d833600ecad20"
|
|
92
94
|
}
|