chromedriver
Advanced tools
Comparing version 97.0.2 to 97.0.3
@@ -36,2 +36,3 @@ 'use strict'; | ||
const detect_chromedriver_version = process.env.npm_config_detect_chromedriver_version || process.env.DETECT_CHROMEDRIVER_VERSION; | ||
const include_chromium = (process.env.npm_config_include_chromium || process.env.INCLUDE_CHROMIUM) === 'true'; | ||
let chromedriver_version = process.env.npm_config_chromedriver_version || process.env.CHROMEDRIVER_VERSION || helper.version; | ||
@@ -45,3 +46,3 @@ let chromedriverBinaryFilePath; | ||
// Refer http://chromedriver.chromium.org/downloads/version-selection | ||
const chromeVersion = await getChromeVersion(); | ||
const chromeVersion = await getChromeVersion(include_chromium); | ||
console.log("Your Chrome version is " + chromeVersion); | ||
@@ -48,0 +49,0 @@ const chromeVersionWithoutPatch = /^(.*?)\.\d+$/.exec(chromeVersion)[1]; |
{ | ||
"name": "chromedriver", | ||
"version": "97.0.2", | ||
"version": "97.0.3", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "chromedriver", |
@@ -270,2 +270,24 @@ # ChromeDriver | ||
## Include Chromium | ||
If you don't have Chrome installed, you can check for Chromium version instead by setting the argument `include_chromium` to `true`. | ||
```shell | ||
npm install chromedriver --include_chromium | ||
``` | ||
Or add property into your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file. | ||
``` | ||
include_chromium=true | ||
``` | ||
Another option is to use environment variable `INCLUDE_CHROMIUM`. | ||
```shell | ||
INCLUDE_CHROMIUM=true npm install chromedriver | ||
``` | ||
**Note:** The property `INCLUDE_CHROMIUM` is ignored if the property `DETECT_CHROMEDRIVER_VERSION` is not used. | ||
## A Note on chromedriver | ||
@@ -272,0 +294,0 @@ |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
36667
368
328
28