fix: make chromium-bidi an opt peer dep (#9667)
This commit is contained in:
parent
eb138635d6
commit
c6054ac1a5
16
package-lock.json
generated
16
package-lock.json
generated
@ -2666,6 +2666,8 @@
|
|||||||
"version": "0.4.3",
|
"version": "0.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.3.tgz",
|
||||||
"integrity": "sha512-A40H1rdpJqkTdnGhnYDzMhtDdIbkXNFj2wgIfivMXL7LyHFDmBtv1hdyycDhnxtYunbPLDZtTs/n+ZT5j7Vnew==",
|
"integrity": "sha512-A40H1rdpJqkTdnGhnYDzMhtDdIbkXNFj2wgIfivMXL7LyHFDmBtv1hdyycDhnxtYunbPLDZtTs/n+ZT5j7Vnew==",
|
||||||
|
"optional": true,
|
||||||
|
"peer": true,
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"devtools-protocol": "*",
|
"devtools-protocol": "*",
|
||||||
"mitt": "*"
|
"mitt": "*"
|
||||||
@ -6038,7 +6040,8 @@
|
|||||||
"node_modules/mitt": {
|
"node_modules/mitt": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz",
|
||||||
"integrity": "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ=="
|
"integrity": "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==",
|
||||||
|
"devOptional": true
|
||||||
},
|
},
|
||||||
"node_modules/mkdirp-classic": {
|
"node_modules/mkdirp-classic": {
|
||||||
"version": "0.5.3",
|
"version": "0.5.3",
|
||||||
@ -8663,7 +8666,6 @@
|
|||||||
"version": "19.7.0",
|
"version": "19.7.0",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromium-bidi": "0.4.3",
|
|
||||||
"cross-fetch": "3.1.5",
|
"cross-fetch": "3.1.5",
|
||||||
"debug": "4.3.4",
|
"debug": "4.3.4",
|
||||||
"devtools-protocol": "0.0.1094867",
|
"devtools-protocol": "0.0.1094867",
|
||||||
@ -8679,9 +8681,13 @@
|
|||||||
"node": ">=14.1.0"
|
"node": ">=14.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
"chromium-bidi": "0.4.3",
|
||||||
"typescript": ">= 4.7.4"
|
"typescript": ">= 4.7.4"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
|
"chromium-bidi": {
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"optional": true
|
"optional": true
|
||||||
}
|
}
|
||||||
@ -10990,6 +10996,8 @@
|
|||||||
"version": "0.4.3",
|
"version": "0.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-0.4.3.tgz",
|
||||||
"integrity": "sha512-A40H1rdpJqkTdnGhnYDzMhtDdIbkXNFj2wgIfivMXL7LyHFDmBtv1hdyycDhnxtYunbPLDZtTs/n+ZT5j7Vnew==",
|
"integrity": "sha512-A40H1rdpJqkTdnGhnYDzMhtDdIbkXNFj2wgIfivMXL7LyHFDmBtv1hdyycDhnxtYunbPLDZtTs/n+ZT5j7Vnew==",
|
||||||
|
"optional": true,
|
||||||
|
"peer": true,
|
||||||
"requires": {}
|
"requires": {}
|
||||||
},
|
},
|
||||||
"cli-cursor": {
|
"cli-cursor": {
|
||||||
@ -13390,7 +13398,8 @@
|
|||||||
"mitt": {
|
"mitt": {
|
||||||
"version": "3.0.0",
|
"version": "3.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.0.tgz",
|
||||||
"integrity": "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ=="
|
"integrity": "sha512-7dX2/10ITVyqh4aOSVI9gdape+t9l2/8QxHrFmUXu4EEUpdlxl6RudZUPZoc+zuY2hk1j7XxVroIVIan/pD/SQ==",
|
||||||
|
"devOptional": true
|
||||||
},
|
},
|
||||||
"mkdirp-classic": {
|
"mkdirp-classic": {
|
||||||
"version": "0.5.3",
|
"version": "0.5.3",
|
||||||
@ -14091,7 +14100,6 @@
|
|||||||
"puppeteer-core": {
|
"puppeteer-core": {
|
||||||
"version": "file:packages/puppeteer-core",
|
"version": "file:packages/puppeteer-core",
|
||||||
"requires": {
|
"requires": {
|
||||||
"chromium-bidi": "0.4.3",
|
|
||||||
"cross-fetch": "3.1.5",
|
"cross-fetch": "3.1.5",
|
||||||
"debug": "4.3.4",
|
"debug": "4.3.4",
|
||||||
"devtools-protocol": "0.0.1094867",
|
"devtools-protocol": "0.0.1094867",
|
||||||
|
@ -131,7 +131,6 @@
|
|||||||
"author": "The Chromium Authors",
|
"author": "The Chromium Authors",
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chromium-bidi": "0.4.3",
|
|
||||||
"cross-fetch": "3.1.5",
|
"cross-fetch": "3.1.5",
|
||||||
"debug": "4.3.4",
|
"debug": "4.3.4",
|
||||||
"devtools-protocol": "0.0.1094867",
|
"devtools-protocol": "0.0.1094867",
|
||||||
@ -144,11 +143,15 @@
|
|||||||
"ws": "8.11.0"
|
"ws": "8.11.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": ">= 4.7.4"
|
"typescript": ">= 4.7.4",
|
||||||
|
"chromium-bidi": "0.4.3"
|
||||||
},
|
},
|
||||||
"peerDependenciesMeta": {
|
"peerDependenciesMeta": {
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"optional": true
|
"optional": true
|
||||||
|
},
|
||||||
|
"chromium-bidi": {
|
||||||
|
"optional": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -262,7 +262,9 @@ export class BrowserRunner {
|
|||||||
);
|
);
|
||||||
browserWSEndpoint += '/session';
|
browserWSEndpoint += '/session';
|
||||||
const transport = await WebSocketTransport.create(browserWSEndpoint);
|
const transport = await WebSocketTransport.create(browserWSEndpoint);
|
||||||
const BiDi = await import('../common/bidi/bidi.js');
|
const BiDi = await import(
|
||||||
|
/* webpackIgnore: true */ '../common/bidi/bidi.js'
|
||||||
|
);
|
||||||
return new BiDi.Connection(transport, slowMo);
|
return new BiDi.Connection(transport, slowMo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -129,7 +129,9 @@ export class ChromeLauncher extends ProductLauncher {
|
|||||||
|
|
||||||
if (protocol === 'webDriverBiDi') {
|
if (protocol === 'webDriverBiDi') {
|
||||||
try {
|
try {
|
||||||
const BiDi = await import('../common/bidi/bidi.js');
|
const BiDi = await import(
|
||||||
|
/* webpackIgnore: true */ '../common/bidi/bidi.js'
|
||||||
|
);
|
||||||
const bidiConnection = await BiDi.connectBidiOverCDP(connection);
|
const bidiConnection = await BiDi.connectBidiOverCDP(connection);
|
||||||
browser = await BiDi.Browser.create({
|
browser = await BiDi.Browser.create({
|
||||||
connection: bidiConnection,
|
connection: bidiConnection,
|
||||||
|
@ -131,7 +131,9 @@ export class FirefoxLauncher extends ProductLauncher {
|
|||||||
slowMo,
|
slowMo,
|
||||||
preferredRevision: this.puppeteer.browserRevision,
|
preferredRevision: this.puppeteer.browserRevision,
|
||||||
});
|
});
|
||||||
const BiDi = await import('../common/bidi/bidi.js');
|
const BiDi = await import(
|
||||||
|
/* webpackIgnore: true */ '../common/bidi/bidi.js'
|
||||||
|
);
|
||||||
browser = await BiDi.Browser.create({
|
browser = await BiDi.Browser.create({
|
||||||
connection,
|
connection,
|
||||||
closeCallback: runner.close.bind(runner),
|
closeCallback: runner.close.bind(runner),
|
||||||
|
Loading…
Reference in New Issue
Block a user