@vitrical/utils
Advanced tools
Comparing version 1.6.3 to 1.6.4
@@ -26,3 +26,3 @@ "use strict"; | ||
res.status(500).send({ | ||
msg: 'An unexpected error has occured', | ||
msg: 'An unexpected error has occurred', | ||
}); | ||
@@ -49,3 +49,3 @@ }; | ||
const validateBody = (schema) => (req, res, next) => { | ||
if (Object.keys(req.body).length === 0) { | ||
if (!req.body || typeof req.body !== 'object') { | ||
res.status(400).send({ | ||
@@ -52,0 +52,0 @@ msg: 'No request body provided', |
{ | ||
"name": "@vitrical/utils", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "Collection of useful functions and typings", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
50266