Skip to content

Commit

Permalink
fix: bump chromium-bidi to a version that does not declare mitt as a …
Browse files Browse the repository at this point in the history
…peer dependency (#9701)
  • Loading branch information
OrKoN committed Feb 17, 2023
1 parent 0f0401e commit 82916c1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 29 deletions.
38 changes: 17 additions & 21 deletions package-lock.json

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

7 changes: 2 additions & 5 deletions packages/puppeteer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"dependencies": {
"chromium-bidi": "0.4.4",
"cross-fetch": "3.1.5",
"debug": "4.3.4",
"devtools-protocol": "0.0.1094867",
Expand All @@ -143,15 +144,11 @@
"ws": "8.11.0"
},
"peerDependencies": {
"typescript": ">= 4.7.4",
"chromium-bidi": "0.4.3"
"typescript": ">= 4.7.4"
},
"peerDependenciesMeta": {
"typescript": {
"optional": true
},
"chromium-bidi": {
"optional": true
}
}
}
6 changes: 3 additions & 3 deletions packages/puppeteer-core/src/common/bidi/BidiOverCDP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ class CDPClientAdapter<
this.#client.on('*', this.#forwardMessage as Handler<any>);
}

#forwardMessage = (
method: keyof ProtocolMapping.Events,
event: ProtocolMapping.Events[keyof ProtocolMapping.Events]
#forwardMessage = <T extends keyof CdpEvents>(
method: T,
event: CdpEvents[T]
) => {
this.emit(method, event);
};
Expand Down

0 comments on commit 82916c1

Please sign in to comment.