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 13.0.2 to 13.0.3

9

lib/celebrate.js

@@ -146,8 +146,5 @@ const HTTP = require('http');

const requestRules = new Map();
// eslint-disable-next-line no-restricted-syntax
for (const key in _requestRules) {
if ({}.hasOwnProperty.call(_requestRules, key)) {
requestRules.set(key, Joi.compile(_requestRules[key]));
}
}
Object.entries(_requestRules).reduce(
(memo, [key, value]) => memo.set(key, Joi.compile(value)), requestRules,
);

@@ -154,0 +151,0 @@ const middleware = (req, res, next) => {

@@ -103,3 +103,3 @@ import { ErrorRequestHandler, RequestHandler } from 'express';

*/
export declare function isCelebrateError(err: object): boolean;
export declare function isCelebrateError(err: any): err is CelebrateError;

@@ -106,0 +106,0 @@ /**

{
"name": "celebrate",
"version": "13.0.2",
"version": "13.0.3",
"description": "A joi validation middleware for Express.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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