@drift-labs/sdk 2.48.0-beta.25 → 2.48.0-beta.27

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.48.0-beta.25
1
+ 2.48.0-beta.27
@@ -87,7 +87,8 @@ class OrderSubscriber {
87
87
  // @ts-ignore
88
88
  const buffer = buffer_1.Buffer.from(data[0], data[1]);
89
89
  const newLastActiveSlot = new index_1.BN(buffer.subarray(4328, 4328 + 8), undefined, 'le');
90
- if (slotAndUserAccount.userAccount.lastActiveSlot.gt(newLastActiveSlot)) {
90
+ if (slotAndUserAccount &&
91
+ slotAndUserAccount.userAccount.lastActiveSlot.gt(newLastActiveSlot)) {
91
92
  return;
92
93
  }
93
94
  userAccount =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.48.0-beta.25",
3
+ "version": "2.48.0-beta.27",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
@@ -133,6 +133,7 @@ export class OrderSubscriber {
133
133
  'le'
134
134
  );
135
135
  if (
136
+ slotAndUserAccount &&
136
137
  slotAndUserAccount.userAccount.lastActiveSlot.gt(newLastActiveSlot)
137
138
  ) {
138
139
  return;