@axe-core/watcher 1.0.0-next.134fee6e → 1.0.0-next.ad55a477
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/cypress.js +8 -2
- package/dist/cypress.js.map +1 -1
- package/dist/util.d.ts +15 -0
- package/extension/content.js +1 -1
- package/extension/content.js.LICENSE.txt +1 -1
- package/extension/manifest.json +0 -3
- package/package.json +6 -3
- package/extension/worker.js +0 -1
- package/extension/worker.js.LICENSE.txt +0 -1
package/dist/cypress.js
CHANGED
|
@@ -23,6 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.cypressConfig = void 0;
|
|
26
|
+
var uuid_1 = require("uuid");
|
|
26
27
|
var util_1 = require("./util");
|
|
27
28
|
/**
|
|
28
29
|
* Create a Cypress config that uses the axe Watcher extension.
|
|
@@ -30,8 +31,13 @@ var util_1 = require("./util");
|
|
|
30
31
|
* @param config Cypress config to extend
|
|
31
32
|
*/
|
|
32
33
|
var cypressConfig = function (config) {
|
|
33
|
-
var axe = config.axe, userConfig = __rest(config
|
|
34
|
-
|
|
34
|
+
var axe = config.axe, userConfig = __rest(config
|
|
35
|
+
// Ensure the session ID persists between tabs.
|
|
36
|
+
// We cannot allow the extension to generate an ID, as each tab would get its own.
|
|
37
|
+
, ["axe"]);
|
|
38
|
+
// Ensure the session ID persists between tabs.
|
|
39
|
+
// We cannot allow the extension to generate an ID, as each tab would get its own.
|
|
40
|
+
(0, util_1.writeVariables)(__assign(__assign({}, axe), { sessionId: axe.sessionId || (0, uuid_1.v4)() }));
|
|
35
41
|
(0, util_1.writeManifest)({
|
|
36
42
|
all_frames: true,
|
|
37
43
|
exclude_globs: [
|
package/dist/cypress.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cypress.js","sourceRoot":"","sources":["../src/cypress.ts"],"names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CY,QAAA,aAAa,iBAuCzB"}
|
package/dist/util.d.ts
CHANGED
|
@@ -28,6 +28,21 @@ interface WriteVariablesParams {
|
|
|
28
28
|
sessionId?: string;
|
|
29
29
|
autoAnalyze?: boolean;
|
|
30
30
|
}
|
|
31
|
+
/** variables.json shape. */
|
|
32
|
+
export interface Variables {
|
|
33
|
+
api_key: string;
|
|
34
|
+
server_url: string;
|
|
35
|
+
session_id?: string;
|
|
36
|
+
auto_analyze: boolean;
|
|
37
|
+
git_branch?: string | null;
|
|
38
|
+
git_default_branch?: string | null;
|
|
39
|
+
git_commit_message?: string | null;
|
|
40
|
+
git_commit_sha?: string | null;
|
|
41
|
+
git_commit_author?: string | null;
|
|
42
|
+
git_commit_email?: string | null;
|
|
43
|
+
git_url?: string | null;
|
|
44
|
+
git_is_dirty?: boolean;
|
|
45
|
+
}
|
|
31
46
|
/** Write the user's settings to the disk, so the extension can load them. */
|
|
32
47
|
export declare function writeVariables({ apiKey, serverURL, sessionId, autoAnalyze }: WriteVariablesParams): void;
|
|
33
48
|
interface WriteManifestParams {
|