@nestjs/common 10.2.10 → 10.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Readme.md CHANGED
@@ -83,7 +83,10 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
83
83
  <a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td>
84
84
  <td>
85
85
  <a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td><td>
86
- <a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td></</tr></table>
86
+ <a href="https://www.movavi.com/imovie-for-windows.html" target="_blank"><img src="https://nestjs.com/img/movavi-logo.svg" width="105" valign="middle" /></a></td>
87
+ </tr><tr><td>
88
+ <a href="https://skunk.team" target="_blank"><img src="https://nestjs.com/img/skunk-logo.png" height="60" valign="middle" /></a></td>
89
+ </tr></table>
87
90
 
88
91
  #### Silver Sponsors
89
92
 
@@ -50,7 +50,7 @@ export interface CorsOptions {
50
50
  optionsSuccessStatus?: number;
51
51
  }
52
52
  export interface CorsOptionsCallback {
53
- (error: Error, options: CorsOptions): void;
53
+ (error: Error | null, options: CorsOptions): void;
54
54
  }
55
55
  export interface CorsOptionsDelegate<T> {
56
56
  (req: T, cb: CorsOptionsCallback): void;
@@ -112,7 +112,7 @@ class ConfigurableModuleBuilder {
112
112
  const providers = [
113
113
  {
114
114
  provide: self.options.optionsInjectionToken,
115
- useValue: this.omitExtras(options, self.extras),
115
+ useFactory: () => this.omitExtras(options, self.extras),
116
116
  },
117
117
  ];
118
118
  if (self.options.alwaysTransient) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "10.2.10",
3
+ "version": "10.3.0",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",