@midwayjs/bull-board 3.20.16 → 3.20.20
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/dist/adapter.d.ts +1 -1
- package/dist/adapter.js +2 -1
- package/dist/board.middleware.js +2 -2
- package/package.json +8 -8
package/dist/adapter.d.ts
CHANGED
|
@@ -21,6 +21,6 @@ export declare class MidwayAdapter implements IServerAdapter {
|
|
|
21
21
|
getStaticRoutes(): string;
|
|
22
22
|
renderStatic(filename: any): Promise<any>;
|
|
23
23
|
renderView(filename: any, params?: {}): Promise<unknown>;
|
|
24
|
-
runAPI(route: any, query: any): Promise<any>;
|
|
24
|
+
runAPI(route: any, query: any, body?: any): Promise<any>;
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.js
CHANGED
|
@@ -102,11 +102,12 @@ class MidwayAdapter {
|
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
|
-
async runAPI(route, query) {
|
|
105
|
+
async runAPI(route, query, body) {
|
|
106
106
|
const response = await route.handler({
|
|
107
107
|
queues: this.bullBoardQueues,
|
|
108
108
|
params: route.params,
|
|
109
109
|
query,
|
|
110
|
+
body,
|
|
110
111
|
});
|
|
111
112
|
return response.body;
|
|
112
113
|
}
|
package/dist/board.middleware.js
CHANGED
|
@@ -57,7 +57,7 @@ let BoardMiddleware = class BoardMiddleware {
|
|
|
57
57
|
else {
|
|
58
58
|
const matchRoute = this.serverAdapter.matchApiRoutes(req.method, routePath);
|
|
59
59
|
if (matchRoute) {
|
|
60
|
-
content = await this.serverAdapter.runAPI(matchRoute, req.query);
|
|
60
|
+
content = await this.serverAdapter.runAPI(matchRoute, req.query, req.body);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
const ext = (0, path_1.extname)(pathname);
|
|
@@ -97,7 +97,7 @@ let BoardMiddleware = class BoardMiddleware {
|
|
|
97
97
|
else {
|
|
98
98
|
const matchRoute = this.serverAdapter.matchApiRoutes(ctx.method, routePath);
|
|
99
99
|
if (matchRoute) {
|
|
100
|
-
content = await this.serverAdapter.runAPI(matchRoute, ctx.query);
|
|
100
|
+
content = await this.serverAdapter.runAPI(matchRoute, ctx.query, ctx.request && ctx.request.body);
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
const ext = (0, path_1.extname)(pathname);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/bull-board",
|
|
3
|
-
"version": "3.20.
|
|
3
|
+
"version": "3.20.20",
|
|
4
4
|
"description": "midway component for bull-board",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@midwayjs/bull": "^3.20.
|
|
29
|
-
"@midwayjs/bullmq": "^3.20.
|
|
30
|
-
"@midwayjs/core": "^3.20.
|
|
31
|
-
"@midwayjs/express": "^3.20.
|
|
32
|
-
"@midwayjs/koa": "^3.20.
|
|
33
|
-
"@midwayjs/mock": "^3.20.
|
|
28
|
+
"@midwayjs/bull": "^3.20.19",
|
|
29
|
+
"@midwayjs/bullmq": "^3.20.19",
|
|
30
|
+
"@midwayjs/core": "^3.20.19",
|
|
31
|
+
"@midwayjs/express": "^3.20.19",
|
|
32
|
+
"@midwayjs/koa": "^3.20.19",
|
|
33
|
+
"@midwayjs/mock": "^3.20.19"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@bull-board/api": "5.23.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=12"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "dfc863cd45183a3de6796d5b84422c541aafd46a"
|
|
44
44
|
}
|