schema-typed
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -0,1 +1,7 @@ | ||
# 1.2.2 | ||
> Aug 30, 2019 | ||
- **Bugfix**: Fix an issue where addRule is not called | ||
# 1.2.0 | ||
@@ -2,0 +8,0 @@ |
@@ -40,3 +40,3 @@ 'use strict'; | ||
return { hasError: true, errorMessage: errorMessage }; | ||
} else if ((typeof checkResult === 'undefined' ? 'undefined' : _typeof(checkResult)) === 'object') { | ||
} else if ((typeof checkResult === 'undefined' ? 'undefined' : _typeof(checkResult)) === 'object' && checkResult.hasError) { | ||
return checkResult; | ||
@@ -55,3 +55,3 @@ } | ||
return { hasError: true, errorMessage: errorMessage }; | ||
} else if ((typeof checkResultAsync === 'undefined' ? 'undefined' : _typeof(checkResultAsync)) === 'object') { | ||
} else if ((typeof checkResult === 'undefined' ? 'undefined' : _typeof(checkResult)) === 'object' && checkResult.hasError) { | ||
return checkResult; | ||
@@ -58,0 +58,0 @@ } |
{ | ||
"name": "schema-typed", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Schema for data modeling & validation", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -27,3 +27,3 @@ function isEmpty(value) { | ||
return { hasError: true, errorMessage }; | ||
} else if (typeof checkResult === 'object') { | ||
} else if (typeof checkResult === 'object' && checkResult.hasError) { | ||
return checkResult; | ||
@@ -42,3 +42,3 @@ } | ||
return { hasError: true, errorMessage }; | ||
} else if (typeof checkResultAsync === 'object') { | ||
} else if (typeof checkResult === 'object' && checkResult.hasError) { | ||
return checkResult; | ||
@@ -45,0 +45,0 @@ } |
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
59083