chore: bump BiDi Mapper to latest (#10060)

This commit is contained in:
Nikolay Vitkov 2023-04-24 08:25:39 +02:00 committed by GitHub
parent e5d6864056
commit 513f658989
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 18 deletions

16
package-lock.json generated
View File

@ -2574,9 +2574,9 @@
"license": "ISC"
},
"node_modules/chromium-bidi": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.6.tgz",
"integrity": "sha512-TQOkWRaLI/IWvoP8XC+7jO4uHTIiAUiklXU1T0qszlUFEai9LgKXIBXy3pOS3EnQZ3bQtMbKUPkug0fTAEHCSw==",
"version": "0.4.7",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.7.tgz",
"integrity": "sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==",
"dependencies": {
"mitt": "3.0.0"
},
@ -9276,7 +9276,7 @@
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "0.5.0",
"chromium-bidi": "0.4.6",
"chromium-bidi": "0.4.7",
"cross-fetch": "3.1.5",
"debug": "4.3.4",
"devtools-protocol": "0.0.1107588",
@ -11109,9 +11109,9 @@
"version": "1.1.4"
},
"chromium-bidi": {
"version": "0.4.6",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.6.tgz",
"integrity": "sha512-TQOkWRaLI/IWvoP8XC+7jO4uHTIiAUiklXU1T0qszlUFEai9LgKXIBXy3pOS3EnQZ3bQtMbKUPkug0fTAEHCSw==",
"version": "0.4.7",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.7.tgz",
"integrity": "sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==",
"requires": {
"mitt": "3.0.0"
}
@ -14101,7 +14101,7 @@
"version": "file:packages/puppeteer-core",
"requires": {
"@puppeteer/browsers": "0.5.0",
"chromium-bidi": "0.4.6",
"chromium-bidi": "0.4.7",
"cross-fetch": "3.1.5",
"debug": "4.3.4",
"devtools-protocol": "0.0.1107588",

View File

@ -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",

View File

@ -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;
@ -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;
}

View File

@ -51,7 +51,8 @@
"PUPPETEER_PRODUCT": "firefox"
},
"headless": {
"HEADLESS": "true"
"HEADLESS": "true",
"PUPPETEER_LOGLEVEL": "silent"
},
"headful": {
"HEADLESS": "false"