Socket
Socket
Sign inDemoInstall

@vitrical/utils

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vitrical/utils - npm Package Compare versions

Comparing version 1.6.3 to 1.6.4

4

express.js

@@ -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

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