@nightwatch/browserstack
Advanced tools
Comparing version 0.1.2 to 0.1.3
const LocalTunnel = require('../src/local-tunnel'); | ||
const helper = require('../src/utils/helper'); | ||
@@ -12,2 +13,6 @@ const localTunnel = new LocalTunnel(); | ||
if (localTunnel._localTunnel && localTunnel._localTunnel.isRunning()) { | ||
if (!settings.desiredCapabilities['bstack:options']) { | ||
settings.desiredCapabilities['bstack:options'] = {}; | ||
} | ||
settings.desiredCapabilities['bstack:options'].local = true; | ||
@@ -28,3 +33,8 @@ // Adding envs to be updated at beforeChildProcess. | ||
beforeChildProcess(settings) { | ||
if (process.env.BROWSERSTACK_LOCAL_ENABLED.toString() === 'true') { | ||
if (!settings.desiredCapabilities['bstack:options']) { | ||
settings.desiredCapabilities['bstack:options'] = {}; | ||
} | ||
if (!helper.isUndefined(process.env.BROWSERSTACK_LOCAL_ENABLED) && process.env.BROWSERSTACK_LOCAL_ENABLED.toString() === 'true') { | ||
settings.desiredCapabilities['bstack:options'].local = process.env.BROWSERSTACK_LOCAL_ENABLED; | ||
@@ -31,0 +41,0 @@ } |
{ | ||
"name": "@nightwatch/browserstack", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Nightwatch plugin for integration with browserstack.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -33,3 +33,7 @@ const os = require('os'); | ||
if (this.isUndefined(accessKey)) { | ||
accessKey = process.env.BROWSERSTACK_ACCESS_KEY; | ||
} | ||
return accessKey; | ||
}; |
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
7954
118
8