Socket
Socket
Sign inDemoInstall

karma-sauce-launcher

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-sauce-launcher - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

14

launcher/launcher.js

@@ -68,3 +68,15 @@ "use strict";

this.on('kill', (doneFn) => __awaiter(this, void 0, void 0, function* () {
yield Promise.all(connectedDrivers.map(driver => driver.quit()));
yield Promise.all(connectedDrivers.map(driver => {
try {
return driver.quit();
}
catch (e) {
// We need to ignore the exception here because we want to make sure that Karma is still
// able to retry connecting if Saucelabs itself terminated the session (and not Karma)
// For example if the "idleTimeout" is exceeded and Saucelabs errored the session. See:
// https://wiki.saucelabs.com/display/DOCS/Test+Didn%27t+See+a+New+Command+for+90+Seconds
log.error('Could not quit the Saucelabs selenium connection. Failure message:');
log.error(e);
}
}));
// Reset connected drivers in case the launcher will be reused.

@@ -71,0 +83,0 @@ connectedDrivers = [];

7

package.json
{
"name": "karma-sauce-launcher",
"version": "2.0.0",
"version": "2.0.1",
"description": "A Karma plugin. Launch any browser on SauceLabs!",
"main": "./index.js",
"scripts": {
"build": "tsc -p src/ && cp package.json dist/"
"build": "tsc -p src/ && cp package.json dist/",
"run-example": "yarn build && yarn copy-dist-to-modules && yarn run-example-karma",
"copy-dist-to-modules": "rm -rf node_modules/karma-sauce-launcher && mv dist/ node_modules/karma-sauce-launcher",
"run-example-karma": "yarn karma start examples/karma.conf-ci.js"
},

@@ -9,0 +12,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

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