@synnaxlabs/client 0.16.3 → 0.16.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.
package/dist/client.js CHANGED
@@ -15788,7 +15788,7 @@ let gh = (an = class {
15788
15788
  try {
15789
15789
  if (await s.write(e, n), !await s.commit())
15790
15790
  throw await s.error();
15791
- } catch {
15791
+ } finally {
15792
15792
  await s.close();
15793
15793
  }
15794
15794
  }
@@ -15798,8 +15798,12 @@ let gh = (an = class {
15798
15798
  }
15799
15799
  async readFrame(e, t) {
15800
15800
  const n = await this.newIterator(e, t), s = new wt();
15801
- for await (const a of n)
15802
- s.push(a);
15801
+ try {
15802
+ for await (const a of n)
15803
+ s.push(a);
15804
+ } finally {
15805
+ await n.close();
15806
+ }
15803
15807
  return s;
15804
15808
  }
15805
15809
  };