extensible-validator
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -50,3 +50,5 @@ "use strict"; | ||
cast(value) { | ||
return typeof value === 'string' ? value : value.toString(); | ||
return typeof value === 'string' || value == null | ||
? value | ||
: value.toString(); | ||
} | ||
@@ -53,0 +55,0 @@ } |
{ | ||
"name": "extensible-validator", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "Typescript-friendly and extensible object and value validation", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
37923
673