express-validate-schema
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -68,3 +68,4 @@ /* | ||
function validateResponse (err) {debugger | ||
function validateResponse (err) { | ||
return err | ||
@@ -85,2 +86,2 @@ ? res.status(500).end(err.message) | ||
return between(statusCode, 400, 599) | ||
} | ||
} |
{ | ||
"name": "express-validate-schema", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "a simple express middleware to validate the request/response objects (body, params, querystring and headers) againts an object schema with joi", | ||
@@ -14,3 +14,3 @@ "main": "index.js", | ||
"coverage:check": "istanbul check-coverage --statements 100 --functions 100 --lines 100 --branches 100", | ||
"test": "standard --fix check && istanbul cover _mocha test.js" | ||
"test": "standard --fix && istanbul cover _mocha test.js" | ||
}, | ||
@@ -17,0 +17,0 @@ "repository": { |
64
6806