@telia-ace/alliance-internal-node-utilities 1.0.3-next.2 → 1.0.3-next.3
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/CHANGELOG.md +6 -0
- package/dist/constants/config.d.ts +2 -1
- package/dist/index.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -27,6 +27,7 @@ var SharedConfigKeys = /* @__PURE__ */ ((SharedConfigKeys2) => {
|
|
|
27
27
|
SharedConfigKeys2["ServiceLogLevel"] = "SERVICE_LOG_LEVEL";
|
|
28
28
|
SharedConfigKeys2["ServicePort"] = "SERVICE_PORT";
|
|
29
29
|
SharedConfigKeys2["RedisHost"] = "REDIS_HOST";
|
|
30
|
+
SharedConfigKeys2["RedisPassword"] = "REDIS_PASSWORD";
|
|
30
31
|
return SharedConfigKeys2;
|
|
31
32
|
})(SharedConfigKeys || {});
|
|
32
33
|
|
|
@@ -47,7 +48,8 @@ function authMiddleware(configService, {
|
|
|
47
48
|
issuerBaseURL = "https://127.0.0.1"
|
|
48
49
|
} = {}) {
|
|
49
50
|
const redisClient = redis.createClient({
|
|
50
|
-
url: configService.getOrThrow(SharedConfigKeys.RedisHost)
|
|
51
|
+
url: configService.getOrThrow(SharedConfigKeys.RedisHost),
|
|
52
|
+
password: configService.get(SharedConfigKeys.RedisPassword)
|
|
51
53
|
});
|
|
52
54
|
redisClient.connect().catch(console.error);
|
|
53
55
|
const redisStore = new RedisStore__default({
|
package/dist/index.mjs
CHANGED
|
@@ -21,6 +21,7 @@ var SharedConfigKeys = /* @__PURE__ */ ((SharedConfigKeys2) => {
|
|
|
21
21
|
SharedConfigKeys2["ServiceLogLevel"] = "SERVICE_LOG_LEVEL";
|
|
22
22
|
SharedConfigKeys2["ServicePort"] = "SERVICE_PORT";
|
|
23
23
|
SharedConfigKeys2["RedisHost"] = "REDIS_HOST";
|
|
24
|
+
SharedConfigKeys2["RedisPassword"] = "REDIS_PASSWORD";
|
|
24
25
|
return SharedConfigKeys2;
|
|
25
26
|
})(SharedConfigKeys || {});
|
|
26
27
|
|
|
@@ -41,7 +42,8 @@ function authMiddleware(configService, {
|
|
|
41
42
|
issuerBaseURL = "https://127.0.0.1"
|
|
42
43
|
} = {}) {
|
|
43
44
|
const redisClient = createClient({
|
|
44
|
-
url: configService.getOrThrow(SharedConfigKeys.RedisHost)
|
|
45
|
+
url: configService.getOrThrow(SharedConfigKeys.RedisHost),
|
|
46
|
+
password: configService.get(SharedConfigKeys.RedisPassword)
|
|
45
47
|
});
|
|
46
48
|
redisClient.connect().catch(console.error);
|
|
47
49
|
const redisStore = new RedisStore({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-internal-node-utilities",
|
|
3
|
-
"version": "1.0.3-next.
|
|
3
|
+
"version": "1.0.3-next.3",
|
|
4
4
|
"description": "Utilities used internally by packages developed by team Alliance.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|