Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

routing-controllers

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

routing-controllers - npm Package Compare versions

Comparing version 0.7.0-alpha.4 to 0.7.0-alpha.5

4

metadata/ActionMetadata.d.ts

@@ -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[];
}

2

package.json
{
"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

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