@midwayjs/bull-board 4.0.0-beta.7 → 4.0.0-beta.8

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.js CHANGED
@@ -6,10 +6,14 @@ const path_1 = require("path");
6
6
  const fs_1 = require("fs");
7
7
  const core_1 = require("@midwayjs/core");
8
8
  class MidwayAdapter {
9
- constructor() {
10
- this.basePath = '';
11
- this.staticCache = new Map();
12
- }
9
+ basePath = '';
10
+ bullBoardQueues;
11
+ // private errorHandler: ((error: Error) => ControllerHandlerReturnType) | undefined;
12
+ statics;
13
+ viewPath;
14
+ entryRoute;
15
+ apiRoutes;
16
+ staticCache = new Map();
13
17
  setBasePath(path) {
14
18
  this.basePath = path;
15
19
  return this;
@@ -16,6 +16,12 @@ const bullAdapter_1 = require("@bull-board/api/bullAdapter");
16
16
  const bullMQAdapter_1 = require("@bull-board/api/bullMQAdapter");
17
17
  const adapter_1 = require("./adapter");
18
18
  let BullBoardManager = class BullBoardManager {
19
+ bullBoard;
20
+ bullBoardConfig;
21
+ frameworkService;
22
+ applicationContext;
23
+ basePath;
24
+ serverAdapter;
19
25
  async init() {
20
26
  let framework = this.frameworkService.getFramework('bull');
21
27
  if (!framework) {
@@ -32,6 +32,10 @@ const MIME_MAP = {
32
32
  '.otf': 'application/x-font-opentype',
33
33
  };
34
34
  let BoardMiddleware = class BoardMiddleware {
35
+ bullBoardConfig;
36
+ bullBoardManager;
37
+ basePath;
38
+ serverAdapter;
35
39
  resolve(app) {
36
40
  this.basePath = this.bullBoardManager.getBasePath();
37
41
  this.serverAdapter = this.bullBoardManager.getServerAdapter();
@@ -14,6 +14,8 @@ const core_1 = require("@midwayjs/core");
14
14
  const board_middleware_1 = require("./board.middleware");
15
15
  const board_manager_1 = require("./board.manager");
16
16
  let BullBoardConfiguration = class BullBoardConfiguration {
17
+ applicationManager;
18
+ configService;
17
19
  async onReady(container) {
18
20
  const apps = this.applicationManager.getApplications([
19
21
  'express',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/bull-board",
3
- "version": "4.0.0-beta.7",
3
+ "version": "4.0.0-beta.8",
4
4
  "description": "midway component for bull",
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": "^4.0.0-beta.7",
29
- "@midwayjs/bullmq": "^4.0.0-beta.7",
30
- "@midwayjs/core": "^4.0.0-beta.7",
31
- "@midwayjs/express": "^4.0.0-beta.7",
32
- "@midwayjs/koa": "^4.0.0-beta.7",
33
- "@midwayjs/mock": "^4.0.0-beta.7"
28
+ "@midwayjs/bull": "^4.0.0-beta.8",
29
+ "@midwayjs/bullmq": "^4.0.0-beta.8",
30
+ "@midwayjs/core": "^4.0.0-beta.8",
31
+ "@midwayjs/express": "^4.0.0-beta.8",
32
+ "@midwayjs/koa": "^4.0.0-beta.8",
33
+ "@midwayjs/mock": "^4.0.0-beta.8"
34
34
  },
35
35
  "dependencies": {
36
36
  "@bull-board/api": "5.23.0",
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=20"
42
42
  },
43
- "gitHead": "6a221788112b4d998b3958e0a275579f42816c59"
43
+ "gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
44
44
  }