async-validate
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -127,3 +127,4 @@ var util = require('util'); | ||
} | ||
async.mapSeries( series, function(data, callback) { | ||
var func = options.parallel ? async.map : async.mapSeries; | ||
func(series, function(data, callback) { | ||
var rule = data.rule; | ||
@@ -130,0 +131,0 @@ var deep = (rule.type == 'object' || rule.type == 'array') |
{ | ||
"name": "async-validate", | ||
"description": "Asynchronous validation for object properties.", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author": "muji <noop@xpm.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -59,2 +59,3 @@ # async-validate | ||
* `keys`: Specifies the keys on the source object to be validated. Use this option to validate fields in a determinate order or to validate a subset of the rules assigned to a schema. | ||
* `parallel`: A boolean indicating that the validation should be executed in parallel. | ||
@@ -61,0 +62,0 @@ Consider the rule: |
Sorry, the diff of this file is not supported yet
75145
1736
403