jazz-tools 0.7.35-unique.2 → 0.7.35
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-test.log +44 -57
- package/CHANGELOG.md +8 -10
- package/dist/coValues/account.js +35 -20
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +19 -14
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +33 -32
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +37 -15
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/extensions/imageDef.js +8 -3
- package/dist/coValues/extensions/imageDef.js.map +1 -1
- package/dist/coValues/group.js +23 -20
- package/dist/coValues/group.js.map +1 -1
- package/dist/implementation/devtoolsFormatters.js +1 -0
- package/dist/implementation/devtoolsFormatters.js.map +1 -1
- package/dist/implementation/refs.js +0 -3
- package/dist/implementation/refs.js.map +1 -1
- package/dist/implementation/schema.js.map +1 -1
- package/dist/implementation/subscriptionScope.js +5 -8
- package/dist/implementation/subscriptionScope.js.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/internal.js +0 -1
- package/dist/internal.js.map +1 -1
- package/dist/tests/coList.test.js +15 -23
- package/dist/tests/coList.test.js.map +1 -1
- package/dist/tests/coMap.test.js +216 -75
- package/dist/tests/coMap.test.js.map +1 -1
- package/dist/tests/coStream.test.js +59 -26
- package/dist/tests/coStream.test.js.map +1 -1
- package/dist/tests/deepLoading.test.js +41 -28
- package/dist/tests/deepLoading.test.js.map +1 -1
- package/dist/tests/groupsAndAccounts.test.js +22 -8
- package/dist/tests/groupsAndAccounts.test.js.map +1 -1
- package/package.json +3 -3
- package/src/coValues/account.ts +28 -5
- package/src/coValues/coList.ts +4 -4
- package/src/coValues/coMap.ts +54 -46
- package/src/coValues/coStream.ts +30 -5
- package/src/coValues/group.ts +2 -2
- package/src/coValues/interfaces.ts +4 -4
- package/src/implementation/devtoolsFormatters.ts +1 -0
- package/src/implementation/schema.ts +1 -0
- package/src/index.ts +1 -9
- package/src/internal.ts +0 -2
- package/src/tests/coList.test.ts +14 -30
- package/src/tests/coMap.test.ts +158 -49
- package/src/tests/coStream.test.ts +74 -27
- package/src/tests/deepLoading.test.ts +18 -22
- package/tsconfig.json +1 -1
- package/dist/implementation/createContext.js +0 -94
- package/dist/implementation/createContext.js.map +0 -1
- package/src/implementation/createContext.ts +0 -162
package/dist/tests/coMap.test.js
CHANGED
@@ -1,27 +1,30 @@
|
|
1
|
-
import { expect, describe, test } from "vitest";
|
1
|
+
import { expect, describe, test, expectTypeOf } from "vitest";
|
2
2
|
import { connectedPeers } from "cojson/src/streamUtils.js";
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { newRandomSessionID } from "cojson/src/coValueCore.js";
|
4
|
+
import { Account, Encoders, CoMap, co, WasmCrypto, isControlledAccount, cojsonInternals, } from "../index.js";
|
5
5
|
const Crypto = await WasmCrypto.create();
|
6
|
-
class TestMap extends CoMap {
|
7
|
-
color = co.string;
|
8
|
-
_height = co.number;
|
9
|
-
birthday = co.encoded(Encoders.Date);
|
10
|
-
name = co.string;
|
11
|
-
nullable = co.optional.encoded({
|
12
|
-
encode: (value) => value || null,
|
13
|
-
decode: (value) => value || undefined,
|
14
|
-
});
|
15
|
-
optionalDate = co.optional.encoded(Encoders.Date);
|
16
|
-
get roughColor() {
|
17
|
-
return this.color + "ish";
|
18
|
-
}
|
19
|
-
}
|
20
6
|
describe("Simple CoMap operations", async () => {
|
21
7
|
const me = await Account.create({
|
22
8
|
creationProps: { name: "Hermes Puggington" },
|
23
9
|
crypto: Crypto,
|
24
10
|
});
|
11
|
+
class TestMap extends CoMap {
|
12
|
+
constructor() {
|
13
|
+
super(...arguments);
|
14
|
+
this.color = co.string;
|
15
|
+
this._height = co.number;
|
16
|
+
this.birthday = co.encoded(Encoders.Date);
|
17
|
+
this.name = co.string;
|
18
|
+
this.nullable = co.optional.encoded({
|
19
|
+
encode: (value) => value || null,
|
20
|
+
decode: (value) => value || undefined,
|
21
|
+
});
|
22
|
+
this.optionalDate = co.optional.encoded(Encoders.Date);
|
23
|
+
}
|
24
|
+
get roughColor() {
|
25
|
+
return this.color + "ish";
|
26
|
+
}
|
27
|
+
}
|
25
28
|
console.log("TestMap schema", TestMap.prototype._schema);
|
26
29
|
const birthday = new Date();
|
27
30
|
const map = TestMap.create({
|
@@ -94,8 +97,11 @@ describe("Simple CoMap operations", async () => {
|
|
94
97
|
});
|
95
98
|
});
|
96
99
|
class RecursiveMap extends CoMap {
|
97
|
-
|
98
|
-
|
100
|
+
constructor() {
|
101
|
+
super(...arguments);
|
102
|
+
this.name = co.string;
|
103
|
+
this.next = co.ref(RecursiveMap);
|
104
|
+
}
|
99
105
|
}
|
100
106
|
const recursiveMap = RecursiveMap.create({
|
101
107
|
name: "first",
|
@@ -114,16 +120,25 @@ describe("Simple CoMap operations", async () => {
|
|
114
120
|
});
|
115
121
|
});
|
116
122
|
class MapWithEnumOfMaps extends CoMap {
|
117
|
-
|
118
|
-
|
123
|
+
constructor() {
|
124
|
+
super(...arguments);
|
125
|
+
this.name = co.string;
|
126
|
+
this.child = co.ref((raw) => raw.get("type") === "a" ? ChildA : ChildB);
|
127
|
+
}
|
119
128
|
}
|
120
129
|
class ChildA extends CoMap {
|
121
|
-
|
122
|
-
|
130
|
+
constructor() {
|
131
|
+
super(...arguments);
|
132
|
+
this.type = co.literal("a");
|
133
|
+
this.value = co.number;
|
134
|
+
}
|
123
135
|
}
|
124
136
|
class ChildB extends CoMap {
|
125
|
-
|
126
|
-
|
137
|
+
constructor() {
|
138
|
+
super(...arguments);
|
139
|
+
this.type = co.literal("b");
|
140
|
+
this.value = co.string;
|
141
|
+
}
|
127
142
|
}
|
128
143
|
const mapWithEnum = MapWithEnumOfMaps.create({
|
129
144
|
name: "enum",
|
@@ -139,35 +154,54 @@ describe("Simple CoMap operations", async () => {
|
|
139
154
|
expect(mapWithEnum.child?.id).toBeDefined();
|
140
155
|
});
|
141
156
|
class SuperClassMap extends CoMap {
|
142
|
-
|
157
|
+
constructor() {
|
158
|
+
super(...arguments);
|
159
|
+
this.name = co.string;
|
160
|
+
}
|
143
161
|
}
|
144
162
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
145
163
|
class SubClassMap extends SuperClassMap {
|
146
|
-
|
147
|
-
|
148
|
-
|
164
|
+
constructor() {
|
165
|
+
super(...arguments);
|
166
|
+
this.name = co.literal("specificString");
|
167
|
+
this.value = co.number;
|
168
|
+
this.extra = co.ref(TestMap);
|
169
|
+
}
|
149
170
|
}
|
150
171
|
class GenericMapWithLoose extends CoMap {
|
151
|
-
|
172
|
+
constructor() {
|
173
|
+
super(...arguments);
|
174
|
+
this.name = co.json();
|
175
|
+
}
|
152
176
|
}
|
153
177
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
154
178
|
const loose = {};
|
155
179
|
});
|
156
180
|
describe("CoMap resolution", async () => {
|
181
|
+
var _a;
|
157
182
|
class TwiceNestedMap extends CoMap {
|
158
|
-
|
183
|
+
constructor() {
|
184
|
+
super(...arguments);
|
185
|
+
this.taste = co.string;
|
186
|
+
}
|
159
187
|
}
|
160
188
|
class NestedMap extends CoMap {
|
161
|
-
|
162
|
-
|
189
|
+
constructor() {
|
190
|
+
super(...arguments);
|
191
|
+
this.name = co.string;
|
192
|
+
this.twiceNested = co.ref(TwiceNestedMap);
|
193
|
+
}
|
163
194
|
get _fancyName() {
|
164
195
|
return "Sir " + this.name;
|
165
196
|
}
|
166
197
|
}
|
167
198
|
class TestMap extends CoMap {
|
168
|
-
|
169
|
-
|
170
|
-
|
199
|
+
constructor() {
|
200
|
+
super(...arguments);
|
201
|
+
this.color = co.string;
|
202
|
+
this.height = co.number;
|
203
|
+
this.nested = co.ref(NestedMap);
|
204
|
+
}
|
171
205
|
get _roughColor() {
|
172
206
|
return this.color + "ish";
|
173
207
|
}
|
@@ -208,13 +242,12 @@ describe("CoMap resolution", async () => {
|
|
208
242
|
throw "me is not a controlled account";
|
209
243
|
}
|
210
244
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
211
|
-
const
|
212
|
-
|
213
|
-
|
214
|
-
secret: me._raw.agentSecret,
|
215
|
-
}),
|
216
|
-
sessionProvider: randomSessionProvider,
|
245
|
+
const meOnSecondPeer = await Account.become({
|
246
|
+
accountID: me.id,
|
247
|
+
accountSecret: me._raw.agentSecret,
|
217
248
|
peersToLoadFrom: [initialAsPeer],
|
249
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
250
|
+
sessionID: newRandomSessionID(me.id),
|
218
251
|
crypto: Crypto,
|
219
252
|
});
|
220
253
|
const loadedMap = await TestMap.load(map.id, meOnSecondPeer, {});
|
@@ -252,13 +285,12 @@ describe("CoMap resolution", async () => {
|
|
252
285
|
throw "me is not a controlled account";
|
253
286
|
}
|
254
287
|
me._raw.core.node.syncManager.addPeer(secondAsPeer);
|
255
|
-
const
|
256
|
-
|
257
|
-
|
258
|
-
secret: me._raw.agentSecret,
|
259
|
-
}),
|
260
|
-
sessionProvider: randomSessionProvider,
|
288
|
+
const meOnSecondPeer = await Account.become({
|
289
|
+
accountID: me.id,
|
290
|
+
accountSecret: me._raw.agentSecret,
|
261
291
|
peersToLoadFrom: [initialAsPeer],
|
292
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
293
|
+
sessionID: newRandomSessionID(me.id),
|
262
294
|
crypto: Crypto,
|
263
295
|
});
|
264
296
|
const queue = new cojsonInternals.Channel();
|
@@ -299,8 +331,11 @@ describe("CoMap resolution", async () => {
|
|
299
331
|
expect(update6.nested?.twiceNested?.taste).toEqual("umami");
|
300
332
|
});
|
301
333
|
class TestMapWithOptionalRef extends CoMap {
|
302
|
-
|
303
|
-
|
334
|
+
constructor() {
|
335
|
+
super(...arguments);
|
336
|
+
this.color = co.string;
|
337
|
+
this.nested = co.optional.ref(NestedMap);
|
338
|
+
}
|
304
339
|
}
|
305
340
|
test("Construction with optional", async () => {
|
306
341
|
const me = await Account.create({
|
@@ -326,8 +361,12 @@ describe("CoMap resolution", async () => {
|
|
326
361
|
});
|
327
362
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
328
363
|
class TestRecord extends CoMap {
|
329
|
-
|
364
|
+
constructor() {
|
365
|
+
super(...arguments);
|
366
|
+
this[_a] = co.number;
|
367
|
+
}
|
330
368
|
}
|
369
|
+
_a = co.items;
|
331
370
|
test("Construction with index signature", async () => {
|
332
371
|
const me = await Account.create({
|
333
372
|
creationProps: { name: "Hermes Puggington" },
|
@@ -394,15 +433,22 @@ describe("CoMap applyDiff", async () => {
|
|
394
433
|
crypto: Crypto,
|
395
434
|
});
|
396
435
|
class TestMap extends CoMap {
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
436
|
+
constructor() {
|
437
|
+
super(...arguments);
|
438
|
+
this.name = co.string;
|
439
|
+
this.age = co.number;
|
440
|
+
this.isActive = co.boolean;
|
441
|
+
this.birthday = co.encoded(Encoders.Date);
|
442
|
+
this.nested = co.ref(NestedMap);
|
443
|
+
this.optionalField = co.optional.string;
|
444
|
+
this.optionalNested = co.optional.ref(NestedMap);
|
445
|
+
}
|
403
446
|
}
|
404
447
|
class NestedMap extends CoMap {
|
405
|
-
|
448
|
+
constructor() {
|
449
|
+
super(...arguments);
|
450
|
+
this.value = co.string;
|
451
|
+
}
|
406
452
|
}
|
407
453
|
test("Basic applyDiff", () => {
|
408
454
|
const map = TestMap.create({
|
@@ -501,24 +547,119 @@ describe("CoMap applyDiff", async () => {
|
|
501
547
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
502
548
|
expect(map.invalidField).toBeUndefined();
|
503
549
|
});
|
550
|
+
test("applyDiff with optional reference set to null", () => {
|
551
|
+
const map = TestMap.create({
|
552
|
+
name: "Jack",
|
553
|
+
age: 50,
|
554
|
+
isActive: true,
|
555
|
+
birthday: new Date("1970-01-01"),
|
556
|
+
nested: NestedMap.create({ value: "original" }, { owner: me }),
|
557
|
+
optionalNested: NestedMap.create({ value: "optional" }, { owner: me }),
|
558
|
+
}, { owner: me });
|
559
|
+
const newValues = {
|
560
|
+
optionalNested: null,
|
561
|
+
};
|
562
|
+
map.applyDiff(newValues);
|
563
|
+
expect(map.optionalNested).toBeNull();
|
564
|
+
});
|
565
|
+
test("applyDiff with required reference set to null should throw", () => {
|
566
|
+
const map = TestMap.create({
|
567
|
+
name: "Kate",
|
568
|
+
age: 55,
|
569
|
+
isActive: true,
|
570
|
+
birthday: new Date("1965-01-01"),
|
571
|
+
nested: NestedMap.create({ value: "original" }, { owner: me }),
|
572
|
+
}, { owner: me });
|
573
|
+
const newValues = {
|
574
|
+
nested: null,
|
575
|
+
};
|
576
|
+
// @ts-expect-error testing invalid usage
|
577
|
+
expect(() => map.applyDiff(newValues)).toThrowError("Cannot set required reference nested to null");
|
578
|
+
});
|
504
579
|
});
|
505
|
-
describe("
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
580
|
+
describe("CoMap Typescript validation", async () => {
|
581
|
+
const me = await Account.create({
|
582
|
+
creationProps: { name: "Hermes Puggington" },
|
583
|
+
crypto: Crypto,
|
584
|
+
});
|
585
|
+
test("Is not ok to pass null into a required ref", () => {
|
586
|
+
class TestMap extends CoMap {
|
587
|
+
constructor() {
|
588
|
+
super(...arguments);
|
589
|
+
this.required = co.ref(NestedMap);
|
590
|
+
this.optional = co.optional.ref(NestedMap);
|
591
|
+
}
|
592
|
+
}
|
593
|
+
class NestedMap extends CoMap {
|
594
|
+
constructor() {
|
595
|
+
super(...arguments);
|
596
|
+
this.value = co.string;
|
597
|
+
}
|
598
|
+
}
|
599
|
+
expectTypeOf().toBeCallableWith({
|
600
|
+
optional: NestedMap.create({ value: "" }, { owner: me }),
|
601
|
+
// @ts-expect-error null can't be passed to a non-optional field
|
602
|
+
required: null,
|
603
|
+
}, { owner: me });
|
604
|
+
});
|
605
|
+
test("Is not ok if a required ref is omitted", () => {
|
606
|
+
class TestMap extends CoMap {
|
607
|
+
constructor() {
|
608
|
+
super(...arguments);
|
609
|
+
this.required = co.ref(NestedMap);
|
610
|
+
this.optional = co.ref(NestedMap, { optional: true });
|
611
|
+
}
|
612
|
+
}
|
613
|
+
class NestedMap extends CoMap {
|
614
|
+
constructor() {
|
615
|
+
super(...arguments);
|
616
|
+
this.value = co.string;
|
617
|
+
}
|
618
|
+
}
|
619
|
+
expectTypeOf().toBeCallableWith(
|
620
|
+
// @ts-expect-error non-optional fields can't be omitted
|
621
|
+
{}, { owner: me });
|
622
|
+
});
|
623
|
+
test("Is ok to omit optional fields", () => {
|
624
|
+
class TestMap extends CoMap {
|
625
|
+
constructor() {
|
626
|
+
super(...arguments);
|
627
|
+
this.required = co.ref(NestedMap);
|
628
|
+
this.optional = co.ref(NestedMap, { optional: true });
|
629
|
+
}
|
630
|
+
}
|
631
|
+
class NestedMap extends CoMap {
|
632
|
+
constructor() {
|
633
|
+
super(...arguments);
|
634
|
+
this.value = co.string;
|
635
|
+
}
|
636
|
+
}
|
637
|
+
expectTypeOf().toBeCallableWith({
|
638
|
+
required: NestedMap.create({ value: "" }, { owner: me }),
|
639
|
+
}, { owner: me });
|
640
|
+
expectTypeOf().toBeCallableWith({
|
641
|
+
required: NestedMap.create({ value: "" }, { owner: me }),
|
642
|
+
optional: null,
|
643
|
+
}, { owner: me });
|
644
|
+
});
|
645
|
+
test("the required refs should be nullable", () => {
|
646
|
+
class TestMap extends CoMap {
|
647
|
+
constructor() {
|
648
|
+
super(...arguments);
|
649
|
+
this.required = co.ref(NestedMap);
|
650
|
+
this.optional = co.ref(NestedMap, { optional: true });
|
651
|
+
}
|
652
|
+
}
|
653
|
+
class NestedMap extends CoMap {
|
654
|
+
constructor() {
|
655
|
+
super(...arguments);
|
656
|
+
this.value = co.string;
|
657
|
+
}
|
658
|
+
}
|
659
|
+
const map = TestMap.create({
|
660
|
+
required: NestedMap.create({ value: "" }, { owner: me }),
|
661
|
+
}, { owner: me });
|
662
|
+
expectTypeOf(map.required).toBeNullable();
|
522
663
|
});
|
523
664
|
});
|
524
665
|
//# sourceMappingURL=coMap.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coMap.test.js","sourceRoot":"","sources":["../../src/tests/coMap.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EACH,OAAO,EACP,QAAQ,EACR,KAAK,EACL,EAAE,EACF,UAAU,EACV,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;AAEzC,MAAM,OAAQ,SAAQ,KAAK;IACvB,KAAK,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC;IACpB,QAAQ,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACrC,IAAI,GAAI,EAAE,CAAC,MAAM,CAAC;IAClB,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAqB;QAC/C,MAAM,EAAE,CAAC,KAAyB,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI;QACpD,MAAM,EAAE,CAAC,KAAc,EAAE,EAAE,CAAE,KAAgB,IAAI,SAAS;KAC7D,CAAC,CAAC;IACH,YAAY,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAElD,IAAI,UAAU;QACV,OAAO,I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,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC;SAC3D,EACD,EAAE,KAAK,EAAE,EAAE,EAAE,CAChB,CAAC;QAEF,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,YAAY,EAAE,CAAC;IAC9C,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { expect, describe, test } from "vitest";
|
2
2
|
import { connectedPeers } from "cojson/src/streamUtils.js";
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { newRandomSessionID } from "cojson/src/coValueCore.js";
|
4
|
+
import { BinaryCoStream, Account, CoStream, co, WasmCrypto, isControlledAccount, cojsonInternals, } from "../index.js";
|
5
5
|
const Crypto = await WasmCrypto.create();
|
6
6
|
describe("Simple CoStream operations", async () => {
|
7
7
|
const me = await Account.create({
|
@@ -63,13 +63,12 @@ describe("CoStream resolution", async () => {
|
|
63
63
|
throw "me is not a controlled account";
|
64
64
|
}
|
65
65
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
66
|
-
const
|
67
|
-
|
68
|
-
|
69
|
-
secret: me._raw.agentSecret,
|
70
|
-
}),
|
71
|
-
sessionProvider: randomSessionProvider,
|
66
|
+
const meOnSecondPeer = await Account.become({
|
67
|
+
accountID: me.id,
|
68
|
+
accountSecret: me._raw.agentSecret,
|
72
69
|
peersToLoadFrom: [initialAsPeer],
|
70
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
71
|
+
sessionID: newRandomSessionID(me.id),
|
73
72
|
crypto: Crypto,
|
74
73
|
});
|
75
74
|
const loadedStream = await TestStream.load(stream.id, meOnSecondPeer, []);
|
@@ -109,13 +108,12 @@ describe("CoStream resolution", async () => {
|
|
109
108
|
if (!isControlledAccount(me)) {
|
110
109
|
throw "me is not a controlled account";
|
111
110
|
}
|
112
|
-
const
|
113
|
-
|
114
|
-
|
115
|
-
secret: me._raw.agentSecret,
|
116
|
-
}),
|
117
|
-
sessionProvider: randomSessionProvider,
|
111
|
+
const meOnSecondPeer = await Account.become({
|
112
|
+
accountID: me.id,
|
113
|
+
accountSecret: me._raw.agentSecret,
|
118
114
|
peersToLoadFrom: [initialAsPeer],
|
115
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
116
|
+
sessionID: newRandomSessionID(me.id),
|
119
117
|
crypto: Crypto,
|
120
118
|
});
|
121
119
|
const queue = new cojsonInternals.Channel();
|
@@ -207,13 +205,12 @@ describe("BinaryCoStream loading & Subscription", async () => {
|
|
207
205
|
throw "me is not a controlled account";
|
208
206
|
}
|
209
207
|
me._raw.core.node.syncManager.addPeer(secondAsPeer);
|
210
|
-
const
|
211
|
-
|
212
|
-
|
213
|
-
secret: me._raw.agentSecret,
|
214
|
-
}),
|
215
|
-
sessionProvider: randomSessionProvider,
|
208
|
+
const meOnSecondPeer = await Account.become({
|
209
|
+
accountID: me.id,
|
210
|
+
accountSecret: me._raw.agentSecret,
|
216
211
|
peersToLoadFrom: [initialAsPeer],
|
212
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
213
|
+
sessionID: newRandomSessionID(me.id),
|
217
214
|
crypto: Crypto,
|
218
215
|
});
|
219
216
|
const loadedStream = await BinaryCoStream.load(stream.id, meOnSecondPeer, []);
|
@@ -231,13 +228,12 @@ describe("BinaryCoStream loading & Subscription", async () => {
|
|
231
228
|
if (!isControlledAccount(me)) {
|
232
229
|
throw "me is not a controlled account";
|
233
230
|
}
|
234
|
-
const
|
235
|
-
|
236
|
-
|
237
|
-
secret: me._raw.agentSecret,
|
238
|
-
}),
|
239
|
-
sessionProvider: randomSessionProvider,
|
231
|
+
const meOnSecondPeer = await Account.become({
|
232
|
+
accountID: me.id,
|
233
|
+
accountSecret: me._raw.agentSecret,
|
240
234
|
peersToLoadFrom: [initialAsPeer],
|
235
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
236
|
+
sessionID: newRandomSessionID(me.id),
|
241
237
|
crypto: Crypto,
|
242
238
|
});
|
243
239
|
const queue = new cojsonInternals.Channel();
|
@@ -284,4 +280,41 @@ describe("BinaryCoStream loading & Subscription", async () => {
|
|
284
280
|
});
|
285
281
|
});
|
286
282
|
});
|
283
|
+
describe("BinaryCoStream.loadAsBlob", async () => {
|
284
|
+
async function setup() {
|
285
|
+
const me = await Account.create({
|
286
|
+
creationProps: { name: "Hermes Puggington" },
|
287
|
+
crypto: Crypto,
|
288
|
+
});
|
289
|
+
const stream = BinaryCoStream.create({ owner: me });
|
290
|
+
stream.start({ mimeType: "text/plain" });
|
291
|
+
return { stream, me };
|
292
|
+
}
|
293
|
+
test("resolves only when the stream is ended", async () => {
|
294
|
+
const { stream, me } = await setup();
|
295
|
+
stream.push(new Uint8Array([1]));
|
296
|
+
const promise = BinaryCoStream.loadAsBlob(stream.id, me);
|
297
|
+
await stream.ensureLoaded([]);
|
298
|
+
stream.push(new Uint8Array([2]));
|
299
|
+
stream.end();
|
300
|
+
const blob = await promise;
|
301
|
+
// The promise resolves only when the stream is ended
|
302
|
+
// so we get a blob with all the chunks
|
303
|
+
expect(blob?.size).toBe(2);
|
304
|
+
});
|
305
|
+
test("resolves with an unfinshed blob if allowUnfinished: true", async () => {
|
306
|
+
const { stream, me } = await setup();
|
307
|
+
stream.push(new Uint8Array([1]));
|
308
|
+
const promise = BinaryCoStream.loadAsBlob(stream.id, me, {
|
309
|
+
allowUnfinished: true,
|
310
|
+
});
|
311
|
+
await stream.ensureLoaded([]);
|
312
|
+
stream.push(new Uint8Array([2]));
|
313
|
+
stream.end();
|
314
|
+
const blob = await promise;
|
315
|
+
// The promise resolves before the stream is ended
|
316
|
+
// so we get a blob only with the first chunk
|
317
|
+
expect(blob?.size).toBe(1);
|
318
|
+
});
|
319
|
+
});
|
287
320
|
//# sourceMappingURL=coStream.test.js.map
|