From 1175fe98c17bd3479e361305ec546ac501af2340 Mon Sep 17 00:00:00 2001 From: jrandolf <101637635+jrandolf@users.noreply.github.com> Date: Wed, 28 Jun 2023 13:52:50 +0200 Subject: [PATCH] chore: update code for chromium-bidi update (#10467) --- packages/puppeteer-core/src/common/bidi/Browser.ts | 2 +- packages/puppeteer-core/src/common/bidi/Connection.ts | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/puppeteer-core/src/common/bidi/Browser.ts b/packages/puppeteer-core/src/common/bidi/Browser.ts index aee0689802a..8bde7856d9b 100644 --- a/packages/puppeteer-core/src/common/bidi/Browser.ts +++ b/packages/puppeteer-core/src/common/bidi/Browser.ts @@ -41,7 +41,7 @@ export class Browser extends BrowserBase { 'network', 'log', ]; - static readonly subscribeCdpEvents: Bidi.CDP.EventNames[] = [ + static readonly subscribeCdpEvents: Bidi.Cdp.EventNames[] = [ // Coverage 'cdp.Debugger.scriptParsed', 'cdp.CSS.styleSheetAdded', diff --git a/packages/puppeteer-core/src/common/bidi/Connection.ts b/packages/puppeteer-core/src/common/bidi/Connection.ts index b7e1290adda..b45f16afdff 100644 --- a/packages/puppeteer-core/src/common/bidi/Connection.ts +++ b/packages/puppeteer-core/src/common/bidi/Connection.ts @@ -136,12 +136,12 @@ interface Commands { returnType: Bidi.Message.EmptyResult; }; 'cdp.sendCommand': { - params: Bidi.CDP.SendCommandParams; - returnType: Bidi.CDP.SendCommandResult; + params: Bidi.Cdp.SendCommandParams; + returnType: Bidi.Cdp.SendCommandResult; }; 'cdp.getSession': { - params: Bidi.CDP.GetSessionParams; - returnType: Bidi.CDP.GetSessionResult; + params: Bidi.Cdp.GetSessionParams; + returnType: Bidi.Cdp.GetSessionResult; }; } @@ -285,6 +285,6 @@ function createProtocolError(object: Bidi.Message.ErrorResult): string { function isCDPEvent( event: Bidi.Message.EventMessage -): event is Bidi.CDP.EventReceivedEvent { +): event is Bidi.Cdp.EventReceivedEvent { return event.method.startsWith('cdp.'); }