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 3.0.0 to 4.0.0

6

package.json
{
"name": "celebrate",
"version": "3.0.0",
"version": "4.0.0",
"description": "A joi validation middleware for Express.",

@@ -31,3 +31,3 @@ "main": "lib/index.js",

"peerDependencies": {
"joi": "9.x.x"
"joi": "10.x.x"
},

@@ -37,3 +37,3 @@ "devDependencies": {

"code": "3.x.x",
"joi": "9.x.x",
"joi": "10.x.x",
"lab": "11.x.x"

@@ -40,0 +40,0 @@ },

@@ -12,3 +12,3 @@ ![Celebrate](https://github.com/continuationlabs/celebrate/raw/master/images/logo.png)

`celebrate` uses ["peerDependencies"](https://docs.npmjs.com/files/package.json#peerdependencies) to manage the required version of `joi` it will use. This means that if you're using npm@3, *you must* install a compatible version of `joi` (currently *9.x.x*) as a top level dependency for `celebrate` to work correctly. `celebrate` does *not* install its own copy of `joi` when using npm@3. This is to maximize compatibility and to keep the number of `joi` version mismatch bugs to a minimum.
`celebrate` uses ["peerDependencies"](https://docs.npmjs.com/files/package.json#peerdependencies) to manage the required version of `joi` it will use. This means that if you're using npm@3, *you must* install a compatible version of `joi` (currently *10.x.x*) as a top level dependency for `celebrate` to work correctly. `celebrate` does *not* install its own copy of `joi` when using npm@3. This is to maximize compatibility and to keep the number of `joi` version mismatch bugs to a minimum.

@@ -40,5 +40,5 @@ Wondering why *another* joi middleware library for Express? Full blog post [here](https://blog.continuation.io/time-to-clelebrate/).

// At this point, req.body has been validated and
// req.body.name is equal to req.body.name if provided in the POST or set to 'admin' by joi
// req.body.role is equal to req.body.role if provided in the POST or set to 'admin' by joi
});
app.use(Celebrate.errors()));
app.use(Celebrate.errors());
```

@@ -45,0 +45,0 @@

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