Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-validation-map

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-validation-map - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

lib/validation.js

@@ -80,3 +80,3 @@ const IS_REQUIRED_FIELD_TEXT = 'This field is required';

// check body
const bodyErrors = _onValidationBody({ config, data: isEmpty(body) ? false: JSON.parse(body), validationMap: bodyMap });
const bodyErrors = _onValidationBody({ config, data: isEmpty(body) ? false: body, validationMap: bodyMap });
if(!isEmpty(bodyErrors)){

@@ -83,0 +83,0 @@ return responseErrorsValidation({ res, config, validations: bodyErrors });

{
"name": "express-validation-map",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/Valentinishe/express-validation-map",

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