mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: bump BiDi Mapper to latest (#10060)
This commit is contained in:
parent
e5d6864056
commit
513f658989
16
package-lock.json
generated
16
package-lock.json
generated
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -51,7 +51,8 @@
|
||||
"PUPPETEER_PRODUCT": "firefox"
|
||||
},
|
||||
"headless": {
|
||||
"HEADLESS": "true"
|
||||
"HEADLESS": "true",
|
||||
"PUPPETEER_LOGLEVEL": "silent"
|
||||
},
|
||||
"headful": {
|
||||
"HEADLESS": "false"
|
||||
|
Loading…
Reference in New Issue
Block a user