body-checker
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -31,4 +31,3 @@ /** | ||
case 'integer': | ||
let isZero = check.zero(body[key]); | ||
if(isZero) break; | ||
if(check.zero(body[key])) break; | ||
default: | ||
@@ -35,0 +34,0 @@ return cb(new Error('Missing required parameter ' + key)); |
{ | ||
"name": "body-checker", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "A simple tool to protect your API against bad request parameters", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
11064
267