@midwayjs/bull 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.
@@ -15,6 +15,8 @@ const DefaultConfig = require("./config/config.default");
15
15
  const framework_1 = require("./framework");
16
16
  const constants_1 = require("./constants");
17
17
  let BullConfiguration = class BullConfiguration {
18
+ framework;
19
+ decoratorService;
18
20
  async init() {
19
21
  this.decoratorService.registerPropertyHandler(constants_1.BULL_QUEUE_KEY, (propertyName, meta) => {
20
22
  return this.framework.getQueue(meta.queueName);
package/dist/decorator.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InjectQueue = exports.Processor = void 0;
3
+ exports.Processor = Processor;
4
+ exports.InjectQueue = InjectQueue;
4
5
  const core_1 = require("@midwayjs/core");
5
6
  const constants_1 = require("./constants");
6
7
  function Processor(queueName, concurrency, jobOptions, queueOptions) {
@@ -21,11 +22,9 @@ function Processor(queueName, concurrency, jobOptions, queueOptions) {
21
22
  (0, core_1.Scope)(core_1.ScopeEnum.Request)(target);
22
23
  };
23
24
  }
24
- exports.Processor = Processor;
25
25
  function InjectQueue(queueName) {
26
26
  return core_1.DecoratorManager.createCustomPropertyDecorator(constants_1.BULL_QUEUE_KEY, {
27
27
  queueName,
28
28
  });
29
29
  }
30
- exports.InjectQueue = InjectQueue;
31
30
  //# sourceMappingURL=decorator.js.map
package/dist/framework.js CHANGED
@@ -29,11 +29,11 @@ class BullQueue extends Bull {
29
29
  }
30
30
  exports.BullQueue = BullQueue;
31
31
  let BullFramework = class BullFramework extends core_1.BaseFramework {
32
- constructor() {
33
- super(...arguments);
34
- this.queueMap = new Map();
35
- this.frameworkLoggerName = 'bullLogger';
36
- }
32
+ bullDefaultQueueConfig;
33
+ bullDefaultConcurrency;
34
+ bullClearRepeatJobWhenStart;
35
+ queueMap = new Map();
36
+ frameworkLoggerName = 'bullLogger';
37
37
  async applicationInitialize(options) {
38
38
  this.app = {};
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/bull",
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",
@@ -24,8 +24,8 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@midwayjs/core": "^4.0.0-beta.7",
28
- "@midwayjs/mock": "^4.0.0-beta.7"
27
+ "@midwayjs/core": "^4.0.0-beta.8",
28
+ "@midwayjs/mock": "^4.0.0-beta.8"
29
29
  },
30
30
  "dependencies": {
31
31
  "bull": "4.16.5"
@@ -33,5 +33,5 @@
33
33
  "engines": {
34
34
  "node": ">=20"
35
35
  },
36
- "gitHead": "6a221788112b4d998b3958e0a275579f42816c59"
36
+ "gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
37
37
  }