@hatchet-dev/typescript-sdk 0.5.0 → 0.5.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.
@@ -142,7 +142,7 @@ class ActionListener {
142
142
  }
143
143
  });
144
144
  // start with a heartbeat
145
- beat();
145
+ yield beat();
146
146
  this.heartbeatInterval = setInterval(beat, 4000);
147
147
  });
148
148
  }
@@ -178,7 +178,7 @@ class ActionListener {
178
178
  const res = this.client.listenV2({
179
179
  workerId: this.workerId,
180
180
  });
181
- this.heartbeat();
181
+ yield this.heartbeat();
182
182
  this.logger.info('Connection established using LISTEN_STRATEGY_V2');
183
183
  return res;
184
184
  }
@@ -199,7 +199,7 @@ class ActionListener {
199
199
  this.done = true;
200
200
  this.closeHeartbeat();
201
201
  try {
202
- return this.client.unsubscribe({
202
+ return yield this.client.unsubscribe({
203
203
  workerId: this.workerId,
204
204
  });
205
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [