@nestjs/common 9.0.1 → 9.0.4

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.
@@ -34,7 +34,9 @@ let CacheModule = class CacheModule extends cache_module_definition_1.Configurab
34
34
  */
35
35
  static registerAsync(options) {
36
36
  const moduleDefinition = super.registerAsync(options);
37
- return Object.assign(Object.assign({ global: options.isGlobal }, moduleDefinition), { providers: moduleDefinition.providers.concat(options.extraProviders) });
37
+ return Object.assign(Object.assign({ global: options.isGlobal }, moduleDefinition), { providers: options.extraProviders
38
+ ? moduleDefinition.providers.concat(options.extraProviders)
39
+ : moduleDefinition.providers });
38
40
  }
39
41
  };
40
42
  CacheModule = tslib_1.__decorate([
@@ -28,7 +28,7 @@ export interface ConfigurableModuleAsyncOptions<ModuleOptions, FactoryClassMetho
28
28
  * Function returning options (or a Promise resolving to options) to configure the
29
29
  * cache module.
30
30
  */
31
- useFactory?: (...args: unknown[]) => Promise<ModuleOptions> | ModuleOptions;
31
+ useFactory?: (...args: any[]) => Promise<ModuleOptions> | ModuleOptions;
32
32
  /**
33
33
  * Dependencies that a Factory may inject.
34
34
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "9.0.1",
3
+ "version": "9.0.4",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",