express-validation-map
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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", |
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
7755