@axe-core/watcher 2.2.0 → 2.3.0-next.1906ff19

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axe DevTools Watcher",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Codeless accessibility testing",
5
5
  "manifest_version": 3,
6
6
  "homepage_url": "https://deque.com",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axe-core/watcher",
3
- "version": "2.2.0",
3
+ "version": "2.3.0-next.1906ff19",
4
4
  "description": "",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -9,10 +9,8 @@
9
9
  "extension"
10
10
  ],
11
11
  "scripts": {
12
- "build:controller": "ts-node scripts/generateController.ts",
13
- "prebuild": "yarn build:controller",
14
12
  "build": "tsc",
15
- "test": "mocha 'src/*.test.ts' 'scripts/*.test.ts'",
13
+ "test": "mocha 'src/*.test.ts'",
16
14
  "test:e2e": "mocha 'e2e/*.test.ts'",
17
15
  "coverage": "nyc npm test",
18
16
  "copy-extension": "rimraf extension; cp -r ../../extension/dist extension",
@@ -26,7 +24,6 @@
26
24
  "@playwright/test": "^1.34.2",
27
25
  "@types/body-parser": "^1.19.2",
28
26
  "@types/chai": "^4.3.3",
29
- "@types/chrome": "^0.0.197",
30
27
  "@types/cors": "^2.8.12",
31
28
  "@types/cypress": "^1.1.3",
32
29
  "@types/express": "^4.17.14",
@@ -35,9 +32,8 @@
35
32
  "@types/node": "^18.8.3",
36
33
  "@types/proxyquire": "^1.3.28",
37
34
  "@types/rimraf": "^3.0.2",
38
- "@types/selenium-webdriver": "^4.1.5",
35
+ "@types/selenium-webdriver": "^4.1.15",
39
36
  "@types/sinon": "^10.0.13",
40
- "@types/test-listen": "^1.1.0",
41
37
  "@types/uuid": "^8.3.4",
42
38
  "@wdio/types": "^7.25.1",
43
39
  "axe-core": "^4.7.0",
@@ -54,11 +50,11 @@
54
50
  "proxyquire": "^2.1.3",
55
51
  "puppeteer": "^20.3.0",
56
52
  "rimraf": "^3.0.2",
57
- "selenium-webdriver": "^4.5.0",
53
+ "selenium-webdriver": "^4.11.1",
58
54
  "sinon": "^14.0.1",
59
55
  "tempy": "1",
60
56
  "ts-node": "^10.9.1",
61
57
  "typescript": "^4.8.4",
62
- "webdriverio": "8"
58
+ "webdriverio": "^8.13.4"
63
59
  }
64
- }
60
+ }
@@ -1,7 +0,0 @@
1
- interface Params {
2
- apiKey: string;
3
- serverURL: string;
4
- }
5
- /** Validate the given `apiKey`. This method is blocking and should not be called unnecessarily. */
6
- declare const validateApiKey: ({ apiKey, serverURL }: Params) => void;
7
- export default validateApiKey;
@@ -1,25 +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
- const sync_request_1 = __importDefault(require("sync-request"));
7
- const assert_1 = __importDefault(require("assert"));
8
- /** Validate the given `apiKey`. This method is blocking and should not be called unnecessarily. */
9
- const validateApiKey = ({ apiKey, serverURL }) => {
10
- (0, assert_1.default)(apiKey, 'API key is required');
11
- const url = new URL(`/api/api-keys/${apiKey}/validate/axe-devtools-watcher`, serverURL);
12
- const res = (0, sync_request_1.default)('GET', url.toString(), {
13
- maxRedirects: 2,
14
- followRedirects: true,
15
- maxRetries: 2,
16
- retry: true,
17
- retryDelay: 100
18
- });
19
- const body = JSON.parse(res.getBody('utf8'));
20
- if (body.error) {
21
- throw new Error(body.error);
22
- }
23
- };
24
- exports.default = validateApiKey;
25
- //# sourceMappingURL=validateApiKey.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validateApiKey.js","sourceRoot":"","sources":["../src/validateApiKey.ts"],"names":[],"mappings":";;;;;AAAA,gEAAkC;AAClC,oDAA2B;AAO3B,mGAAmG;AACnG,MAAM,cAAc,GAAG,CAAC,EAAE,MAAM,EAAE,SAAS,EAAU,EAAQ,EAAE;IAC7D,IAAA,gBAAM,EAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;IACrC,MAAM,GAAG,GAAG,IAAI,GAAG,CACjB,iBAAiB,MAAM,gCAAgC,EACvD,SAAS,CACV,CAAA;IACD,MAAM,GAAG,GAAG,IAAA,sBAAO,EAAC,KAAK,EAAE,GAAG,CAAC,QAAQ,EAAE,EAAE;QACzC,YAAY,EAAE,CAAC;QACf,eAAe,EAAE,IAAI;QACrB,UAAU,EAAE,CAAC;QACb,KAAK,EAAE,IAAI;QACX,UAAU,EAAE,GAAG;KAChB,CAAC,CAAA;IACF,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IAC5C,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;KAC5B;AACH,CAAC,CAAA;AAED,kBAAe,cAAc,CAAA"}