@axe-core/watcher 3.11.1 → 3.12.0-next.5a96be69

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.
Files changed (101) hide show
  1. package/dist/Controller.d.ts +9 -1
  2. package/dist/Controller.js +24 -10
  3. package/dist/Controller.js.map +1 -1
  4. package/dist/createDebugger.d.ts +9 -0
  5. package/dist/createDebugger.js +27 -0
  6. package/dist/createDebugger.js.map +1 -0
  7. package/dist/cypress.d.ts +1 -1
  8. package/dist/cypress.js +27 -7
  9. package/dist/cypress.js.map +1 -1
  10. package/dist/cypressCommands.d.ts +3 -1
  11. package/dist/cypressCommands.js +78 -39
  12. package/dist/cypressCommands.js.map +1 -1
  13. package/dist/git.d.ts +2 -1
  14. package/dist/git.js +5 -4
  15. package/dist/git.js.map +1 -1
  16. package/dist/playwright.d.ts +1 -1
  17. package/dist/playwright.js +9 -7
  18. package/dist/playwright.js.map +1 -1
  19. package/dist/playwrightTest.js +8 -4
  20. package/dist/playwrightTest.js.map +1 -1
  21. package/dist/playwrightWrapping.d.ts +1 -1
  22. package/dist/playwrightWrapping.js +41 -41
  23. package/dist/playwrightWrapping.js.map +1 -1
  24. package/dist/puppeteer.d.ts +1 -1
  25. package/dist/puppeteer.js +10 -8
  26. package/dist/puppeteer.js.map +1 -1
  27. package/dist/puppeteerWrapping.d.ts +3 -2
  28. package/dist/puppeteerWrapping.js +100 -42
  29. package/dist/puppeteerWrapping.js.map +1 -1
  30. package/dist/sendResultsToServer.d.ts +9 -2
  31. package/dist/sendResultsToServer.js +25 -43
  32. package/dist/sendResultsToServer.js.map +1 -1
  33. package/dist/utils/constants.d.ts +4 -0
  34. package/dist/utils/constants.js +16 -0
  35. package/dist/utils/constants.js.map +1 -0
  36. package/dist/utils/headlessNotSupportedError.d.ts +5 -0
  37. package/dist/utils/headlessNotSupportedError.js +17 -0
  38. package/dist/utils/headlessNotSupportedError.js.map +1 -0
  39. package/dist/utils/headlessNotSupportedError.test.d.ts +1 -0
  40. package/dist/utils/headlessNotSupportedError.test.js +21 -0
  41. package/dist/utils/headlessNotSupportedError.test.js.map +1 -0
  42. package/dist/utils/mergeChromeArgs.d.ts +12 -0
  43. package/dist/utils/mergeChromeArgs.js +73 -0
  44. package/dist/utils/mergeChromeArgs.js.map +1 -0
  45. package/dist/utils/mergeChromeArgs.test.d.ts +1 -0
  46. package/dist/utils/mergeChromeArgs.test.js +260 -0
  47. package/dist/utils/mergeChromeArgs.test.js.map +1 -0
  48. package/dist/utils/proxyHandlers.d.ts +12 -0
  49. package/dist/utils/proxyHandlers.js +62 -0
  50. package/dist/utils/proxyHandlers.js.map +1 -0
  51. package/dist/utils/proxyHandlers.test.d.ts +1 -0
  52. package/dist/utils/proxyHandlers.test.js +28 -0
  53. package/dist/utils/proxyHandlers.test.js.map +1 -0
  54. package/dist/utils/readVariables.d.ts +7 -0
  55. package/dist/utils/readVariables.js +17 -0
  56. package/dist/utils/readVariables.js.map +1 -0
  57. package/dist/utils/updateAutoAnalyze.d.ts +7 -0
  58. package/dist/utils/updateAutoAnalyze.js +20 -0
  59. package/dist/utils/updateAutoAnalyze.js.map +1 -0
  60. package/dist/utils/validateApiKey.d.ts +7 -0
  61. package/dist/utils/validateApiKey.js +34 -0
  62. package/dist/utils/validateApiKey.js.map +1 -0
  63. package/dist/utils/validateApiKey.test.d.ts +1 -0
  64. package/dist/utils/validateApiKey.test.js +66 -0
  65. package/dist/utils/validateApiKey.test.js.map +1 -0
  66. package/dist/utils/validateAxeRunContext.d.ts +2 -0
  67. package/dist/utils/validateAxeRunContext.js +59 -0
  68. package/dist/utils/validateAxeRunContext.js.map +1 -0
  69. package/dist/utils/validateAxeRunContext.test.d.ts +1 -0
  70. package/dist/utils/validateAxeRunContext.test.js +100 -0
  71. package/dist/utils/validateAxeRunContext.test.js.map +1 -0
  72. package/dist/utils/validateAxeRunOptions.d.ts +13 -0
  73. package/dist/utils/validateAxeRunOptions.js +161 -0
  74. package/dist/utils/validateAxeRunOptions.js.map +1 -0
  75. package/dist/utils/validateAxeRunOptions.test.d.ts +1 -0
  76. package/dist/utils/validateAxeRunOptions.test.js +230 -0
  77. package/dist/utils/validateAxeRunOptions.test.js.map +1 -0
  78. package/dist/utils/writeExtensionManifest.d.ts +7 -0
  79. package/dist/utils/writeExtensionManifest.js +18 -0
  80. package/dist/utils/writeExtensionManifest.js.map +1 -0
  81. package/dist/utils/writeVariables.d.ts +64 -0
  82. package/dist/utils/writeVariables.js +119 -0
  83. package/dist/utils/writeVariables.js.map +1 -0
  84. package/dist/utils/writeVariables.test.d.ts +1 -0
  85. package/dist/utils/writeVariables.test.js +184 -0
  86. package/dist/utils/writeVariables.test.js.map +1 -0
  87. package/dist/wdio.d.ts +1 -1
  88. package/dist/wdio.js +18 -13
  89. package/dist/wdio.js.map +1 -1
  90. package/dist/webdriver.d.ts +1 -1
  91. package/dist/webdriver.js +10 -8
  92. package/dist/webdriver.js.map +1 -1
  93. package/dist/webdriverWrapping.d.ts +1 -1
  94. package/dist/webdriverWrapping.js +16 -16
  95. package/dist/webdriverWrapping.js.map +1 -1
  96. package/extension/background.js +1 -1
  97. package/extension/content.js +1 -1
  98. package/package.json +10 -7
  99. package/dist/util.d.ts +0 -76
  100. package/dist/util.js +0 -235
  101. package/dist/util.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axe-core/watcher",
3
- "version": "3.11.1",
3
+ "version": "3.12.0-next.5a96be69",
4
4
  "description": "",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -10,7 +10,7 @@
10
10
  ],
11
11
  "scripts": {
12
12
  "build": "tsc",
13
- "test": "mocha 'src/*.test.ts'",
13
+ "test": "mocha 'src/**/*.test.ts'",
14
14
  "test:e2e": "mocha 'e2e/*.test.ts'",
15
15
  "serve:e2e": "ts-node e2e/Server.ts",
16
16
  "coverage": "nyc npm test",
@@ -18,17 +18,19 @@
18
18
  "dev": "tsc -w"
19
19
  },
20
20
  "dependencies": {
21
+ "debug": "^4.3.5",
21
22
  "eventemitter3": "^5.0.1",
22
23
  "node-fetch": "^2.6.7",
23
24
  "sync-request": "^6.1.0",
24
- "uuid": "^9.0.0"
25
+ "uuid": "^10.0.0"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@deque/advanced-rule-recorder": "^1.16.0-next.db8d9af7",
28
- "@playwright/test": "^1.43.1",
29
+ "@playwright/test": "^1.45.0",
29
30
  "@types/body-parser": "^1.19.2",
30
31
  "@types/chai": "^4.3.3",
31
32
  "@types/cors": "^2.8.12",
33
+ "@types/debug": "^4.1.12",
32
34
  "@types/express": "^4.17.14",
33
35
  "@types/mocha": "^10.0.0",
34
36
  "@types/morgan": "^1.9.3",
@@ -37,7 +39,7 @@
37
39
  "@types/proxyquire": "^1.3.28",
38
40
  "@types/selenium-webdriver": "^4.1.15",
39
41
  "@types/sinon": "^17.0.3",
40
- "@types/uuid": "^9.0.8",
42
+ "@types/uuid": "^10.0.0",
41
43
  "@wdio/types": "^8.32.4",
42
44
  "axe-core": "^4.9.1",
43
45
  "axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
@@ -51,7 +53,8 @@
51
53
  "mocha": "^10.4.0",
52
54
  "morgan": "^1.10.0",
53
55
  "nock": "^13.3.2",
54
- "nyc": "^15.1.0",
56
+ "nyc": "^17.0.0",
57
+ "playwright-core": "^1.45.0",
55
58
  "proxyquire": "^2.1.3",
56
59
  "puppeteer": "^22.1.0",
57
60
  "rimraf": "^5.0.5",
@@ -62,4 +65,4 @@
62
65
  "typescript": "^5.1.6",
63
66
  "webdriverio": "^8.32.3"
64
67
  }
65
- }
68
+ }
package/dist/util.d.ts DELETED
@@ -1,76 +0,0 @@
1
- import type Controller from './Controller';
2
- export declare const PATH_TO_EXTENSION: string;
3
- export declare const DEFAULT_SERVER_URL = "https://axe.deque.com/";
4
- export declare const PATH_TO_SESSION_FILE: string;
5
- export declare const PATH_TO_EXTENSION_VARIABLES: string;
6
- export declare class HeadlessNotSupportedError extends Error {
7
- name: string;
8
- constructor(extendedMessage?: string);
9
- }
10
- interface AxeConfiguration {
11
- /** Your axe API key. */
12
- apiKey: string;
13
- /** Custom axe server URL. */
14
- serverURL?: string;
15
- /** Your session ID. */
16
- sessionId?: string;
17
- /**
18
- * Whether or not to automatically run axe on the page when loaded and
19
- * when changes are made.
20
- */
21
- autoAnalyze?: boolean;
22
- }
23
- export interface Configuration {
24
- axe: AxeConfiguration;
25
- }
26
- interface WriteVariablesParams extends AxeConfiguration {
27
- cypress?: boolean;
28
- }
29
- /** variables.json shape. */
30
- export interface Variables {
31
- api_key: string;
32
- server_url: string;
33
- auto_analyze: boolean;
34
- session_id?: string;
35
- cypress: boolean;
36
- take_screenshots?: boolean;
37
- experimental_advanced_rules?: boolean;
38
- }
39
- /** Write the user's settings to the disk, so the extension can load them. */
40
- export declare function writeVariables({ apiKey, serverURL, sessionId, autoAnalyze, cypress, takeScreenshots, experimentalAdvancedRules }: WriteVariablesParams): void;
41
- interface ValidateApiKeyParams {
42
- apiKey: string;
43
- serverURL: string;
44
- }
45
- /** Validate the given `apiKey`. This method is blocking and should not be called unnecessarily. */
46
- export declare const validateApiKey: ({ apiKey, serverURL }: ValidateApiKeyParams) => void;
47
- interface WriteManifestParams {
48
- all_frames: boolean;
49
- exclude_globs: string[];
50
- }
51
- /** Update the extension manifest file. */
52
- export declare function writeManifest({ all_frames, exclude_globs }: WriteManifestParams): void;
53
- export declare const readVariables: () => Variables;
54
- export declare const updateAutoAnalyze: (val: boolean) => void;
55
- declare const kWrapped: unique symbol;
56
- export type PossiblyWrapped<T> = T & {
57
- [kWrapped]?: boolean;
58
- };
59
- /** Is the given object wrapped? */
60
- export declare const isWrapped: <T>(o: PossiblyWrapped<T> | null) => boolean;
61
- /** Mark the given object as wrapped. */
62
- export declare const markAsWrapped: (o: unknown) => void;
63
- export declare const proxiedGetFuncWithAnalyze: <T>(target: T, prop: keyof T, controller: Controller) => (...args: unknown[]) => Promise<unknown>;
64
- export declare const proxiedGetWithoutAnalyze: <T>(target: T, prop: keyof T) => unknown;
65
- /**
66
- * A helper function to merge the user provided arguments with the extension args
67
- * for Chrome.
68
- *
69
- * @param args The user provided arguments to merge with the extension args.
70
- * @param disableOtherExtensions Whether to disable other extensions.
71
- * @returns The merged arguments to pass to Chrome.
72
- */
73
- export declare const mergeChromeArgs: (userArgs: string[], { disableOtherExtensions }: {
74
- disableOtherExtensions: boolean;
75
- }) => string[];
76
- export {};
package/dist/util.js DELETED
@@ -1,235 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.mergeChromeArgs = exports.proxiedGetWithoutAnalyze = exports.proxiedGetFuncWithAnalyze = exports.markAsWrapped = exports.isWrapped = exports.updateAutoAnalyze = exports.readVariables = exports.writeManifest = exports.validateApiKey = exports.writeVariables = exports.HeadlessNotSupportedError = exports.PATH_TO_EXTENSION_VARIABLES = exports.PATH_TO_SESSION_FILE = exports.DEFAULT_SERVER_URL = exports.PATH_TO_EXTENSION = void 0;
7
- const uuid_1 = require("uuid");
8
- const sync_request_1 = __importDefault(require("sync-request"));
9
- const assert_1 = __importDefault(require("assert"));
10
- const fs_1 = __importDefault(require("fs"));
11
- const path_1 = __importDefault(require("path"));
12
- const os_1 = __importDefault(require("os"));
13
- exports.PATH_TO_EXTENSION = path_1.default.join(__dirname, '..', 'extension');
14
- exports.DEFAULT_SERVER_URL = 'https://axe.deque.com/';
15
- exports.PATH_TO_SESSION_FILE = path_1.default.join(os_1.default.tmpdir(), 'axe-watcher-session.json');
16
- exports.PATH_TO_EXTENSION_VARIABLES = path_1.default.join(exports.PATH_TO_EXTENSION, 'variables.json');
17
- // Extension flags for Chrome
18
- const DISABLE_OTHER_EXTENSIONS_FLAG = '--disable-extensions-except';
19
- const LOAD_EXTENSION_FLAG = '--load-extension';
20
- class HeadlessNotSupportedError extends Error {
21
- constructor(extendedMessage) {
22
- super('@axe-core/watcher does not support Chrome\'s older "--headless" mode. ' +
23
- 'Use either "--headless=new" or a headful browser.' +
24
- (extendedMessage ? ` ${extendedMessage}` : ''));
25
- this.name = 'HeadlessNotSupportedError';
26
- }
27
- }
28
- exports.HeadlessNotSupportedError = HeadlessNotSupportedError;
29
- /** Write the user's settings to the disk, so the extension can load them. */
30
- function writeVariables({ apiKey, serverURL, sessionId, autoAnalyze, cypress,
31
- // @ts-expect-error Feature flag, not part of public type
32
- takeScreenshots,
33
- // @ts-expect-error Feature flag, not part of public type
34
- experimentalAdvancedRules }) {
35
- if (!serverURL) {
36
- serverURL = exports.DEFAULT_SERVER_URL;
37
- }
38
- let urlString;
39
- try {
40
- urlString = new URL(serverURL).toString();
41
- }
42
- catch (err) {
43
- throw new Error(`Error when converting serverURL to URL. Ensure it is formatted properly: ${err}`);
44
- }
45
- (0, exports.validateApiKey)({ apiKey, serverURL: urlString });
46
- if (typeof autoAnalyze === 'undefined') {
47
- autoAnalyze = true;
48
- }
49
- // When a custom session ID is not provided, attempt to read it from the filesystem.
50
- // This enables multi-process/multi-browser test suites to all use the same session ID.
51
- if (!sessionId && fs_1.default.existsSync(exports.PATH_TO_SESSION_FILE)) {
52
- try {
53
- const data = JSON.parse(fs_1.default.readFileSync(exports.PATH_TO_SESSION_FILE, 'utf8'));
54
- sessionId = data.id;
55
- }
56
- catch (error) {
57
- throw new Error(`Unable to read session configuration: ${error}`);
58
- }
59
- }
60
- const variables = {
61
- api_key: apiKey,
62
- server_url: urlString,
63
- /* Ensure only one session ID is created per test run if `sessionId` is not provided */
64
- session_id: sessionId || (0, uuid_1.v4)(),
65
- take_screenshots: !!takeScreenshots,
66
- auto_analyze: !!autoAnalyze,
67
- cypress: !!cypress,
68
- experimental_advanced_rules: !!experimentalAdvancedRules
69
- };
70
- fs_1.default.writeFileSync(exports.PATH_TO_EXTENSION_VARIABLES, JSON.stringify(variables));
71
- }
72
- exports.writeVariables = writeVariables;
73
- /** Validate the given `apiKey`. This method is blocking and should not be called unnecessarily. */
74
- const validateApiKey = ({ apiKey, serverURL }) => {
75
- (0, assert_1.default)(apiKey, 'API key is required');
76
- const url = new URL(`/api/api-keys/validate/axe-devtools-watcher`, serverURL);
77
- const res = (0, sync_request_1.default)('GET', url.toString(), {
78
- headers: {
79
- 'X-API-Key': apiKey
80
- },
81
- maxRedirects: 2,
82
- followRedirects: true,
83
- maxRetries: 2,
84
- retry: true,
85
- retryDelay: 100
86
- });
87
- const body = JSON.parse(res.getBody('utf8'));
88
- if (body.error) {
89
- throw new Error(body.error);
90
- }
91
- };
92
- exports.validateApiKey = validateApiKey;
93
- /** Update the extension manifest file. */
94
- function writeManifest({ all_frames, exclude_globs }) {
95
- const manifestPath = path_1.default.join(exports.PATH_TO_EXTENSION, 'manifest.json');
96
- const manifest = JSON.parse(fs_1.default.readFileSync(manifestPath, 'utf-8'));
97
- manifest.content_scripts[0].all_frames = all_frames;
98
- manifest.content_scripts[0].exclude_globs = exclude_globs;
99
- fs_1.default.writeFileSync(manifestPath, JSON.stringify(manifest, null, 2));
100
- }
101
- exports.writeManifest = writeManifest;
102
- const readVariables = () => {
103
- const fileContents = fs_1.default.readFileSync(exports.PATH_TO_EXTENSION_VARIABLES, 'utf-8');
104
- return JSON.parse(fileContents);
105
- };
106
- exports.readVariables = readVariables;
107
- const updateAutoAnalyze = (val) => {
108
- const variables = (0, exports.readVariables)();
109
- variables.auto_analyze = val;
110
- fs_1.default.writeFileSync(exports.PATH_TO_EXTENSION_VARIABLES, JSON.stringify(variables));
111
- };
112
- exports.updateAutoAnalyze = updateAutoAnalyze;
113
- const kWrapped = Symbol('axe watcher wrapped');
114
- /** Is the given object wrapped? */
115
- const isWrapped = (o) => {
116
- if (!o) {
117
- return false;
118
- }
119
- return o[kWrapped] === true;
120
- };
121
- exports.isWrapped = isWrapped;
122
- /** Mark the given object as wrapped. */
123
- const markAsWrapped = (o) => {
124
- Object.defineProperty(o, kWrapped, {
125
- configurable: false,
126
- enumerable: false,
127
- value: true
128
- });
129
- };
130
- exports.markAsWrapped = markAsWrapped;
131
- const proxiedGetFuncWithAnalyze = (target, prop, controller) => async (...args) => {
132
- await controller.analyze({ __UserRequestedAnalyze: false });
133
- // We use .call(target, ...) for the same reason that
134
- // proxiedGetWithoutAnalyze uses .bind(target), see below.
135
- //
136
- // eslint-disable-next-line @typescript-eslint/ban-types
137
- const result = await target[prop].call(target, ...args);
138
- return result;
139
- };
140
- exports.proxiedGetFuncWithAnalyze = proxiedGetFuncWithAnalyze;
141
- const proxiedGetWithoutAnalyze = (target, prop) => {
142
- const original = target[prop];
143
- if (typeof original === 'function') {
144
- // Override the proxied function with the original function bound to the target.
145
- // This allows the "this" context to mimic the original object, rather than the proxy.
146
- // Doing it this way still satisfies if:
147
- // 1. The original function uses a private field of the target,
148
- // it will throw an error if we try to call it in the context of
149
- // a proxy rather than the original object. See #1052.
150
- // 2. The original function is implemented in terms of a different
151
- // method which we *do* wrap, we *don't* want to hook that inner
152
- // call with an analyze(); we want to be intentional about the
153
- // specific user-facing methods that we hook.
154
- const originalFnName = original.name;
155
- const boundNameOverride = {
156
- // ends up identical to the original; JavaScript names anonymous functions
157
- // in objects after the key they're bound to.
158
- // @see https://github.com/dequelabs/jazzband/issues/1107
159
- // @see https://stackoverflow.com/a/41854075
160
- [originalFnName]: function (...args) {
161
- return original.call(target, ...args);
162
- }
163
- };
164
- return boundNameOverride[originalFnName];
165
- }
166
- return original;
167
- };
168
- exports.proxiedGetWithoutAnalyze = proxiedGetWithoutAnalyze;
169
- /**
170
- * A helper function to merge the user provided arguments with the extension args
171
- * for Chrome.
172
- *
173
- * @param args The user provided arguments to merge with the extension args.
174
- * @param disableOtherExtensions Whether to disable other extensions.
175
- * @returns The merged arguments to pass to Chrome.
176
- */
177
- const mergeChromeArgs = (userArgs, { disableOtherExtensions }) => {
178
- /**
179
- * It's possible for the user to do:
180
- * `--load-extension=/path/A, --load-extension=/path/B`
181
- *
182
- * We only want to append our extension path onto
183
- * the last occurrence of `--load-extension`.
184
- */
185
- let loadExtensionFlagIndex = -1;
186
- let disableExtensionsFlagIndex = -1;
187
- /**
188
- * We do not want to modify the user's args directly.
189
- * We only want to modify and merge the extension args
190
- * with the user's args if they exist.
191
- *
192
- * It's possible for some integrations like WebDriverJS
193
- * to optionally include the `--` prefix in the flag,
194
- * when we check for the extension flag we need to account for this.
195
- */
196
- for (const [index, arg] of userArgs.entries()) {
197
- if (arg.includes(LOAD_EXTENSION_FLAG) || arg.includes('load-extension')) {
198
- loadExtensionFlagIndex = index;
199
- }
200
- if (arg.includes(DISABLE_OTHER_EXTENSIONS_FLAG) ||
201
- arg.includes('disable-extensions-except')) {
202
- disableExtensionsFlagIndex = index;
203
- }
204
- }
205
- // The user has provided a `--load-extension` flag
206
- // We want to append our extension path to the list of extensions.
207
- if (loadExtensionFlagIndex !== -1) {
208
- userArgs[loadExtensionFlagIndex] += `,${exports.PATH_TO_EXTENSION}`;
209
- }
210
- else {
211
- userArgs.push(`${LOAD_EXTENSION_FLAG}=${exports.PATH_TO_EXTENSION}`);
212
- }
213
- // If the user has already disabled other extensions, we want to append
214
- // our extension path to the list of disabled extensions.
215
- if (disableExtensionsFlagIndex !== -1) {
216
- userArgs[disableExtensionsFlagIndex] += `,${exports.PATH_TO_EXTENSION}`;
217
- /**
218
- * Puppeteer and Playwright by default include `--disable-extensions` which
219
- * disables all extensions. We need to explicitly enable the axe-core/watcher
220
- * extension.
221
- *
222
- * @see https://github.com/GoogleChrome/chrome-launcher/blob/main/docs/chrome-flags-for-tools.md#sources
223
- *
224
- * Cypress does not include `--disable-extensions` by default but does include
225
- * their own extension outside of `--load-extension` so we do not able to disable it
226
- * when injecting the axe-core/watcher extension.
227
- */
228
- }
229
- else if (disableOtherExtensions) {
230
- userArgs.push(`${DISABLE_OTHER_EXTENSIONS_FLAG}=${exports.PATH_TO_EXTENSION}`);
231
- }
232
- return userArgs;
233
- };
234
- exports.mergeChromeArgs = mergeChromeArgs;
235
- //# sourceMappingURL=util.js.map
package/dist/util.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"util.js","sourceRoot":"","sources":["../src/util.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAiC;AACjC,gEAAkC;AAClC,oDAA2B;AAC3B,4CAAmB;AACnB,gDAAuB;AACvB,4CAAmB;AAGN,QAAA,iBAAiB,GAAG,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,WAAW,CAAC,CAAA;AAC3D,QAAA,kBAAkB,GAAG,wBAAwB,CAAA;AAC7C,QAAA,oBAAoB,GAAG,cAAI,CAAC,IAAI,CAC3C,YAAE,CAAC,MAAM,EAAE,EACX,0BAA0B,CAC3B,CAAA;AACY,QAAA,2BAA2B,GAAG,cAAI,CAAC,IAAI,CAClD,yBAAiB,EACjB,gBAAgB,CACjB,CAAA;AAED,6BAA6B;AAC7B,MAAM,6BAA6B,GAAG,6BAA6B,CAAA;AACnE,MAAM,mBAAmB,GAAG,kBAAkB,CAAA;AAE9C,MAAa,yBAA0B,SAAQ,KAAK;IAGlD,YAAY,eAAwB;QAClC,KAAK,CACH,wEAAwE;YACtE,mDAAmD;YACnD,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CACjD,CAAA;QAPI,SAAI,GAAG,2BAA2B,CAAA;IAQzC,CAAC;CACF;AAVD,8DAUC;AAyCD,6EAA6E;AAC7E,SAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,SAAS,EACT,SAAS,EACT,WAAW,EACX,OAAO;AACP,yDAAyD;AACzD,eAAe;AACf,yDAAyD;AACzD,yBAAyB,EACJ;IACrB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,SAAS,GAAG,0BAAkB,CAAA;IAChC,CAAC;IAED,IAAI,SAAS,CAAA;IACb,IAAI,CAAC;QACH,SAAS,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,QAAQ,EA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