async-validate
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -102,2 +102,3 @@ var util = require('util'); | ||
var messages = options.messages || this.messages(); | ||
options.messages = messages; | ||
var j, z, arr, value, i, rule, validator, series = []; | ||
@@ -132,7 +133,3 @@ var keys = options.keys || Object.keys(this.rules); | ||
data.rule.validator( | ||
data.rule, data.value, cb, data.source, | ||
{ | ||
messages: messages | ||
} | ||
); | ||
data.rule, data.value, cb, data.source, options); | ||
} | ||
@@ -139,0 +136,0 @@ validator.data = {rule: rule, value: value, source: source}; |
{ | ||
"name": "async-validate", | ||
"description": "Asynchronous validation for object properties.", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"author": "muji <noop@xpm.io>", | ||
@@ -6,0 +6,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
72895
1690