@midwayjs/kafka 3.16.5 → 3.17.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/framework.js +7 -1
- package/package.json +4 -4
package/dist/framework.js
CHANGED
|
@@ -99,7 +99,13 @@ let MidwayKafkaFramework = class MidwayKafkaFramework extends core_1.BaseFramewo
|
|
|
99
99
|
const result = await fn(ctx);
|
|
100
100
|
// 返回为undefined,下面永远不会执行
|
|
101
101
|
if (result) {
|
|
102
|
-
const res = await this.app.connection.commitOffsets(
|
|
102
|
+
const res = await this.app.connection.commitOffsets([
|
|
103
|
+
{
|
|
104
|
+
topic: topic,
|
|
105
|
+
partition: partition,
|
|
106
|
+
offset: message.offset,
|
|
107
|
+
},
|
|
108
|
+
]);
|
|
103
109
|
return res;
|
|
104
110
|
}
|
|
105
111
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/kafka",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.1",
|
|
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.
|
|
37
|
-
"@midwayjs/mock": "^3.
|
|
36
|
+
"@midwayjs/core": "^3.17.1",
|
|
37
|
+
"@midwayjs/mock": "^3.17.1"
|
|
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": "
|
|
45
|
+
"gitHead": "824d8474a425b342fcd4480649c83677f846afb9"
|
|
46
46
|
}
|