@a11y-oracle/cdp-types 1.0.0
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.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/lib/types.d.ts +29 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +7 -0
- package/package.json +46 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module @a11y-oracle/cdp-types
|
|
3
|
+
*
|
|
4
|
+
* Shared Chrome DevTools Protocol type definitions for the
|
|
5
|
+
* A11y-Oracle engine library family.
|
|
6
|
+
*
|
|
7
|
+
* @packageDocumentation
|
|
8
|
+
*/
|
|
9
|
+
export type { CDPSessionLike } from './lib/types.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module types
|
|
3
|
+
*
|
|
4
|
+
* Shared Chrome DevTools Protocol type definitions used across
|
|
5
|
+
* all A11y-Oracle engine libraries.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Minimal interface for a Chrome DevTools Protocol session.
|
|
9
|
+
*
|
|
10
|
+
* This is the abstraction boundary between the engine libraries and
|
|
11
|
+
* framework plugins. Engine libraries never import Playwright or
|
|
12
|
+
* Cypress — they only depend on this interface.
|
|
13
|
+
*
|
|
14
|
+
* Both Playwright's `CDPSession` and `chrome-remote-interface` clients
|
|
15
|
+
* are compatible with this interface.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typescript
|
|
19
|
+
* // Playwright
|
|
20
|
+
* const cdp: CDPSessionLike = await page.context().newCDPSession(page);
|
|
21
|
+
*
|
|
22
|
+
* // chrome-remote-interface
|
|
23
|
+
* const cdp: CDPSessionLike = await CDP({ port: 9222 });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export interface CDPSessionLike {
|
|
27
|
+
send(method: string, params?: Record<string, unknown>): Promise<unknown>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/lib/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1E"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@a11y-oracle/cdp-types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Shared CDPSessionLike interface for framework-agnostic Chrome DevTools Protocol access",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "a11y-oracle",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/a11y-oracle/a11y-oracle.git",
|
|
10
|
+
"directory": "libs/cdp-types"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/a11y-oracle/a11y-oracle/issues"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/a11y-oracle/a11y-oracle/tree/main/libs/cdp-types",
|
|
16
|
+
"keywords": [
|
|
17
|
+
"accessibility",
|
|
18
|
+
"a11y",
|
|
19
|
+
"cdp",
|
|
20
|
+
"chrome-devtools-protocol",
|
|
21
|
+
"wcag",
|
|
22
|
+
"testing"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"type": "module",
|
|
28
|
+
"main": "./dist/index.js",
|
|
29
|
+
"module": "./dist/index.js",
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"exports": {
|
|
32
|
+
"./package.json": "./package.json",
|
|
33
|
+
".": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"import": "./dist/index.js",
|
|
36
|
+
"default": "./dist/index.js"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"files": [
|
|
40
|
+
"dist",
|
|
41
|
+
"!**/*.tsbuildinfo"
|
|
42
|
+
],
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"tslib": "^2.3.0"
|
|
45
|
+
}
|
|
46
|
+
}
|