@midwayjs/bull-board 3.20.7 → 4.0.0-beta.1

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.
@@ -69,6 +69,7 @@ let BullBoardManager = class BullBoardManager {
69
69
  this.bullBoard.setQueues(newBullQueues);
70
70
  }
71
71
  };
72
+ exports.BullBoardManager = BullBoardManager;
72
73
  __decorate([
73
74
  (0, core_1.Config)('bullBoard'),
74
75
  __metadata("design:type", Object)
@@ -87,8 +88,7 @@ __decorate([
87
88
  __metadata("design:paramtypes", []),
88
89
  __metadata("design:returntype", Promise)
89
90
  ], BullBoardManager.prototype, "init", null);
90
- BullBoardManager = __decorate([
91
+ exports.BullBoardManager = BullBoardManager = __decorate([
91
92
  (0, core_1.Singleton)()
92
93
  ], BullBoardManager);
93
- exports.BullBoardManager = BullBoardManager;
94
94
  //# sourceMappingURL=board.manager.js.map
@@ -35,7 +35,7 @@ let BoardMiddleware = class BoardMiddleware {
35
35
  resolve(app) {
36
36
  this.basePath = this.bullBoardManager.getBasePath();
37
37
  this.serverAdapter = this.bullBoardManager.getServerAdapter();
38
- if (app.getFrameworkType() === core_1.MidwayFrameworkType.WEB_EXPRESS) {
38
+ if ('express' === app.getNamespace()) {
39
39
  return async (req, res, next) => {
40
40
  const pathname = req.path;
41
41
  if (pathname.indexOf(this.basePath) === -1) {
@@ -120,6 +120,7 @@ let BoardMiddleware = class BoardMiddleware {
120
120
  return 'bull-board-ui';
121
121
  }
122
122
  };
123
+ exports.BoardMiddleware = BoardMiddleware;
123
124
  __decorate([
124
125
  (0, core_1.Config)('bullBoard'),
125
126
  __metadata("design:type", Object)
@@ -128,9 +129,8 @@ __decorate([
128
129
  (0, core_1.Inject)(),
129
130
  __metadata("design:type", board_manager_1.BullBoardManager)
130
131
  ], BoardMiddleware.prototype, "bullBoardManager", void 0);
131
- BoardMiddleware = __decorate([
132
+ exports.BoardMiddleware = BoardMiddleware = __decorate([
132
133
  (0, core_1.Provide)(),
133
134
  (0, core_1.Scope)(core_1.ScopeEnum.Singleton)
134
135
  ], BoardMiddleware);
135
- exports.BoardMiddleware = BoardMiddleware;
136
136
  //# sourceMappingURL=board.middleware.js.map
@@ -33,6 +33,7 @@ let BullBoardConfiguration = class BullBoardConfiguration {
33
33
  await container.getAsync(board_manager_1.BullBoardManager);
34
34
  }
35
35
  };
36
+ exports.BullBoardConfiguration = BullBoardConfiguration;
36
37
  __decorate([
37
38
  (0, core_1.Inject)(),
38
39
  __metadata("design:type", core_1.MidwayApplicationManager)
@@ -41,7 +42,7 @@ __decorate([
41
42
  (0, core_1.Inject)(),
42
43
  __metadata("design:type", core_1.MidwayConfigService)
43
44
  ], BullBoardConfiguration.prototype, "configService", void 0);
44
- BullBoardConfiguration = __decorate([
45
+ exports.BullBoardConfiguration = BullBoardConfiguration = __decorate([
45
46
  (0, core_1.Configuration)({
46
47
  namespace: 'bull-board',
47
48
  importConfigs: [
@@ -59,5 +60,4 @@ BullBoardConfiguration = __decorate([
59
60
  ],
60
61
  })
61
62
  ], BullBoardConfiguration);
62
- exports.BullBoardConfiguration = BullBoardConfiguration;
63
63
  //# sourceMappingURL=configuration.js.map
package/dist/index.d.ts CHANGED
@@ -3,7 +3,4 @@ export * from './board.middleware';
3
3
  export * from './board.manager';
4
4
  export * from './interface';
5
5
  export * as BullBoard from '@bull-board/api';
6
- export { MidwayAdapter } from './adapter';
7
- export { BullAdapter } from '@bull-board/api/bullAdapter';
8
- export { BullMQAdapter } from '@bull-board/api/bullMQAdapter';
9
6
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -14,17 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.BullMQAdapter = exports.BullAdapter = exports.MidwayAdapter = exports.BullBoard = exports.Configuration = void 0;
17
+ exports.BullBoard = exports.Configuration = void 0;
18
18
  var configuration_1 = require("./configuration");
19
19
  Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.BullBoardConfiguration; } });
20
20
  __exportStar(require("./board.middleware"), exports);
21
21
  __exportStar(require("./board.manager"), exports);
22
22
  __exportStar(require("./interface"), exports);
23
23
  exports.BullBoard = require("@bull-board/api");
24
- var adapter_1 = require("./adapter");
25
- Object.defineProperty(exports, "MidwayAdapter", { enumerable: true, get: function () { return adapter_1.MidwayAdapter; } });
26
- var bullAdapter_1 = require("@bull-board/api/bullAdapter");
27
- Object.defineProperty(exports, "BullAdapter", { enumerable: true, get: function () { return bullAdapter_1.BullAdapter; } });
28
- var bullMQAdapter_1 = require("@bull-board/api/bullMQAdapter");
29
- Object.defineProperty(exports, "BullMQAdapter", { enumerable: true, get: function () { return bullMQAdapter_1.BullMQAdapter; } });
30
24
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@midwayjs/bull-board",
3
- "version": "3.20.7",
4
- "description": "midway component for bull-board",
3
+ "version": "4.0.0-beta.1",
4
+ "description": "midway component for bull",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
7
7
  "scripts": {
8
8
  "build": "tsc",
9
- "test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
10
- "cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit"
9
+ "test": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand",
10
+ "cov": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand --coverage --forceExit"
11
11
  },
12
12
  "keywords": [
13
13
  "midway",
@@ -25,12 +25,12 @@
25
25
  ],
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@midwayjs/bull": "^3.20.4",
29
- "@midwayjs/bullmq": "^3.20.5",
30
- "@midwayjs/core": "^3.20.4",
31
- "@midwayjs/express": "^3.20.4",
32
- "@midwayjs/koa": "^3.20.5",
33
- "@midwayjs/mock": "^3.20.4"
28
+ "@midwayjs/bull": "^4.0.0-beta.1",
29
+ "@midwayjs/bullmq": "^4.0.0-beta.1",
30
+ "@midwayjs/core": "^4.0.0-beta.1",
31
+ "@midwayjs/express": "^4.0.0-beta.1",
32
+ "@midwayjs/koa": "^4.0.0-beta.1",
33
+ "@midwayjs/mock": "^4.0.0-beta.1"
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": "247afa16282b7f391f2dfa3cd922b52c25f5a332"
43
+ "gitHead": "832961ec3aff123c033197d8c00cb2bc9bad7ff8"
44
44
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
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.