kafka-ts 0.0.8 → 0.0.9-beta.0
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/api/sync-group.js +3 -0
- package/package.json +2 -2
package/dist/api/sync-group.js
CHANGED
|
@@ -43,6 +43,9 @@ const encodeAssignment = (data) => new encoder_1.Encoder()
|
|
|
43
43
|
.value();
|
|
44
44
|
const decodeAssignment = (data) => {
|
|
45
45
|
const decoder = new decoder_1.Decoder(data);
|
|
46
|
+
if (!decoder.getBufferLength()) {
|
|
47
|
+
return {};
|
|
48
|
+
}
|
|
46
49
|
const result = {
|
|
47
50
|
version: decoder.readInt16(),
|
|
48
51
|
assignment: decoder.readArray((decoder) => ({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kafka-ts",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9-beta.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"author": "Priit Käärd",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"up": "npm run down && KAFKA_VERSION=3.7.1 docker-compose up -d && sleep 5 && bash ./scripts/create-scram-user.sh",
|
|
13
13
|
"down": "KAFKA_VERSION=3.7.1 docker-compose down",
|
|
14
|
-
"version:prerelease": "npm version prerelease",
|
|
14
|
+
"version:prerelease": "npm version prerelease --preid=beta",
|
|
15
15
|
"version:patch": "npm version patch",
|
|
16
16
|
"format": "prettier --write .",
|
|
17
17
|
"build": "tsc",
|