hyoo_sync_client 0.0.233 → 0.0.235

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/node.mjs CHANGED
@@ -2626,7 +2626,12 @@ var $;
2626
2626
  }
2627
2627
  else {
2628
2628
  this.native().setItem(key, JSON.stringify(next));
2629
- this.$.$mol_storage.persisted(true);
2629
+ try {
2630
+ this.$.$mol_storage.persisted(true);
2631
+ }
2632
+ catch (error) {
2633
+ $mol_fail_log(error);
2634
+ }
2630
2635
  }
2631
2636
  return next;
2632
2637
  }
@@ -4402,7 +4407,7 @@ var $;
4402
4407
  Unit.put(unit, [unit.land, unit.head, unit.self]);
4403
4408
  }
4404
4409
  await trans.commit();
4405
- this.$.$mol_storage.persisted(true);
4410
+ this.$.$mol_storage.native().persist();
4406
4411
  }
4407
4412
  reconnects(reset) {
4408
4413
  return ($mol_wire_probe(() => this.reconnects()) ?? 0) + 1;
package/node.test.js CHANGED
@@ -2618,7 +2618,12 @@ var $;
2618
2618
  }
2619
2619
  else {
2620
2620
  this.native().setItem(key, JSON.stringify(next));
2621
- this.$.$mol_storage.persisted(true);
2621
+ try {
2622
+ this.$.$mol_storage.persisted(true);
2623
+ }
2624
+ catch (error) {
2625
+ $mol_fail_log(error);
2626
+ }
2622
2627
  }
2623
2628
  return next;
2624
2629
  }
@@ -4394,7 +4399,7 @@ var $;
4394
4399
  Unit.put(unit, [unit.land, unit.head, unit.self]);
4395
4400
  }
4396
4401
  await trans.commit();
4397
- this.$.$mol_storage.persisted(true);
4402
+ this.$.$mol_storage.native().persist();
4398
4403
  }
4399
4404
  reconnects(reset) {
4400
4405
  return ($mol_wire_probe(() => this.reconnects()) ?? 0) + 1;