@axe-core/puppeteer 4.13.0 → 4.13.1-0bcb185.0.sha-0bcb185
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 +6 -4
- package/dist/index.mjs +6 -4
- package/package.json +12 -12
package/dist/index.js
CHANGED
|
@@ -77,7 +77,7 @@ function chunkResultString(chunk) {
|
|
|
77
77
|
// src/legacy.ts
|
|
78
78
|
var fs = __toESM(require("fs"));
|
|
79
79
|
|
|
80
|
-
// ../../node_modules/cross-dirname/dist/esm/index.mjs
|
|
80
|
+
// ../../node_modules/.pnpm/cross-dirname@0.1.0/node_modules/cross-dirname/dist/esm/index.mjs
|
|
81
81
|
var EXTRACT_PATH_REGEX = /@?(?<path>[file:\/\/]?[^\(\s]+):[0-9]+:[0-9]+/;
|
|
82
82
|
var WIN_POSIX_DRIVE_REGEX = /^\/[A-Z]:\/*/;
|
|
83
83
|
var getPathFromErrorStack = () => {
|
|
@@ -149,7 +149,7 @@ async function injectJS(frame, { source, selector, logOnError, args }) {
|
|
|
149
149
|
return Promise.all(injections).then(() => void 0);
|
|
150
150
|
}
|
|
151
151
|
async function injectJSModule(frame) {
|
|
152
|
-
let axeCorePath
|
|
152
|
+
let axeCorePath;
|
|
153
153
|
if (typeof require === "function" && typeof require.resolve === "function") {
|
|
154
154
|
axeCorePath = require.resolve("axe-core");
|
|
155
155
|
} else {
|
|
@@ -178,6 +178,7 @@ var AxePartialRunner = class {
|
|
|
178
178
|
this.initiator = initiator;
|
|
179
179
|
this.partialPromise = caught(partialPromise);
|
|
180
180
|
}
|
|
181
|
+
initiator;
|
|
181
182
|
partialPromise;
|
|
182
183
|
childRunners = [];
|
|
183
184
|
addChildResults(childResultRunner) {
|
|
@@ -211,7 +212,7 @@ var import_url2 = require("url");
|
|
|
211
212
|
async function frameSourceInject(frame, source, config) {
|
|
212
213
|
await assertFrameReady(frame);
|
|
213
214
|
if (!source) {
|
|
214
|
-
let axeCorePath
|
|
215
|
+
let axeCorePath;
|
|
215
216
|
if (typeof require === "function" && typeof require.resolve === "function") {
|
|
216
217
|
axeCorePath = require.resolve("axe-core");
|
|
217
218
|
} else {
|
|
@@ -433,7 +434,8 @@ var AxePuppeteer = class {
|
|
|
433
434
|
} catch (error) {
|
|
434
435
|
throw new Error(
|
|
435
436
|
`${error.message}
|
|
436
|
-
Please check out ${this.errorUrl}
|
|
437
|
+
Please check out ${this.errorUrl}`,
|
|
438
|
+
{ cause: error }
|
|
437
439
|
);
|
|
438
440
|
}
|
|
439
441
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -46,7 +46,7 @@ function chunkResultString(chunk) {
|
|
|
46
46
|
// src/legacy.ts
|
|
47
47
|
import * as fs from "fs";
|
|
48
48
|
|
|
49
|
-
// ../../node_modules/cross-dirname/dist/esm/index.mjs
|
|
49
|
+
// ../../node_modules/.pnpm/cross-dirname@0.1.0/node_modules/cross-dirname/dist/esm/index.mjs
|
|
50
50
|
var EXTRACT_PATH_REGEX = /@?(?<path>[file:\/\/]?[^\(\s]+):[0-9]+:[0-9]+/;
|
|
51
51
|
var WIN_POSIX_DRIVE_REGEX = /^\/[A-Z]:\/*/;
|
|
52
52
|
var getPathFromErrorStack = () => {
|
|
@@ -118,7 +118,7 @@ async function injectJS(frame, { source, selector, logOnError, args }) {
|
|
|
118
118
|
return Promise.all(injections).then(() => void 0);
|
|
119
119
|
}
|
|
120
120
|
async function injectJSModule(frame) {
|
|
121
|
-
let axeCorePath
|
|
121
|
+
let axeCorePath;
|
|
122
122
|
if (typeof __require === "function" && typeof __require.resolve === "function") {
|
|
123
123
|
axeCorePath = __require.resolve("axe-core");
|
|
124
124
|
} else {
|
|
@@ -147,6 +147,7 @@ var AxePartialRunner = class {
|
|
|
147
147
|
this.initiator = initiator;
|
|
148
148
|
this.partialPromise = caught(partialPromise);
|
|
149
149
|
}
|
|
150
|
+
initiator;
|
|
150
151
|
partialPromise;
|
|
151
152
|
childRunners = [];
|
|
152
153
|
addChildResults(childResultRunner) {
|
|
@@ -180,7 +181,7 @@ import { pathToFileURL as pathToFileURL2 } from "url";
|
|
|
180
181
|
async function frameSourceInject(frame, source, config) {
|
|
181
182
|
await assertFrameReady(frame);
|
|
182
183
|
if (!source) {
|
|
183
|
-
let axeCorePath
|
|
184
|
+
let axeCorePath;
|
|
184
185
|
if (typeof __require === "function" && typeof __require.resolve === "function") {
|
|
185
186
|
axeCorePath = __require.resolve("axe-core");
|
|
186
187
|
} else {
|
|
@@ -402,7 +403,8 @@ var AxePuppeteer = class {
|
|
|
402
403
|
} catch (error) {
|
|
403
404
|
throw new Error(
|
|
404
405
|
`${error.message}
|
|
405
|
-
Please check out ${this.errorUrl}
|
|
406
|
+
Please check out ${this.errorUrl}`,
|
|
407
|
+
{ cause: error }
|
|
406
408
|
);
|
|
407
409
|
}
|
|
408
410
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axe-core/puppeteer",
|
|
3
|
-
"version": "4.13.0",
|
|
3
|
+
"version": "4.13.1-0bcb185.0.sha-0bcb185",
|
|
4
4
|
"description": "Provides a chainable axe API for Puppeteer and automatically injects into all frames",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,23 +22,26 @@
|
|
|
22
22
|
"publishConfig": {
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=22.12.0"
|
|
27
|
+
},
|
|
25
28
|
"scripts": {
|
|
26
29
|
"build": "tsup src/index.ts --dts --format esm,cjs",
|
|
27
30
|
"test": "mocha --timeout 60000 -r ts-node/register 'test/**.spec.ts'",
|
|
28
|
-
"test:export": "
|
|
31
|
+
"test:export": "pnpm run test:esm && pnpm run test:commonjs && pnpm run test:ts",
|
|
29
32
|
"test:esm": "node test/esmTest.mjs",
|
|
30
33
|
"test:commonjs": "node test/commonjsTest.js",
|
|
31
|
-
"test:ts": "tsc test/tsTest.ts --noEmit --skipLibCheck --esModuleInterop",
|
|
32
|
-
"coverage": "nyc
|
|
33
|
-
"prepublishOnly": "
|
|
34
|
+
"test:ts": "tsc --ignoreConfig test/tsTest.ts --noEmit --skipLibCheck --esModuleInterop",
|
|
35
|
+
"coverage": "nyc pnpm run test",
|
|
36
|
+
"prepublishOnly": "pnpm run build"
|
|
34
37
|
},
|
|
35
38
|
"author": "Adam Cutler",
|
|
36
39
|
"license": "MPL-2.0",
|
|
37
40
|
"devDependencies": {
|
|
38
|
-
"@types/chai": "^
|
|
41
|
+
"@types/chai": "^5.2.3",
|
|
39
42
|
"@types/express": "^5.0.3",
|
|
40
43
|
"@types/mocha": "^10.0.0",
|
|
41
|
-
"@types/sinon": "^
|
|
44
|
+
"@types/sinon": "^22.0.0",
|
|
42
45
|
"async-listen": "^3.0.1",
|
|
43
46
|
"axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
|
|
44
47
|
"chai": "^4.3.6",
|
|
@@ -46,7 +49,7 @@
|
|
|
46
49
|
"express": "^5.1.0",
|
|
47
50
|
"mocha": "^11.7.1",
|
|
48
51
|
"nyc": "^18.0.0",
|
|
49
|
-
"puppeteer": "
|
|
52
|
+
"puppeteer": "25.8.0",
|
|
50
53
|
"sinon": "^22.0.0",
|
|
51
54
|
"source-map-support": "^0.5.21",
|
|
52
55
|
"tsup": "^8.0.1"
|
|
@@ -57,9 +60,6 @@
|
|
|
57
60
|
"peerDependencies": {
|
|
58
61
|
"puppeteer": ">=1.10.0"
|
|
59
62
|
},
|
|
60
|
-
"engines": {
|
|
61
|
-
"node": ">=6.4.0"
|
|
62
|
-
},
|
|
63
63
|
"nyc": {
|
|
64
64
|
"require": [
|
|
65
65
|
"ts-node/register"
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
"functions": 85,
|
|
88
88
|
"lines": 85
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "0bcb1850683addb69343067263aa3fcd4ddd0561"
|
|
91
91
|
}
|