chromedriver
Advanced tools
Comparing version 2.14.0 to 2.14.1
@@ -17,3 +17,6 @@ 'use strict' | ||
var libPath = path.join(__dirname, 'lib', 'chromedriver') | ||
var downloadUrl = (process.env.CHROMEDRIVER_CDNURL || 'http://chromedriver.storage.googleapis.com') + '/%s/chromedriver_%s.zip' | ||
var cdnUrl = process.env.npm_config_chromedriver_cdnurl || process.env.CHROMEDRIVER_CDNURL || 'http://chromedriver.storage.googleapis.com' | ||
// adapt http://chromedriver.storage.googleapis.com/ | ||
cdnUrl = cdnUrl.replace(/\/+$/, '') | ||
var downloadUrl = cdnUrl + '/%s/chromedriver_%s.zip' | ||
var platform = process.platform | ||
@@ -20,0 +23,0 @@ |
{ | ||
"name": "chromedriver", | ||
"version": "2.14.0", | ||
"version": "2.14.1", | ||
"keywords": ["chromedriver", "selenium"], | ||
@@ -5,0 +5,0 @@ "description": "ChromeDriver for Selenium", |
@@ -27,2 +27,23 @@ ChromeDriver | ||
### Custom binaries url | ||
To use a mirror of the ChromeDriver binaries use npm config property `chromedriver_cdnurl`. | ||
Default is `http://chromedriver.storage.googleapis.com`. | ||
```shell | ||
npm install chromedriver --chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver | ||
``` | ||
Or add property into your [`.npmrc`](https://docs.npmjs.com/files/npmrc) file. | ||
``` | ||
chromedriver_cdnurl=http://npm.taobao.org/mirrors/chromedriver | ||
``` | ||
Another option is to use PATH variable `CHROMEDRIVER_CDNURL`. | ||
```shell | ||
CHROMEDRIVER_CDNURL=http://npm.taobao.org/mirrors/chromedriver npm install chromedriver | ||
``` | ||
Running | ||
@@ -29,0 +50,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 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
10738
188
127
4