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

@nightwatch/browserstack

Package Overview
Dependencies
Maintainers
0
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nightwatch/browserstack - npm Package Compare versions

Comparing version 3.4.3 to 3.4.4

31

nightwatch/globals.js

@@ -342,2 +342,3 @@ const LocalTunnel = require('../src/local-tunnel');

addProductMapAndbuildUuidCapability(settings);
},

@@ -421,2 +422,3 @@

}
addProductMapAndbuildUuidCapability(settings);

@@ -452,1 +454,30 @@ }

};
const addProductMapAndbuildUuidCapability = (settings) => {
try {
if (!settings?.desiredCapabilities) {
return;
}
const product = helper.getObservabilityLinkedProductName(settings.desiredCapabilities, settings?.selenium?.host);
const buildProductMap = {
automate: product === 'automate',
app_automate: product === 'app-automate',
observability: helper.isTestObservabilitySession(),
accessibility: helper.isAccessibilitySession(),
turboscale: product === 'turboscale',
percy: false
};
if (settings.desiredCapabilities['bstack:options']) {
settings.desiredCapabilities['bstack:options']['buildProductMap'] = buildProductMap;
settings.desiredCapabilities['bstack:options']['testhubBuildUuid'] = process.env.BS_TESTOPS_BUILD_HASHED_ID ? process.env.BS_TESTOPS_BUILD_HASHED_ID : '' ;
} else {
settings.desiredCapabilities['browserstack.buildProductMap'] = buildProductMap;
settings.desiredCapabilities['browserstack.testhubBuildUuid'] = process.env.BS_TESTOPS_BUILD_HASHED_ID ? process.env.BS_TESTOPS_BUILD_HASHED_ID : '' ;
}
} catch (error) {
Logger.debug(`Error while sending productmap and build capabilities ${error}`);
}
};

2

package.json
{
"name": "@nightwatch/browserstack",
"version": "3.4.3",
"version": "3.4.4",
"description": "Nightwatch plugin for integration with browserstack.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,3 +17,5 @@ const os = require('os');

if (this._settings.test_observability) {
process.env.BROWSERSTACK_TEST_OBSERVABILITY = true;
if (!helper.isUndefined(this._settings.test_observability) && !helper.isUndefined(this._settings.test_observability.enabled)) {
process.env.BROWSERSTACK_TEST_OBSERVABILITY = this._settings.test_observability.enabled;

@@ -20,0 +22,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