@nestjs/common
Advanced tools
Comparing version 10.3.0 to 10.3.1
@@ -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) || []; |
@@ -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
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
427346
9937