Comparing version 2.0.1 to 2.0.2
# Changelog | ||
<!-- ## Unreleased --> | ||
<!-- Add new, unreleased changes here. --> | ||
## 2.0.2 - 2018-06-19 | ||
- Moved isTravisSauceConnectRunning function from lib/sauce.js to lib/travis.js. | ||
## 2.0.1 - 2018-04-27 | ||
@@ -6,0 +11,0 @@ |
@@ -15,2 +15,3 @@ /** | ||
var sauce = require('./sauce'); | ||
var travis = require('./travis'); | ||
@@ -116,3 +117,3 @@ /** WCT plugin that enables support for remote browsers via Sauce Labs. */ | ||
}); | ||
if (sauce.isTravisSauceConnectRunning()) { | ||
if (travis.isTravisSauceConnectRunning()) { | ||
_.defaults(options, { | ||
@@ -119,0 +120,0 @@ // Under Travis CI, the tunnel id is $TRAVIS_JOB_NUMBER: https://docs.travis-ci.com/user/sauce-connect |
@@ -13,3 +13,2 @@ /** | ||
var cleankill = require('cleankill'); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
@@ -68,26 +67,4 @@ var sauceConnect = require('sauce-connect-launcher'); | ||
function isTravisSauceConnectRunning() { | ||
// https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables | ||
if (!process.env.TRAVIS) { | ||
return false; | ||
} | ||
try { | ||
// when using the travis sauce_connect addon, the file | ||
// /home/travis/sauce-connect.log is written to with the sauce logs. | ||
// If this file exists, then the sauce_connect addon is in use | ||
// If fs.statSync throws, then the file does not exist | ||
var travisScLog = path.join(process.env.HOME, 'sauce-connect.log'); | ||
if (fs.statSync(travisScLog)) { | ||
return true; | ||
} | ||
return false; | ||
} catch (e) { | ||
return false; | ||
} | ||
} | ||
module.exports = { | ||
startTunnel: startTunnel, | ||
isTravisSauceConnectRunning: isTravisSauceConnectRunning | ||
startTunnel: startTunnel | ||
}; |
{ | ||
"name": "wct-sauce", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "WCT plugin that enables support for sauce browsers via Sauce Labs", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -39,7 +39,7 @@ /** | ||
var sauce = require('../lib/sauce'); | ||
var travis = require('../lib/travis'); | ||
// don't download our own sauce connect binary if travis is running the | ||
// sauce_connect addon, or they explicitly opt out via an environment variable | ||
if (!(sauce.isTravisSauceConnectRunning() || process.env.SKIP_WCT_SAUCE_POSTINSTALL_DOWNLOAD)) { | ||
if (!(travis.isTravisSauceConnectRunning() || process.env.SKIP_WCT_SAUCE_POSTINSTALL_DOWNLOAD)) { | ||
console.log('Prefetching the Sauce Connect binary.'); | ||
@@ -46,0 +46,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
23672
14
536
1