@darraghor/nest-backend-libs 2.32.3 → 2.32.5
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.
|
@@ -23,7 +23,7 @@ import { HealthModule } from "../health/Health.module.js";
|
|
|
23
23
|
import { LoggerModule as LoggingConfigModule } from "../logger/logger.module.js";
|
|
24
24
|
import { LoggingConfigurationService } from "../logger/LoggingConfigurationService.js";
|
|
25
25
|
import { AuthzModule } from "../authorization/authz.module.js";
|
|
26
|
-
import
|
|
26
|
+
import { redisStore } from "cache-manager-redis-yet";
|
|
27
27
|
let CoreModule = class CoreModule {
|
|
28
28
|
static initApplication(
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
|
|
@@ -77,21 +77,15 @@ CoreModule = __decorate([
|
|
|
77
77
|
ConfigModule.forRoot({ cache: true }),
|
|
78
78
|
CacheModule.registerAsync({
|
|
79
79
|
imports: [CoreConfigModule],
|
|
80
|
-
useFactory: async (configService
|
|
81
|
-
// eslint-disable-next-line @typescript-eslint/require-await
|
|
82
|
-
) => {
|
|
83
|
-
const redisUrl = new URL(configService.bullQueueHost || "redis://localhost");
|
|
80
|
+
useFactory: async (configService) => {
|
|
84
81
|
return {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
password: redisUrl.password,
|
|
89
|
-
port: Number(redisUrl.port),
|
|
90
|
-
username: redisUrl.username,
|
|
91
|
-
maxRetriesPerRequest: 3,
|
|
82
|
+
store: await redisStore({
|
|
83
|
+
url: configService.bullQueueHost || "should-throw",
|
|
84
|
+
ttl: 10000,
|
|
92
85
|
}),
|
|
93
86
|
};
|
|
94
87
|
},
|
|
88
|
+
isGlobal: true,
|
|
95
89
|
inject: [CoreConfigurationService],
|
|
96
90
|
}),
|
|
97
91
|
LoggerModule.forRootAsync({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,4DAA4D;AAC5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACH,WAAW,EACX,0BAA0B,EAE1B,MAAM,EAEN,cAAc,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,cAAc,CAAC;AACpD,OAAO,EAAC,wBAAwB,EAAC,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAC,YAAY,IAAI,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAC,2BAA2B,EAAC,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAC,WAAW,EAAC,MAAM,kCAAkC,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"core-app.module.js","sourceRoot":"","sources":["../../src/root-app/core-app.module.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAsD;AACtD,+DAA+D;AAC/D,4DAA4D;AAC5D,OAAO,kBAAkB,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACH,WAAW,EACX,0BAA0B,EAE1B,MAAM,EAEN,cAAc,GACjB,MA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AAE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;4BAC3B,QAAQ,EAAE,QAAQ,CAAC,QAAQ;4BAC3B,oBAAoB,EAAE,CAAC;yBAC1B;qBACJ,CAAC;gBACN,CAAC;gBACD,MAAM,EAAE,CAAC,wBAAwB,CAAC;aACrC,CAAC;YACF,YAAY;YACZ,WAAW;SACd;QACD,WAAW,EAAE,CAAC,aAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC;QACnC,OAAO,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,CAAC;KAC5E,CAAC;GACW,UAAU,CA2DtB;SA3DY,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@darraghor/nest-backend-libs",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.5",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
5
5
|
"description": "Some helpers for personal projects in nestjs",
|
|
6
6
|
"homepage": "https://github.com/darraghoriordan/nest-backend-libs",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"auth0": "3.3.0",
|
|
74
74
|
"bull": "4.10.4",
|
|
75
75
|
"cache-manager": "5.2.0",
|
|
76
|
-
"cache-manager-
|
|
76
|
+
"cache-manager-redis-yet": "4.1.1",
|
|
77
77
|
"chalk": "5.2.0",
|
|
78
78
|
"class-transformer": "0.5.1",
|
|
79
79
|
"class-validator": "0.14.0",
|
|
@@ -91,6 +91,7 @@
|
|
|
91
91
|
"pg": "8.10.0",
|
|
92
92
|
"pino-http": "8.3.3",
|
|
93
93
|
"pino-pretty": "10.0.0",
|
|
94
|
+
"redis": "4.6.5",
|
|
94
95
|
"reflect-metadata": "0.1.13",
|
|
95
96
|
"res": "^0.4.0",
|
|
96
97
|
"resource": "0.8.1",
|