async-validator
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -237,6 +237,6 @@ 'use strict'; | ||
//console.dir(rule); | ||
if (typeof rule.validator !== 'function' && (!rule.type || !validators.hasOwnProperty(rule.type))) { | ||
if (typeof rule.validator !== 'function' && (rule.type && !validators.hasOwnProperty(rule.type))) { | ||
throw new Error(util.format('Unknown rule type %s', rule.type)); | ||
} | ||
return rule.type; | ||
return rule.type || 'string'; | ||
}; | ||
@@ -243,0 +243,0 @@ |
{ | ||
"name": "async-validator", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "validate form asynchronous", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
40902