@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loro-dev/flock",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "TypeScript bindings for the Flock CRDT with mergeable export/import utilities.",
5
5
  "exports": {
6
6
  ".": {
@@ -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$3484 = new Source$Import("import_json");
1010
- const zxch3n$flock$flock$$newFlock$46$42$bind$47$3593 = { physical_time: 0, logical_counter: 0 };
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
- index = _Ok._0;
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$3484, events: _events });
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$3593, vv: _bind, kv: _bind$2, updates: _bind$3, subscribers: _bind$4, digest: _bind$5 };
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);