@synnaxlabs/client 0.57.0 → 0.57.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.
@@ -71,17 +71,21 @@ export class Unary {
71
71
  }
72
72
 
73
73
  /**
74
- * Reads cached data overlapping the given time range. The result includes the
75
- * live leading buffer when it overlaps, but the buffer never claims coverage:
76
- * its samples carry provisional leading alignments that cannot pair with fetched
77
- * data on another channel, so its span is still reported as a gap to fetch. A
74
+ * Reads cached data overlapping the given time range. The result includes the live
75
+ * leading buffer when the data it actually holds overlaps the range, judged by the
76
+ * last stamped write rather than the buffer's provisional MAX end, so the buffer
77
+ * never leaks into reads of spans it has no samples for. It never claims coverage
78
+ * either: its samples carry provisional leading alignments that cannot pair with
79
+ * fetched data on another channel, so its span is still reported as a gap to fetch. A
78
80
  * span may therefore return in both its streamed and fetched representation.
79
81
  */
80
82
  read(tr: TimeRange): DirtyReadResult {
81
83
  this.checkOpen("read");
82
84
  const res = this.static.dirtyRead(tr);
83
85
  const buf = this.dynamic.leadingBuffer;
84
- if (buf == null || buf.length === 0 || !buf.timeRange.overlapsWith(tr)) return res;
86
+ const dataTr = this.dynamic.dataTimeRange;
87
+ if (buf == null || dataTr == null || buf.length === 0 || !dataTr.overlapsWith(tr))
88
+ return res;
85
89
  res.series.push(buf);
86
90
  return res;
87
91
  }
package/src/index.ts CHANGED
@@ -25,6 +25,7 @@ export * from "@/connection";
25
25
  export { control } from "@/control";
26
26
  export { device } from "@/device";
27
27
  export {
28
+ AccessDeniedError,
28
29
  AuthError,
29
30
  ContiguityError,
30
31
  DisconnectedError,