@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.
- package/dist/{client-B08VDLSA.js → client-DDACDVZ-.js} +1519 -1477
- package/dist/{client-B08VDLSA.js.map → client-DDACDVZ-.js.map} +1 -1
- package/dist/client.js +477 -477
- package/dist/client.js.map +1 -1
- package/dist/src/framer/cache/dynamic.d.ts +21 -1
- package/dist/src/framer/cache/dynamic.d.ts.map +1 -1
- package/dist/src/framer/cache/reader.d.ts +16 -2
- package/dist/src/framer/cache/reader.d.ts.map +1 -1
- package/dist/src/framer/cache/unary.d.ts +6 -4
- package/dist/src/framer/cache/unary.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/testutil.js +1 -1
- package/package.json +5 -5
- package/src/framer/cache/dynamic.ts +104 -43
- package/src/framer/cache/reader.ts +120 -49
- package/src/framer/cache/unary.ts +9 -5
- package/src/index.ts +1 -0
|
@@ -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
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
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
|
-
|
|
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
|
}
|