apache-iggy 0.7.0 → 0.7.1-edge.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.
@@ -214,7 +214,7 @@ export class CommandResponseStream extends EventEmitter {
214
214
  return;
215
215
  this.heartbeatIntervalHandler = setInterval(async () => {
216
216
  if (this.connection.connected) {
217
- debug(`sending hearbeat ping (interval: ${interval} ms)`);
217
+ debug(`sending heartbeat ping (interval: ${interval} ms)`);
218
218
  await this.ping();
219
219
  }
220
220
  }, interval);
@@ -29,8 +29,8 @@ export const deserializeClient = (r, pos = 0) => {
29
29
  * 0 - 4 u32 - client_id
30
30
  * 4 - 8 u32 - user_id
31
31
  * 8 - 9 u8 - transport
32
- * 9 - 13 u32 - adress length x
33
- * 13 - x string - adress
32
+ * 9 - 13 u32 - address length x
33
+ * 13 - x string - address
34
34
  * x - x+4 u32 - consumerGroupCount
35
35
  */
36
36
  if (r.length < 17)
@@ -68,6 +68,6 @@ export const COMMAND_CODE = {
68
68
  };
69
69
  const reverseCommandCodeMap = reverseRecord(COMMAND_CODE);
70
70
  export const translateCommandCode = (code) => {
71
- return reverseCommandCodeMap[code] || `unknow_command_code_${code}`;
71
+ return reverseCommandCodeMap[code] || `unknown_command_code_${code}`;
72
72
  };
73
73
  //# sourceMappingURL=command.code.js.map
@@ -126,7 +126,7 @@ export const serializeHeaders = (headers) => {
126
126
  */
127
127
  export const mapHeaderKind = (k) => {
128
128
  if (!ReverseHeaderKind[k])
129
- throw new Error(`unknow header kind: ${k}`);
129
+ throw new Error(`unknown header kind: ${k}`);
130
130
  return ReverseHeaderKind[k];
131
131
  };
132
132
  /**
@@ -129,7 +129,7 @@ const ReverseMessageState = reverseRecord(MessageState);
129
129
  */
130
130
  export const mapMessageState = (k) => {
131
131
  if (!ReverseMessageState[k])
132
- throw new Error(`unknow message state: ${k}`);
132
+ throw new Error(`unknown message state: ${k}`);
133
133
  return ReverseMessageState[k];
134
134
  };
135
135
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apache-iggy",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.1-edge.1",
5
5
  "description": "Official Apache Iggy NodeJS SDK",
6
6
  "keywords": [
7
7
  "iggy",
@@ -58,6 +58,7 @@
58
58
  "@swc-node/register": "1.11.1",
59
59
  "@types/debug": "4.1.12",
60
60
  "@types/node": "24.10.1",
61
+ "c8": "^10.1.0",
61
62
  "husky": "9.1.7",
62
63
  "typescript": "5.9.3",
63
64
  "typescript-eslint": "^8.47.0"