Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
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 6.0.0 to 6.1.0

2

dist/config.d.ts

@@ -129,3 +129,3 @@ import { Swagger } from './swagger/swagger';

* - 'recursive' proceed to a deep merge and will concat every branches or override or create new values if needed. @see https://www.npmjs.com/package/merge
* - 'deepmerge' uses `deepmerge` to merge, which will concat object branches and concat arrays as well @see https://www.npmjs.com/package/deepmerge
* - 'deepmerge' uses `ts-deepmerge` to merge, which will concat object branches and concat arrays as well @see https://www.npmjs.com/package/deepmerge @see https://github.com/voodoocreation/ts-deepmerge
* The default is set to immediate so it is not breaking previous versions.

@@ -132,0 +132,0 @@ * @default 'immediate'

@@ -17,2 +17,8 @@ /**

/**
* Inject value from request
*
* @param {name} [name] The name of the request parameter
*/
export declare function RequestProp(name?: string): Function;
/**
* Inject value from Path

@@ -19,0 +25,0 @@ *

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Consumes = exports.FormField = exports.UploadedFiles = exports.UploadedFile = exports.Inject = exports.Header = exports.Queries = exports.Query = exports.Path = exports.Request = exports.BodyProp = exports.Body = void 0;
exports.Consumes = exports.FormField = exports.UploadedFiles = exports.UploadedFile = exports.Inject = exports.Header = exports.Queries = exports.Query = exports.Path = exports.RequestProp = exports.Request = exports.BodyProp = exports.Body = void 0;
/**

@@ -35,2 +35,13 @@ * Inject http Body

/**
* Inject value from request
*
* @param {name} [name] The name of the request parameter
*/
function RequestProp(name) {
return () => {
return;
};
}
exports.RequestProp = RequestProp;
/**
* Inject value from Path

@@ -37,0 +48,0 @@ *

@@ -41,3 +41,3 @@ import { ExtensionType } from '../decorators/extension';

description?: string;
in: 'query' | 'queries' | 'header' | 'path' | 'formData' | 'body' | 'body-prop' | 'request' | 'res';
in: 'query' | 'queries' | 'header' | 'path' | 'formData' | 'body' | 'body-prop' | 'request' | 'request-prop' | 'res';
name: string;

@@ -44,0 +44,0 @@ required?: boolean;

@@ -131,3 +131,3 @@ /// <reference types="node" />

export interface BooleanValidator {
isArray?: {
isBoolean?: {
errorMsg?: string;

@@ -134,0 +134,0 @@ };

@@ -367,3 +367,3 @@ "use strict";

}
const message = validators && validators.isArray && validators.isArray.errorMsg ? validators.isArray.errorMsg : `invalid boolean value`;
const message = validators && validators.isBoolean && validators.isBoolean.errorMsg ? validators.isBoolean.errorMsg : `invalid boolean value`;
fieldErrors[parent + name] = {

@@ -370,0 +370,0 @@ message,

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

@@ -52,3 +52,3 @@ "typings": "./dist/index.d.ts",

},
"gitHead": "e381199bf4456efe645196548a727a1987a8d0c2"
"gitHead": "118f090981f90078b348987cad7a3ae65a5c8d3a"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc