jazz-tools 0.14.27 → 0.14.28
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +7 -0
- package/dist/{chunk-G3QC4FAY.js → chunk-AUQIX4E7.js} +19 -18
- package/dist/chunk-AUQIX4E7.js.map +1 -0
- package/dist/coValues/coFeed.d.ts +2 -1
- package/dist/coValues/coFeed.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/src/coValues/coFeed.ts +29 -24
- package/src/tests/coFeed.test.ts +49 -0
- package/dist/chunk-G3QC4FAY.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.14.
|
2
|
+
> jazz-tools@0.14.28 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup && pnpm types
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -11,12 +11,12 @@
|
|
11
11
|
[34mESM[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.js [22m[32m11.11 KB[39m
|
13
13
|
[32mESM[39m [1mdist/testing.js [22m[32m6.31 KB[39m
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
14
|
+
[32mESM[39m [1mdist/chunk-AUQIX4E7.js [22m[32m137.28 KB[39m
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m18.38 KB[39m
|
16
16
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.57 KB[39m
|
17
|
-
[32mESM[39m [1mdist/chunk-
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
17
|
+
[32mESM[39m [1mdist/chunk-AUQIX4E7.js.map [22m[32m313.97 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 61ms
|
19
19
|
|
20
|
-
> jazz-tools@0.14.
|
20
|
+
> jazz-tools@0.14.28 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
21
21
|
> tsc --outDir dist
|
22
22
|
|
package/CHANGELOG.md
CHANGED
@@ -1444,21 +1444,6 @@ var FileStream = class extends CoValueBase {
|
|
1444
1444
|
*/
|
1445
1445
|
static async loadAsBlob(id, options) {
|
1446
1446
|
let stream = await this.load(id, options);
|
1447
|
-
if (!options?.allowUnfinished && !stream?.isBinaryStreamEnded()) {
|
1448
|
-
stream = await new Promise((resolve) => {
|
1449
|
-
subscribeToCoValueWithoutMe(
|
1450
|
-
this,
|
1451
|
-
id,
|
1452
|
-
options || {},
|
1453
|
-
(value, unsubscribe) => {
|
1454
|
-
if (value.isBinaryStreamEnded()) {
|
1455
|
-
unsubscribe();
|
1456
|
-
resolve(value);
|
1457
|
-
}
|
1458
|
-
}
|
1459
|
-
);
|
1460
|
-
});
|
1461
|
-
}
|
1462
1447
|
return stream?.toBlob({
|
1463
1448
|
allowUnfinished: options?.allowUnfinished
|
1464
1449
|
});
|
@@ -1524,8 +1509,24 @@ var FileStream = class extends CoValueBase {
|
|
1524
1509
|
* Load a `FileStream`
|
1525
1510
|
* @category Subscription & Loading
|
1526
1511
|
*/
|
1527
|
-
static load(id, options) {
|
1528
|
-
|
1512
|
+
static async load(id, options) {
|
1513
|
+
const stream = await loadCoValueWithoutMe(this, id, options);
|
1514
|
+
if (!options?.allowUnfinished && !stream?.isBinaryStreamEnded()) {
|
1515
|
+
return new Promise((resolve) => {
|
1516
|
+
subscribeToCoValueWithoutMe(
|
1517
|
+
this,
|
1518
|
+
id,
|
1519
|
+
options || {},
|
1520
|
+
(value, unsubscribe) => {
|
1521
|
+
if (value.isBinaryStreamEnded()) {
|
1522
|
+
unsubscribe();
|
1523
|
+
resolve(value);
|
1524
|
+
}
|
1525
|
+
}
|
1526
|
+
);
|
1527
|
+
});
|
1528
|
+
}
|
1529
|
+
return stream;
|
1529
1530
|
}
|
1530
1531
|
static subscribe(id, ...args) {
|
1531
1532
|
const { options, listener } = parseSubscribeRestArgs(args);
|
@@ -4823,4 +4824,4 @@ export {
|
|
4823
4824
|
JazzContextManager
|
4824
4825
|
};
|
4825
4826
|
/* istanbul ignore file -- @preserve */
|
4826
|
-
//# sourceMappingURL=chunk-
|
4827
|
+
//# sourceMappingURL=chunk-AUQIX4E7.js.map
|