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

@nestjs/common

Package Overview
Dependencies
Maintainers
1
Versions
368
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestjs/common - npm Package Compare versions

Comparing version 4.1.1 to 4.1.4

enums/transport.enum.d.ts

1

constants.d.ts

@@ -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';

2

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

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