chore(deps): Bump the dependencies group with 1 update (#11415)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Maksim Sadym <sadym@google.com>
Co-authored-by: Alex Rudenko <alexrudenko@chromium.org>
This commit is contained in:
dependabot[bot] 2023-11-20 09:56:29 +00:00 committed by GitHub
parent cd5c6820c1
commit 97b70eaad2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 18 deletions

28
package-lock.json generated
View File

@ -2987,6 +2987,18 @@
"node": ">=10"
}
},
"node_modules/chromium-bidi": {
"version": "0.5.0",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.5.0.tgz",
"integrity": "sha512-vkyKZsfk90Xa8eWif1dZcva9hEmogx6zTsM+RThUtlP0l2lDEqlWlBZklFb17dQ3dRXZiO52dV2szgHlLS06fA==",
"dependencies": {
"mitt": "3.0.1",
"urlpattern-polyfill": "9.0.0"
},
"peerDependencies": {
"devtools-protocol": "*"
}
},
"node_modules/ci-info": {
"version": "3.9.0",
"resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz",
@ -11958,7 +11970,7 @@
},
"packages/ng-schematics": {
"name": "@puppeteer/ng-schematics",
"version": "0.5.1",
"version": "0.5.2",
"license": "Apache-2.0",
"dependencies": {
"@angular-devkit/architect": "^0.1602.10",
@ -12002,7 +12014,7 @@
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "1.8.0",
"chromium-bidi": "0.4.34",
"chromium-bidi": "0.5.0",
"cross-fetch": "4.0.0",
"debug": "4.3.4",
"devtools-protocol": "0.0.1203626",
@ -12026,18 +12038,6 @@
"integrity": "sha512-2yrWpBk32tvV/JAd3HNHWuZn/VDN1P+72hWirHnvsvTGSqbANi+kSeuQR9yAHnbvaBvHDsoTdXV0Fe+iRtHLKA==",
"dev": true
},
"packages/puppeteer-core/node_modules/chromium-bidi": {
"version": "0.4.34",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.34.tgz",
"integrity": "sha512-IV0JZWcgS+OYmwmC9E05vu3puJfbg3WSfGP2RqydZ2BvxTlBUKc1YtRCIlmkhHef6scXmWtzVXq52tm2IX0Ptg==",
"dependencies": {
"mitt": "3.0.1",
"urlpattern-polyfill": "9.0.0"
},
"peerDependencies": {
"devtools-protocol": "*"
}
},
"packages/puppeteer/node_modules/@types/node": {
"version": "18.17.15",
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.17.15.tgz",

View File

@ -119,7 +119,7 @@
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "1.8.0",
"chromium-bidi": "0.4.34",
"chromium-bidi": "0.5.0",
"cross-fetch": "4.0.0",
"debug": "4.3.4",
"devtools-protocol": "0.0.1203626",

View File

@ -34,7 +34,10 @@ const bidiServerLogger = (prefix: string, ...args: unknown[]): void => {
* @internal
*/
export async function connectBidiOverCdp(
cdp: CdpConnection
cdp: CdpConnection,
// TODO: replace with `BidiMapper.MapperOptions`, once it's exported in
// https://github.com/puppeteer/puppeteer/pull/11415.
options: {acceptInsecureCerts: boolean}
): Promise<BidiConnection> {
const transportBiDi = new NoOpTransport();
const cdpConnectionAdapter = new CdpConnectionAdapter(cdp);
@ -62,6 +65,7 @@ export async function connectBidiOverCdp(
// TODO: most likely need a little bit of refactoring
cdpConnectionAdapter.browserClient(),
'',
options,
undefined,
bidiServerLogger
);

View File

@ -104,7 +104,9 @@ export async function _connectToBiDiOverCdpBrowser(
// TODO: use other options too.
const BiDi = await import(/* webpackIgnore: true */ '../bidi/bidi.js');
const bidiConnection = await BiDi.connectBidiOverCdp(connection);
const bidiConnection = await BiDi.connectBidiOverCdp(connection, {
acceptInsecureCerts: ignoreHTTPSErrors,
});
const bidiBrowser = await BiDi.BidiBrowser.create({
connection: bidiConnection,
closeCallback: () => {

View File

@ -324,7 +324,9 @@ export abstract class ProductLauncher {
): Promise<Browser> {
// TODO: use other options too.
const BiDi = await import(/* webpackIgnore: true */ '../bidi/bidi.js');
const bidiConnection = await BiDi.connectBidiOverCdp(connection);
const bidiConnection = await BiDi.connectBidiOverCdp(connection, {
acceptInsecureCerts: opts.ignoreHTTPSErrors ?? false,
});
return await BiDi.BidiBrowser.create({
connection: bidiConnection,
closeCallback,