@midwayjs/bull-board 3.0.0 → 3.6.0
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/LICENSE +21 -0
- package/dist/adapter.d.ts +24 -0
- package/dist/adapter.js +108 -0
- package/dist/board.middleware.d.ts +15 -0
- package/dist/board.middleware.js +144 -0
- package/dist/configuration.d.ts +2 -7
- package/dist/configuration.js +15 -36
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/index.d.ts +1 -0
- package/package.json +11 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2013 - Now midwayjs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AppControllerRoute, AppViewRoute, BullBoardQueues, ControllerHandlerReturnType, IServerAdapter } from '@bull-board/api/dist/typings/app';
|
|
2
|
+
export declare class MidwayAdapter implements IServerAdapter {
|
|
3
|
+
private basePath;
|
|
4
|
+
private bullBoardQueues;
|
|
5
|
+
private statics;
|
|
6
|
+
private viewPath;
|
|
7
|
+
private entryRoute;
|
|
8
|
+
private apiRoutes;
|
|
9
|
+
private staticCache;
|
|
10
|
+
setBasePath(path: string): MidwayAdapter;
|
|
11
|
+
setStaticPath(staticsRoute: string, staticsPath: string): MidwayAdapter;
|
|
12
|
+
setViewsPath(viewPath: string): MidwayAdapter;
|
|
13
|
+
setErrorHandler(handler: (error: Error) => ControllerHandlerReturnType): this;
|
|
14
|
+
setApiRoutes(routes: AppControllerRoute[]): MidwayAdapter;
|
|
15
|
+
setEntryRoute(routeDef: AppViewRoute): MidwayAdapter;
|
|
16
|
+
setQueues(bullBoardQueues: BullBoardQueues): MidwayAdapter;
|
|
17
|
+
getViewRoutes(): string[];
|
|
18
|
+
matchApiRoutes(method: string, url: string): AppControllerRoute;
|
|
19
|
+
getStaticRoutes(): string;
|
|
20
|
+
renderStatic(filename: any): Promise<any>;
|
|
21
|
+
renderView(filename: any): Promise<unknown>;
|
|
22
|
+
runAPI(route: any, query: any): Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=adapter.d.ts.map
|
package/dist/adapter.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MidwayAdapter = void 0;
|
|
4
|
+
const ejs = require("ejs");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const fs_1 = require("fs");
|
|
7
|
+
const core_1 = require("@midwayjs/core");
|
|
8
|
+
class MidwayAdapter {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.basePath = '';
|
|
11
|
+
this.staticCache = new Map();
|
|
12
|
+
}
|
|
13
|
+
setBasePath(path) {
|
|
14
|
+
this.basePath = path;
|
|
15
|
+
return this;
|
|
16
|
+
}
|
|
17
|
+
setStaticPath(staticsRoute, staticsPath) {
|
|
18
|
+
this.statics = { route: staticsRoute, path: staticsPath };
|
|
19
|
+
return this;
|
|
20
|
+
}
|
|
21
|
+
setViewsPath(viewPath) {
|
|
22
|
+
this.viewPath = viewPath;
|
|
23
|
+
return this;
|
|
24
|
+
}
|
|
25
|
+
setErrorHandler(handler) {
|
|
26
|
+
// this.errorHandler = handler;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
setApiRoutes(routes) {
|
|
30
|
+
this.apiRoutes = routes;
|
|
31
|
+
this.apiRoutes.forEach(route => {
|
|
32
|
+
route.regexpPattern = core_1.PathToRegexpUtil.toRegexp(route.route);
|
|
33
|
+
});
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
setEntryRoute(routeDef) {
|
|
37
|
+
this.entryRoute = routeDef;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
setQueues(bullBoardQueues) {
|
|
41
|
+
this.bullBoardQueues = bullBoardQueues;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
getViewRoutes() {
|
|
45
|
+
const { route } = this.entryRoute;
|
|
46
|
+
return Array.isArray(route) ? route : [route];
|
|
47
|
+
}
|
|
48
|
+
matchApiRoutes(method, url) {
|
|
49
|
+
return this.apiRoutes.find(route => {
|
|
50
|
+
if (route.method !== method.toLowerCase()) {
|
|
51
|
+
return false;
|
|
52
|
+
}
|
|
53
|
+
const result = core_1.PathToRegexpUtil.match(route.route, {
|
|
54
|
+
decode: decodeURIComponent,
|
|
55
|
+
})(url);
|
|
56
|
+
if (result) {
|
|
57
|
+
route.params = result.params;
|
|
58
|
+
}
|
|
59
|
+
return !!result;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
getStaticRoutes() {
|
|
63
|
+
return this.statics.route;
|
|
64
|
+
}
|
|
65
|
+
async renderStatic(filename) {
|
|
66
|
+
filename = filename.replace(this.statics.route, '');
|
|
67
|
+
filename = (0, path_1.join)(this.statics.path, filename);
|
|
68
|
+
if (this.staticCache.has(filename)) {
|
|
69
|
+
return this.staticCache.get(filename);
|
|
70
|
+
}
|
|
71
|
+
const content = (0, fs_1.readFileSync)(filename, {
|
|
72
|
+
encoding: 'utf-8',
|
|
73
|
+
});
|
|
74
|
+
this.staticCache.set(filename, content);
|
|
75
|
+
return content;
|
|
76
|
+
}
|
|
77
|
+
async renderView(filename) {
|
|
78
|
+
const basePath = this.basePath.endsWith('/')
|
|
79
|
+
? this.basePath
|
|
80
|
+
: `${this.basePath}/`;
|
|
81
|
+
if (filename === '/') {
|
|
82
|
+
filename = 'index.ejs';
|
|
83
|
+
}
|
|
84
|
+
filename = (0, path_1.join)(this.viewPath, filename);
|
|
85
|
+
return new Promise((resolve, reject) => {
|
|
86
|
+
ejs.renderFile(filename, { basePath, cache: true }, {
|
|
87
|
+
root: this.viewPath,
|
|
88
|
+
}, (err, result) => {
|
|
89
|
+
if (err) {
|
|
90
|
+
reject(err);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
resolve(result);
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
async runAPI(route, query) {
|
|
99
|
+
const response = await route.handler({
|
|
100
|
+
queues: this.bullBoardQueues,
|
|
101
|
+
params: route.params,
|
|
102
|
+
query,
|
|
103
|
+
});
|
|
104
|
+
return response.body;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.MidwayAdapter = MidwayAdapter;
|
|
108
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IMiddleware, IMidwayApplication, IMidwayContext, NextFunction } from '@midwayjs/core';
|
|
2
|
+
import * as bull from '@midwayjs/bull';
|
|
3
|
+
export declare class BoardMiddleware implements IMiddleware<IMidwayContext, NextFunction, unknown> {
|
|
4
|
+
framework: bull.Framework;
|
|
5
|
+
bullBoardConfig: {
|
|
6
|
+
basePath?: string;
|
|
7
|
+
adapterOptions?: any;
|
|
8
|
+
};
|
|
9
|
+
private basePath;
|
|
10
|
+
private serverAdapter;
|
|
11
|
+
init(): Promise<void>;
|
|
12
|
+
resolve(app: IMidwayApplication): (req: any, res: any, next: NextFunction) => Promise<any>;
|
|
13
|
+
static getName(): string;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=board.middleware.d.ts.map
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BoardMiddleware = void 0;
|
|
13
|
+
const core_1 = require("@midwayjs/core");
|
|
14
|
+
const path_1 = require("path");
|
|
15
|
+
const bull = require("@midwayjs/bull");
|
|
16
|
+
const api_1 = require("@bull-board/api");
|
|
17
|
+
const bullAdapter_1 = require("@bull-board/api/bullAdapter");
|
|
18
|
+
const adapter_1 = require("./adapter");
|
|
19
|
+
const MIME_MAP = {
|
|
20
|
+
'.html': 'text/html',
|
|
21
|
+
'.htm': 'text/html',
|
|
22
|
+
'.js': 'application/javascript',
|
|
23
|
+
'.css': 'text/css',
|
|
24
|
+
'.json': 'application/json',
|
|
25
|
+
'.png': 'image/png',
|
|
26
|
+
'.jpg': 'image/jpeg',
|
|
27
|
+
'.jpeg': 'image/jpeg',
|
|
28
|
+
'.gif': 'image/gif',
|
|
29
|
+
'.svg': 'image/svg+xml',
|
|
30
|
+
'.ico': 'image/x-icon',
|
|
31
|
+
'.ttf': 'application/x-font-ttf',
|
|
32
|
+
'.woff': 'application/font-woff',
|
|
33
|
+
'.woff2': 'application/font-woff2',
|
|
34
|
+
'.eot': 'application/vnd.ms-fontobject',
|
|
35
|
+
'.otf': 'application/x-font-opentype',
|
|
36
|
+
};
|
|
37
|
+
let BoardMiddleware = class BoardMiddleware {
|
|
38
|
+
async init() {
|
|
39
|
+
const queueList = this.framework.getQueueList();
|
|
40
|
+
const wrapQueues = queueList.map(queue => new bullAdapter_1.BullAdapter(queue));
|
|
41
|
+
this.basePath = this.bullBoardConfig.basePath;
|
|
42
|
+
this.serverAdapter = new adapter_1.MidwayAdapter();
|
|
43
|
+
(0, api_1.createBullBoard)({
|
|
44
|
+
queues: wrapQueues,
|
|
45
|
+
serverAdapter: this.serverAdapter,
|
|
46
|
+
});
|
|
47
|
+
this.serverAdapter.setBasePath(this.basePath);
|
|
48
|
+
}
|
|
49
|
+
resolve(app) {
|
|
50
|
+
if (app.getFrameworkType() === core_1.MidwayFrameworkType.WEB_EXPRESS) {
|
|
51
|
+
return async (req, res, next) => {
|
|
52
|
+
const pathname = req.path;
|
|
53
|
+
if (pathname.indexOf(this.basePath) === -1) {
|
|
54
|
+
return next();
|
|
55
|
+
}
|
|
56
|
+
const routePath = pathname.replace(this.basePath, '') || '/';
|
|
57
|
+
let content;
|
|
58
|
+
if (routePath.startsWith(this.serverAdapter.getStaticRoutes())) {
|
|
59
|
+
content = await this.serverAdapter.renderStatic(routePath);
|
|
60
|
+
}
|
|
61
|
+
else if (this.serverAdapter.getViewRoutes().indexOf(routePath) !== -1) {
|
|
62
|
+
content = await this.serverAdapter.renderView(routePath);
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
const matchRoute = this.serverAdapter.matchApiRoutes(req.method, routePath);
|
|
66
|
+
if (matchRoute) {
|
|
67
|
+
content = await this.serverAdapter.runAPI(matchRoute, req.query);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
const ext = (0, path_1.extname)(pathname);
|
|
71
|
+
if (MIME_MAP[ext]) {
|
|
72
|
+
res.type(MIME_MAP[ext]);
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
if (typeof content === 'object') {
|
|
76
|
+
res.type('application/json');
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
res.type('text/html');
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
res.send(content);
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return async (ctx, next) => {
|
|
87
|
+
const pathname = ctx.path;
|
|
88
|
+
if (pathname.indexOf(this.basePath) === -1) {
|
|
89
|
+
return next();
|
|
90
|
+
}
|
|
91
|
+
const routePath = pathname.replace(this.basePath, '') || '/';
|
|
92
|
+
let content;
|
|
93
|
+
if (routePath.startsWith(this.serverAdapter.getStaticRoutes())) {
|
|
94
|
+
content = await this.serverAdapter.renderStatic(routePath);
|
|
95
|
+
}
|
|
96
|
+
else if (this.serverAdapter.getViewRoutes().indexOf(routePath) !== -1) {
|
|
97
|
+
content = await this.serverAdapter.renderView(routePath);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const matchRoute = this.serverAdapter.matchApiRoutes(ctx.method, routePath);
|
|
101
|
+
if (matchRoute) {
|
|
102
|
+
content = await this.serverAdapter.runAPI(matchRoute, ctx.query);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
const ext = (0, path_1.extname)(pathname);
|
|
106
|
+
if (MIME_MAP[ext]) {
|
|
107
|
+
ctx.type = MIME_MAP[ext];
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
if (typeof content === 'object') {
|
|
111
|
+
ctx.type = 'application/json';
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
ctx.type = 'text/html';
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
ctx.body = content;
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
static getName() {
|
|
122
|
+
return 'bull-board-ui';
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, core_1.Inject)(),
|
|
127
|
+
__metadata("design:type", bull.Framework)
|
|
128
|
+
], BoardMiddleware.prototype, "framework", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, core_1.Config)('bullBoard'),
|
|
131
|
+
__metadata("design:type", Object)
|
|
132
|
+
], BoardMiddleware.prototype, "bullBoardConfig", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, core_1.Init)(),
|
|
135
|
+
__metadata("design:type", Function),
|
|
136
|
+
__metadata("design:paramtypes", []),
|
|
137
|
+
__metadata("design:returntype", Promise)
|
|
138
|
+
], BoardMiddleware.prototype, "init", null);
|
|
139
|
+
BoardMiddleware = __decorate([
|
|
140
|
+
(0, core_1.Provide)(),
|
|
141
|
+
(0, core_1.Scope)(core_1.ScopeEnum.Singleton)
|
|
142
|
+
], BoardMiddleware);
|
|
143
|
+
exports.BoardMiddleware = BoardMiddleware;
|
|
144
|
+
//# sourceMappingURL=board.middleware.js.map
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MidwayApplicationManager } from '@midwayjs/core';
|
|
1
|
+
import { MidwayApplicationManager, MidwayConfigService } from '@midwayjs/core';
|
|
3
2
|
export declare class BullBoardConfiguration {
|
|
4
|
-
framework: bull.Framework;
|
|
5
3
|
applicationManager: MidwayApplicationManager;
|
|
6
|
-
|
|
7
|
-
basePath?: string;
|
|
8
|
-
adapterOptions?: any;
|
|
9
|
-
};
|
|
4
|
+
configService: MidwayConfigService;
|
|
10
5
|
onReady(): Promise<void>;
|
|
11
6
|
}
|
|
12
7
|
//# sourceMappingURL=configuration.d.ts.map
|
package/dist/configuration.js
CHANGED
|
@@ -10,61 +10,40 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.BullBoardConfiguration = void 0;
|
|
13
|
-
const decorator_1 = require("@midwayjs/decorator");
|
|
14
13
|
const bull = require("@midwayjs/bull");
|
|
15
14
|
const core_1 = require("@midwayjs/core");
|
|
16
|
-
const
|
|
17
|
-
const bullAdapter_1 = require("@bull-board/api/bullAdapter");
|
|
18
|
-
const express_1 = require("@bull-board/express");
|
|
19
|
-
const koa_1 = require("@bull-board/koa");
|
|
15
|
+
const board_middleware_1 = require("./board.middleware");
|
|
20
16
|
let BullBoardConfiguration = class BullBoardConfiguration {
|
|
21
17
|
async onReady() {
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
(
|
|
29
|
-
|
|
30
|
-
serverAdapter,
|
|
18
|
+
const apps = this.applicationManager.getApplications([
|
|
19
|
+
'express',
|
|
20
|
+
'egg',
|
|
21
|
+
'koa',
|
|
22
|
+
]);
|
|
23
|
+
if (apps.length) {
|
|
24
|
+
apps.forEach(app => {
|
|
25
|
+
app.useMiddleware(board_middleware_1.BoardMiddleware);
|
|
31
26
|
});
|
|
32
|
-
serverAdapter.setBasePath(basePath);
|
|
33
|
-
expressApp['originUse'](basePath, serverAdapter.getRouter());
|
|
34
|
-
}
|
|
35
|
-
const apps = this.applicationManager.getApplications(['egg', 'koa']);
|
|
36
|
-
for (const app of apps) {
|
|
37
|
-
const serverAdapter = new koa_1.KoaAdapter();
|
|
38
|
-
(0, api_1.createBullBoard)({
|
|
39
|
-
queues: wrapQueues,
|
|
40
|
-
serverAdapter,
|
|
41
|
-
});
|
|
42
|
-
serverAdapter.setBasePath(basePath);
|
|
43
|
-
await app.useMiddleware(serverAdapter.registerPlugin());
|
|
44
27
|
}
|
|
45
28
|
}
|
|
46
29
|
};
|
|
47
30
|
__decorate([
|
|
48
|
-
(0,
|
|
49
|
-
__metadata("design:type", bull.Framework)
|
|
50
|
-
], BullBoardConfiguration.prototype, "framework", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, decorator_1.Inject)(),
|
|
31
|
+
(0, core_1.Inject)(),
|
|
53
32
|
__metadata("design:type", core_1.MidwayApplicationManager)
|
|
54
33
|
], BullBoardConfiguration.prototype, "applicationManager", void 0);
|
|
55
34
|
__decorate([
|
|
56
|
-
(0,
|
|
57
|
-
__metadata("design:type",
|
|
58
|
-
], BullBoardConfiguration.prototype, "
|
|
35
|
+
(0, core_1.Inject)(),
|
|
36
|
+
__metadata("design:type", core_1.MidwayConfigService)
|
|
37
|
+
], BullBoardConfiguration.prototype, "configService", void 0);
|
|
59
38
|
BullBoardConfiguration = __decorate([
|
|
60
|
-
(0,
|
|
39
|
+
(0, core_1.Configuration)({
|
|
61
40
|
namespace: 'bull-board',
|
|
62
41
|
imports: [bull],
|
|
63
42
|
importConfigs: [
|
|
64
43
|
{
|
|
65
44
|
default: {
|
|
66
45
|
bullBoard: {
|
|
67
|
-
basePath: 'ui',
|
|
46
|
+
basePath: '/ui',
|
|
68
47
|
adapterOptions: {
|
|
69
48
|
readOnlyMode: false,
|
|
70
49
|
},
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.Configuration = void 0;
|
|
4
18
|
var configuration_1 = require("./configuration");
|
|
5
19
|
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.BullBoardConfiguration; } });
|
|
20
|
+
__exportStar(require("./board.middleware"), exports);
|
|
6
21
|
//# sourceMappingURL=index.js.map
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/bull-board",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "midway component for bull",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -24,17 +24,19 @@
|
|
|
24
24
|
],
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@midwayjs/core": "^3.
|
|
28
|
-
"@midwayjs/
|
|
29
|
-
"@midwayjs/
|
|
27
|
+
"@midwayjs/core": "^3.6.0",
|
|
28
|
+
"@midwayjs/express": "^3.6.0",
|
|
29
|
+
"@midwayjs/koa": "^3.6.0",
|
|
30
|
+
"@midwayjs/mock": "^3.6.0"
|
|
30
31
|
},
|
|
31
32
|
"dependencies": {
|
|
32
|
-
"@bull-board/api": "4.
|
|
33
|
-
"@bull-board/
|
|
34
|
-
"@bull
|
|
35
|
-
"
|
|
33
|
+
"@bull-board/api": "4.4.0",
|
|
34
|
+
"@bull-board/ui": "4.4.0",
|
|
35
|
+
"@midwayjs/bull": "^3.6.0",
|
|
36
|
+
"ejs": "3.1.8"
|
|
36
37
|
},
|
|
37
38
|
"engines": {
|
|
38
39
|
"node": ">=12"
|
|
39
|
-
}
|
|
40
|
+
},
|
|
41
|
+
"gitHead": "22643b0e8519766bb7c68b975930199fc136336e"
|
|
40
42
|
}
|