@axe-core/webdriverjs 4.8.2-b07d38c.0 → 4.8.2-b5aee34.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 -5
- package/dist/index.mjs +0 -5
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -528,12 +528,20 @@ ${error2}`
|
|
|
528
528
|
return res;
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
|
-
if (typeof module === "object") {
|
|
532
|
-
module.exports = AxeBuilder;
|
|
533
|
-
module.exports.default = AxeBuilder;
|
|
534
|
-
module.exports.AxeBuilder = AxeBuilder;
|
|
535
|
-
}
|
|
536
531
|
// Annotate the CommonJS export names for ESM import in node:
|
|
537
532
|
0 && (module.exports = {
|
|
538
533
|
AxeBuilder
|
|
539
534
|
});
|
|
535
|
+
|
|
536
|
+
if (module.exports.default) {
|
|
537
|
+
var ___default_export = module.exports.default;
|
|
538
|
+
var ___export_entries = Object.entries(module.exports);
|
|
539
|
+
module.exports = ___default_export;
|
|
540
|
+
___export_entries.forEach(([key, value]) => {
|
|
541
|
+
if (module.exports[key]) {
|
|
542
|
+
throw new Error(`Export "${key}" already exists on default export`);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
module.exports[key] = value;
|
|
546
|
+
});
|
|
547
|
+
}
|
package/dist/index.mjs
CHANGED
|
@@ -493,11 +493,6 @@ ${error2}`
|
|
|
493
493
|
return res;
|
|
494
494
|
}
|
|
495
495
|
};
|
|
496
|
-
if (typeof module === "object") {
|
|
497
|
-
module.exports = AxeBuilder;
|
|
498
|
-
module.exports.default = AxeBuilder;
|
|
499
|
-
module.exports.AxeBuilder = AxeBuilder;
|
|
500
|
-
}
|
|
501
496
|
export {
|
|
502
497
|
AxeBuilder,
|
|
503
498
|
AxeBuilder as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/webdriverjs",
|
|
3
|
-
"version": "4.8.2-
|
|
3
|
+
"version": "4.8.2-b5aee34.0+b5aee34",
|
|
4
4
|
"description": "Provides a method to inject and analyze web pages using axe",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -49,9 +49,10 @@
|
|
|
49
49
|
"prebuild": "rimraf dist",
|
|
50
50
|
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
51
51
|
"test": "mocha --timeout 60000 -r ts-node/register 'test/**.spec.ts'",
|
|
52
|
-
"test:export": "npm run test:esm && npm run test:commonjs",
|
|
52
|
+
"test:export": "npm run test:esm && npm run test:commonjs && npm run test:ts",
|
|
53
53
|
"test:esm": "node test/esmTest.mjs",
|
|
54
54
|
"test:commonjs": "node test/commonjsTest.js",
|
|
55
|
+
"test:ts": "tsc test/tsTest.ts --noEmit --skipLibCheck --esModuleInterop",
|
|
55
56
|
"coverage": "nyc npm run test",
|
|
56
57
|
"prepare": "npm run build"
|
|
57
58
|
},
|
|
@@ -112,5 +113,5 @@
|
|
|
112
113
|
"functions": 85,
|
|
113
114
|
"lines": 85
|
|
114
115
|
},
|
|
115
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "b5aee3424fe4d0fbc0b2065e9c0bc56ce4032755"
|
|
116
117
|
}
|