Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "celebrate", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A joi validation middleware for Express.", | ||
@@ -8,3 +8,3 @@ "main": "lib/index.js", | ||
"lint": "belly-button -f", | ||
"test": "npm run lint && lab -v -a code -p -c" | ||
"test": "npm run lint && lab -v -a code -p -t 100" | ||
}, | ||
@@ -11,0 +11,0 @@ "repository": { |
@@ -30,3 +30,6 @@ ![Celebrate](https://github.com/continuationlabs/celebrate/raw/master/images/logo.png) | ||
role: Joi.string().default('admin') | ||
}) | ||
}), | ||
query: { | ||
token: Joi.string().token.required() | ||
} | ||
}), (req, res) => { | ||
@@ -62,6 +65,6 @@ // At this point, req.body has been validated and is equal to req.body.name if provided in the POST or set to 'admin' by joi | ||
If at any point, any of the validation fails, the entire request will be considered invalid and the rest of the validation will be short-circuited. | ||
If any of the configured validation rules fail, the entire request will be considered invalid and the rest of the validation will be short-circuited and the validation error will be passed into `next`. | ||
## Issues | ||
*Before* opening issues on this repo, make sure your joi schema is correct and working like it's supposed to. The bulk of this code is just exposing the joi API as Express middleware. All of the heavy lifting still happens inside joi. | ||
*Before* opening issues on this repo, make sure your joi schema is correct and working like as you inted. The bulk of this code is just exposing the joi API as Express middleware. All of the heavy lifting still happens inside joi. |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
50709
68
0