jazz-tools 0.7.35-new-auth.0 → 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 +144 -0
- package/CHANGELOG.md +8 -2
- 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 +30 -14
- 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 +213 -53
- 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 -8
- 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 -8
- package/src/internal.ts +0 -2
- package/src/tests/coList.test.ts +14 -30
- package/src/tests/coMap.test.ts +150 -16
- 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
@@ -1,27 +1,26 @@
|
|
1
|
+
var _a;
|
1
2
|
import { MAX_RECOMMENDED_TX_SIZE, cojsonInternals } from "cojson";
|
2
3
|
import { ItemsSym, Account, CoValueBase, Ref, inspect, co, SchemaInit, isRefEncoded, loadCoValue, subscribeToCoValue, ensureCoValueLoaded, subscribeToExistingCoValue, } from "../internal.js";
|
3
4
|
/** @category CoValues */
|
4
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5
6
|
export class CoStream extends CoValueBase {
|
6
7
|
static Of(item) {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
var _b, _c;
|
9
|
+
return _c = class CoStreamOf extends _a {
|
10
|
+
constructor() {
|
11
|
+
super(...arguments);
|
12
|
+
this[_b] = item;
|
13
|
+
}
|
14
|
+
},
|
15
|
+
_b = co.items,
|
16
|
+
_c;
|
13
17
|
}
|
14
|
-
/** @internal This is only a marker type and doesn't exist at runtime */
|
15
|
-
[ItemsSym];
|
16
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
17
|
-
static _schema;
|
18
18
|
get _schema() {
|
19
19
|
return this.constructor._schema;
|
20
20
|
}
|
21
21
|
get byMe() {
|
22
22
|
return this[this._loadedAs.id];
|
23
23
|
}
|
24
|
-
perSession;
|
25
24
|
get inCurrentSession() {
|
26
25
|
return this.perSession[this._loadedAs.sessionID];
|
27
26
|
}
|
@@ -94,7 +93,7 @@ export class CoStream extends CoValueBase {
|
|
94
93
|
return this.toJSON();
|
95
94
|
}
|
96
95
|
static schema(def) {
|
97
|
-
this._schema
|
96
|
+
this._schema || (this._schema = {});
|
98
97
|
Object.assign(this._schema, def);
|
99
98
|
}
|
100
99
|
/** @category Subscription & Loading */
|
@@ -114,6 +113,10 @@ export class CoStream extends CoValueBase {
|
|
114
113
|
return subscribeToExistingCoValue(this, depth, listener);
|
115
114
|
}
|
116
115
|
}
|
116
|
+
_a = CoStream;
|
117
|
+
(() => {
|
118
|
+
_a.prototype._type = "CoStream";
|
119
|
+
})();
|
117
120
|
function entryFromRawEntry(accessFrom, rawEntry, loadedAs, accountID, itemField) {
|
118
121
|
return {
|
119
122
|
get value() {
|
@@ -184,10 +187,11 @@ export const CoStreamProxyHandler = {
|
|
184
187
|
}
|
185
188
|
},
|
186
189
|
set(target, key, value, receiver) {
|
190
|
+
var _b;
|
187
191
|
if (key === ItemsSym &&
|
188
192
|
typeof value === "object" &&
|
189
193
|
SchemaInit in value) {
|
190
|
-
target.constructor._schema
|
194
|
+
(_b = target.constructor)._schema || (_b._schema = {});
|
191
195
|
target.constructor._schema[ItemsSym] =
|
192
196
|
value[SchemaInit];
|
193
197
|
return true;
|
@@ -197,11 +201,12 @@ export const CoStreamProxyHandler = {
|
|
197
201
|
}
|
198
202
|
},
|
199
203
|
defineProperty(target, key, descriptor) {
|
204
|
+
var _b;
|
200
205
|
if (descriptor.value &&
|
201
206
|
key === ItemsSym &&
|
202
207
|
typeof descriptor.value === "object" &&
|
203
208
|
SchemaInit in descriptor.value) {
|
204
|
-
target.constructor._schema
|
209
|
+
(_b = target.constructor)._schema || (_b._schema = {});
|
205
210
|
target.constructor._schema[ItemsSym] =
|
206
211
|
descriptor.value[SchemaInit];
|
207
212
|
return true;
|
@@ -306,6 +311,9 @@ export class BinaryCoStream extends CoValueBase {
|
|
306
311
|
getChunks(options) {
|
307
312
|
return this._raw.getBinaryChunks(options?.allowUnfinished);
|
308
313
|
}
|
314
|
+
isBinaryStreamEnded() {
|
315
|
+
return this._raw.isBinaryStreamEnded();
|
316
|
+
}
|
309
317
|
start(options) {
|
310
318
|
this._raw.startBinaryStream(options);
|
311
319
|
}
|
@@ -325,7 +333,21 @@ export class BinaryCoStream extends CoValueBase {
|
|
325
333
|
return new Blob(chunks.chunks, { type: chunks.mimeType });
|
326
334
|
}
|
327
335
|
static async loadAsBlob(id, as, options) {
|
328
|
-
|
336
|
+
let stream = await this.load(id, as, []);
|
337
|
+
/**
|
338
|
+
* If the user hasn't requested an incomplete blob and the
|
339
|
+
* stream isn't complete wait for the stream download before progressing
|
340
|
+
*/
|
341
|
+
if (!options?.allowUnfinished && !stream?.isBinaryStreamEnded()) {
|
342
|
+
stream = await new Promise((resolve) => {
|
343
|
+
const unsubscribe = subscribeToCoValue(this, id, as, [], (value) => {
|
344
|
+
if (value.isBinaryStreamEnded()) {
|
345
|
+
unsubscribe();
|
346
|
+
resolve(value);
|
347
|
+
}
|
348
|
+
});
|
349
|
+
});
|
350
|
+
}
|
329
351
|
return stream?.toBlob({
|
330
352
|
allowUnfinished: options?.allowUnfinished,
|
331
353
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../src/coValues/coStream.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAalE,OAAO,EACH,QAAQ,EACR,OAAO,EACP,WAAW,EACX,GAAG,EACH,OAAO,EACP,EAAE,EACF,UAAU,EACV,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC7B,MAAM,gBAAgB,CAAC;AAcxB,yBAAyB;AACzB,8DAA8D;AAC9D,MAAM,OAAO,QAAqB,SAAQ,WAAW;IACjD,MAAM,CAAC,EAAE,CAAO,IAAsB;QAClC,OAAO,MAAM,UAAW,SAAQ,QAAc;YAC1C,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;SACrB,CAAC;IACN,CAAC;IAID;QACI,IAAI,CAAC,SAAS,CAAC,K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|
|
1
|
+
var _a;
|
1
2
|
import { BinaryCoStream, CoMap, co, subscriptionsScopes, } from "../../internal.js";
|
2
3
|
/** @category Media */
|
3
4
|
export class ImageDefinition extends CoMap {
|
4
|
-
|
5
|
-
|
6
|
-
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
this.originalSize = co.json();
|
8
|
+
this.placeholderDataURL = co.string;
|
9
|
+
this[_a] = co.ref(BinaryCoStream);
|
10
|
+
}
|
7
11
|
highestResAvailable(options) {
|
8
12
|
if (!subscriptionsScopes.get(this)) {
|
9
13
|
console.warn("highestResAvailable() only makes sense when used within a subscription.");
|
@@ -34,4 +38,5 @@ export class ImageDefinition extends CoMap {
|
|
34
38
|
});
|
35
39
|
}
|
36
40
|
}
|
41
|
+
_a = co.items;
|
37
42
|
//# sourceMappingURL=imageDef.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,KAAK,EACL,EAAE,EACF,mBAAmB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,sBAAsB;AACtB,MAAM,OAAO,eAAgB,SAAQ,KAAK;
|
1
|
+
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,cAAc,EACd,KAAK,EACL,EAAE,EACF,mBAAmB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,sBAAsB;AACtB,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAA1C;;QACI,iBAAY,GAAG,EAAE,CAAC,IAAI,EAAoB,CAAC;QAC3C,uBAAkB,GAAI,EAAE,CAAC,MAAM,CAAC;QAEhC,QAAU,GAAG,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IA8CxC,CAAC;IA3CG,mBAAmB,CAAC,OAEnB;QACG,IAAI,CAAC,mBAAmB,CAAC,G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,CACJ,CAAC;IACN,CAAC;CACJ;KA9CI,EAAE,CAAC,KAAK"}
|
package/dist/coValues/group.js
CHANGED
@@ -1,32 +1,17 @@
|
|
1
|
+
var _a;
|
1
2
|
import { Account, CoMap, CoValueBase, Ref, co, isControlledAccount, AccountAndGroupProxyHandler, MembersSym, loadCoValue, subscribeToCoValue, ensureCoValueLoaded, subscribeToExistingCoValue, } from "../internal.js";
|
2
3
|
/** @category Identity & Permissions */
|
3
4
|
export class Profile extends CoMap {
|
4
|
-
|
5
|
+
constructor() {
|
6
|
+
super(...arguments);
|
7
|
+
this.name = co.string;
|
8
|
+
}
|
5
9
|
}
|
6
10
|
/** @category Identity & Permissions */
|
7
11
|
export class Group extends CoValueBase {
|
8
|
-
static {
|
9
|
-
this.prototype._type = "Group";
|
10
|
-
}
|
11
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
12
|
-
static _schema;
|
13
12
|
get _schema() {
|
14
13
|
return this.constructor._schema;
|
15
14
|
}
|
16
|
-
static {
|
17
|
-
this._schema = {
|
18
|
-
profile: "json",
|
19
|
-
root: "json",
|
20
|
-
[MembersSym]: {
|
21
|
-
ref: () => Account,
|
22
|
-
optional: false,
|
23
|
-
},
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
25
|
-
};
|
26
|
-
Object.defineProperty(this.prototype, "_schema", {
|
27
|
-
get: () => this._schema,
|
28
|
-
});
|
29
|
-
}
|
30
15
|
get _refs() {
|
31
16
|
const profileID = this._raw.get("profile");
|
32
17
|
const rootID = this._raw.get("root");
|
@@ -117,4 +102,22 @@ export class Group extends CoValueBase {
|
|
117
102
|
return subscribeToExistingCoValue(this, depth, listener);
|
118
103
|
}
|
119
104
|
}
|
105
|
+
_a = Group;
|
106
|
+
(() => {
|
107
|
+
_a.prototype._type = "Group";
|
108
|
+
})();
|
109
|
+
(() => {
|
110
|
+
_a._schema = {
|
111
|
+
profile: "json",
|
112
|
+
root: "json",
|
113
|
+
[MembersSym]: {
|
114
|
+
ref: () => Account,
|
115
|
+
optional: false,
|
116
|
+
},
|
117
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
118
|
+
};
|
119
|
+
Object.defineProperty(_a.prototype, "_schema", {
|
120
|
+
get: () => _a._schema,
|
121
|
+
});
|
122
|
+
})();
|
120
123
|
//# sourceMappingURL=group.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/coValues/group.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,OAAO,EACP,KAAK,EACL,WAAW,EACX,GAAG,EACH,EAAE,EACF,mBAAmB,EACnB,2BAA2B,EAC3B,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC7B,MAAM,gBAAgB,CAAC;AAExB,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,KAAK;
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/coValues/group.ts"],"names":[],"mappings":";AAUA,OAAO,EACH,OAAO,EACP,KAAK,EACL,WAAW,EACX,GAAG,EACH,EAAE,EACF,mBAAmB,EACnB,2BAA2B,EAC3B,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC7B,MAAM,gBAAgB,CAAC;AAExB,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAAlC;;QACI,SAAI,GAAG,EAAE,CAAC,MAAM,CAAC;IACrB,CAAC;CAAA;AAED,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,WAAW;IAUlC,IAAI,OAAO;QAKP,OAAQ,IAAI,CAAC,WAA4B,CAAC,OAAO,CAAC;IACtD,CAAC;IAoBD,IAAI,KAAK;QACL,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAE1B,CAAC;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAEp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AC,EAAE;4BACR,CAAC,CAAC,EAAE,CAAC;qBACZ,CAAC;iBACL,CAAC;YACN,CAAC;QACL,CAAC;KACJ;CACJ,CAAC"}
|
@@ -2,9 +2,6 @@ import { instantiateRefEncoded, isRefEncoded, subscriptionsScopes, } from "../in
|
|
2
2
|
const refCache = new WeakMap();
|
3
3
|
const TRACE_ACCESSES = false;
|
4
4
|
export class Ref {
|
5
|
-
id;
|
6
|
-
controlledAccount;
|
7
|
-
schema;
|
8
5
|
constructor(id, controlledAccount, schema) {
|
9
6
|
this.id = id;
|
10
7
|
this.controlledAccount = controlledAccount;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../src/implementation/refs.ts"],"names":[],"mappings":"AAQA,OAAO,EACH,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,GACtB,MAAM,gBAAgB,CAAC;AAExB,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAuB,CAAC;AAEpD,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B,MAAM,OAAO,GAAG;
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../src/implementation/refs.ts"],"names":[],"mappings":"AAQA,OAAO,EACH,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,GACtB,MAAM,gBAAgB,CAAC;AAExB,MAAM,QAAQ,GAAG,IAAI,OAAO,EAAuB,CAAC;AAEpD,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B,MAAM,OAAO,GAAG;IACZ,YACa,EAAS,EACT,iBAA0B,EAC1B,MAAqB;QAFrB,OAAE,GAAF,EAAE,CAAO;QACT,sBAAiB,GAAjB,iBAAiB,CAAS;QAC1B,WAAM,GAAN,MAAM,CAAe;QAE9B,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;YACxB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IAED,IAAI,KAAK;QACL,MAAM,GAAG,G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AO,MAAM,KAAK,QAAQ;QAC1B,KAAK,IAAI,MAAM;QACf,UAAU,IAAI,MAAM;QACpB,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,CACnC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,qBAAqB,CACjC,MAAqB,EACrB,GAAe;IAEf,OAAO,cAAc,CAAI,MAAM,CAAC,GAAG,CAAC;QAChC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;QACzB,CAAC,CACK,MAAM,CAAC,GAGV,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AAC9B,CAAC;AAsBD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEhE,kCAAkC;AAClC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,IAAI,EAAE;QACF,MAAM,EAAE,CAAC,KAAW,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE;QAC5C,MAAM,EAAE,CAAC,KAAgB,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,KAAe,CAAC;KAC1D;CACJ,CAAC"}
|
@@ -1,15 +1,12 @@
|
|
1
1
|
export const subscriptionsScopes = new WeakMap();
|
2
2
|
const TRACE_INVALIDATIONS = false;
|
3
3
|
export class SubscriptionScope {
|
4
|
-
scopeID = `scope-${Math.random().toString(36).slice(2)}`;
|
5
|
-
subscriber;
|
6
|
-
entries = new Map();
|
7
|
-
rootEntry;
|
8
|
-
onUpdate;
|
9
|
-
scheduledUpdate = false;
|
10
|
-
cachedValues = {};
|
11
|
-
parents = {};
|
12
4
|
constructor(root, rootSchema, onUpdate) {
|
5
|
+
this.scopeID = `scope-${Math.random().toString(36).slice(2)}`;
|
6
|
+
this.entries = new Map();
|
7
|
+
this.scheduledUpdate = false;
|
8
|
+
this.cachedValues = {};
|
9
|
+
this.parents = {};
|
13
10
|
this.rootEntry = {
|
14
11
|
state: "loaded",
|
15
12
|
value: root,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAI3C,CAAC;AAEJ,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,MAAM,OAAO,iBAAiB;
|
1
|
+
{"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAI3C,CAAC;AAEJ,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,MAAM,OAAO,iBAAiB;IAkB1B,YACI,IAAU,EACV,UAAqD,EACrD,QAAiC;QApBrC,YAAO,GAAW,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;QAEjE,YAAO,GAAG,IAAI,GAAG,EAId,CAAC;QAOJ,oBAAe,GAAY,KAAK,CAAC;QACjC,iBAAY,GAAmC,EAAE,CAAC;QAClD,YAAO,GAA4C,EAAE,CAAC;QAOlD,IAAI,CAAC,SAAS,GAAG;YACb,KAAK,EAAE,QAAiB;YACxB,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,cAAc;SACrC,CAAC;QACF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;QAE1C,mBAAmB,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAEpC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,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EAAE,CAAC;YAC1C,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACtC,CAAC;IACL,CAAC;IAED,cAAc;QACV,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;YACxC,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3B,KAAK,CAAC,QAAQ,EAAE,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACJ,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAClC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
package/dist/index.js
CHANGED
@@ -8,5 +8,4 @@ export { Account, isControlledAccount } from "./internal.js";
|
|
8
8
|
export { ImageDefinition } from "./internal.js";
|
9
9
|
export { CoValueBase } from "./internal.js";
|
10
10
|
export { loadCoValue, subscribeToCoValue } from "./internal.js";
|
11
|
-
export { createJazzContext, fixedCredentialsAuth, } from "./internal.js";
|
12
11
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,YAAY,GACf,MAAM,QAAQ,CAAC;AAYhB,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,mBAAmB,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,YAAY,GACf,MAAM,QAAQ,CAAC;AAYhB,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAkB,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAqB,MAAM,eAAe,CAAC;AAG/D,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/internal.js
CHANGED
@@ -12,6 +12,5 @@ export * from "./implementation/schema.js";
|
|
12
12
|
export * from "./implementation/subscriptionScope.js";
|
13
13
|
export * from "./coValues/deepLoading.js";
|
14
14
|
export * from "./coValues/extensions/imageDef.js";
|
15
|
-
export * from "./implementation/createContext.js";
|
16
15
|
import "./implementation/devtoolsFormatters.js";
|
17
16
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,mCAAmC,CAAC;AAElD,
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,2BAA2B,CAAC;AAE1C,cAAc,mCAAmC,CAAC;AAElD,OAAO,wCAAwC,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 { Account, CoList, WasmCrypto, co, cojsonInternals, isControlledAccount, } from "../index.js";
|
5
5
|
const Crypto = await WasmCrypto.create();
|
6
6
|
describe("Simple CoList operations", async () => {
|
7
7
|
const me = await Account.create({
|
@@ -131,13 +131,12 @@ describe("CoList resolution", async () => {
|
|
131
131
|
throw "me is not a controlled account";
|
132
132
|
}
|
133
133
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
134
|
-
const
|
135
|
-
|
136
|
-
|
137
|
-
secret: me._raw.agentSecret,
|
138
|
-
}),
|
139
|
-
sessionProvider: randomSessionProvider,
|
134
|
+
const meOnSecondPeer = await Account.become({
|
135
|
+
accountID: me.id,
|
136
|
+
accountSecret: me._raw.agentSecret,
|
140
137
|
peersToLoadFrom: [initialAsPeer],
|
138
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
139
|
+
sessionID: newRandomSessionID(me.id),
|
141
140
|
crypto: Crypto,
|
142
141
|
});
|
143
142
|
const loadedList = await TestList.load(list.id, meOnSecondPeer, []);
|
@@ -147,22 +146,16 @@ describe("CoList resolution", async () => {
|
|
147
146
|
expect(loadedList?.[0]).toBeDefined();
|
148
147
|
expect(loadedList?.[0]?.[0]).toBe(null);
|
149
148
|
expect(loadedList?.[0]?._refs[0]?.id).toEqual(list[0][0].id);
|
150
|
-
|
151
|
-
// expect(loadedList?._refs[0]?.value).toEqual(loadedNestedList);
|
152
|
-
expect(loadedList?._refs[0]?.value?.toJSON()).toEqual(loadedNestedList?.toJSON());
|
149
|
+
expect(loadedList?._refs[0]?.value).toEqual(loadedNestedList);
|
153
150
|
const loadedTwiceNestedList = await TwiceNestedList.load(list[0][0].id, meOnSecondPeer, []);
|
154
151
|
expect(loadedList?.[0]?.[0]).toBeDefined();
|
155
152
|
expect(loadedList?.[0]?.[0]?.[0]).toBe("a");
|
156
153
|
expect(loadedList?.[0]?.[0]?.joined()).toBe("a,b");
|
157
154
|
expect(loadedList?.[0]?._refs[0]?.id).toEqual(list[0]?.[0]?.id);
|
158
|
-
|
159
|
-
// expect(loadedList?.[0]?._refs[0]?.value).toEqual(loadedTwiceNestedList);
|
160
|
-
expect(loadedList?.[0]?._refs[0]?.value?.toJSON()).toEqual(loadedTwiceNestedList?.toJSON());
|
155
|
+
expect(loadedList?.[0]?._refs[0]?.value).toEqual(loadedTwiceNestedList);
|
161
156
|
const otherNestedList = NestedList.create([TwiceNestedList.create(["e", "f"], { owner: meOnSecondPeer })], { owner: meOnSecondPeer });
|
162
157
|
loadedList[0] = otherNestedList;
|
163
|
-
|
164
|
-
// expect(loadedList?.[0]).toEqual(otherNestedList);
|
165
|
-
expect(loadedList?._refs[0]?.value?.toJSON()).toEqual(otherNestedList.toJSON());
|
158
|
+
expect(loadedList?.[0]).toEqual(otherNestedList);
|
166
159
|
expect(loadedList?._refs[0]?.id).toEqual(otherNestedList.id);
|
167
160
|
});
|
168
161
|
test("Subscription & auto-resolution", async () => {
|
@@ -175,13 +168,12 @@ describe("CoList resolution", async () => {
|
|
175
168
|
throw "me is not a controlled account";
|
176
169
|
}
|
177
170
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
178
|
-
const
|
179
|
-
|
180
|
-
|
181
|
-
secret: me._raw.agentSecret,
|
182
|
-
}),
|
183
|
-
sessionProvider: randomSessionProvider,
|
171
|
+
const meOnSecondPeer = await Account.become({
|
172
|
+
accountID: me.id,
|
173
|
+
accountSecret: me._raw.agentSecret,
|
184
174
|
peersToLoadFrom: [initialAsPeer],
|
175
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
176
|
+
sessionID: newRandomSessionID(me.id),
|
185
177
|
crypto: Crypto,
|
186
178
|
});
|
187
179
|
const queue = new cojsonInternals.Channel();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coList.test.js","sourceRoot":"","sources":["../../src/tests/coList.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,MAAM,EACN,UAAU,EACV,EAAE,EACF,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;AAEzC,QAAQ,CAAC,0BAA0B,EAAE,KAAK,IAAI,EAAE;IAC5C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC;QAC5B,aAAa,EAAE,EAAE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