Comparing version 11.0.0-rc2 to 11.0.0-rc3
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19350