@applitools/utils
Advanced tools
Comparing version 1.3.18 to 1.3.19
@@ -64,3 +64,3 @@ "use strict"; | ||
if (!types.isObject(object)) | ||
return null; | ||
return object; | ||
const original = props ? Object.values(props) : Object.keys(object); | ||
@@ -70,3 +70,3 @@ const keys = !props || types.isArray(props) ? original : Object.keys(props); | ||
const value = object[original[index]]; | ||
plain[key] = value && types.isFunction(value.toJSON) ? value.toJSON() : value; | ||
plain[key] = value && types.isFunction(value.toJSON) ? value.toJSON() : toJSON(value); | ||
return plain; | ||
@@ -73,0 +73,0 @@ }, {}); |
{ | ||
"name": "@applitools/utils", | ||
"version": "1.3.18", | ||
"version": "1.3.19", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "applitools", |
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
68089