jazz-tools 0.17.4 → 0.17.5
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 +33 -33
- package/CHANGELOG.md +11 -0
- package/dist/{chunk-NPXI4XAS.js → chunk-EEKKLGF2.js} +100 -13
- package/dist/chunk-EEKKLGF2.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/dist/tools/coValues/coList.d.ts +43 -1
- package/dist/tools/coValues/coList.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/schemaTypes/CoListSchema.d.ts +15 -1
- package/dist/tools/implementation/zodSchema/schemaTypes/CoListSchema.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/schemaTypes/CoRecordSchema.d.ts +11 -0
- package/dist/tools/implementation/zodSchema/schemaTypes/CoRecordSchema.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/tools/coValues/coList.ts +124 -4
- package/src/tools/implementation/zodSchema/schemaTypes/CoListSchema.ts +44 -1
- package/src/tools/implementation/zodSchema/schemaTypes/CoRecordSchema.ts +25 -0
- package/src/tools/tests/coList.test.ts +167 -0
- package/src/tools/tests/coMap.record.test.ts +104 -0
- package/dist/chunk-NPXI4XAS.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.17.
|
2
|
+
> jazz-tools@0.17.5 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup && pnpm types && pnpm build:svelte
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -100,84 +100,84 @@
|
|
100
100
|
[34mESM[39m Build start
|
101
101
|
[34mCLI[39m Cleaning output folder
|
102
102
|
[34mESM[39m Build start
|
103
|
-
[32mESM[39m [1mdist/worker/index.js [22m[32m2.31 KB[39m
|
104
|
-
[32mESM[39m [1mdist/worker/index.js.map [22m[32m4.77 KB[39m
|
105
|
-
[32mESM[39m ⚡️ Build success in 17ms
|
106
103
|
[32mESM[39m [1mdist/react/ssr.js [22m[32m688.00 B[39m
|
107
104
|
[32mESM[39m [1mdist/react/ssr.js.map [22m[32m1.12 KB[39m
|
108
|
-
[32mESM[39m ⚡️ Build success in
|
105
|
+
[32mESM[39m ⚡️ Build success in 18ms
|
106
|
+
[32mESM[39m [1mdist/worker/index.js [22m[32m2.31 KB[39m
|
107
|
+
[32mESM[39m [1mdist/worker/index.js.map [22m[32m4.77 KB[39m
|
108
|
+
[32mESM[39m ⚡️ Build success in 15ms
|
109
109
|
[32mESM[39m [1mdist/tiptap/index.js [22m[32m564.00 B[39m
|
110
110
|
[32mESM[39m [1mdist/tiptap/index.js.map [22m[32m1.21 KB[39m
|
111
|
-
[32mESM[39m ⚡️ Build success in
|
111
|
+
[32mESM[39m ⚡️ Build success in 15ms
|
112
112
|
[32mESM[39m [1mdist/media/index.js [22m[32m236.00 B[39m
|
113
113
|
[32mESM[39m [1mdist/media/index.browser.js [22m[32m3.21 KB[39m
|
114
114
|
[32mESM[39m [1mdist/media/chunk-JBLT443O.js [22m[32m6.33 KB[39m
|
115
115
|
[32mESM[39m [1mdist/media/index.native.js [22m[32m3.53 KB[39m
|
116
116
|
[32mESM[39m [1mdist/media/index.js.map [22m[32m71.00 B[39m
|
117
|
-
[32mESM[39m [1mdist/media/index.browser.js.map [22m[32m6.02 KB[39m
|
118
117
|
[32mESM[39m [1mdist/media/chunk-JBLT443O.js.map [22m[32m15.68 KB[39m
|
119
118
|
[32mESM[39m [1mdist/media/index.native.js.map [22m[32m6.52 KB[39m
|
120
|
-
[32mESM[39m
|
119
|
+
[32mESM[39m [1mdist/media/index.browser.js.map [22m[32m6.02 KB[39m
|
120
|
+
[32mESM[39m ⚡️ Build success in 21ms
|
121
|
+
[32mESM[39m [1mdist/react-native/index.js [22m[32m2.53 KB[39m
|
122
|
+
[32mESM[39m [1mdist/react-native/testing.js [22m[32m120.00 B[39m
|
123
|
+
[32mESM[39m [1mdist/react-native/crypto.js [22m[32m161.00 B[39m
|
124
|
+
[32mESM[39m [1mdist/react-native/index.js.map [22m[32m5.68 KB[39m
|
125
|
+
[32mESM[39m [1mdist/react-native/testing.js.map [22m[32m176.00 B[39m
|
126
|
+
[32mESM[39m [1mdist/react-native/crypto.js.map [22m[32m197.00 B[39m
|
127
|
+
[32mESM[39m ⚡️ Build success in 19ms
|
121
128
|
[32mESM[39m [1mdist/browser/index.js [22m[32m13.43 KB[39m
|
122
129
|
[32mESM[39m [1mdist/browser/index.js.map [22m[32m28.65 KB[39m
|
123
|
-
[32mESM[39m ⚡️ Build success in
|
124
|
-
[32mESM[39m [1mdist/expo/index.js [22m[32m4.65 KB[39m
|
125
|
-
[32mESM[39m [1mdist/expo/crypto.js [22m[32m153.00 B[39m
|
126
|
-
[32mESM[39m [1mdist/expo/testing.js [22m[32m112.00 B[39m
|
127
|
-
[32mESM[39m [1mdist/expo/index.js.map [22m[32m10.17 KB[39m
|
128
|
-
[32mESM[39m [1mdist/expo/crypto.js.map [22m[32m189.00 B[39m
|
129
|
-
[32mESM[39m [1mdist/expo/testing.js.map [22m[32m168.00 B[39m
|
130
|
-
[32mESM[39m ⚡️ Build success in 27ms
|
130
|
+
[32mESM[39m ⚡️ Build success in 33ms
|
131
131
|
[32mESM[39m [1mdist/react-core/index.js [22m[32m8.41 KB[39m
|
132
132
|
[32mESM[39m [1mdist/react-core/testing.js [22m[32m1.17 KB[39m
|
133
133
|
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js [22m[32m279.00 B[39m
|
134
134
|
[32mESM[39m [1mdist/react-core/index.js.map [22m[32m20.68 KB[39m
|
135
135
|
[32mESM[39m [1mdist/react-core/testing.js.map [22m[32m1.82 KB[39m
|
136
136
|
[32mESM[39m [1mdist/react-core/chunk-7DYMJ74I.js.map [22m[32m533.00 B[39m
|
137
|
-
[32mESM[39m ⚡️ Build success in 27ms
|
138
|
-
[32mESM[39m [1mdist/react-native/index.js [22m[32m2.53 KB[39m
|
139
|
-
[32mESM[39m [1mdist/react-native/testing.js [22m[32m120.00 B[39m
|
140
|
-
[32mESM[39m [1mdist/react-native/crypto.js [22m[32m161.00 B[39m
|
141
|
-
[32mESM[39m [1mdist/react-native/index.js.map [22m[32m5.68 KB[39m
|
142
|
-
[32mESM[39m [1mdist/react-native/testing.js.map [22m[32m176.00 B[39m
|
143
|
-
[32mESM[39m [1mdist/react-native/crypto.js.map [22m[32m197.00 B[39m
|
144
137
|
[32mESM[39m ⚡️ Build success in 29ms
|
145
138
|
[32mESM[39m [1mdist/react/testing.js [22m[32m122.00 B[39m
|
146
139
|
[32mESM[39m [1mdist/react/index.js [22m[32m24.55 KB[39m
|
147
140
|
[32mESM[39m [1mdist/react/testing.js.map [22m[32m165.00 B[39m
|
148
141
|
[32mESM[39m [1mdist/react/index.js.map [22m[32m52.42 KB[39m
|
149
|
-
[32mESM[39m ⚡️ Build success in
|
142
|
+
[32mESM[39m ⚡️ Build success in 30ms
|
150
143
|
[32mESM[39m [1mdist/react-native-core/index.js [22m[32m17.90 KB[39m
|
151
144
|
[32mESM[39m [1mdist/react-native-core/testing.js [22m[32m119.00 B[39m
|
152
145
|
[32mESM[39m [1mdist/react-native-core/crypto.js [22m[32m2.10 KB[39m
|
153
146
|
[32mESM[39m [1mdist/react-native-core/index.js.map [22m[32m36.65 KB[39m
|
154
147
|
[32mESM[39m [1mdist/react-native-core/testing.js.map [22m[32m175.00 B[39m
|
155
148
|
[32mESM[39m [1mdist/react-native-core/crypto.js.map [22m[32m4.25 KB[39m
|
156
|
-
[32mESM[39m ⚡️ Build success in
|
149
|
+
[32mESM[39m ⚡️ Build success in 32ms
|
150
|
+
[32mESM[39m [1mdist/expo/index.js [22m[32m4.65 KB[39m
|
151
|
+
[32mESM[39m [1mdist/expo/crypto.js [22m[32m153.00 B[39m
|
152
|
+
[32mESM[39m [1mdist/expo/testing.js [22m[32m112.00 B[39m
|
153
|
+
[32mESM[39m [1mdist/expo/index.js.map [22m[32m10.17 KB[39m
|
154
|
+
[32mESM[39m [1mdist/expo/crypto.js.map [22m[32m189.00 B[39m
|
155
|
+
[32mESM[39m [1mdist/expo/testing.js.map [22m[32m168.00 B[39m
|
156
|
+
[32mESM[39m ⚡️ Build success in 37ms
|
157
157
|
[32mESM[39m [1mdist/prosemirror/index.js [22m[32m76.90 KB[39m
|
158
158
|
[32mESM[39m [1mdist/prosemirror/index.js.map [22m[32m305.53 KB[39m
|
159
159
|
[32mESM[39m ⚡️ Build success in 44ms
|
160
160
|
[32mESM[39m [1mdist/inspector/index.js [22m[32m60.40 KB[39m
|
161
161
|
[32mESM[39m [1mdist/inspector/index.js.map [22m[32m107.91 KB[39m
|
162
|
-
[32mESM[39m ⚡️ Build success in
|
162
|
+
[32mESM[39m ⚡️ Build success in 55ms
|
163
163
|
[32mESM[39m [1mdist/index.js [22m[32m25.96 KB[39m
|
164
164
|
[32mESM[39m [1mdist/testing.js [22m[32m6.76 KB[39m
|
165
|
-
[32mESM[39m [1mdist/chunk-
|
166
|
-
[32mESM[39m [1mdist/testing.js.map [22m[32m13.07 KB[39m
|
165
|
+
[32mESM[39m [1mdist/chunk-EEKKLGF2.js [22m[32m153.53 KB[39m
|
167
166
|
[32mESM[39m [1mdist/index.js.map [22m[32m52.62 KB[39m
|
168
|
-
[32mESM[39m [1mdist/
|
169
|
-
[32mESM[39m
|
167
|
+
[32mESM[39m [1mdist/testing.js.map [22m[32m13.07 KB[39m
|
168
|
+
[32mESM[39m [1mdist/chunk-EEKKLGF2.js.map [22m[32m368.10 KB[39m
|
169
|
+
[32mESM[39m ⚡️ Build success in 71ms
|
170
170
|
[32mESM[39m [1mdist/inspector/register-custom-element.js [22m[32m218.00 B[39m
|
171
171
|
[32mESM[39m [1mdist/inspector/register-custom-element.js.map [22m[32m314.00 B[39m
|
172
172
|
[32mESM[39m [1mdist/inspector/custom-element-I7L56H6B.js [22m[32m1.53 MB[39m
|
173
173
|
[32mESM[39m [1mdist/inspector/custom-element-I7L56H6B.js.map [22m[32m2.35 MB[39m
|
174
|
-
[32mESM[39m ⚡️ Build success in
|
174
|
+
[32mESM[39m ⚡️ Build success in 107ms
|
175
175
|
|
176
|
-
> jazz-tools@0.17.
|
176
|
+
> jazz-tools@0.17.5 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
177
177
|
> tsc --outDir dist
|
178
178
|
|
179
179
|
|
180
|
-
> jazz-tools@0.17.
|
180
|
+
> jazz-tools@0.17.5 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
|
181
181
|
> rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
|
182
182
|
|
183
183
|
src/svelte -> dist/svelte
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.17.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 5963658: Implement/expose loadUnique and upsertUnique on co.list and co.record
|
8
|
+
- Updated dependencies [71c1411]
|
9
|
+
- Updated dependencies [2d11d44]
|
10
|
+
- cojson@0.17.5
|
11
|
+
- cojson-storage-indexeddb@0.17.5
|
12
|
+
- cojson-transport-ws@0.17.5
|
13
|
+
|
3
14
|
## 0.17.4
|
4
15
|
|
5
16
|
### Patch Changes
|
@@ -718,7 +718,7 @@ var CoMapProxyHandler = {
|
|
718
718
|
RegisteredSchemas["CoMap"] = CoMap;
|
719
719
|
|
720
720
|
// src/tools/coValues/coList.ts
|
721
|
-
import { ControlledAccount as ControlledAccount2, RawAccount as RawAccount2 } from "cojson";
|
721
|
+
import { ControlledAccount as ControlledAccount2, RawAccount as RawAccount2, cojsonInternals as cojsonInternals2 } from "cojson";
|
722
722
|
import { calcPatch } from "fast-myers-diff";
|
723
723
|
var _CoList = class _CoList extends Array {
|
724
724
|
/**
|
@@ -847,10 +847,13 @@ var _CoList = class _CoList extends Array {
|
|
847
847
|
* @category Creation
|
848
848
|
**/
|
849
849
|
static create(items, options) {
|
850
|
-
const { owner } = parseCoValueCreateOptions(options);
|
850
|
+
const { owner, uniqueness } = parseCoValueCreateOptions(options);
|
851
851
|
const instance = new this({ init: items, owner });
|
852
852
|
const raw = owner._raw.createList(
|
853
|
-
toRawItems(items, instance._schema[ItemsSym], owner)
|
853
|
+
toRawItems(items, instance._schema[ItemsSym], owner),
|
854
|
+
null,
|
855
|
+
"private",
|
856
|
+
uniqueness
|
854
857
|
);
|
855
858
|
Object.defineProperties(instance, {
|
856
859
|
id: {
|
@@ -1027,6 +1030,80 @@ var _CoList = class _CoList extends Array {
|
|
1027
1030
|
castAs(cl) {
|
1028
1031
|
return cl.fromRaw(this._raw);
|
1029
1032
|
}
|
1033
|
+
/** @deprecated Use `CoList.upsertUnique` and `CoList.loadUnique` instead. */
|
1034
|
+
static findUnique(unique, ownerID, as) {
|
1035
|
+
return _CoList._findUnique(unique, ownerID, as);
|
1036
|
+
}
|
1037
|
+
/** @internal */
|
1038
|
+
static _findUnique(unique, ownerID, as) {
|
1039
|
+
as ||= activeAccountContext.get();
|
1040
|
+
const header = {
|
1041
|
+
type: "colist",
|
1042
|
+
ruleset: {
|
1043
|
+
type: "ownedByGroup",
|
1044
|
+
group: ownerID
|
1045
|
+
},
|
1046
|
+
meta: null,
|
1047
|
+
uniqueness: unique
|
1048
|
+
};
|
1049
|
+
const crypto = as._type === "Anonymous" ? as.node.crypto : as._raw.core.node.crypto;
|
1050
|
+
return cojsonInternals2.idforHeader(header, crypto);
|
1051
|
+
}
|
1052
|
+
/**
|
1053
|
+
* Given some data, updates an existing CoList or initialises a new one if none exists.
|
1054
|
+
*
|
1055
|
+
* Note: This method respects resolve options, and thus can return `null` if the references cannot be resolved.
|
1056
|
+
*
|
1057
|
+
* @example
|
1058
|
+
* ```ts
|
1059
|
+
* const activeItems = await ItemList.upsertUnique(
|
1060
|
+
* {
|
1061
|
+
* value: [item1, item2, item3],
|
1062
|
+
* unique: sourceData.identifier,
|
1063
|
+
* owner: workspace,
|
1064
|
+
* }
|
1065
|
+
* );
|
1066
|
+
* ```
|
1067
|
+
*
|
1068
|
+
* @param options The options for creating or loading the CoList. This includes the intended state of the CoList, its unique identifier, its owner, and the references to resolve.
|
1069
|
+
* @returns Either an existing & modified CoList, or a new initialised CoList if none exists.
|
1070
|
+
* @category Subscription & Loading
|
1071
|
+
*/
|
1072
|
+
static async upsertUnique(options) {
|
1073
|
+
let listId = _CoList._findUnique(options.unique, options.owner.id);
|
1074
|
+
let list = await loadCoValueWithoutMe(this, listId, {
|
1075
|
+
...options,
|
1076
|
+
loadAs: options.owner._loadedAs,
|
1077
|
+
skipRetry: true
|
1078
|
+
});
|
1079
|
+
if (!list) {
|
1080
|
+
list = this.create(options.value, {
|
1081
|
+
owner: options.owner,
|
1082
|
+
unique: options.unique
|
1083
|
+
});
|
1084
|
+
} else {
|
1085
|
+
list.applyDiff(options.value);
|
1086
|
+
}
|
1087
|
+
return await loadCoValueWithoutMe(this, listId, {
|
1088
|
+
...options,
|
1089
|
+
loadAs: options.owner._loadedAs,
|
1090
|
+
skipRetry: true
|
1091
|
+
});
|
1092
|
+
}
|
1093
|
+
/**
|
1094
|
+
* Loads a CoList by its unique identifier and owner's ID.
|
1095
|
+
* @param unique The unique identifier of the CoList to load.
|
1096
|
+
* @param ownerID The ID of the owner of the CoList.
|
1097
|
+
* @param options Additional options for loading the CoList.
|
1098
|
+
* @returns The loaded CoList, or null if unavailable.
|
1099
|
+
*/
|
1100
|
+
static loadUnique(unique, ownerID, options) {
|
1101
|
+
return loadCoValueWithoutMe(
|
1102
|
+
this,
|
1103
|
+
_CoList._findUnique(unique, ownerID, options?.loadAs),
|
1104
|
+
{ ...options, skipRetry: true }
|
1105
|
+
);
|
1106
|
+
}
|
1030
1107
|
/**
|
1031
1108
|
* Wait for the `CoList` to be uploaded to the other peers.
|
1032
1109
|
*
|
@@ -1136,7 +1213,7 @@ var CoListProxyHandler = {
|
|
1136
1213
|
};
|
1137
1214
|
|
1138
1215
|
// src/tools/coValues/coFeed.ts
|
1139
|
-
import { cojsonInternals as
|
1216
|
+
import { cojsonInternals as cojsonInternals3 } from "cojson";
|
1140
1217
|
var _CoFeed = class _CoFeed extends CoValueBase {
|
1141
1218
|
/**
|
1142
1219
|
* Declare a `CoFeed` by subclassing `CoFeed.Of(...)` and passing the item schema using a `co` primitive or a `coField.ref`.
|
@@ -1469,12 +1546,12 @@ var CoStreamPerSessionProxyHandler = (innerTarget, accessFrom) => ({
|
|
1469
1546
|
const sessionID = key;
|
1470
1547
|
const rawEntry = innerTarget._raw.lastItemIn(sessionID);
|
1471
1548
|
if (!rawEntry) return;
|
1472
|
-
const by =
|
1549
|
+
const by = cojsonInternals3.accountOrAgentIDfromSessionID(sessionID);
|
1473
1550
|
const entry = entryFromRawEntry(
|
1474
1551
|
accessFrom,
|
1475
1552
|
rawEntry,
|
1476
1553
|
innerTarget._loadedAs,
|
1477
|
-
|
1554
|
+
cojsonInternals3.isAccountID(by) ? by : void 0,
|
1478
1555
|
innerTarget._schema[ItemsSym]
|
1479
1556
|
);
|
1480
1557
|
Object.defineProperty(entry, "all", {
|
@@ -1488,7 +1565,7 @@ var CoStreamPerSessionProxyHandler = (innerTarget, accessFrom) => ({
|
|
1488
1565
|
accessFrom,
|
1489
1566
|
rawEntry2.value,
|
1490
1567
|
innerTarget._loadedAs,
|
1491
|
-
|
1568
|
+
cojsonInternals3.isAccountID(by) ? by : void 0,
|
1492
1569
|
innerTarget._schema[ItemsSym]
|
1493
1570
|
);
|
1494
1571
|
}
|
@@ -1658,7 +1735,7 @@ var FileStream = class extends CoValueBase {
|
|
1658
1735
|
totalSizeBytes: arrayBuffer.byteLength,
|
1659
1736
|
fileName
|
1660
1737
|
});
|
1661
|
-
const chunkSize =
|
1738
|
+
const chunkSize = cojsonInternals3.TRANSACTION_CONFIG.MAX_RECOMMENDED_TX_SIZE;
|
1662
1739
|
let lastProgressUpdate = Date.now();
|
1663
1740
|
for (let idx = 0; idx < data.length; idx += chunkSize) {
|
1664
1741
|
stream.push(data.slice(idx, idx + chunkSize));
|
@@ -1742,7 +1819,7 @@ var FileStream = class extends CoValueBase {
|
|
1742
1819
|
import {
|
1743
1820
|
ControlledAccount as ControlledAccount3,
|
1744
1821
|
LocalNode,
|
1745
|
-
cojsonInternals as
|
1822
|
+
cojsonInternals as cojsonInternals4
|
1746
1823
|
} from "cojson";
|
1747
1824
|
var _Account = class _Account extends CoValueBase {
|
1748
1825
|
get _schema() {
|
@@ -1888,7 +1965,7 @@ var _Account = class _Account extends CoValueBase {
|
|
1888
1965
|
return activeAccountContext.get();
|
1889
1966
|
}
|
1890
1967
|
static async createAs(as, options) {
|
1891
|
-
const connectedPeers =
|
1968
|
+
const connectedPeers = cojsonInternals4.connectedPeers(
|
1892
1969
|
"creatingAccount",
|
1893
1970
|
"createdAccount",
|
1894
1971
|
{ peer1role: "server", peer2role: "client" }
|
@@ -4130,6 +4207,16 @@ var CoListSchema = class {
|
|
4130
4207
|
getCoValueClass() {
|
4131
4208
|
return this.coValueClass;
|
4132
4209
|
}
|
4210
|
+
/** @deprecated Use `CoList.upsertUnique` and `CoList.loadUnique` instead. */
|
4211
|
+
findUnique(unique, ownerID, as) {
|
4212
|
+
return this.coValueClass.findUnique(unique, ownerID, as);
|
4213
|
+
}
|
4214
|
+
upsertUnique(options) {
|
4215
|
+
return this.coValueClass.upsertUnique(options);
|
4216
|
+
}
|
4217
|
+
loadUnique(unique, ownerID, options) {
|
4218
|
+
return this.coValueClass.loadUnique(unique, ownerID, options);
|
4219
|
+
}
|
4133
4220
|
optional() {
|
4134
4221
|
return coOptionalDefiner(this);
|
4135
4222
|
}
|
@@ -4558,7 +4645,7 @@ var ImageDefinitionBase = coMapDefiner({
|
|
4558
4645
|
var ImageDefinition = ImageDefinitionBase;
|
4559
4646
|
|
4560
4647
|
// src/tools/implementation/ContextManager.ts
|
4561
|
-
import { cojsonInternals as
|
4648
|
+
import { cojsonInternals as cojsonInternals5 } from "cojson";
|
4562
4649
|
import { PureJSCrypto } from "cojson/dist/crypto/PureJSCrypto";
|
4563
4650
|
|
4564
4651
|
// src/tools/auth/KvStoreContext.ts
|
@@ -4887,7 +4974,7 @@ var JazzContextManager = class {
|
|
4887
4974
|
}
|
4888
4975
|
const currentContext = this.context;
|
4889
4976
|
if (prevContext && currentContext && "me" in prevContext && "me" in currentContext) {
|
4890
|
-
const [prevAccountAsPeer, currentAccountAsPeer] =
|
4977
|
+
const [prevAccountAsPeer, currentAccountAsPeer] = cojsonInternals5.connectedPeers(
|
4891
4978
|
prevContext.me.id,
|
4892
4979
|
currentContext.me.id,
|
4893
4980
|
{
|
@@ -5283,4 +5370,4 @@ export {
|
|
5283
5370
|
JazzContextManager
|
5284
5371
|
};
|
5285
5372
|
/* istanbul ignore file -- @preserve */
|
5286
|
-
//# sourceMappingURL=chunk-
|
5373
|
+
//# sourceMappingURL=chunk-EEKKLGF2.js.map
|