@axe-core/watcher 3.23.0-next.ab5d652b → 3.23.0-next.b668c144
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/cypressCommandsDeprecated.d.ts +1 -0
- package/dist/cypressCommandsDeprecated.js +25 -0
- package/dist/cypressCommandsDeprecated.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/playwright-test/playwrightTest.d.ts +4 -4
- package/dist/playwright-test/playwrightTest.js +2 -1
- package/dist/playwright-test/playwrightTest.js.map +1 -1
- package/dist/utils/shouldUseEnvProxy.js +8 -10
- package/dist/utils/shouldUseEnvProxy.js.map +1 -1
- package/dist/utils/sync-fetch-worker.mjs +13 -12
- package/extension/background.js +1 -1
- package/extension/content.js +1 -1
- package/package.json +43 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cypressCommands';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
let _axeCoreWatcherCypressDeprecationWarningLogged = false;
|
|
18
|
+
if (!_axeCoreWatcherCypressDeprecationWarningLogged) {
|
|
19
|
+
_axeCoreWatcherCypressDeprecationWarningLogged = true;
|
|
20
|
+
console.warn('Deprecation Warning: Importing from @axe-core/watcher/dist/* is deprecated. ' +
|
|
21
|
+
'Please import from @axe-core/watcher/cypress/support instead. ' +
|
|
22
|
+
'This legacy import will be removed in version 5.');
|
|
23
|
+
}
|
|
24
|
+
__exportStar(require("./cypressCommands"), exports);
|
|
25
|
+
//# sourceMappingURL=cypressCommandsDeprecated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cypressCommandsDeprecated.js","sourceRoot":"","sources":["../src/cypressCommandsDeprecated.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAI,8CAA8C,GAAG,KAAK,CAAA;AAC1D,IAAI,CAAC,8CAA8C,EAAE,CAAC;IACpD,8CAA8C,GAAG,IAAI,CAAA;IAErD,OAAO,CAAC,IAAI,CACV,8EAA8E;QAC5E,gEAAgE;QAChE,kDAAkD,CACrD,CAAA;AACH,CAAC;AAGD,oDAAiC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ export { puppeteerConfig, PuppeteerController, wrapPuppeteer, wrapPuppeteerPage
|
|
|
3
3
|
export { wdioConfig, wdioTestRunner, WdioController, wrapWdio } from './wdio/wdio';
|
|
4
4
|
export { webdriverConfig, WebdriverController, wrapWebdriver } from './webdriver/webdriver';
|
|
5
5
|
export { playwrightConfig, PlaywrightController, wrapPlaywright, wrapPlaywrightPage } from './playwright/playwright';
|
|
6
|
-
export {
|
|
6
|
+
export { playwrightTest } from './playwright-test/playwrightTest';
|
|
7
7
|
export { cypressConfig } from './cypress/cypress';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*! Copyright Deque 2021-2025 All Rights Reserved */
|
|
3
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
|
-
};
|
|
6
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
4
|
exports.cypressConfig = exports.playwrightTest = exports.wrapPlaywrightPage = exports.wrapPlaywright = exports.PlaywrightController = exports.playwrightConfig = exports.wrapWebdriver = exports.WebdriverController = exports.webdriverConfig = exports.wrapWdio = exports.WdioController = exports.wdioTestRunner = exports.wdioConfig = exports.wrapPuppeteerPage = exports.wrapPuppeteer = exports.PuppeteerController = exports.puppeteerConfig = void 0;
|
|
5
|
+
let _axeCoreWatcherDeprecationWarningLogged = false;
|
|
6
|
+
if (!_axeCoreWatcherDeprecationWarningLogged) {
|
|
7
|
+
_axeCoreWatcherDeprecationWarningLogged = true;
|
|
8
|
+
console.warn('Deprecation Warning: Importing from @axe-core/watcher is deprecated. ' +
|
|
9
|
+
'Please import directly from framework-specific entry points instead. ' +
|
|
10
|
+
'This legacy import will be removed in version 5.');
|
|
11
|
+
}
|
|
8
12
|
var puppeteer_1 = require("./puppeteer/puppeteer");
|
|
9
13
|
Object.defineProperty(exports, "puppeteerConfig", { enumerable: true, get: function () { return puppeteer_1.puppeteerConfig; } });
|
|
10
14
|
Object.defineProperty(exports, "PuppeteerController", { enumerable: true, get: function () { return puppeteer_1.PuppeteerController; } });
|
|
@@ -25,7 +29,7 @@ Object.defineProperty(exports, "PlaywrightController", { enumerable: true, get:
|
|
|
25
29
|
Object.defineProperty(exports, "wrapPlaywright", { enumerable: true, get: function () { return playwright_1.wrapPlaywright; } });
|
|
26
30
|
Object.defineProperty(exports, "wrapPlaywrightPage", { enumerable: true, get: function () { return playwright_1.wrapPlaywrightPage; } });
|
|
27
31
|
var playwrightTest_1 = require("./playwright-test/playwrightTest");
|
|
28
|
-
Object.defineProperty(exports, "playwrightTest", { enumerable: true, get: function () { return
|
|
32
|
+
Object.defineProperty(exports, "playwrightTest", { enumerable: true, get: function () { return playwrightTest_1.playwrightTest; } });
|
|
29
33
|
var cypress_1 = require("./cypress/cypress");
|
|
30
34
|
Object.defineProperty(exports, "cypressConfig", { enumerable: true, get: function () { return cypress_1.cypressConfig; } });
|
|
31
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oDAAoD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oDAAoD;;;AAEpD,IAAI,uCAAuC,GAAG,KAAK,CAAA;AACnD,IAAI,CAAC,uCAAuC,EAAE,CAAC;IAC7C,uCAAuC,GAAG,IAAI,CAAA;IAE9C,OAAO,CAAC,IAAI,CACV,uEAAuE;QACrE,uEAAuE;QACvE,kDAAkD,CACrD,CAAA;AACH,CAAC;AAED,mDAK8B;AAJ5B,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AACnB,0GAAA,aAAa,OAAA;AACb,8GAAA,iBAAiB,OAAA;AAEnB,oCAKoB;AAJlB,kGAAA,UAAU,OAAA;AACV,sGAAA,cAAc,OAAA;AACd,sGAAA,cAAc,OAAA;AACd,gGAAA,QAAQ,OAAA;AAEV,mDAI8B;AAH5B,4GAAA,eAAe,OAAA;AACf,gHAAA,mBAAmB,OAAA;AACnB,0GAAA,aAAa,OAAA;AAEf,sDAKgC;AAJ9B,8GAAA,gBAAgB,OAAA;AAChB,kHAAA,oBAAoB,OAAA;AACpB,4GAAA,cAAc,OAAA;AACd,gHAAA,kBAAkB,OAAA;AAEpB,mEAAiE;AAAxD,gHAAA,cAAc,OAAA;AACvB,6CAAiD;AAAxC,wGAAA,aAAa,OAAA"}
|
|
@@ -3,10 +3,10 @@ import { PlaywrightController, type Options } from '../playwright/playwright';
|
|
|
3
3
|
export type PageWithAxeWatcher = Page & {
|
|
4
4
|
axeWatcher: PlaywrightController;
|
|
5
5
|
};
|
|
6
|
-
type
|
|
7
|
-
type Fixtures = {
|
|
6
|
+
export type Fixtures = {
|
|
8
7
|
page: PageWithAxeWatcher;
|
|
9
8
|
};
|
|
9
|
+
type Test = TestType<PlaywrightTestArgs & PlaywrightTestOptions & Fixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
|
|
10
10
|
interface ReturnValue {
|
|
11
11
|
test: Test;
|
|
12
12
|
expect: Expect;
|
|
@@ -18,5 +18,5 @@ interface ReturnValue {
|
|
|
18
18
|
* @see https://playwright.dev/docs/api/class-test#test-call
|
|
19
19
|
* @see https://playwright.dev/docs/api/class-test#test-expect
|
|
20
20
|
*/
|
|
21
|
-
declare const playwrightTest: (options: Options) => ReturnValue;
|
|
22
|
-
export
|
|
21
|
+
export declare const playwrightTest: (options: Options) => ReturnValue;
|
|
22
|
+
export {};
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.playwrightTest = void 0;
|
|
6
7
|
const playwright_1 = require("../playwright/playwright");
|
|
7
8
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
9
|
const mergeChromeArgs_1 = __importDefault(require("../utils/mergeChromeArgs"));
|
|
@@ -63,5 +64,5 @@ const playwrightTest = (options) => {
|
|
|
63
64
|
const expect = test.expect;
|
|
64
65
|
return { test, expect };
|
|
65
66
|
};
|
|
66
|
-
exports.
|
|
67
|
+
exports.playwrightTest = playwrightTest;
|
|
67
68
|
//# sourceMappingURL=playwrightTest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playwrightTest.js","sourceRoot":"","sources":["../../src/playwright-test/playwrightTest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"playwrightTest.js","sourceRoot":"","sources":["../../src/playwright-test/playwrightTest.ts"],"names":[],"mappings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,EAAC,MAAM,CAAC,IAAI,IAAI,EAAE,EAAE;oBACvC,sBAAsB,EAAE,IAAI;iBAC7B,CAAC;aACH,CAAC,CAAA;YACF,MAAM,GAAG,CAAC,OAAO,CAAC,CAAA;YAClB,IAAI,CAAC;gBACH,iBAAE,CAAC,UAAU,CAAC,oCAAoB,CAAC,CAAA;YACrC,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,WAAW,CACT,gDAAiD,CAAW,CAAC,OAAO,EAAE,CACvE,CAAA;YACH,CAAC;YACD,MAAM,OAAO,CAAC,KAAK,EAAE,CAAA;QACvB,CAAC;QACD,IAAI,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE;YAC5B,UAAU,GAAG,IAAI,CAAC,UAAU,CAAA;YAC5B,IAAI,CAAC,UAAU,EAAE,CAAC;gBAChB,UAAU,GAAG,IAAI,iCAAoB,CAAC,IAAI,CAAC,CAAA;gBAC3C,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;gBAC5B,IAAI,GAAG,IAAA,+BAAkB,EAAC,IAAI,EAAE,UAAU,CAAuB,CAAA;YACnE,CAAC;YAED,MAAM,GAAG,CAAC,IAAI,CAAC,CAAA;YAEf,MAAM,UAAU,CAAC,KAAK,EAAE,CAAA;QAC1B,CAAC;KACF,CAAC,CAAA;IAEF,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;IAE1B,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAA;AACzB,CAAC,CAAA;AAlEY,QAAA,cAAc,kBAkE1B"}
|
|
@@ -3,19 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.shouldUseEnvProxy = void 0;
|
|
4
4
|
const shouldUseEnvProxy = function () {
|
|
5
5
|
const envVars = [
|
|
6
|
-
'NODE_USE_ENV_PROXY',
|
|
7
6
|
'AXE_WATCHER_USE_ENV_PROXY',
|
|
8
|
-
'AXE_USE_ENV_PROXY'
|
|
7
|
+
'AXE_USE_ENV_PROXY',
|
|
8
|
+
'NODE_USE_ENV_PROXY'
|
|
9
9
|
];
|
|
10
10
|
for (const envVar of envVars) {
|
|
11
|
-
const value = process.env[envVar.toLowerCase()] ?? process.env[envVar];
|
|
12
|
-
if (value
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return true;
|
|
18
|
-
}
|
|
11
|
+
const value = (process.env[envVar.toLowerCase()] ?? process.env[envVar])?.trim();
|
|
12
|
+
if (value === '0') {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
if (value === '1') {
|
|
16
|
+
return true;
|
|
19
17
|
}
|
|
20
18
|
}
|
|
21
19
|
return false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shouldUseEnvProxy.js","sourceRoot":"","sources":["../../src/utils/shouldUseEnvProxy.ts"],"names":[],"mappings":";;;AAIO,MAAM,iBAAiB,GAAG;IAC/B,MAAM,OAAO,GAAG;QACd,
|
|
1
|
+
{"version":3,"file":"shouldUseEnvProxy.js","sourceRoot":"","sources":["../../src/utils/shouldUseEnvProxy.ts"],"names":[],"mappings":";;;AAIO,MAAM,iBAAiB,GAAG;IAC/B,MAAM,OAAO,GAAG;QACd,2BAA2B;QAC3B,mBAAmB;QACnB,oBAAoB;KACrB,CAAA;IAED,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,KAAK,GAAG,CACZ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CACzD,EAAE,IAAI,EAAE,CAAA;QAET,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;YAClB,OAAO,KAAK,CAAA;QACd,CAAC;QAED,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;YAClB,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AAtBY,QAAA,iBAAiB,qBAsB7B"}
|
|
@@ -71,23 +71,24 @@ const sanitizeUrl = url => {
|
|
|
71
71
|
* minimum, we can convert this file to TS since that has
|
|
72
72
|
* erasable types.
|
|
73
73
|
*/
|
|
74
|
-
const shouldUseEnvProxy = function () {
|
|
74
|
+
export const shouldUseEnvProxy = function () {
|
|
75
75
|
const envVars = [
|
|
76
|
-
'NODE_USE_ENV_PROXY',
|
|
77
76
|
'AXE_WATCHER_USE_ENV_PROXY',
|
|
78
|
-
'AXE_USE_ENV_PROXY'
|
|
77
|
+
'AXE_USE_ENV_PROXY',
|
|
78
|
+
'NODE_USE_ENV_PROXY'
|
|
79
79
|
]
|
|
80
80
|
|
|
81
81
|
for (const envVar of envVars) {
|
|
82
|
-
const value =
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
const value = (
|
|
83
|
+
process.env[envVar.toLowerCase()] ?? process.env[envVar]
|
|
84
|
+
)?.trim()
|
|
85
|
+
|
|
86
|
+
if (value === '0') {
|
|
87
|
+
return false
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (value === '1') {
|
|
91
|
+
return true
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
|