async-validator
Advanced tools
Comparing version 1.11.2 to 1.11.3
@@ -184,3 +184,3 @@ 'use strict'; | ||
} | ||
if (errors.length) { | ||
if (!options.suppressWarning && errors.length) { | ||
Schema.warning('async-validator:', errors); | ||
@@ -187,0 +187,0 @@ } |
# History | ||
---- | ||
## 1.11.3 / 2019-06-28 | ||
- support suppressWarning option when validate | ||
## 1.11.1 / 2019-04-22 | ||
@@ -5,0 +9,0 @@ |
@@ -182,3 +182,3 @@ 'use strict'; | ||
} | ||
if (errors.length) { | ||
if (!options.suppressWarning && errors.length) { | ||
Schema.warning('async-validator:', errors); | ||
@@ -185,0 +185,0 @@ } |
{ | ||
"name": "async-validator", | ||
"version": "1.11.2", | ||
"version": "1.11.3", | ||
"description": "validate form asynchronous", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -92,2 +92,4 @@ # async-validator | ||
* `suppressWarning`: Boolean, whether to suppress internal warning about invalid value. | ||
* `first`: Boolean, Invoke `callback` when the first validation rule generates an error, | ||
@@ -94,0 +96,0 @@ no more validation rules are processed. |
113125
441