@midwayjs/kafka 3.9.0 → 3.10.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.
- package/dist/interface.d.ts +5 -5
- package/package.json +4 -4
package/dist/interface.d.ts
CHANGED
|
@@ -2,20 +2,20 @@ import { IConfigurationOptions, IMidwayApplication, IMidwayContext, NextFunction
|
|
|
2
2
|
import { Kafka, KafkaConfig } from 'kafkajs';
|
|
3
3
|
export interface IKafkaApplication {
|
|
4
4
|
}
|
|
5
|
-
export
|
|
5
|
+
export type IMidwayKafkaApplication = IMidwayApplication<IMidwayKafkaContext> & IKafkaApplication;
|
|
6
6
|
export interface IMidwayKafkaConfigurationOptions extends IConfigurationOptions, KafkaConfig {
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type IMidwayKafkaContext = IMidwayContext<{
|
|
9
9
|
topic: any;
|
|
10
10
|
partition: any;
|
|
11
11
|
message: any;
|
|
12
12
|
commitOffsets(data: any): void;
|
|
13
13
|
}>;
|
|
14
|
-
export
|
|
14
|
+
export type Application = IMidwayKafkaApplication;
|
|
15
15
|
export interface Context extends IMidwayKafkaContext {
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
export
|
|
17
|
+
export type NextFunction = BaseNextFunction;
|
|
18
|
+
export type DefaultConfig = string | Kafka;
|
|
19
19
|
/**
|
|
20
20
|
* 客户端的相关配置,在midwayjs的自定义配置项
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/kafka",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.1",
|
|
4
4
|
"description": "Midway Framework for kafka",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/midwayjs/midway#readme",
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@midwayjs/core": "^3.
|
|
36
|
+
"@midwayjs/core": "^3.10.1",
|
|
37
37
|
"@midwayjs/logger": "^2.15.0",
|
|
38
|
-
"@midwayjs/mock": "^3.
|
|
38
|
+
"@midwayjs/mock": "^3.10.1"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"kafkajs": "2.2.3"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=12"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "6bc9f7a97e4188399d2406f5a38bad5aeb983e07"
|
|
47
47
|
}
|