You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@tsoa/runtime

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tsoa/runtime - npm Package Compare versions

Comparing version

to
6.1.5

3

dist/routeGeneration/templates/express/expressTemplateService.js

@@ -58,2 +58,5 @@ "use strict";

const requestFiles = request.files;
if (requestFiles[name] === undefined) {
return undefined;
}
const fileArgs = this.validationService.ValidateParam(param, requestFiles[name], name, fieldErrors, undefined, this.minimalSwaggerConfig);

@@ -60,0 +63,0 @@ return fileArgs.length === 1 ? fileArgs[0] : fileArgs;

@@ -66,2 +66,5 @@ "use strict";

if (param.dataType === 'file' && files.length > 0) {
if (contextRequest.files[name] === undefined) {
return undefined;
}
const fileArgs = this.validationService.ValidateParam(param, contextRequest.files[name], name, errorFields, undefined, this.minimalSwaggerConfig);

@@ -68,0 +71,0 @@ return fileArgs.length === 1 ? fileArgs[0] : fileArgs;

6

package.json
{
"name": "@tsoa/runtime",
"description": "Build swagger-compliant REST APIs using TypeScript and Node",
"version": "6.1.4",
"version": "6.1.5",
"main": "./dist/index.js",

@@ -33,5 +33,5 @@ "typings": "./dist/index.d.ts",

"@hapi/hapi": "^21.3.3",
"@types/koa": "^2.15.0",
"@types/multer": "^1.4.11",
"express": "^4.18.3",
"koa": "^2.15.0",
"reflect-metadata": "^0.2.1",

@@ -57,3 +57,3 @@ "validator": "^13.11.0"

},
"gitHead": "1fb41980f20b7a16f14e623f46baf3a9ff0d041e"
"gitHead": "efdb468a5cedcb9bef345f1eed776e8fc621b443"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet