kafka-console 1.4.4 → 1.4.6

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/build/cli.js CHANGED
File without changes
@@ -47,9 +47,6 @@ class Pool {
47
47
  this.timerId = setTimeout(() => this.done(true), timeout);
48
48
  }
49
49
  values.forEach((value) => this.push(value));
50
- if (count === 0) {
51
- Promise.resolve().then(() => this.done());
52
- }
53
50
  }
54
51
  push(value) {
55
52
  if (this.index >= this.skip && this.index < this.count) {
@@ -93,6 +90,9 @@ class Pool {
93
90
  });
94
91
  }
95
92
  [Symbol.asyncIterator]() {
93
+ if (this.count === 0) {
94
+ Promise.resolve().then(() => this.done());
95
+ }
96
96
  let i = 0;
97
97
  return {
98
98
  i,
package/package.json CHANGED
@@ -1,12 +1,18 @@
1
1
  {
2
2
  "name": "kafka-console",
3
- "version": "1.4.4",
3
+ "version": "1.4.6",
4
4
  "description": "Kafka CLI tool",
5
5
  "main": "index.js",
6
6
  "bin": {
7
7
  "kcli": "build/cli.js",
8
8
  "kafka-console": "build/cli.js"
9
9
  },
10
+ "scripts": {
11
+ "build": "rm -rf build && tsc",
12
+ "test": "NODE_ENV=test jest",
13
+ "test:cov": "COVERAGE=1 NODE_ENV=test jest",
14
+ "kcli": "ts-node src/index.ts"
15
+ },
10
16
  "repository": {
11
17
  "type": "git",
12
18
  "url": "git+https://github.com/3axap4eHko/kafka-console.git"
@@ -28,7 +34,7 @@
28
34
  "devDependencies": {
29
35
  "@types/jest": "^29.5.12",
30
36
  "@types/js-yaml": "^4.0.9",
31
- "@types/node": "^20.11.30",
37
+ "@types/node": "^20.12.2",
32
38
  "dotenv": "^16.4.5",
33
39
  "jest": "^29.7.0",
34
40
  "ts-jest": "^29.1.2",
@@ -37,13 +43,7 @@
37
43
  },
38
44
  "dependencies": {
39
45
  "commander": "^12.0.0",
40
- "evnty": "^2.1.90",
46
+ "evnty": "^2.1.91",
41
47
  "kafkajs": "^2.2.4"
42
- },
43
- "scripts": {
44
- "build": "rm -rf build && tsc",
45
- "test": "NODE_ENV=test jest",
46
- "test:cov": "COVERAGE=1 NODE_ENV=test jest",
47
- "kcli": "ts-node src/index.ts"
48
48
  }
49
- }
49
+ }