express-validator
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"homepage": "https://github.com/ctavan/express-validator", | ||
@@ -25,3 +25,3 @@ "repository": { | ||
"dependencies": { | ||
"validator": "1.2.0" | ||
"validator": "1.2.1" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
@@ -39,3 +39,3 @@ # express-validator | ||
if (errors) { | ||
res.send('There have been validation errors: ' + util.inspect(errors), 500); | ||
res.send('There have been validation errors: ' + util.inspect(errors), 400); | ||
return; | ||
@@ -77,3 +77,3 @@ } | ||
The `errorFormatter` option can be used to specify a function that can be used to formate the objects that populate the error arrow that is returned in `req.validationErrors()`. It should return an `Object` that has `param`, `msg`, and `value` keys defined. | ||
The `errorFormatter` option can be used to specify a function that can be used to format the objects that populate the error array that is returned in `req.validationErrors()`. It should return an `Object` that has `param`, `msg`, and `value` keys defined. | ||
@@ -80,0 +80,0 @@ ```javascript |
22114
+ Addedvalidator@1.2.1(transitive)
- Removedvalidator@1.2.0(transitive)
Updatedvalidator@1.2.1