mol_dump_lib 0.0.145 → 0.0.147

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.js CHANGED
@@ -4595,21 +4595,20 @@ var $;
4595
4595
  (function ($) {
4596
4596
  class $mol_storage extends $mol_object2 {
4597
4597
  static native() {
4598
- return $mol_wire_sync(this.$.$mol_dom_context.navigator.storage);
4598
+ return this.$.$mol_dom_context.navigator.storage;
4599
4599
  }
4600
4600
  static persisted(next) {
4601
4601
  $mol_mem_persist();
4602
4602
  const native = this.native();
4603
- const prev = $mol_mem_cached(() => this.persisted()) ?? native.persisted();
4604
- if (next && !prev)
4603
+ if (next)
4605
4604
  native.persist();
4606
- return next ?? prev;
4605
+ return next ?? $mol_wire_sync(native).persisted();
4607
4606
  }
4608
4607
  static estimate() {
4609
- return this.native().estimate();
4608
+ return $mol_wire_sync(this.native()).estimate();
4610
4609
  }
4611
4610
  static dir() {
4612
- return this.native().getDirectory();
4611
+ return $mol_wire_sync(this.native()).getDirectory();
4613
4612
  }
4614
4613
  }
4615
4614
  __decorate([
@@ -4663,12 +4662,7 @@ var $;
4663
4662
  }
4664
4663
  else {
4665
4664
  this.native().setItem(key, JSON.stringify(next));
4666
- try {
4667
- this.$.$mol_storage.persisted(true);
4668
- }
4669
- catch (error) {
4670
- $mol_fail_log(error);
4671
- }
4665
+ this.$.$mol_storage.persisted(true);
4672
4666
  }
4673
4667
  return next;
4674
4668
  }