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 10.3.0 to 10.3.1

5

decorators/core/inject.decorator.js

@@ -38,2 +38,7 @@ "use strict";

const type = token || Reflect.getMetadata('design:type', target, key);
if (!type) {
throw new Error(`Token is undefined at index: ${index}. This often occurs due to circular dependencies.
Ensure there are no circular dependencies in your files or barrel files.
For more details, refer to https://trilon.io/blog/avoiding-circular-dependencies-in-nestjs.`);
}
if (!(0, shared_utils_1.isUndefined)(index)) {

@@ -40,0 +45,0 @@ let dependencies = Reflect.getMetadata(constants_1.SELF_DECLARED_DEPS_METADATA, target) || [];

3

decorators/http/header.decorator.d.ts

@@ -6,2 +6,3 @@ /**

* `@Header('Cache-Control', 'none')`
* `@Header('Cache-Control', () => 'none')`
*

@@ -15,2 +16,2 @@ * @param name string to be used for header name

*/
export declare function Header(name: string, value: string): MethodDecorator;
export declare function Header(name: string, value: string | (() => string)): MethodDecorator;

@@ -11,2 +11,3 @@ "use strict";

* `@Header('Cache-Control', 'none')`
* `@Header('Cache-Control', () => 'none')`
*

@@ -13,0 +14,0 @@ * @param name string to be used for header name

@@ -99,2 +99,8 @@ /**

SNICallback?: (servername: string, cb: (err: Error, ctx: any) => any) => any;
/**
* Optionally affect the OpenSSL protocol behavior, which is not usually necessary.
* This should be used carefully if at all! Value is a numeric bitmask of the SSL_OP_* options
* from OpenSSL Options.
*/
secureOptions?: number;
}

@@ -115,3 +115,3 @@ "use strict";

provide: self.options.optionsInjectionToken,
useFactory: () => this.omitExtras(options, self.extras),
useValue: this.omitExtras(options, self.extras),
},

@@ -118,0 +118,0 @@ ];

{
"name": "@nestjs/common",
"version": "10.3.0",
"version": "10.3.1",
"description": "Nest - modern, fast, powerful node.js web framework (@common)",

@@ -5,0 +5,0 @@ "author": "Kamil Mysliwiec",

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