chromedriver
Advanced tools
Comparing version 117.0.0 to 117.0.1
@@ -57,3 +57,3 @@ 'use strict'; | ||
const platform = getPlatform(chromedriverVersion); | ||
const downloadedFile = getDownloadFilePath(useLegacyMethod, tmpPath, platform); | ||
let downloadedFile = getDownloadFilePath(useLegacyMethod, tmpPath, platform); | ||
if (!useLegacyMethod) { | ||
@@ -68,3 +68,3 @@ tmpPath = path.join(tmpPath, path.basename(downloadedFile, path.extname(downloadedFile))); | ||
const cdnBinariesUrl = (process.env.npm_config_chromedriver_cdnbinariesurl || process.env.CHROMEDRIVER_CDNBINARIESURL || 'https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing').replace(/\/+$/, ''); | ||
await downloadFile(useLegacyMethod ? legacyCdnUrl : cdnBinariesUrl, useLegacyMethod, downloadedFile, chromedriverVersion, platform, detectChromedriverVersion); | ||
downloadedFile = await downloadFile(useLegacyMethod ? legacyCdnUrl : cdnBinariesUrl, useLegacyMethod, downloadedFile, chromedriverVersion, platform); | ||
await extractDownload(extractDirectory, chromedriverBinaryFilePath, downloadedFile); | ||
@@ -120,7 +120,6 @@ } | ||
* @param {string} platform | ||
* @param {boolean} detectChromedriverVersion | ||
*/ | ||
async function downloadFile(cdnUrl, useLegacyDownloadMethod, downloadedFile, chromedriverVersion, platform, detectChromedriverVersion) { | ||
async function downloadFile(cdnUrl, useLegacyDownloadMethod, downloadedFile, chromedriverVersion, platform) { | ||
const configuredfilePath = process.env.npm_config_chromedriver_filepath || process.env.CHROMEDRIVER_FILEPATH; | ||
if (detectChromedriverVersion && configuredfilePath) { | ||
if (configuredfilePath) { | ||
console.log('Using file: ', configuredfilePath); | ||
@@ -139,2 +138,3 @@ return configuredfilePath; | ||
} | ||
return downloadedFile; | ||
} | ||
@@ -141,0 +141,0 @@ } |
{ | ||
"name": "chromedriver", | ||
"version": "117.0.0", | ||
"version": "117.0.1", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "chromedriver", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43332