express-validator
Advanced tools
Comparing version 6.6.0 to 6.6.1
@@ -72,3 +72,3 @@ --- | ||
// Oh noes. This user doesn't have enough skills for this... | ||
res.status(422).json(...); | ||
res.status(400).json(...); | ||
} | ||
@@ -75,0 +75,0 @@ }); |
@@ -184,3 +184,3 @@ --- | ||
if (!result.isEmpty()) { | ||
return res.status(422).json({ errors: result.array() }); | ||
return res.status(400).json({ errors: result.array() }); | ||
} | ||
@@ -187,0 +187,0 @@ |
@@ -27,3 +27,3 @@ --- | ||
res.status(422).json({ errors: errors.array() }); | ||
res.status(400).json({ errors: errors.array() }); | ||
}; | ||
@@ -30,0 +30,0 @@ }; |
@@ -50,3 +50,3 @@ --- | ||
if (!errors.isEmpty()) { | ||
return res.status(422).json({ errors: errors.array() }); | ||
return res.status(400).json({ errors: errors.array() }); | ||
} | ||
@@ -53,0 +53,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "6.6.0", | ||
"version": "6.6.1", | ||
"homepage": "https://express-validator.github.io", | ||
@@ -45,3 +45,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"lodash": "^4.17.15", | ||
"lodash": "^4.17.19", | ||
"validator": "^13.1.1" | ||
@@ -51,3 +51,3 @@ }, | ||
"@types/jest": "^26.0.0", | ||
"@types/lodash": "^4.14.155", | ||
"@types/lodash": "^4.14.158", | ||
"@typescript-eslint/eslint-plugin": "^3.3.0", | ||
@@ -54,0 +54,0 @@ "@typescript-eslint/parser": "^3.3.0", |
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
Updatedlodash@^4.17.19