@drift-labs/sdk 2.79.0-beta.0 → 2.79.0-beta.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.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 2.79.0-beta.0
1
+ 2.79.0-beta.1
@@ -117,6 +117,10 @@ class EventSubscriber {
117
117
  }
118
118
  }
119
119
  async unsubscribe() {
120
+ this.eventListMap.clear();
121
+ this.txEventCache.clear();
122
+ this.awaitTxPromises.clear();
123
+ this.awaitTxResolver.clear();
120
124
  return await this.logProvider.unsubscribe(true);
121
125
  }
122
126
  parseEventsFromLogs(txSig, slot, logs) {
@@ -152,6 +152,7 @@ class OrderSubscriber {
152
152
  return (_a = this.mostRecentSlot) !== null && _a !== void 0 ? _a : 0;
153
153
  }
154
154
  async unsubscribe() {
155
+ this.usersAccounts.clear();
155
156
  await this.subscription.unsubscribe();
156
157
  }
157
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.79.0-beta.0",
3
+ "version": "2.79.0-beta.1",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -203,6 +203,11 @@ export class EventSubscriber {
203
203
  }
204
204
 
205
205
  public async unsubscribe(): Promise<boolean> {
206
+ this.eventListMap.clear();
207
+ this.txEventCache.clear();
208
+ this.awaitTxPromises.clear();
209
+ this.awaitTxResolver.clear();
210
+
206
211
  return await this.logProvider.unsubscribe(true);
207
212
  }
208
213
 
@@ -229,6 +229,7 @@ export class OrderSubscriber {
229
229
  }
230
230
 
231
231
  public async unsubscribe(): Promise<void> {
232
+ this.usersAccounts.clear();
232
233
  await this.subscription.unsubscribe();
233
234
  }
234
235
  }