@katomaran/nest-role-group
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -62,3 +62,3 @@ "use strict"; | ||
get redisExpiry() { | ||
return parseInt(this.get('REDIS_EXPIRY') || '900', 10); // default to 900 seconds if not set | ||
return parseInt(this.get('REDIS_EXPIRY') || '900', 10); | ||
} | ||
@@ -65,0 +65,0 @@ }; |
@@ -13,2 +13,3 @@ "use strict"; | ||
const config_module_1 = require("../config/config.module"); | ||
const config_service_1 = require("../config/config.service"); | ||
const ioredis_1 = require("ioredis"); | ||
@@ -25,6 +26,7 @@ let RedisModule = class RedisModule { | ||
provide: 'REDIS_CLIENT', | ||
useFactory: () => { | ||
const redisUrl = process.env.REDIS_URL || 'redis://127.0.0.1:6379'; | ||
useFactory: (configService) => { | ||
const redisUrl = configService.redisUrl; | ||
return new ioredis_1.Redis(redisUrl); | ||
}, | ||
inject: [config_service_1.ConfigService], | ||
}, | ||
@@ -31,0 +33,0 @@ redis_service_1.RedisService, |
{ | ||
"name": "@katomaran/nest-role-group", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
63146
1188
3