Huge News!Announcing our $40M Series B led by Abstract Ventures.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 11.0.0-rc2 to 11.0.0-rc3

18

lib/index.js

@@ -92,12 +92,12 @@ const Assert = require('assert');

// We want a fresh copy of steps since `internals.check` mutates the array
const steps = [];
internals.REQ_VALIDATIONS.forEach((validateFn, segment) => {
const spec = schema[segment];
if (spec) {
steps.push(validateFn(segment, Joi.compile(spec)));
}
});
const middleware = (req, res, next) => {
// We want a fresh copy of steps since `internals.check` mutates the array
const steps = [];
internals.REQ_VALIDATIONS.forEach((validateFn, segment) => {
const spec = schema[segment];
if (spec) {
steps.push(validateFn(segment, Joi.compile(spec)));
}
});
const middleware = (req, res, next) => {
const finalConfig = celebrateOptions.reqContext ? {

@@ -104,0 +104,0 @@ ...joiOpts,

{
"name": "celebrate",
"version": "11.0.0-rc2",
"version": "11.0.0-rc3",
"description": "A joi validation middleware for Express.",

@@ -56,4 +56,4 @@ "main": "lib/index.js",

"engines": {
"node": ">=8.9.0"
"node": ">=10.0.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