@bull-board/nestjs 5.15.1 → 5.15.2
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.
|
@@ -27,8 +27,11 @@ let BullBoardRootModule = BullBoardRootModule_1 = class BullBoardRootModule {
|
|
|
27
27
|
this.options = options;
|
|
28
28
|
}
|
|
29
29
|
configure(consumer) {
|
|
30
|
-
const
|
|
31
|
-
|
|
30
|
+
const addForwardSlash = (path) => {
|
|
31
|
+
return path.startsWith('/') || path === '' ? path : `/${path}`;
|
|
32
|
+
};
|
|
33
|
+
const prefix = addForwardSlash(this.applicationConfig.getGlobalPrefix() + this.options.route);
|
|
34
|
+
this.adapter.setBasePath(prefix);
|
|
32
35
|
if ((0, bull_board_util_1.isExpressAdapter)(this.adapter)) {
|
|
33
36
|
return consumer
|
|
34
37
|
.apply(this.options.middleware, this.adapter.getRouter())
|
|
@@ -37,7 +40,7 @@ let BullBoardRootModule = BullBoardRootModule_1 = class BullBoardRootModule {
|
|
|
37
40
|
if ((0, bull_board_util_1.isFastifyAdapter)(this.adapter)) {
|
|
38
41
|
this.adapterHost.httpAdapter
|
|
39
42
|
.getInstance()
|
|
40
|
-
.register(this.adapter.registerPlugin(), { prefix
|
|
43
|
+
.register(this.adapter.registerPlugin(), { prefix });
|
|
41
44
|
return consumer
|
|
42
45
|
.apply(this.options.middleware)
|
|
43
46
|
.forRoutes(this.options.route);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bull-board/nestjs",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.2",
|
|
4
4
|
"description": "A NestJS module for Bull-Board dashboard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bull",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"clean": "rm -rf dist"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@bull-board/api": "^5.15.
|
|
23
|
-
"@bull-board/express": "^5.15.
|
|
24
|
-
"@bull-board/fastify": "^5.15.
|
|
22
|
+
"@bull-board/api": "^5.15.2",
|
|
23
|
+
"@bull-board/express": "^5.15.2",
|
|
24
|
+
"@bull-board/fastify": "^5.15.2",
|
|
25
25
|
"@nestjs/bullmq": "^10.0.0",
|
|
26
26
|
"@nestjs/common": "^10.0.1",
|
|
27
27
|
"@nestjs/core": "^10.0.1",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@nestjs/bull-shared": "^10.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@bull-board/api": "^5.15.
|
|
40
|
-
"@bull-board/express": "^5.15.
|
|
39
|
+
"@bull-board/api": "^5.15.2",
|
|
40
|
+
"@bull-board/express": "^5.15.2",
|
|
41
41
|
"@nestjs/common": "^9.0.0 || ^10.0.0",
|
|
42
42
|
"@nestjs/core": "^9.0.0 || ^10.0.0",
|
|
43
43
|
"reflect-metadata": "^0.1.13 || ^0.2.0",
|
|
@@ -17,8 +17,12 @@ export class BullBoardRootModule implements NestModule {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
configure(consumer: MiddlewareConsumer): any {
|
|
20
|
-
const
|
|
21
|
-
|
|
20
|
+
const addForwardSlash = (path: string) => {
|
|
21
|
+
return path.startsWith('/') || path === '' ? path : `/${path}`;
|
|
22
|
+
};
|
|
23
|
+
const prefix = addForwardSlash(this.applicationConfig.getGlobalPrefix() + this.options.route);
|
|
24
|
+
|
|
25
|
+
this.adapter.setBasePath(prefix);
|
|
22
26
|
|
|
23
27
|
if (isExpressAdapter(this.adapter)) {
|
|
24
28
|
return consumer
|
|
@@ -29,9 +33,9 @@ export class BullBoardRootModule implements NestModule {
|
|
|
29
33
|
if (isFastifyAdapter(this.adapter)) {
|
|
30
34
|
this.adapterHost.httpAdapter
|
|
31
35
|
.getInstance()
|
|
32
|
-
.register(this.adapter.registerPlugin(), {prefix
|
|
36
|
+
.register(this.adapter.registerPlugin(), { prefix });
|
|
33
37
|
|
|
34
|
-
|
|
38
|
+
return consumer
|
|
35
39
|
.apply(this.options.middleware)
|
|
36
40
|
.forRoutes(this.options.route);
|
|
37
41
|
}
|