New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

celebrate

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

celebrate - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

package.json
{
"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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc