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
12
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 2.1.0 to 2.2.0

lib/utils/PerformanceUtils.js

1

index.js

@@ -106,2 +106,3 @@ 'use strict';

exports.OSNames = require('./lib/utils/OSNames').OSNames;
exports.PerformanceUtils = require('./lib/utils/PerformanceUtils').PerformanceUtils;
exports.PropertyHandler = require('./lib/utils/PropertyHandler').PropertyHandler;

@@ -108,0 +109,0 @@ exports.ReadOnlyPropertyHandler = require('./lib/utils/ReadOnlyPropertyHandler').ReadOnlyPropertyHandler;

7

lib/MatchWindowTask.js

@@ -6,2 +6,3 @@ 'use strict';

const { GeneralUtils } = require('./utils/GeneralUtils');
const { PerformanceUtils } = require('./utils/PerformanceUtils');
const { MatchWindowData } = require('./match/MatchWindowData');

@@ -210,3 +211,3 @@

const that = this;
const elapsedTimeStart = GeneralUtils.currentTimeMillis();
const timeStart = PerformanceUtils.start();
let promise = this._promiseFactory.resolve();

@@ -240,5 +241,3 @@ // If the wait to load time is 0, or "run once" is true, we perform a single check window.

return promise.then(screenshot => {
// noinspection MagicNumberJS
const elapsedTime = GeneralUtils.currentTimeMillis() - elapsedTimeStart;
that._logger.verbose(`Completed in ${GeneralUtils.elapsedString(elapsedTime)}`);
that._logger.verbose(`Completed in ${timeStart.end().summary}`);
return screenshot;

@@ -245,0 +244,0 @@ });

@@ -13,2 +13,3 @@ 'use strict';

* @param {RGridDom} dom
* @param {RGridResource[]} resources
* @param {RenderInfo} [renderInfo]

@@ -18,4 +19,6 @@ * @param {string} [platform]

* @param {Object} [scriptHooks]
* @param {string[]} selectorsToFindRegionsFor
* @param {boolean} sendDom
*/
constructor({webhook, url, dom, resources, renderInfo, platform, browserName, scriptHooks, selectorsToFindRegionsFor, sendDom} = {}) {
constructor({ webhook, url, dom, resources, renderInfo, platform, browserName, scriptHooks, selectorsToFindRegionsFor, sendDom } = {}) {
ArgumentGuard.notNullOrEmpty(webhook, 'webhook');

@@ -36,2 +39,3 @@ ArgumentGuard.notNull(url, 'url');

this._selectorsToFindRegionsFor = selectorsToFindRegionsFor;
this._sendDom = sendDom;
}

@@ -117,2 +121,12 @@

/** @return {boolean} */
getSendDom() {
return this._sendDom;
}
/** @param {boolean} value */
setSendDom(value) {
this._sendDom = value;
}
/** @override */

@@ -158,2 +172,6 @@ toJSON() {

if (this._sendDom) {
object.sendDom = this._sendDom;
}
return object;

@@ -160,0 +178,0 @@ }

@@ -288,2 +288,3 @@ 'use strict';

*
* @deprecated use {PerformanceUtils.elapsedTime} instead
* @param {number} elapsedMs

@@ -290,0 +291,0 @@ * @return {string} formatted string

{
"name": "@applitools/eyes.sdk.core",
"version": "2.1.0",
"version": "2.2.0",
"description": "Applitools Eyes SDK Core",

@@ -35,3 +35,3 @@ "keywords": [

"dateformat": "^3.0.3",
"deepmerge": "^2.1.1",
"deepmerge": "^2.2.1",
"es6-promise-pool": "^2.5.0",

@@ -38,0 +38,0 @@ "png-async": "^0.9.2",

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