@midwayjs/kafka 3.19.2 → 3.20.2

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/README.md CHANGED
@@ -12,4 +12,4 @@ Document: [https://midwayjs.org](https://midwayjs.org)
12
12
 
13
13
  ## License
14
14
 
15
- [MIT]((http://github.com/midwayjs/midway/blob/master/LICENSE))
15
+ [MIT]((https://github.com/midwayjs/midway/blob/master/LICENSE))
@@ -1,3 +1,5 @@
1
+ import { IMidwayContainer } from '@midwayjs/core';
1
2
  export declare class KafkaConfiguration {
3
+ onReady(container: IMidwayContainer): Promise<void>;
2
4
  }
3
5
  //# sourceMappingURL=configuration.d.ts.map
@@ -8,7 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.KafkaConfiguration = void 0;
10
10
  const core_1 = require("@midwayjs/core");
11
+ const service_1 = require("./service");
11
12
  let KafkaConfiguration = class KafkaConfiguration {
13
+ async onReady(container) {
14
+ await container.getAsync(service_1.KafkaProducerFactory);
15
+ }
12
16
  };
13
17
  KafkaConfiguration = __decorate([
14
18
  (0, core_1.Configuration)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midwayjs/kafka",
3
- "version": "3.19.2",
3
+ "version": "3.20.2",
4
4
  "description": "Midway Framework for kafka",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -33,8 +33,8 @@
33
33
  },
34
34
  "homepage": "https://github.com/midwayjs/midway#readme",
35
35
  "devDependencies": {
36
- "@midwayjs/core": "^3.19.0",
37
- "@midwayjs/mock": "^3.19.2"
36
+ "@midwayjs/core": "^3.20.0",
37
+ "@midwayjs/mock": "^3.20.0"
38
38
  },
39
39
  "dependencies": {
40
40
  "kafkajs": "2.2.4"
@@ -42,5 +42,5 @@
42
42
  "engines": {
43
43
  "node": ">=12"
44
44
  },
45
- "gitHead": "57fd034be94897fb819b0d9ef776de0b9923ab0f"
45
+ "gitHead": "f7b70a56947c48c820001f9ff5bc1071f7e94b09"
46
46
  }