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.6.11 to 0.6.12

4

decorator/options/ParamOptions.d.ts

@@ -1,2 +0,2 @@

import { ValidationOptions } from "class-validator";
import { ValidatorOptions } from "class-validator";
import { ClassTransformOptions } from "class-transformer";

@@ -26,3 +26,3 @@ /**

*/
validationOptions?: ValidationOptions;
validationOptions?: ValidatorOptions;
}

@@ -1,2 +0,2 @@

import { ValidationOptions } from "class-validator";
import { ValidatorOptions } from "class-validator";
import { ClassTransformOptions } from "class-transformer";

@@ -17,3 +17,3 @@ /**

*/
validationOptions: ValidationOptions;
validationOptions: ValidatorOptions;
/**

@@ -20,0 +20,0 @@ * Global class transformer options passed to class-transformer during plainToClass operation.

@@ -1,2 +0,2 @@

import { ValidationOptions } from "class-validator";
import { ValidatorOptions } from "class-validator";
import { ActionMetadata } from "../metadata/ActionMetadata";

@@ -23,3 +23,3 @@ import { ParamMetadata } from "../metadata/ParamMetadata";

*/
validationOptions: ValidationOptions;
validationOptions: ValidatorOptions;
/**

@@ -26,0 +26,0 @@ * Global class transformer options passed to class-transformer during classToPlain operation.

@@ -39,3 +39,3 @@ import { MiddlewareMetadata } from "../metadata/MiddlewareMetadata";

*/
handleError(error: any, action: ActionMetadata, options: ActionCallbackOptions): void;
handleError(error: any, action: ActionMetadata | undefined, options: ActionCallbackOptions): void;
private registerIntercepts(useInterceptors, interceptors);

@@ -42,0 +42,0 @@ private registerUses(uses, middlewares);

@@ -273,7 +273,9 @@ "use strict";

// apply http headers
Object.keys(action.headers).forEach(function (name) {
response_1.header(name, action.headers[name]);
});
if (action) {
Object.keys(action.headers).forEach(function (name) {
response_1.header(name, action.headers[name]);
});
}
// send error content
if (action.isJsonTyped) {
if (action && action.isJsonTyped) {
response_1.json(this.processJsonError(error));

@@ -280,0 +282,0 @@ }

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

driver.enableValidation = options.enableValidation;
if (options.validationOptions !== undefined) {
driver.validationOptions = options.validationOptions;
}
}

@@ -88,0 +91,0 @@ else {

@@ -1,2 +0,2 @@

import { ValidationOptions } from "class-validator";
import { ValidatorOptions } from "class-validator";
import { ClassTransformOptions } from "class-transformer";

@@ -63,3 +63,3 @@ import { ParamType } from "../types/ParamTypes";

*/
validationOptions?: ValidationOptions;
validationOptions?: ValidatorOptions;
}

@@ -1,2 +0,2 @@

import { ValidationOptions } from "class-validator";
import { ValidatorOptions } from "class-validator";
import { ActionMetadata } from "./ActionMetadata";

@@ -70,4 +70,4 @@ import { ParamMetadataArgs } from "./args/ParamMetadataArgs";

*/
validationOptions: ValidationOptions;
validationOptions: ValidatorOptions;
constructor(actionMetadata: ActionMetadata, args: ParamMetadataArgs);
}
{
"name": "routing-controllers",
"private": false,
"version": "0.6.11",
"version": "0.6.12",
"description": "Allows to use class-based controllers with express.js or koa in Typescript",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -277,3 +277,3 @@ # routing-controllers

import "reflect-metadata"; // this shim is required
import {createExpressServer, loadControllers} from "routing-controllers";
import {createExpressServer} from "routing-controllers";

@@ -926,3 +926,3 @@ createExpressServer({

import "reflect-metadata";
import {createExpressServer, loadControllers} from "routing-controllers";
import {createExpressServer} from "routing-controllers";
createExpressServer({

@@ -929,0 +929,0 @@ controllers: [__dirname + "/controllers/**/*.js"],

import { ClassTransformOptions } from "class-transformer";
import { ValidationOptions } from "class-validator";
import { ValidatorOptions } from "class-validator";
/**

@@ -48,3 +48,3 @@ * Routing controller initialization options.

*/
validationOptions?: ValidationOptions;
validationOptions?: ValidatorOptions;
/**

@@ -51,0 +51,0 @@ * Global class transformer options passed to class-transformer during classToPlain operation.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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