@nestjs/common
Advanced tools
Comparing version 4.1.1 to 4.1.4
@@ -19,1 +19,2 @@ export declare const metadata: { | ||
export declare const HTTP_CODE_METADATA = "__httpCode__"; | ||
export declare const GATEWAY_MIDDLEWARES = "__gatewayMiddlewares"; |
@@ -21,1 +21,2 @@ "use strict"; | ||
exports.HTTP_CODE_METADATA = '__httpCode__'; | ||
exports.GATEWAY_MIDDLEWARES = '__gatewayMiddlewares'; |
{ | ||
"name": "@nestjs/common", | ||
"version": "4.1.1", | ||
"version": "4.1.4", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@common)", | ||
@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec", |
import 'reflect-metadata'; | ||
import { ExceptionFilter } from '../../index'; | ||
/** | ||
* @deprecated | ||
* Since version 2.1.2 this decorator is deprecated. Use @UseFilters() instead. | ||
*/ | ||
export declare const ExceptionFilters: (...filters: ExceptionFilter[]) => (target: object, key?: any, descriptor?: any) => any; | ||
/** | ||
* Setups exception filters to the chosen context. | ||
@@ -10,0 +5,0 @@ * When the `@UseFilters()` is used on the controller level: |
@@ -5,3 +5,2 @@ "use strict"; | ||
const constants_1 = require("../../constants"); | ||
const common_1 = require("@nestjs/common"); | ||
const defineFiltersMetadata = (...filters) => { | ||
@@ -18,11 +17,2 @@ return (target, key, descriptor) => { | ||
/** | ||
* @deprecated | ||
* Since version 2.1.2 this decorator is deprecated. Use @UseFilters() instead. | ||
*/ | ||
exports.ExceptionFilters = (...filters) => { | ||
const logger = new common_1.Logger('ExceptionFilters'); | ||
logger.warn('DEPRECATED! Since version 2.1.2 `@ExceptionFilters()` decorator is deprecated. Use `@UseFilters()` instead.'); | ||
return defineFiltersMetadata(...filters); | ||
}; | ||
/** | ||
* Setups exception filters to the chosen context. | ||
@@ -29,0 +19,0 @@ * When the `@UseFilters()` is used on the controller level: |
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
71282
141
1488