@sinclair/typebox
Advanced tools
Comparing version 0.32.29 to 0.32.30
@@ -23,3 +23,3 @@ "use strict"; | ||
function IsStandardObject(value) { | ||
return IsObject(value) && !IsArray(value) && IsFunction(value.constructor) && value.constructor.name === 'Object'; | ||
return IsObject(value) && (Object.getPrototypeOf(value) === Object.prototype || Object.getPrototypeOf(value) === null); | ||
} | ||
@@ -26,0 +26,0 @@ exports.IsStandardObject = IsStandardObject; |
{ | ||
"name": "@sinclair/typebox", | ||
"version": "0.32.29", | ||
"version": "0.32.30", | ||
"description": "Json Schema Type Builder with Static Type Resolution for TypeScript", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
1380358