jazz-tools 0.8.15 → 0.8.17
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +283 -269
- package/dist/native/coValues/account.js +3 -6
- package/dist/native/coValues/account.js.map +1 -1
- package/dist/native/coValues/coList.js +3 -7
- package/dist/native/coValues/coList.js.map +1 -1
- package/dist/native/coValues/coMap.js +8 -14
- package/dist/native/coValues/coMap.js.map +1 -1
- package/dist/native/coValues/coStream.js +7 -12
- package/dist/native/coValues/coStream.js.map +1 -1
- package/dist/native/coValues/deepLoading.js +6 -3
- package/dist/native/coValues/deepLoading.js.map +1 -1
- package/dist/native/coValues/extensions/imageDef.js.map +1 -1
- package/dist/native/coValues/group.js +3 -6
- package/dist/native/coValues/group.js.map +1 -1
- package/dist/native/coValues/interfaces.js +4 -3
- package/dist/native/coValues/interfaces.js.map +1 -1
- package/dist/native/exports.js +3 -9
- package/dist/native/exports.js.map +1 -1
- package/dist/native/implementation/createContext.js +1 -2
- package/dist/native/implementation/createContext.js.map +1 -1
- package/dist/native/implementation/devtoolsFormatters.js +5 -25
- package/dist/native/implementation/devtoolsFormatters.js.map +1 -1
- package/dist/native/implementation/refs.js +1 -2
- package/dist/native/implementation/refs.js.map +1 -1
- package/dist/native/implementation/schema.js +1 -1
- package/dist/native/implementation/schema.js.map +1 -1
- package/dist/native/implementation/subscriptionScope.js +2 -4
- package/dist/native/implementation/subscriptionScope.js.map +1 -1
- package/dist/native/index.native.js +1 -1
- package/dist/native/index.native.js.map +1 -1
- package/dist/native/lib/cache.js.map +1 -1
- package/dist/native/lib/cache.test.js +1 -1
- package/dist/native/lib/cache.test.js.map +1 -1
- package/dist/web/coValues/account.js +3 -6
- package/dist/web/coValues/account.js.map +1 -1
- package/dist/web/coValues/coList.js +3 -7
- package/dist/web/coValues/coList.js.map +1 -1
- package/dist/web/coValues/coMap.js +8 -14
- package/dist/web/coValues/coMap.js.map +1 -1
- package/dist/web/coValues/coStream.js +7 -12
- package/dist/web/coValues/coStream.js.map +1 -1
- package/dist/web/coValues/deepLoading.js +6 -3
- package/dist/web/coValues/deepLoading.js.map +1 -1
- package/dist/web/coValues/extensions/imageDef.js.map +1 -1
- package/dist/web/coValues/group.js +3 -6
- package/dist/web/coValues/group.js.map +1 -1
- package/dist/web/coValues/interfaces.js +4 -3
- package/dist/web/coValues/interfaces.js.map +1 -1
- package/dist/web/exports.js +3 -9
- package/dist/web/exports.js.map +1 -1
- package/dist/web/implementation/createContext.js +1 -2
- package/dist/web/implementation/createContext.js.map +1 -1
- package/dist/web/implementation/devtoolsFormatters.js +5 -25
- package/dist/web/implementation/devtoolsFormatters.js.map +1 -1
- package/dist/web/implementation/refs.js +1 -2
- package/dist/web/implementation/refs.js.map +1 -1
- package/dist/web/implementation/schema.js +1 -1
- package/dist/web/implementation/schema.js.map +1 -1
- package/dist/web/implementation/subscriptionScope.js +2 -4
- package/dist/web/implementation/subscriptionScope.js.map +1 -1
- package/dist/web/lib/cache.js.map +1 -1
- package/dist/web/lib/cache.test.js +1 -1
- package/dist/web/lib/cache.test.js.map +1 -1
- package/package.json +5 -9
- package/src/coValues/account.ts +330 -339
- package/src/coValues/coList.ts +474 -495
- package/src/coValues/coMap.ts +584 -604
- package/src/coValues/coStream.ts +624 -650
- package/src/coValues/deepLoading.ts +184 -200
- package/src/coValues/extensions/imageDef.ts +44 -44
- package/src/coValues/group.ts +196 -210
- package/src/coValues/interfaces.ts +197 -199
- package/src/exports.ts +38 -26
- package/src/implementation/createContext.ts +206 -213
- package/src/implementation/devtoolsFormatters.ts +80 -100
- package/src/implementation/refs.ts +127 -139
- package/src/implementation/schema.ts +124 -128
- package/src/implementation/subscriptionScope.ts +111 -121
- package/src/index.native.ts +3 -3
- package/src/lib/cache.test.ts +48 -48
- package/src/lib/cache.ts +9 -9
- package/src/tests/coList.test.ts +264 -283
- package/src/tests/coMap.test.ts +741 -761
- package/src/tests/coStream.test.ts +405 -438
- package/src/tests/deepLoading.test.ts +251 -256
- package/src/tests/groupsAndAccounts.test.ts +70 -74
- package/src/tests/schema.test.ts +198 -198
- package/src/tests/subscribe.test.ts +312 -299
- package/tsconfig.json +2 -4
- package/tsconfig.native.json +4 -10
- package/tsconfig.web.json +4 -10
- package/.eslintrc.cjs +0 -24
- package/.prettierrc.js +0 -9
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../../src/coValues/coStream.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAclE,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,KAAK,GAAG,UAAU,CAAC;IACtC,CAAC;IAGD,wEAAwE;IACxE,CAAC,QAAQ,CAAC,CAAQ;IAClB,8DAA8D;IAC9D,MAAM,CAAC,OAAO,CAAM;IACpB,IAAI,OAAO;QAGP,OAAQ,IAAI,CAAC,WAA+B,CAAC,OAAO,CAAC;IACzD,CAAC;IAID,IAAI,IAAI;QACJ,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;YACrC,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACnC,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;IACD,UAAU,CAER;IACF,IAAI,gBAAgB;QAChB,IAAI,IAAI,C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,CAET,EAAS,EACT,EAAW,EACX,KAA0B;QAE1B,OAAO,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,uCAAuC;IACvC,MAAM,CAAC,SAAS,CAEd,EAAS,EACT,EAAW,EACX,KAA0B,EAC1B,QAAiD;QAEjD,OAAO,kBAAkB,CAAW,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACrE,CAAC;IAED,uCAAuC;IACvC,YAAY,CAEV,KAA0B;QAE1B,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;IAED,uCAAuC;IACvC,SAAS,CAEP,KAA0B,EAC1B,QAAiD;QAEjD,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
@@ -8,7 +8,8 @@ export function fulfillsDepth(depth, value) {
|
|
8
8
|
return Object.entries(value).every(([key, item]) => {
|
9
9
|
return value._refs[key]
|
10
10
|
? item && fulfillsDepth(depth[0], item)
|
11
|
-
: value._schema[ItemsSym]
|
11
|
+
: value._schema[ItemsSym]
|
12
|
+
.optional;
|
12
13
|
});
|
13
14
|
}
|
14
15
|
else {
|
@@ -35,7 +36,8 @@ export function fulfillsDepth(depth, value) {
|
|
35
36
|
const itemDepth = depth[0];
|
36
37
|
return value.every((item, i) => value._refs[i]
|
37
38
|
? item && fulfillsDepth(itemDepth, item)
|
38
|
-
: value._schema[ItemsSym]
|
39
|
+
: value._schema[ItemsSym]
|
40
|
+
.optional);
|
39
41
|
}
|
40
42
|
}
|
41
43
|
else if (value._type === "CoStream") {
|
@@ -46,7 +48,8 @@ export function fulfillsDepth(depth, value) {
|
|
46
48
|
const itemDepth = depth[0];
|
47
49
|
return Object.values(value.perSession).every((entry) => entry.ref
|
48
50
|
? entry.value && fulfillsDepth(itemDepth, entry.value)
|
49
|
-
: value._schema[ItemsSym]
|
51
|
+
: value._schema[ItemsSym]
|
52
|
+
.optional);
|
50
53
|
}
|
51
54
|
}
|
52
55
|
else if (value._type === "BinaryCoStream") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deepLoading.js","sourceRoot":"","sources":["../../../src/coValues/deepLoading.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"deepLoading.js","sourceRoot":"","sources":["../../../src/coValues/deepLoading.ts"],"names":[],"mappings":"AACA,OAAO,EAKL,QAAQ,GAIT,MAAM,gBAAgB,CAAC;AAIxB,8DAA8D;AAC9D,MAAM,UAAU,aAAa,CAAC,KAAU,EAAE,KAAc;IACtD,IACE,KAAK,CAAC,KAAK,KAAK,OAAO;QACvB,KAAK,CAAC,KAAK,KAAK,OAAO;QACvB,KAAK,CAAC,KAAK,KAAK,SAAS,EACzB,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/C,OAAO,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE;gBACjD,OACE,KAGD,CAAC,KAAK,CAAC,GAAG,CAAC;oBACV,CAAC,CAAC,IAAI,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC;oBACvC,CAAC,CAAG,KAAe,CAAC,OAAO,CAAC,QAAQ,CAA0B;yBACzD,QAAQ,CAAC;YAClB,CAAC,CAAC,CAAC;QACL,CAAC;aAAM,CAAC;YACN,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrC,MAAM,GAAG,GAAG,KAIX,CAAC;gBACF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC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SAAS,EAAE,KAAK,CAAC,KAAK,CAAC;gBACtD,CAAC,CAAG,KAAkB,CAAC,OAAO,CAAC,QAAQ,CAAyB;qBAC3D,QAAQ,CAChB,CAAC;QACJ,CAAC;IACH,CAAC;SAAM,IAAI,KAAK,CAAC,KAAK,KAAK,gBAAgB,EAAE,CAAC;QAC5C,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACrB,MAAM,IAAI,KAAK,CAAC,yBAAyB,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,KAAK,EACL,EAAE,EACF,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAE3B,sBAAsB;AACtB,MAAM,OAAO,eAAgB,SAAQ,KAAK;IACxC,YAAY,GAAG,EAAE,CAAC,IAAI,EAAoB,CAAC;IAC3C,kBAAkB,GAAI,EAAE,CAAC,MAAM,CAAC;IAEhC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAGpC,mBAAmB,CAAC,OAEnB;QACC,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACnC,OAAO,CAAC,IAAI,CACV,yEAAyE,CAC1E,CAAC;QACJ,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAC1C,CAAC,GAAG,EAAE,EAAE,CACN,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC;YACtB,CAAC,OAAO,EAAE,QAAQ,KAAK,SAAS;gBAC9B,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,CACxB,CAAC;QAE7B,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACxB,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,OAAO,MAAM,GAAG,MAAM,CAAC;QACzB,CAAC,CAAC,CAAC;QAEH,IAAI,0BAA6D,CAAC;QAElE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACrC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;gBACtD,0BAA0B,GAAG,UAAU,CAAC;YAC1C,CAAC;iBAAM,CAAC;gBACN,OAAO,CACL,0BAA0B,IAAI;oBAC5B,GAAG,EAAE,0BAA0B;oBAC/B,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAE;iBAC1C,CACF,CAAC;YACJ,CAAC;QACH,CAAC;QACD,OAAO,CACL,0BAA0B,IAAI;YAC5B,GAAG,EAAE,0BAA0B;YAC/B,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAE;SAC1C,CACF,CAAC;IACJ,CAAC;CACF"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Account, CoMap, CoValueBase, Ref, co,
|
1
|
+
import { Account, AccountAndGroupProxyHandler, CoMap, CoValueBase, MembersSym, Ref, co, ensureCoValueLoaded, isControlledAccount, loadCoValue, subscribeToCoValue, subscribeToExistingCoValue, } from "../internal.js";
|
2
2
|
/** @category Identity & Permissions */
|
3
3
|
export class Profile extends CoMap {
|
4
4
|
name = co.string;
|
@@ -48,8 +48,7 @@ export class Group extends CoValueBase {
|
|
48
48
|
const initOwner = options.owner;
|
49
49
|
if (!initOwner)
|
50
50
|
throw new Error("No owner provided");
|
51
|
-
if (initOwner._type === "Account" &&
|
52
|
-
isControlledAccount(initOwner)) {
|
51
|
+
if (initOwner._type === "Account" && isControlledAccount(initOwner)) {
|
53
52
|
const rawOwner = initOwner._raw;
|
54
53
|
raw = rawOwner.createGroup();
|
55
54
|
}
|
@@ -84,9 +83,7 @@ export class Group extends CoValueBase {
|
|
84
83
|
})
|
85
84
|
.map((id) => {
|
86
85
|
const role = this._raw.get(id);
|
87
|
-
const accountID = id === "everyone"
|
88
|
-
? undefined
|
89
|
-
: id;
|
86
|
+
const accountID = id === "everyone" ? undefined : id;
|
90
87
|
const ref = accountID &&
|
91
88
|
new Ref(accountID, this._loadedAs, this._schema[MembersSym]);
|
92
89
|
const accessRef = () => ref?.accessFrom(this, "members." + id);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/coValues/group.ts"],"names":[],"mappings":"AAUA,OAAO,
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../../src/coValues/group.ts"],"names":[],"mappings":"AAUA,OAAO,EACL,OAAO,EACP,2BAA2B,EAC3B,KAAK,EACL,WAAW,EACX,UAAU,EACV,GAAG,EACH,EAAE,EACF,mBAAmB,EACnB,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AAExB,uCAAuC;AACvC,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAChC,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC;CAClB;AAED,uCAAuC;AACvC,MAAM,OAAO,KAAM,SAAQ,WAAW;IAGpC;QACE,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,OAAO,CAAC;IACjC,CAAC;IAGD,8DAA8D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{ RawAccount } from "cojson";
|
2
|
-
import { Account,
|
3
|
-
import { fulfillsDepth } from "./deepLoading.js";
|
2
|
+
import { Account, AnonymousJazzAgent, Group, Ref, SubscriptionScope, inspect, subscriptionsScopes, } from "../internal.js";
|
4
3
|
import { coValuesCache } from "../lib/cache.js";
|
4
|
+
import { fulfillsDepth } from "./deepLoading.js";
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
6
6
|
export function isCoValue(value) {
|
7
7
|
return value && value._type !== undefined;
|
@@ -82,7 +82,8 @@ export function subscribeToCoValue(cls, id, as, depth, listener, onUnavailable)
|
|
82
82
|
const ref = new Ref(id, as, { ref: cls, optional: false });
|
83
83
|
let unsubscribed = false;
|
84
84
|
let unsubscribe;
|
85
|
-
ref
|
85
|
+
ref
|
86
|
+
.load()
|
86
87
|
.then((value) => {
|
87
88
|
if (!value) {
|
88
89
|
onUnavailable && onUnavailable();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/coValues/interfaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/coValues/interfaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EACL,OAAO,EACP,kBAAkB,EAClB,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,EACP,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAmCjD,8DAA8D;AAC9D,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,cA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AAC;IAC/B,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB;IACrC,IAAI,YAAY,GAAuC,SAAS,CAAC;IAEjE,SAAS,SAAS,CAChB,GAAoB,EACpB,EAAS,EACT,EAAgC,EAChC,KAA0B,EAC1B,QAAoB,EACpB,aAA0B;QAE1B,MAAM,WAAW,GAAG,kBAAkB,CACpC,GAAG,EACH,EAAE,EACF,EAAE,EACF,KAAK,EACL,CAAC,KAAK,EAAE,EAAE;YACR,YAAY,GAAG,KAAK,CAAC;YACrB,QAAQ,EAAE,CAAC;QACb,CAAC,EACD,aAAa,CACd,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,MAAM,UAAU,GAAG;QACjB,eAAe,EAAE,GAAG,EAAE,CAAC,YAAY;QACnC,SAAS;KACV,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,QAAW,EACX,KAA0B,EAC1B,QAAiD;IAEjD,OAAO,kBAAkB,CACvB,QAAQ,CAAC,WAA8B,EACvC,QAAQ,CAAC,EAAE,EACX,QAAQ,CAAC,SAAS,EAClB,KAAK,EACL,QAAQ,CACT,CAAC;AACJ,CAAC"}
|
package/dist/web/exports.js
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
export { Encoders, co } from "./internal.js";
|
2
|
-
export { CoMap } from "./internal.js";
|
3
|
-
export {
|
4
|
-
export {
|
5
|
-
export { Group, Profile } from "./internal.js";
|
6
|
-
export { Account, isControlledAccount } from "./internal.js";
|
7
|
-
export { ImageDefinition } from "./internal.js";
|
8
|
-
export { CoValueBase } from "./internal.js";
|
9
|
-
export { loadCoValue, subscribeToCoValue, createCoValueObservable } from "./internal.js";
|
10
|
-
export { createJazzContext, fixedCredentialsAuth, ephemeralCredentialsAuth, AnonymousJazzAgent, createAnonymousJazzContext, randomSessionProvider, } from "./internal.js";
|
2
|
+
export { Account, BinaryCoStream, CoList, CoMap, CoStream, CoValueBase, Group, ImageDefinition, Profile, isControlledAccount, } from "./internal.js";
|
3
|
+
export { createCoValueObservable, loadCoValue, subscribeToCoValue, } from "./internal.js";
|
4
|
+
export { AnonymousJazzAgent, createAnonymousJazzContext, createJazzContext, ephemeralCredentialsAuth, fixedCredentialsAuth, randomSessionProvider, } from "./internal.js";
|
11
5
|
//# sourceMappingURL=exports.js.map
|
package/dist/web/exports.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"","sources":["../../src/exports.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EACL,OAAO,EACP,cAAc,EACd,MAAM,EACN,KAAK,EACL,QAAQ,EACR,WAAW,EACX,KAAK,EACL,eAAe,EACf,OAAO,EACP,mBAAmB,GAIpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EACL,uBAAuB,EACvB,WAAW,EACX,kBAAkB,GACnB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,GAItB,MAAM,eAAe,CAAC"}
|
@@ -70,8 +70,7 @@ export async function createJazzContext(options) {
|
|
70
70
|
const account = AccountSchema.fromNode(node);
|
71
71
|
if (authResult.saveCredentials) {
|
72
72
|
await authResult.saveCredentials({
|
73
|
-
accountID: node.account
|
74
|
-
.id,
|
73
|
+
accountID: node.account.id,
|
75
74
|
secret: node.account.agentSecret,
|
76
75
|
});
|
77
76
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createContext.js","sourceRoot":"","sources":["../../../src/implementation/createContext.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"createContext.js","sourceRoot":"","sources":["../../../src/implementation/createContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAEf,SAAS,GAKV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAoB,MAAM,gBAAgB,CAAC;AA8B3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,WAGpC,EAAc,EAAE;IACf,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAClB,IAAI,EAAE,UAAU;YAChB,WAAW;YACX,eAAe,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;YAC/B,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;YACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SACjB,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAe,EAAE;IACvD,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAClB,IAAI,EAAE,KAAK;YACX,aAAa,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;YACpC,eAAe,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;YAC/B,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;YACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SACjB,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,SAAsB,EACtB,MAAsB;IAEtB,OAAO;QACL,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,SAAoC,CAAC;QAC1E,WAAW,EAAE,GAAG,EAAE,GAAE,CAAC;KACtB,CAAC;AACJ,CAAC;AA8CD,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,OAAuD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,KAAK,UAAU,0BAA0B,CAAC,EAC/C,eAAe,EACf,MAAM,GAIP;IACC,MAAM,WAAW,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAC;IAClD,MAAM,QAAQ,GAAG,IAAI,eAAe,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAE1D,MAAM,IAAI,GAAG,IAAI,SAAS,CACxB,QAAQ,EACR,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,EAAE,CAAC,EACtC,MAAM,CACP,CAAC;IAEF,KAAK,MAAM,IAAI,IAAI,eAAe,EAAE,CAAC;QACnC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,OAAO;QACL,KAAK,EAAE,IAAI,kBAAkB,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;KACjB,CAAC;AACJ,CAAC"}
|
@@ -11,11 +11,7 @@ globalThis.devtoolsFormatters = [
|
|
11
11
|
return [
|
12
12
|
"div",
|
13
13
|
{},
|
14
|
-
[
|
15
|
-
"span",
|
16
|
-
{},
|
17
|
-
object.constructor.name + "(" + object.length + ") ",
|
18
|
-
],
|
14
|
+
["span", {}, object.constructor.name + "(" + object.length + ") "],
|
19
15
|
];
|
20
16
|
}
|
21
17
|
else if (object._type === "Account") {
|
@@ -49,12 +45,7 @@ globalThis.devtoolsFormatters = [
|
|
49
45
|
...Object.entries(object).map(([k, v]) => [
|
50
46
|
"div",
|
51
47
|
{ style: "white-space: nowrap;" },
|
52
|
-
[
|
53
|
-
"span",
|
54
|
-
{ style: "font-weight: bold; opacity: 0.6" },
|
55
|
-
k,
|
56
|
-
": ",
|
57
|
-
],
|
48
|
+
["span", { style: "font-weight: bold; opacity: 0.6" }, k, ": "],
|
58
49
|
["object", { object: v }],
|
59
50
|
...(typeof object._schema[k] === "function"
|
60
51
|
? v === null
|
@@ -63,10 +54,7 @@ globalThis.devtoolsFormatters = [
|
|
63
54
|
"span",
|
64
55
|
{ style: "opacity: 0.5" },
|
65
56
|
` (pending ${object._schema[k].name} `,
|
66
|
-
[
|
67
|
-
"object",
|
68
|
-
{ object: object._refs[k] },
|
69
|
-
],
|
57
|
+
["object", { object: object._refs[k] }],
|
70
58
|
")",
|
71
59
|
],
|
72
60
|
]
|
@@ -83,12 +71,7 @@ globalThis.devtoolsFormatters = [
|
|
83
71
|
...object.map((v, i) => [
|
84
72
|
"div",
|
85
73
|
{ style: "white-space: nowrap;" },
|
86
|
-
[
|
87
|
-
"span",
|
88
|
-
{ style: "font-weight: bold; opacity: 0.6" },
|
89
|
-
i,
|
90
|
-
": ",
|
91
|
-
],
|
74
|
+
["span", { style: "font-weight: bold; opacity: 0.6" }, i, ": "],
|
92
75
|
["object", { object: v }],
|
93
76
|
...(typeof object._schema[ItemsSym] === "function"
|
94
77
|
? v === null
|
@@ -97,10 +80,7 @@ globalThis.devtoolsFormatters = [
|
|
97
80
|
"span",
|
98
81
|
{ style: "opacity: 0.5" },
|
99
82
|
` (pending ${object._schema[ItemsSym].name} `,
|
100
|
-
[
|
101
|
-
"object",
|
102
|
-
{ object: object._refs[i] },
|
103
|
-
],
|
83
|
+
["object", { object: object._refs[i] }],
|
104
84
|
")",
|
105
85
|
],
|
106
86
|
]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"devtoolsFormatters.js","sourceRoot":"","sources":["../../../src/implementation/devtoolsFormatters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,uDAAuD;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvC,UAAkB,CAAC,kBAAkB,GAAG;
|
1
|
+
{"version":3,"file":"devtoolsFormatters.js","sourceRoot":"","sources":["../../../src/implementation/devtoolsFormatters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,uDAAuD;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEvC,U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CAAiC,EAAE,EAAE,CAAC,EAAE,IAAI,CAAC;wBAC/D,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC;wBACzB,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,UAAU;4BAChD,CAAC,CAAC,CAAC,KAAK,IAAI;gCACV,CAAC,CAAC;oCACE;wCACE,MAAM;wCACN,EAAE,KAAK,EAAE,cAAc,EAAE;wCACzB,aAAa,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,GAAG;wCAC7C,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;wCACvC,GAAG;qCACJ;iCACF;gCACH,CAAC,CAAC,EAAE;4BACN,CAAC,CAAC,EAAE,CAAC;qBACR,CAAC;iBACH,CAAC;YACJ,CAAC;QACH,CAAC;KACF;CACF,CAAC"}
|
@@ -62,8 +62,7 @@ export class Ref {
|
|
62
62
|
}
|
63
63
|
else if (this.value !== null) {
|
64
64
|
const freshValueInstance = instantiateRefEncoded(this.schema, this.value?._raw);
|
65
|
-
TRACE_ACCESSES &&
|
66
|
-
console.log("freshValueInstance", freshValueInstance);
|
65
|
+
TRACE_ACCESSES && console.log("freshValueInstance", freshValueInstance);
|
67
66
|
subScope.cachedValues[this.id] = freshValueInstance;
|
68
67
|
subscriptionsScopes.set(freshValueInstance, subScope);
|
69
68
|
return freshValueInstance;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/implementation/refs.ts"],"names":[],"mappings":"AASA,OAAO,
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/implementation/refs.ts"],"names":[],"mappings":"AASA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB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iB,EACjB,iBAAiB,EACjB,eAAe,CAAC,GAAW,CAAC,CAC7B,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,wBAAwB,CAAC,MAAM,EAAE,GAAG;YAClC,MAAM,EAAE,GAAG,WAAW,CAAC,GAAW,CAAC,CAAC;YACpC,IAAI,EAAE,EAAE,CAAC;gBACP,OAAO;oBACL,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;oBAClB,QAAQ,EAAE,IAAI;iBACf,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,OAAO,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/implementation/schema.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/implementation/schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,QAAQ,EACR,UAAU,EACV,UAAU,EACV,cAAc,GACf,MAAM,gBAAgB,CAAC;AAExB,kCAAkC;AAClC,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,IAAI,EAAE;QACJ,MAAM,EAAE,CAAC,KAAW,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE;QAC5C,MAAM,EAAE,CAAC,KAAgB,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,KAAe,CAAC;KACxD;CACF,CAAC;AAYF,MAAM,QAAQ,GAAG;IACf,GAAG,EAAE,WAAW;IAChB,IAAI;QACF,8DAA8D;QAC9D,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,MAAuB,EAAS,CAAC;IAC1D,CAAC;IACD,OAAO,CAAI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8D;QAC9D,OAAO,EAAE,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAmB,EAAS,CAAC;IACpE,CAAC;IACD,GAAG;IACH,KAAK,EAAE,QAAoB;IAC3B,OAAO,EAAE,UAAwB;IACjC,QAAQ;CACT,CAAC;AAEF,SAAS,WAAW,CAClB,GAA+C;IAE/C,OAAO,GAAG,CAAC,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AACtC,CAAC;AAUD,SAAS,GAAG,CAIV,GAA+C,EAC/C,OAAiB;IAIjB,OAAO;QACL,CAAC,UAAU,CAAC,EAAE;YACZ,GAAG,EAAE,GAAG;YACR,QAAQ,EAAE,OAAO,EAAE,QAAQ,IAAI,KAAK;SACpB;QAClB,8DAA8D;KACxD,CAAC;AACX,CAAC;AASD,MAAM,UAAU,YAAY,CAC1B,MAAc;IAEd,OAAO,CACL,OAAO,MAAM,KAAK,QAAQ;QAC1B,KAAK,IAAI,MAAM;QACf,UAAU,IAAI,MAAM;QACpB,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,CACjC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,MAAqB,EACrB,GAAe;IAEf,OAAO,cAAc,CAAI,MAAM,CAAC,GAAG,CAAC;QAClC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC;QACzB,CAAC,CAAE,MAAM,CAAC,GAAgE,CACtE,GAAG,CACJ,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC"}
|
@@ -35,8 +35,7 @@ export class SubscriptionScope {
|
|
35
35
|
if (!accessedOrSetId) {
|
36
36
|
return;
|
37
37
|
}
|
38
|
-
this.parents[accessedOrSetId] =
|
39
|
-
this.parents[accessedOrSetId] || new Set();
|
38
|
+
this.parents[accessedOrSetId] = this.parents[accessedOrSetId] || new Set();
|
40
39
|
this.parents[accessedOrSetId].add(fromId);
|
41
40
|
if (!this.entries.has(accessedOrSetId)) {
|
42
41
|
const loadingEntry = {
|
@@ -48,8 +47,7 @@ export class SubscriptionScope {
|
|
48
47
|
? this.subscriber._raw.core.node
|
49
48
|
: this.subscriber.node;
|
50
49
|
void node.loadCoValueCore(accessedOrSetId).then((core) => {
|
51
|
-
if (loadingEntry.state === "loading" &&
|
52
|
-
loadingEntry.immediatelyUnsub) {
|
50
|
+
if (loadingEntry.state === "loading" && loadingEntry.immediatelyUnsub) {
|
53
51
|
return;
|
54
52
|
}
|
55
53
|
if (core !== "unavailable") {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"AAUA,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":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,OAAO,EAI3C,CAAC;AAEJ,MAAM,mBAAmB,GAAG,KAAK,CAAC;AAElC,MAAM,OAAO,iBAAiB;IAC5B,OAAO,GAAW,SAAS,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,UAAU,CAA+B;IACzC,OAAO,GAAG,IAAI,GAAG,EAId,CAAC;IACJ,SAAS,CAIP;IACF,cAAc,CAAa;IAC3B,eAAe,GAAY,KAAK,CAAC;IACjC,YAAY,GAAmC,EAAE,CAAC;IAClD,OAAO,GAA4C,EAAE,CAAC;IAEtD,YACE,IAAU,EACV,UAAqD,EACrD,QAAiC;QAEjC,IAAI,CAAC,SAAS,GAAG;YACf,KAAK,EAAE,QAAiB;YACxB,KAAK,EAAE,IAAI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,OAAO;QACzB,mBAAmB;YACjB,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACb,KAAK,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;YAC5C,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;QACpC,CAAC;IACH,CAAC;IAED,cAAc;QACZ,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;YAC1C,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC7B,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnB,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAChC,CAAC;QACH,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../src/lib/cache.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,GAAG,IAAI,OAAO,EAAuB,CAAC;AAEnD,MAAM,CAAC,MAAM,aAAa,GAAG;
|
1
|
+
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../../src/lib/cache.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,GAAG,IAAI,OAAO,EAAuB,CAAC;AAEnD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,CAAoB,GAAe,EAAE,OAAgB,EAAE,EAAE;QAC5D,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChC,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,MAAW,CAAC;QACrB,CAAC;QACD,MAAM,QAAQ,GAAG,OAAO,EAAE,CAAC;QAC3B,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAC3B,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"cache.test.js","sourceRoot":"","sources":["../../../src/lib/cache.test.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"cache.test.js","sourceRoot":"","sources":["../../../src/lib/cache.test.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAE3C,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,CAAC,8CAA8C,EAAE,GAAG,EAAE;QACxD,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,OAAO,EAAgB,CAAC;QACrD,MAAM,WAAW,GAAG,EAAE,EAAE,EAAE,MAAM,EAAwB,CAAC;QACzD,IAAI,YAAY,GAAG,CAAC,CAAC;QAErB,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,YAAY,EAAE,GAAG,EAAE;YAClD,YAAY,EAAE,CAAC;YACf,OAAO,WAAW,CAAC;QACrB,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,gDAAgD,EAAE,GAAG,EAAE;QAC1D,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,OAAO,EAAgB,CAAC;QACrD,MAAM,WAAW,GAAG,EAAE,EAA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H,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACnC,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,gDAAgD;IAChF,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
@@ -19,10 +19,10 @@
|
|
19
19
|
},
|
20
20
|
"type": "module",
|
21
21
|
"license": "MIT",
|
22
|
-
"version": "0.8.
|
22
|
+
"version": "0.8.17",
|
23
23
|
"dependencies": {
|
24
24
|
"fast-check": "^3.17.2",
|
25
|
-
"cojson": "0.8.
|
25
|
+
"cojson": "0.8.17"
|
26
26
|
},
|
27
27
|
"devDependencies": {
|
28
28
|
"typescript": "^5.3.3",
|
@@ -35,19 +35,15 @@
|
|
35
35
|
}
|
36
36
|
}
|
37
37
|
},
|
38
|
-
"lint-staged": {
|
39
|
-
"*.{ts,tsx}": "eslint --fix",
|
40
|
-
"*.{js,jsx,mdx,json}": "prettier --write"
|
41
|
-
},
|
42
38
|
"scripts": {
|
39
|
+
"format-and-lint": "biome check .",
|
40
|
+
"format-and-lint:fix": "biome check . --write",
|
43
41
|
"dev:web": "tsc --sourceMap --watch --outDir dist/web -p tsconfig.web.json",
|
44
42
|
"dev:native": "tsc --sourceMap --watch --outDir dist/native -p tsconfig.native.json",
|
45
43
|
"test": "vitest --run --root ../../ --project jazz-tools",
|
46
44
|
"test:watch": "vitest --watch --root ../../ --project jazz-tools",
|
47
|
-
"lint": "eslint . --ext ts,tsx",
|
48
|
-
"format": "prettier --write './src/**/*.{ts,tsx}'",
|
49
45
|
"build:web": "tsc --sourceMap --outDir dist/web -p tsconfig.web.json",
|
50
46
|
"build:native": "tsc --sourceMap --outDir dist/native -p tsconfig.native.json",
|
51
|
-
"build": "
|
47
|
+
"build": "rm -rf ./dist && pnpm run build:web && pnpm run build:native"
|
52
48
|
}
|
53
49
|
}
|