hyoo_sync_client 0.0.233 → 0.0.234

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/web.mjs CHANGED
@@ -2270,7 +2270,12 @@ var $;
2270
2270
  }
2271
2271
  else {
2272
2272
  this.native().setItem(key, JSON.stringify(next));
2273
- this.$.$mol_storage.persisted(true);
2273
+ try {
2274
+ this.$.$mol_storage.persisted(true);
2275
+ }
2276
+ catch (error) {
2277
+ $mol_fail_log(error);
2278
+ }
2274
2279
  }
2275
2280
  return next;
2276
2281
  }
@@ -4108,7 +4113,7 @@ var $;
4108
4113
  Unit.put(unit, [unit.land, unit.head, unit.self]);
4109
4114
  }
4110
4115
  await trans.commit();
4111
- this.$.$mol_storage.persisted(true);
4116
+ this.$.$mol_storage.native().persist();
4112
4117
  }
4113
4118
  reconnects(reset) {
4114
4119
  return ($mol_wire_probe(() => this.reconnects()) ?? 0) + 1;