@applitools/utils
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -6,2 +6,6 @@ # Changelog | ||
## 1.1.2 - 2021/3/31 | ||
- fix `types.instanceOf` will immediately return `false` for non-object values | ||
## 1.1.1 - 2021/3/25 | ||
@@ -8,0 +12,0 @@ |
@@ -62,5 +62,4 @@ "use strict"; | ||
for (const key of keys) { | ||
if (!Object.prototype.hasOwnProperty.call(value, key)) { | ||
if (!(key in value)) | ||
return false; | ||
} | ||
} | ||
@@ -71,2 +70,4 @@ return true; | ||
function instanceOf(value, ctorOrName) { | ||
if (!isObject(value)) | ||
return false; | ||
if (!isString(ctorOrName)) | ||
@@ -73,0 +74,0 @@ return value instanceof ctorOrName; |
{ | ||
"name": "@applitools/utils", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "applitools", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
70170
594