hyoo_sync_client 0.0.234 → 0.0.236

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