Skip to content

Commit

Permalink
chore: bump BiDi Mapper to latest (#10060)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Apr 24, 2023
1 parent e5d6864 commit 513f658
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 18 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/puppeteer-core/package.json
Expand Up @@ -132,7 +132,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"dependencies": {
"chromium-bidi": "0.4.6",
"chromium-bidi": "0.4.7",
"cross-fetch": "3.1.5",
"debug": "4.3.4",
"devtools-protocol": "0.0.1107588",
Expand Down
20 changes: 12 additions & 8 deletions packages/puppeteer-core/src/common/bidi/BidiOverCDP.ts
Expand Up @@ -106,9 +106,10 @@ class CDPConnectionAdapter {
*
* @internal
*/
class CDPClientAdapter<
T extends Pick<CDPPPtrConnection, 'send' | 'on' | 'off'>
> extends BidiMapper.EventEmitter<CdpEvents> {
class CDPClientAdapter<T extends Pick<CDPPPtrConnection, 'send' | 'on' | 'off'>>
extends BidiMapper.EventEmitter<CdpEvents>
implements BidiMapper.CdpClient
{
#closed = false;
#client: T;

Expand Down Expand Up @@ -157,17 +158,20 @@ class NoOpTransport
extends BidiMapper.EventEmitter<any>
implements BidiMapper.BidiTransport
{
#onMessage: (message: Bidi.Message.RawCommandRequest) => Promise<void> =
async (_m: Bidi.Message.RawCommandRequest): Promise<void> => {
return;
};
#onMessage: (
message: Bidi.Message.RawCommandRequest
) => Promise<void> | void = async (
_m: Bidi.Message.RawCommandRequest
): Promise<void> => {
return;
};

emitMessage(message: Bidi.Message.RawCommandRequest) {
this.#onMessage(message);
}

setOnMessage(
onMessage: (message: Bidi.Message.RawCommandRequest) => Promise<void>
onMessage: (message: Bidi.Message.RawCommandRequest) => Promise<void> | void
): void {
this.#onMessage = onMessage;
}
Expand Down
3 changes: 2 additions & 1 deletion test/TestSuites.json
Expand Up @@ -51,7 +51,8 @@
"PUPPETEER_PRODUCT": "firefox"
},
"headless": {
"HEADLESS": "true"
"HEADLESS": "true",
"PUPPETEER_LOGLEVEL": "silent"
},
"headful": {
"HEADLESS": "false"
Expand Down

0 comments on commit 513f658

Please sign in to comment.