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"
|
"license": "ISC"
|
||||||
},
|
},
|
||||||
"node_modules/chromium-bidi": {
|
"node_modules/chromium-bidi": {
|
||||||
"version": "0.4.6",
|
"version": "0.4.7",
|
||||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.6.tgz",
|
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.7.tgz",
|
||||||
"integrity": "sha512-TQOkWRaLI/IWvoP8XC+7jO4uHTIiAUiklXU1T0qszlUFEai9LgKXIBXy3pOS3EnQZ3bQtMbKUPkug0fTAEHCSw==",
|
"integrity": "sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"mitt": "3.0.0"
|
"mitt": "3.0.0"
|
||||||
},
|
},
|
||||||
@ -9276,7 +9276,7 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@puppeteer/browsers": "0.5.0",
|
"@puppeteer/browsers": "0.5.0",
|
||||||
"chromium-bidi": "0.4.6",
|
"chromium-bidi": "0.4.7",
|
||||||
"cross-fetch": "3.1.5",
|
"cross-fetch": "3.1.5",
|
||||||
"debug": "4.3.4",
|
"debug": "4.3.4",
|
||||||
"devtools-protocol": "0.0.1107588",
|
"devtools-protocol": "0.0.1107588",
|
||||||
@ -11109,9 +11109,9 @@
|
|||||||
"version": "1.1.4"
|
"version": "1.1.4"
|
||||||
},
|
},
|
||||||
"chromium-bidi": {
|
"chromium-bidi": {
|
||||||
"version": "0.4.6",
|
"version": "0.4.7",
|
||||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.6.tgz",
|
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.7.tgz",
|
||||||
"integrity": "sha512-TQOkWRaLI/IWvoP8XC+7jO4uHTIiAUiklXU1T0qszlUFEai9LgKXIBXy3pOS3EnQZ3bQtMbKUPkug0fTAEHCSw==",
|
"integrity": "sha512-6+mJuFXwTMU6I3vYLs6IL8A1DyQTPjCfIL971X0aMPVGRbGnNfl6i6Cl0NMbxi2bRYLGESt9T2ZIMRM5PAEcIQ==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"mitt": "3.0.0"
|
"mitt": "3.0.0"
|
||||||
}
|
}
|
||||||
@ -14101,7 +14101,7 @@
|
|||||||
"version": "file:packages/puppeteer-core",
|
"version": "file:packages/puppeteer-core",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@puppeteer/browsers": "0.5.0",
|
"@puppeteer/browsers": "0.5.0",
|
||||||
"chromium-bidi": "0.4.6",
|
"chromium-bidi": "0.4.7",
|
||||||
"cross-fetch": "3.1.5",
|
"cross-fetch": "3.1.5",
|
||||||
"debug": "4.3.4",
|
"debug": "4.3.4",
|
||||||
"devtools-protocol": "0.0.1107588",
|
"devtools-protocol": "0.0.1107588",
|
||||||
|
@ -132,7 +132,7 @@
|
|||||||
"author": "The Chromium Authors",
|
"author": "The Chromium Authors",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromium-bidi": "0.4.6",
|
"chromium-bidi": "0.4.7",
|
||||||
"cross-fetch": "3.1.5",
|
"cross-fetch": "3.1.5",
|
||||||
"debug": "4.3.4",
|
"debug": "4.3.4",
|
||||||
"devtools-protocol": "0.0.1107588",
|
"devtools-protocol": "0.0.1107588",
|
||||||
|
@ -106,9 +106,10 @@ class CDPConnectionAdapter {
|
|||||||
*
|
*
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
class CDPClientAdapter<
|
class CDPClientAdapter<T extends Pick<CDPPPtrConnection, 'send' | 'on' | 'off'>>
|
||||||
T extends Pick<CDPPPtrConnection, 'send' | 'on' | 'off'>
|
extends BidiMapper.EventEmitter<CdpEvents>
|
||||||
> extends BidiMapper.EventEmitter<CdpEvents> {
|
implements BidiMapper.CdpClient
|
||||||
|
{
|
||||||
#closed = false;
|
#closed = false;
|
||||||
#client: T;
|
#client: T;
|
||||||
|
|
||||||
@ -157,17 +158,20 @@ class NoOpTransport
|
|||||||
extends BidiMapper.EventEmitter<any>
|
extends BidiMapper.EventEmitter<any>
|
||||||
implements BidiMapper.BidiTransport
|
implements BidiMapper.BidiTransport
|
||||||
{
|
{
|
||||||
#onMessage: (message: Bidi.Message.RawCommandRequest) => Promise<void> =
|
#onMessage: (
|
||||||
async (_m: Bidi.Message.RawCommandRequest): Promise<void> => {
|
message: Bidi.Message.RawCommandRequest
|
||||||
return;
|
) => Promise<void> | void = async (
|
||||||
};
|
_m: Bidi.Message.RawCommandRequest
|
||||||
|
): Promise<void> => {
|
||||||
|
return;
|
||||||
|
};
|
||||||
|
|
||||||
emitMessage(message: Bidi.Message.RawCommandRequest) {
|
emitMessage(message: Bidi.Message.RawCommandRequest) {
|
||||||
this.#onMessage(message);
|
this.#onMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
setOnMessage(
|
setOnMessage(
|
||||||
onMessage: (message: Bidi.Message.RawCommandRequest) => Promise<void>
|
onMessage: (message: Bidi.Message.RawCommandRequest) => Promise<void> | void
|
||||||
): void {
|
): void {
|
||||||
this.#onMessage = onMessage;
|
this.#onMessage = onMessage;
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,8 @@
|
|||||||
"PUPPETEER_PRODUCT": "firefox"
|
"PUPPETEER_PRODUCT": "firefox"
|
||||||
},
|
},
|
||||||
"headless": {
|
"headless": {
|
||||||
"HEADLESS": "true"
|
"HEADLESS": "true",
|
||||||
|
"PUPPETEER_LOGLEVEL": "silent"
|
||||||
},
|
},
|
||||||
"headful": {
|
"headful": {
|
||||||
"HEADLESS": "false"
|
"HEADLESS": "false"
|
||||||
|
Loading…
Reference in New Issue
Block a user