@applitools/eyes.sdk.core
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
440842
121
12998
2
Updateddeepmerge@^2.2.1