@nest-omni/core 3.1.1-15 → 3.1.1-16

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.
@@ -53,7 +53,7 @@ let CacheModule = CacheModule_1 = class CacheModule {
53
53
  },
54
54
  cache_service_1.CacheService,
55
55
  ],
56
- exports: [cache_service_1.CacheService, exports.CACHE_SERVICE],
56
+ exports: [exports.CACHE_SERVICE, cache_service_1.CacheService],
57
57
  };
58
58
  }
59
59
  static forRootAsync(options) {
@@ -88,9 +88,13 @@ let CacheModule = CacheModule_1 = class CacheModule {
88
88
  inject: ['CACHE_MODULE_OPTIONS'],
89
89
  },
90
90
  providers_1.RedisCacheProvider,
91
+ {
92
+ provide: exports.CACHE_SERVICE,
93
+ useClass: cache_service_1.CacheService,
94
+ },
91
95
  cache_service_1.CacheService,
92
96
  ],
93
- exports: [cache_service_1.CacheService],
97
+ exports: [exports.CACHE_SERVICE, cache_service_1.CacheService],
94
98
  };
95
99
  }
96
100
  onModuleInit() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-omni/core",
3
- "version": "3.1.1-15",
3
+ "version": "3.1.1-16",
4
4
  "description": "A comprehensive NestJS framework for building enterprise-grade applications with best practices",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -107,7 +107,6 @@ if (services_1.ApiConfigService.toBoolean(process.env.BULL_ENABLED)) {
107
107
  }
108
108
  if (services_1.ApiConfigService.toBoolean(process.env.CACHE_ENABLED)) {
109
109
  modules.push(cache_1.CacheModule.forRootAsync({
110
- imports: [nestjs_redis_1.RedisModule],
111
110
  inject: [services_1.ApiConfigService, nestjs_redis_1.RedisService, typeorm_2.DataSource],
112
111
  isGlobal: true,
113
112
  useFactory: (config, redisService, dataSource) => __awaiter(void 0, void 0, void 0, function* () {
@@ -131,7 +130,6 @@ if (services_1.ApiConfigService.toBoolean(process.env.CACHE_ENABLED)) {
131
130
  if (services_1.ApiConfigService.toBoolean(process.env.SCHEDULE_ENABLED) &&
132
131
  services_1.ApiConfigService.toBoolean(process.env.REDIS_LOCK_ENABLED, true)) {
133
132
  modules.push(redis_lock_1.RedisLockModule.forRootAsync({
134
- imports: [nestjs_redis_1.RedisModule],
135
133
  inject: [services_1.ApiConfigService, nestjs_redis_1.RedisService],
136
134
  isGlobal: true,
137
135
  useFactory: (config, redisService) => __awaiter(void 0, void 0, void 0, function* () {