@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.
|
|
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) {
|
package/package.json
CHANGED
|
@@ -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
|
|