Socket
Socket
Sign inDemoInstall

protractor

Package Overview
Dependencies
124
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.4.1 to 5.4.2

20

built/config.d.ts

@@ -73,3 +73,3 @@ import { WebDriver } from 'selenium-webdriver';

/**
* The address of a proxy server to use for communicating to Sauce Labs rest APIs via the
* The address of a proxy server to use for communicating to Sauce Labs REST APIs via the
* saucelabs node module. For example, the Sauce Labs Proxy can be setup with: sauceProxy:

@@ -80,3 +80,4 @@ * 'http://localhost:3128'

/**
* The proxy address that browser traffic will go through which is tied to the browser session.
* The proxy address that WebDriver (e.g. Selenium commands) traffic will go through
* which is tied to the browser session.
*/

@@ -106,3 +107,10 @@ webDriverProxy?: string;

/**
* Use sauceAgent if you need custom HTTP agent to connect to saucelabs.com.
* If you run your tests on SauceLabs you can specify the region you want to run your tests
* in via the `sauceRegion` property. Available short handles for regions are:
* us: us-west-1 (default)
* eu: eu-central-1
*/
sauceRegion?: string;
/**
* Use sauceAgent if you need custom HTTP agent to connect to saucelabs.com APIs.
* This is needed if your computer is behind a corporate proxy.

@@ -112,4 +120,4 @@ *

* [HttpProxyAgent](https://github.com/TooTallNate/node-http-proxy-agent)
* to generate the agent or use webDriverProxy as an alternative. If a
* webDriverProxy is provided, the sauceAgent will be overridden.
* to generate the agent or use sauceProxy as an alternative. If a
* sauceProxy is provided, the sauceAgent will be overridden.
*/

@@ -132,3 +140,3 @@ sauceAgent?: any;

* traffic through a sauce connect tunnel). Default is
* ondemand.saucelabs.com:80/wd/hub
* ondemand.saucelabs.com:443/wd/hub
*/

@@ -135,0 +143,0 @@ sauceSeleniumAddress?: string;

@@ -22,2 +22,9 @@ /// <reference types="q" />

protected setupDriverEnv(): q.Promise<any>;
/**
* Get the Sauce Labs endpoint
* @private
* @param {string} region
* @return {string} The endpoint that needs to be used
*/
private getSauceEndpoint(region);
}

@@ -13,2 +13,6 @@ "use strict";

const SauceLabs = require('saucelabs');
const SAUCE_REGIONS = {
'us': '',
'eu': 'eu-central-1.'
};
let logger = new logger_1.Logger('sauce');

@@ -50,2 +54,3 @@ class Sauce extends driverProvider_1.DriverProvider {

this.sauceServer_ = new SauceLabs({
hostname: this.getSauceEndpoint(this.config_.sauceRegion),
username: this.config_.sauceUser,

@@ -62,4 +67,5 @@ password: this.config_.sauceKey,

this.config_.seleniumAddress = auth +
(this.config_.sauceSeleniumAddress ? this.config_.sauceSeleniumAddress :
'ondemand.saucelabs.com:443/wd/hub');
(this.config_.sauceSeleniumAddress ?
this.config_.sauceSeleniumAddress :
`ondemand.${this.getSauceEndpoint(this.config_.sauceRegion)}:443/wd/hub`);
// Append filename to capabilities.name so that it's easier to identify

@@ -76,4 +82,16 @@ // tests.

}
/**
* Get the Sauce Labs endpoint
* @private
* @param {string} region
* @return {string} The endpoint that needs to be used
*/
getSauceEndpoint(region) {
const dc = region ?
typeof SAUCE_REGIONS[region] !== 'undefined' ? SAUCE_REGIONS[region] : (region + '.') :
'';
return `${dc}saucelabs.com`;
}
}
exports.Sauce = Sauce;
//# sourceMappingURL=sauce.js.map

@@ -110,3 +110,3 @@ 'use strict';

gulp.task('prepublish', function(done) {
runSequence('checkVersion', 'jshint', 'tsc', 'built:copy', done);
runSequence('checkVersion', 'tsc', 'built:copy', done);
});

@@ -116,5 +116,5 @@

runSequence('checkVersion',
['webdriver:update', 'jshint', 'tslint', 'format'], 'tsc', 'built:copy', 'tsc:spec', done);
['webdriver:update', 'tslint', 'format'], 'tsc', 'built:copy', 'tsc:spec', done);
});
gulp.task('default',['prepublish']);

@@ -15,3 +15,2 @@ {

"dependencies": {
"@types/node": "^6.0.46",
"@types/q": "^0.0.32",

@@ -34,2 +33,3 @@ "@types/selenium-webdriver": "^3.0.0",

"devDependencies": {
"@types/node": "^6.0.46",
"@types/chalk": "^0.4.28",

@@ -87,3 +87,3 @@ "@types/glob": "^5.0.29",

},
"version": "5.4.1"
"version": "5.4.2"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc