webdriver-bidi-protocol 0.0.5 → 0.0.6

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.
@@ -24,22 +24,20 @@ jobs:
24
24
  uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
25
25
  with:
26
26
  fetch-depth: 2
27
+ ref: ${{ github.head_ref }}
28
+ token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
27
29
  - name: Install cddlconv
28
30
  run: cargo install cddlconv@0.1.5
29
31
  - name: Install dependencies
30
32
  run: npm ci
31
33
  - name: Build and test
32
34
  run: npm test
33
- - id: check_changes
34
- run: |
35
- if [[ -n $(git status --porcelain) ]]; then
36
- echo "changes=true" >> "$GITHUB_OUTPUT";
37
- fi
38
35
  - name: Commit and push changes
39
- if: contains(github.event.pull_request.labels.*.name, 'commit-updates') && steps.check_changes.outputs.changes == 'true'
40
- run: |
41
- git config --global user.name 'browser-automation-bot'
42
- git config --global user.email '133232582+browser-automation-bot@users.noreply.github.com'
43
- git add . --all
44
- git commit -m 'chore: commit updated files' --no-verify
45
- git push
36
+ if: contains(github.event.pull_request.labels.*.name, 'commit-updates')
37
+ uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # 5.0.1
38
+ with:
39
+ commit_message: "fix: generate files"
40
+ commit_options: -n --signoff
41
+ commit_user_name: Browser Automation Bot
42
+ commit_user_email: browser-automation-bot@google.com
43
+ commit_author: Browser Automation Bot <browser-automation-bot@google.com>
@@ -18,4 +18,4 @@ jobs:
18
18
  token: ${{ secrets.BROWSER_AUTOMATION_BOT_TOKEN }}
19
19
  target-branch: main
20
20
  config-file: release-please-config.json
21
- manifest-file: .release-please-manifest.json
21
+ manifest-file: .release-please-manifest.json
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.0.5"
2
+ ".": "0.0.6"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.6](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.0.5...webdriver-bidi-protocol-v0.0.6) (2024-07-02)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * bump specs/webdriver-bidi from `62b8dfe` to `0c366b0` ([#25](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/issues/25)) ([e6da243](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/commit/e6da2439e38f2c403319ce1dbed16c9b8029667d))
9
+
3
10
  ## [0.0.5](https://github.com/GoogleChromeLabs/webdriver-bidi-protocol/compare/webdriver-bidi-protocol-v0.0.4...webdriver-bidi-protocol-v0.0.5) (2024-06-28)
4
11
 
5
12
 
package/out/gen/main.d.ts CHANGED
@@ -150,13 +150,6 @@ export declare namespace Session {
150
150
  proxyType: 'system';
151
151
  } & Extensible;
152
152
  }
153
- export declare namespace Session {
154
- const enum UserPromptHandlerType {
155
- Accept = 'accept',
156
- Dismiss = 'dismiss',
157
- Ignore = 'ignore',
158
- }
159
- }
160
153
  export declare namespace Session {
161
154
  type UserPromptHandler = {
162
155
  alert?: Session.UserPromptHandlerType;
@@ -166,6 +159,13 @@ export declare namespace Session {
166
159
  prompt?: Session.UserPromptHandlerType;
167
160
  };
168
161
  }
162
+ export declare namespace Session {
163
+ const enum UserPromptHandlerType {
164
+ Accept = 'accept',
165
+ Dismiss = 'dismiss',
166
+ Ignore = 'ignore',
167
+ }
168
+ }
169
169
  export declare namespace Session {
170
170
  type SubscriptionRequest = {
171
171
  events: [string, ...string[]];
@@ -782,7 +782,7 @@ export declare namespace BrowsingContext {
782
782
  export declare namespace BrowsingContext {
783
783
  type UserPromptOpenedParameters = {
784
784
  context: BrowsingContext.BrowsingContext;
785
- handler: 'accept' | 'dismiss' | 'ignore';
785
+ handler: Session.UserPromptHandlerType;
786
786
  message: string;
787
787
  type: BrowsingContext.UserPromptType;
788
788
  defaultValue?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webdriver-bidi-protocol",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",
package/src/gen/main.ts CHANGED
@@ -152,13 +152,6 @@ export namespace Session {
152
152
  proxyType: 'system';
153
153
  } & Extensible;
154
154
  }
155
- export namespace Session {
156
- export const enum UserPromptHandlerType {
157
- Accept = 'accept',
158
- Dismiss = 'dismiss',
159
- Ignore = 'ignore',
160
- }
161
- }
162
155
  export namespace Session {
163
156
  export type UserPromptHandler = {
164
157
  alert?: Session.UserPromptHandlerType;
@@ -168,6 +161,13 @@ export namespace Session {
168
161
  prompt?: Session.UserPromptHandlerType;
169
162
  };
170
163
  }
164
+ export namespace Session {
165
+ export const enum UserPromptHandlerType {
166
+ Accept = 'accept',
167
+ Dismiss = 'dismiss',
168
+ Ignore = 'ignore',
169
+ }
170
+ }
171
171
  export namespace Session {
172
172
  export type SubscriptionRequest = {
173
173
  events: [string, ...string[]];
@@ -784,7 +784,7 @@ export namespace BrowsingContext {
784
784
  export namespace BrowsingContext {
785
785
  export type UserPromptOpenedParameters = {
786
786
  context: BrowsingContext.BrowsingContext;
787
- handler: 'accept' | 'dismiss' | 'ignore';
787
+ handler: Session.UserPromptHandlerType;
788
788
  message: string;
789
789
  type: BrowsingContext.UserPromptType;
790
790
  defaultValue?: string;
package/tools/build.sh CHANGED
@@ -18,6 +18,8 @@ cddlconv specs/permissions/all.cddl > src/gen/permissions.ts
18
18
  (cd specs/webdriver-bidi && git reset --hard HEAD && git clean -fd)
19
19
  (cd specs/permissions && git reset --hard HEAD && git clean -fd)
20
20
 
21
+ git submodule deinit --all
22
+
21
23
  npx tsc -p tsconfig.json
22
24
  npx tsd
23
25
  npm run format