Comparing version 2.5.1 to 2.6.0
# Changes | ||
## 2.6.0 | ||
- Default `sauceJobName` to the name property in cwd `package.json` | ||
## 2.5.1 | ||
@@ -4,0 +8,0 @@ |
@@ -8,2 +8,3 @@ /* | ||
*/ | ||
/*jslint stupid: true*/ | ||
'use strict'; | ||
@@ -23,5 +24,4 @@ | ||
function loadOptions(fileName, key, options) { | ||
/*jslint stupid: true*/ | ||
if (fs.existsSync(fileName)) { | ||
var overrides = JSON.parse(fs.readFileSync(fileName).toString()); | ||
var overrides = JSON.parse(fs.readFileSync(fileName, 'utf8')); | ||
if (key) { | ||
@@ -60,2 +60,6 @@ overrides = overrides[key]; | ||
options.port = 80; | ||
if (!options.sauceJobName && fs.existsSync('package.json')) { | ||
var packageJson = JSON.parse(fs.readFileSync('package.json', 'utf8')); | ||
options.sauceJobName = packageJson.name; | ||
} | ||
} | ||
@@ -62,0 +66,0 @@ |
{ | ||
"name": "min-wd", | ||
"version": "2.5.1", | ||
"version": "2.6.0", | ||
"description": "Minimal WebDriver that pipes stdin to browsers", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -143,3 +143,4 @@ # Minimal WebDriver | ||
- `sauceJobName` sets a custom name for the SauceLabs job. | ||
- `sauceJobName` sets a custom name for the SauceLabs job. If a `package.json` | ||
file exists in the current directory, this defaults to the package name. | ||
- `BUILD_VAR` sets the environment variable name that contains a build number | ||
@@ -146,0 +147,0 @@ to set, e.g. `TRAVIS_BUILD_NUMBER`. |
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
22211
518
199