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

@applitools/eyes.sdk.core

Package Overview
Dependencies
Maintainers
5
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/eyes.sdk.core - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

2

package.json
{
"name": "@applitools/eyes.sdk.core",
"version": "1.3.0",
"version": "1.4.0",
"description": "Applitools Eyes SDK For JavaScript",

@@ -5,0 +5,0 @@ "author": "Applitools Team <team@applitools.com> (http://www.applitools.com/)",

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

this._updateBaselineIfDifferent = false;
this._updateBaselineIfNew = false;
this._updateBaselineIfNew = true;
this._removeSession = false;

@@ -30,0 +30,0 @@ this._removeSessionIfMatching = false;

@@ -21,4 +21,5 @@ 'use strict';

* @param {SessionStartInfo} startInfo The start parameters for the session.
* @param {Boolean} saveNewTests Used for automatic save of a test run. New tests are automatically saved by default.
*/
constructor(promiseFactory, logger, serverConnector, retryTimeout, eyes, appOutputProvider, startInfo) {
constructor(promiseFactory, logger, serverConnector, retryTimeout, eyes, appOutputProvider, startInfo, saveNewTests) {
super(promiseFactory, logger, serverConnector, null, retryTimeout, eyes, appOutputProvider);

@@ -28,2 +29,3 @@

/** @type {TestResults} */ this._matchResult = undefined;
/** @type {Boolean} */ this._saveNewTests = saveNewTests;
}

@@ -54,2 +56,3 @@

data.setRemoveSessionIfMatching(ignoreMismatch);
data.setUpdateBaselineIfNew(that._saveNewTests);

@@ -56,0 +59,0 @@ // Perform match.

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

/**
* @return {{host: string, port: int, auth: {username: string, password: string}}}
* @return {{protocol: string, host: string, port: int, auth: {username: string, password: string}}}
*/

@@ -50,2 +50,3 @@ toProxyObject() {

proxy.protocol = this._url.protocol;
proxy.host = this._url.hostname;

@@ -52,0 +53,0 @@ proxy.port = this._url.port;

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

*/
function sendLongRequest(that, name, uri, method, options = {}) {
const sendLongRequest = (that, name, uri, method, options = {}) => {
const headers = {

@@ -590,3 +590,3 @@ 'Eyes-Expect': '202+location',

});
}
};

@@ -600,3 +600,3 @@ /**

*/
function longRequestCheckStatus(that, name, response) {
const longRequestCheckStatus = (that, name, response) => {
switch (response.status) {

@@ -619,3 +619,3 @@ case HTTP_STATUS_CODES.OK:

}
}
};

@@ -630,3 +630,3 @@ /**

*/
function longRequestLoop(that, name, uri, delay) {
const longRequestLoop = (that, name, uri, delay) => {
delay = Math.min(MAX_LONG_REQUEST_DELAY_MS, Math.floor(delay * LONG_REQUEST_DELAY_MULTIPLICATIVE_INCREASE_FACTOR));

@@ -645,3 +645,3 @@ that._logger.verbose(`${name}: Still running... Retrying in ${delay} ms`);

});
}
};

@@ -657,3 +657,3 @@ /**

*/
function sendRequest(that, name, url, method, options = {}) {
const sendRequest = (that, name, url, method, options = {}) => {
const request = GeneralUtils.clone(that._httpOptions);

@@ -667,5 +667,8 @@ request.url = url;

if (request.proxy && request.proxy.protocol === 'http:') {
request.transport = require('http');
}
that._logger.verbose(`ServerConnector.${name} will now post call to ${request.url} with params ${GeneralUtils.toJson(request.params)}`);
// noinspection JSUnresolvedFunction
return axios(request).then(function(response) {
return axios(request).then((response) => {
that._logger.verbose(`ServerConnector.${name} - result ${response.statusText}, status code ${response.status}`);

@@ -678,3 +681,3 @@ return response;

});
}
};

@@ -688,3 +691,3 @@ /**

*/
function createDataBytes(jsonData) {
const createDataBytes = (jsonData) => {
const dataStr = GeneralUtils.toJson(jsonData);

@@ -698,4 +701,4 @@ const dataLen = Buffer.byteLength(dataStr, 'utf8');

return result;
}
};
module.exports = ServerConnector;

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

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