routing-controllers
Advanced tools
Comparing version 0.7.0-alpha.4 to 0.7.0-alpha.5
@@ -107,2 +107,6 @@ import { ParamMetadata } from "./ParamMetadata"; | ||
authorizedRoles: any[]; | ||
/** | ||
* Params to be appended to the method call. | ||
*/ | ||
appendParams: any[]; | ||
constructor(controllerMetadata: ControllerMetadata, args: ActionMetadataArgs); | ||
@@ -109,0 +113,0 @@ /** |
@@ -16,2 +16,3 @@ "use strict"; | ||
this.type = args.type; | ||
this.appendParams = args.appendParams || []; | ||
} | ||
@@ -18,0 +19,0 @@ // ------------------------------------------------------------------------- |
@@ -23,2 +23,6 @@ import { ActionType } from "../types/ActionType"; | ||
type: ActionType; | ||
/** | ||
* Params to be appended to the method call. | ||
*/ | ||
appendParams?: any[]; | ||
} |
{ | ||
"name": "routing-controllers", | ||
"private": false, | ||
"version": "0.7.0-alpha.4", | ||
"version": "0.7.0-alpha.5", | ||
"description": "Allows to use class-based controllers with express.js or koa in Typescript", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -72,3 +72,3 @@ "use strict"; | ||
// execute action and handle result | ||
var result = action.callMethod(params); | ||
var result = action.callMethod(action.appendParams.concat(params)); | ||
return _this.handleCallMethodResult(result, action, actionProperties); | ||
@@ -75,0 +75,0 @@ }).catch(function (error) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
451009
4920