@loro-dev/flock 2.1.1 → 2.1.2
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/_moon_flock.ts +6 -5
package/package.json
CHANGED
package/src/_moon_flock.ts
CHANGED
|
@@ -1006,8 +1006,8 @@ const zxch3n$flock$sorted_map$$range$46$tuple$47$2972 = { _0: true, _1: true };
|
|
|
1006
1006
|
const zxch3n$flock$flock$$from_string$46$42$bind$124$598 = ",";
|
|
1007
1007
|
const zxch3n$flock$flock$$zero$46$record$47$3050 = { physical_time: 0, logical_counter: 0 };
|
|
1008
1008
|
const zxch3n$flock$flock$$new$46$42$bind$47$3233 = { physical_time: 0, logical_counter: 0 };
|
|
1009
|
-
const zxch3n$flock$flock$$import_json$46$inner$46$constr$47$
|
|
1010
|
-
const zxch3n$flock$flock$$newFlock$46$42$bind$47$
|
|
1009
|
+
const zxch3n$flock$flock$$import_json$46$inner$46$constr$47$3485 = new Source$Import("import_json");
|
|
1010
|
+
const zxch3n$flock$flock$$newFlock$46$42$bind$47$3594 = { physical_time: 0, logical_counter: 0 };
|
|
1011
1011
|
(() => {
|
|
1012
1012
|
Yoorkin$jmop$$ffi_init(Yoorkin$jmop$$convert_thrown_error);
|
|
1013
1013
|
})();
|
|
@@ -12739,7 +12739,8 @@ function zxch3n$flock$flock$$Flock$export_json$46$inner(self, from, prune_tombst
|
|
|
12739
12739
|
let index;
|
|
12740
12740
|
if (_bind$3.$tag === 1) {
|
|
12741
12741
|
const _Ok = _bind$3;
|
|
12742
|
-
|
|
12742
|
+
const _index = _Ok._0;
|
|
12743
|
+
index = _index + 1 | 0;
|
|
12743
12744
|
} else {
|
|
12744
12745
|
const _Err = _bind$3;
|
|
12745
12746
|
index = _Err._0;
|
|
@@ -13020,7 +13021,7 @@ function zxch3n$flock$flock$$Flock$import_json$46$inner(self, json, hooks) {
|
|
|
13020
13021
|
const _Some = _bind$2;
|
|
13021
13022
|
const _events = _Some._0;
|
|
13022
13023
|
if (_events.length > 0) {
|
|
13023
|
-
zxch3n$flock$flock$$SubscriberSet$notify$81$(self.subscribers, { by: zxch3n$flock$flock$$import_json$46$inner$46$constr$47$
|
|
13024
|
+
zxch3n$flock$flock$$SubscriberSet$notify$81$(self.subscribers, { by: zxch3n$flock$flock$$import_json$46$inner$46$constr$47$3485, events: _events });
|
|
13024
13025
|
}
|
|
13025
13026
|
}
|
|
13026
13027
|
return new Result$Ok$37$({ accepted: accepted.val, skipped: skipped_entries });
|
|
@@ -13192,7 +13193,7 @@ function zxch3n$flock$flock$$Flock$newFlock(peer_id) {
|
|
|
13192
13193
|
const _bind$3 = zxch3n$flock$sorted_map$$SortedMap$new$80$();
|
|
13193
13194
|
const _bind$4 = zxch3n$flock$flock$$SubscriberSet$new$81$();
|
|
13194
13195
|
const _bind$5 = undefined;
|
|
13195
|
-
return { peer_id: peer_id, max_hlc: zxch3n$flock$flock$$newFlock$46$42$bind$47$
|
|
13196
|
+
return { peer_id: peer_id, max_hlc: zxch3n$flock$flock$$newFlock$46$42$bind$47$3594, vv: _bind, kv: _bind$2, updates: _bind$3, subscribers: _bind$4, digest: _bind$5 };
|
|
13196
13197
|
}
|
|
13197
13198
|
function zxch3n$flock$flock$$json_stringify_value(value) {
|
|
13198
13199
|
return zxch3n$flock$flock$$ffi_json_stringify_value(value);
|