@hatchet-dev/typescript-sdk 0.4.3 → 0.4.4

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.
@@ -134,6 +134,7 @@ class ActionListener {
134
134
  catch (e) {
135
135
  if (e.code === nice_grpc_1.Status.UNIMPLEMENTED) {
136
136
  // break out of interval
137
+ this.logger.error('Heartbeat not implemented, closing heartbeat');
137
138
  this.closeHeartbeat();
138
139
  return;
139
140
  }
@@ -148,6 +149,7 @@ class ActionListener {
148
149
  closeHeartbeat() {
149
150
  if (this.heartbeatInterval) {
150
151
  clearInterval(this.heartbeatInterval);
152
+ this.heartbeatInterval = null;
151
153
  }
152
154
  }
153
155
  getListenClient() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [