webdriver-bidi-protocol 0.1.1 → 0.1.2
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.
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: regenerate
|
|
2
|
+
|
|
3
|
+
# Declare default permissions as read only.
|
|
4
|
+
permissions: read-all
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
push:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
11
|
+
|
|
12
|
+
concurrency:
|
|
13
|
+
group: regenerate-${{ github.head_ref || github.run_id }}
|
|
14
|
+
cancel-in-progress: true
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
ci:
|
|
18
|
+
name: '[Required] Regenerate'
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- name: Check out repository
|
|
22
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
23
|
+
with:
|
|
24
|
+
fetch-depth: 2
|
|
25
|
+
- name: Install cddlconv
|
|
26
|
+
run: cargo install cddlconv@0.1.5
|
|
27
|
+
- name: Install dependencies
|
|
28
|
+
run: npm ci
|
|
29
|
+
- name: Build and test
|
|
30
|
+
run: npm test
|
|
31
|
+
- name: Create Pull Request
|
|
32
|
+
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
|
|
33
|
+
with:
|
|
34
|
+
token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
|
|
35
|
+
branch: regenerate
|
|
36
|
+
delete-branch: true
|
|
37
|
+
committer: Browser Automation Bot <browser-automation-bot@google.com>
|
|
38
|
+
author: Browser Automation Bot <browser-automation-bot@google.com>
|
|
39
|
+
commit-message: 'fix: re-generate types based on specifciation updates'
|
|
40
|
+
title: 'fix: re-generate types based on specifciation updates'
|
|
41
|
+
body: 'Automatically generated by https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/blob/main/.github/workflows/regenerate.yml'
|
|
42
|
+
push-to-fork: browser-automation-bot/webdriver-bidi-protocol
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.2](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.1...webdriver-bidi-protocol-v0.1.2) (2024-12-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* re-generate types based on specifciation updates ([#83](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/83)) ([ac66a29](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/ac66a29bc3396c2bdabb133d5dfb63fc2b029add))
|
|
9
|
+
|
|
3
10
|
## [0.1.1](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.1.0...webdriver-bidi-protocol-v0.1.1) (2024-12-03)
|
|
4
11
|
|
|
5
12
|
|
package/out/gen/main.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type CommandData =
|
|
|
24
24
|
| ScriptCommand
|
|
25
25
|
| SessionCommand
|
|
26
26
|
| StorageCommand
|
|
27
|
-
|
|
|
27
|
+
| WebExtensionCommand;
|
|
28
28
|
export type ResultData =
|
|
29
29
|
| BrowsingContextResult
|
|
30
30
|
| EmptyResult
|
|
@@ -32,7 +32,7 @@ export type ResultData =
|
|
|
32
32
|
| ScriptResult
|
|
33
33
|
| SessionResult
|
|
34
34
|
| StorageResult
|
|
35
|
-
|
|
|
35
|
+
| WebExtensionResult;
|
|
36
36
|
export type EmptyParams = Extensible;
|
|
37
37
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
38
38
|
export type ErrorResponse = {
|
|
@@ -2260,10 +2260,8 @@ export declare namespace Input {
|
|
|
2260
2260
|
files: [...string[]];
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
2263
|
-
export type
|
|
2264
|
-
|
|
2265
|
-
| WebExtension.Uninstall;
|
|
2266
|
-
export type WebExtensionsResult = WebExtension.InstallResult;
|
|
2263
|
+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2264
|
+
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2267
2265
|
export declare namespace WebExtension {
|
|
2268
2266
|
type Extension = string;
|
|
2269
2267
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webdriver-bidi-protocol",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"@types/node": "^22.5.2",
|
|
24
24
|
"gts": "^6.0.2",
|
|
25
25
|
"parse5": "^7.1.2",
|
|
26
|
-
"prettier": "3.4.
|
|
26
|
+
"prettier": "3.4.2",
|
|
27
27
|
"tsd": "0.31.2",
|
|
28
28
|
"typescript": "5.7.2"
|
|
29
29
|
}
|
package/src/gen/main.ts
CHANGED
|
@@ -24,7 +24,7 @@ export type CommandData =
|
|
|
24
24
|
| ScriptCommand
|
|
25
25
|
| SessionCommand
|
|
26
26
|
| StorageCommand
|
|
27
|
-
|
|
|
27
|
+
| WebExtensionCommand;
|
|
28
28
|
export type ResultData =
|
|
29
29
|
| BrowsingContextResult
|
|
30
30
|
| EmptyResult
|
|
@@ -32,7 +32,7 @@ export type ResultData =
|
|
|
32
32
|
| ScriptResult
|
|
33
33
|
| SessionResult
|
|
34
34
|
| StorageResult
|
|
35
|
-
|
|
|
35
|
+
| WebExtensionResult;
|
|
36
36
|
export type EmptyParams = Extensible;
|
|
37
37
|
export type Message = CommandResponse | ErrorResponse | Event;
|
|
38
38
|
export type ErrorResponse = {
|
|
@@ -2264,10 +2264,8 @@ export namespace Input {
|
|
|
2264
2264
|
files: [...string[]];
|
|
2265
2265
|
};
|
|
2266
2266
|
}
|
|
2267
|
-
export type
|
|
2268
|
-
|
|
2269
|
-
| WebExtension.Uninstall;
|
|
2270
|
-
export type WebExtensionsResult = WebExtension.InstallResult;
|
|
2267
|
+
export type WebExtensionCommand = WebExtension.Install | WebExtension.Uninstall;
|
|
2268
|
+
export type WebExtensionResult = WebExtension.InstallResult;
|
|
2271
2269
|
export namespace WebExtension {
|
|
2272
2270
|
export type Extension = string;
|
|
2273
2271
|
}
|
|
@@ -10,7 +10,7 @@ function sendCommand(command: Command) {}
|
|
|
10
10
|
function handleEvent(event: Event) {}
|
|
11
11
|
function sendCommandMultipleArgs<T extends keyof Commands>(
|
|
12
12
|
method: T,
|
|
13
|
-
params: Commands[T]['params']
|
|
13
|
+
params: Commands[T]['params'],
|
|
14
14
|
): {result: Commands[T]['returnType']} {
|
|
15
15
|
throw new Error('Not implemented');
|
|
16
16
|
}
|