Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wct-sauce

Package Overview
Dependencies
Maintainers
9
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wct-sauce - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

.github/CODEOWNERS

5

CHANGELOG.md
# 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 @@

3

lib/plugin.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc