express-validator
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -83,1 +83,3 @@ /* | ||
module.exports = expressValidator; | ||
module.exports.Validator = Validator; | ||
module.exports.Filter = Filter; |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"homepage": "https://github.com/ctavan/express-validator", | ||
@@ -11,0 +11,0 @@ "repository": { |
@@ -30,5 +30,6 @@ # express-validator | ||
errors.push(msg); | ||
return this; | ||
}); | ||
req.assert('postparam', 'Invalid postparam').isInt(); | ||
req.assert('postparam', 'Invalid postparam').notEmpty().isInt(); | ||
req.assert('getparam', 'Invalid getparam').isInt(); | ||
@@ -35,0 +36,0 @@ req.assert('urlparam', 'Invalid urlparam').isAlpha(); |
@@ -13,5 +13,6 @@ var express = require('express'), | ||
errors.push(msg); | ||
return this; | ||
}); | ||
req.assert('postparam', 'Invalid postparam').isInt(); | ||
req.assert('postparam', 'Invalid postparam').notEmpty().isInt(); | ||
req.assert('getparam', 'Invalid getparam').isInt(); | ||
@@ -18,0 +19,0 @@ req.assert('urlparam', 'Invalid urlparam').isAlpha(); |
6236
6
102
84