@applitools/eyes-sdk-core
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -17,3 +17,3 @@ 'use strict'; | ||
*/ | ||
constructor({ os, hostingApp, displaySize } = {}) { | ||
constructor({ os, hostingApp, displaySize, deviceInfo, osInfo, hostingAppInfo } = {}) { | ||
if (displaySize && !(displaySize instanceof RectangleSize)) { | ||
@@ -26,2 +26,5 @@ displaySize = new RectangleSize(displaySize); | ||
this._displaySize = displaySize; | ||
this._deviceInfo = deviceInfo; | ||
this._osInfo = osInfo; | ||
this._hostingAppInfo = hostingAppInfo; | ||
@@ -120,2 +123,58 @@ /** @type {string} */ | ||
/** | ||
* Gets the OS hosting the application under test or {@code null} if unknown. (not part of test signature) | ||
* | ||
* @return {string} | ||
*/ | ||
getOsInfo() { | ||
return this._osInfo; | ||
} | ||
/** | ||
* Sets the OS hosting the application under test or {@code null} if unknown. (not part of test signature) | ||
* | ||
* @param {string} value | ||
*/ | ||
setOsInfo(value) { | ||
this._osInfo = value; | ||
} | ||
// noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Gets the application hosting the application under test or {@code null} if unknown. (not part of test signature) | ||
* | ||
* @return {string} | ||
*/ | ||
getHostingAppInfo() { | ||
return this._hostingAppInfo; | ||
} | ||
/** | ||
* Sets the application hosting the application under test or {@code null} if unknown. (not part of test signature) | ||
* | ||
* @param {string} value | ||
*/ | ||
setHostingAppInfo(value) { | ||
this._hostingAppInfo = value; | ||
} | ||
// noinspection JSUnusedGlobalSymbols | ||
/** | ||
* Gets the device info (not part of test signature) | ||
* | ||
* @return {string} | ||
*/ | ||
getDeviceInfo() { | ||
return this._deviceInfo; | ||
} | ||
/** | ||
* Sets the device info (not part of test signature) | ||
* | ||
* @param {string} value | ||
*/ | ||
setDeviceInfo(value) { | ||
this._deviceInfo = value; | ||
} | ||
/** @override */ | ||
@@ -122,0 +181,0 @@ toJSON() { |
@@ -170,3 +170,3 @@ 'use strict'; | ||
if (this._sendDom) { | ||
if (this._sendDom !== undefined) { | ||
object.sendDom = this._sendDom; | ||
@@ -173,0 +173,0 @@ } |
{ | ||
"name": "@applitools/eyes-sdk-core", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "The core components of Eyes JavaScript SDK", | ||
@@ -50,4 +50,3 @@ "keywords": [ | ||
"node": ">= 8.9.0" | ||
}, | ||
"gitHead": "743bc6090d337c1d7193f6bd92c1bb8711a4f5a5" | ||
} | ||
} |
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
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
440792
12743
121