async-validator
Advanced tools
Comparing version 4.2.3 to 4.2.4
@@ -1253,5 +1253,8 @@ 'use strict'; | ||
setTimeout(function () { | ||
throw error; | ||
}, 0); | ||
if (!options.suppressValidatorError) { | ||
setTimeout(function () { | ||
throw error; | ||
}, 0); | ||
} | ||
cb(error.message); | ||
@@ -1258,0 +1261,0 @@ } |
export declare type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email' | 'pattern' | 'any'; | ||
export interface ValidateOption { | ||
suppressWarning?: boolean; | ||
suppressValidatorError?: boolean; | ||
first?: boolean; | ||
@@ -5,0 +6,0 @@ firstFields?: boolean | string[]; |
@@ -1249,5 +1249,8 @@ function _extends() { | ||
setTimeout(function () { | ||
throw error; | ||
}, 0); | ||
if (!options.suppressValidatorError) { | ||
setTimeout(function () { | ||
throw error; | ||
}, 0); | ||
} | ||
cb(error.message); | ||
@@ -1254,0 +1257,0 @@ } |
{ | ||
"name": "async-validator", | ||
"description": "validate form asynchronous", | ||
"version": "4.2.3", | ||
"version": "4.2.4", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "files": [ | ||
"lint-staged": "^7.2.0", | ||
"np": "^5.0.3", | ||
"np": "7.x", | ||
"pika-plugin-build-web-babel": "^0.10.0", | ||
@@ -40,0 +40,0 @@ "pika-plugin-ts-types": "0.1.x", |
@@ -12,4 +12,4 @@ # async-validator | ||
[npm-url]: https://npmjs.org/package/async-validator | ||
[travis-image]: https://img.shields.io/travis/yiminghe/async-validator.svg?style=flat-square | ||
[travis-url]: https://travis-ci.com/yiminghe/async-validator | ||
[travis-image]:https://app.travis-ci.com/yiminghe/async-validator.svg?branch=master | ||
[travis-url]: https://app.travis-ci.com/github/yiminghe/async-validator | ||
[coveralls-image]: https://img.shields.io/coveralls/yiminghe/async-validator.svg?style=flat-square | ||
@@ -16,0 +16,0 @@ [coveralls-url]: https://coveralls.io/r/yiminghe/async-validator?branch=master |
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
284406
2466