@sumor/api-middleware
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "@sumor/api-middleware", | ||
"description": "API Middleware is a middleware for Node.JS. It can easily expose function to api, and validate parameters", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "sumor-cloud/api-middleware", |
@@ -41,6 +41,8 @@ import bodyParser from 'body-parser' | ||
}) | ||
if (parameters[name].multiple !== true) { | ||
files[name] = reqFiles[0] | ||
} else { | ||
files[name] = reqFiles | ||
if (reqFiles.length > 0) { | ||
if (parameters[name].multiple !== true) { | ||
files[name] = reqFiles[0] | ||
} else { | ||
files[name] = reqFiles | ||
} | ||
} | ||
@@ -47,0 +49,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
21055
449