chromedriver 121.0.0 → 121.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/install.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -69,7 +69,7 @@ how these urls work.
|
|
|
69
69
|
|
|
70
70
|
Npm config:
|
|
71
71
|
For metadata use `chromedriver_cdnurl`. The default is `https://googlechromelabs.github.io`.
|
|
72
|
-
For binaries use `chromedriver_cdnbinariesurl`. The default is `https://
|
|
72
|
+
For binaries use `chromedriver_cdnbinariesurl`. The default is `https://storage.googleapis.com/chrome-for-testing-public`.
|
|
73
73
|
|
|
74
74
|
```shell
|
|
75
75
|
npm install chromedriver --chromedriver_cdnurl=https://npmmirror.com/metadata --chromedriver_cdnbinariesurl=https://npmmirror.com/binaries
|
package/install.js
CHANGED
|
@@ -63,7 +63,7 @@ if (skipDownload) {
|
|
|
63
63
|
const chromedriverIsAvailable = await verifyIfChromedriverIsAvailableAndHasCorrectVersion(chromedriverVersion, chromedriverBinaryFilePath);
|
|
64
64
|
if (!chromedriverIsAvailable) {
|
|
65
65
|
console.log('Current existing ChromeDriver binary is unavailable, proceeding with download and extraction.');
|
|
66
|
-
const cdnBinariesUrl = (process.env.npm_config_chromedriver_cdnbinariesurl || process.env.CHROMEDRIVER_CDNBINARIESURL || 'https://
|
|
66
|
+
const cdnBinariesUrl = (process.env.npm_config_chromedriver_cdnbinariesurl || process.env.CHROMEDRIVER_CDNBINARIESURL || 'https://storage.googleapis.com/chrome-for-testing-public').replace(/\/+$/, '');
|
|
67
67
|
downloadedFile = await downloadFile(useLegacyMethod ? legacyCdnUrl : cdnBinariesUrl, useLegacyMethod, downloadedFile, chromedriverVersion, platform);
|
|
68
68
|
await extractDownload(extractDirectory, chromedriverBinaryFilePath, downloadedFile);
|
|
69
69
|
}
|