mol_plot_all 1.2.808 → 1.2.810

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": "mol_plot_all",
3
- "version": "1.2.808",
3
+ "version": "1.2.810",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
package/web.test.js CHANGED
@@ -2991,21 +2991,20 @@ var $;
2991
2991
  (function ($) {
2992
2992
  class $mol_storage extends $mol_object2 {
2993
2993
  static native() {
2994
- return $mol_wire_sync(this.$.$mol_dom_context.navigator.storage);
2994
+ return this.$.$mol_dom_context.navigator.storage;
2995
2995
  }
2996
2996
  static persisted(next) {
2997
2997
  $mol_mem_persist();
2998
2998
  const native = this.native();
2999
- const prev = $mol_mem_cached(() => this.persisted()) ?? native.persisted();
3000
- if (next && !prev)
2999
+ if (next)
3001
3000
  native.persist();
3002
- return next ?? prev;
3001
+ return next ?? $mol_wire_sync(native).persisted();
3003
3002
  }
3004
3003
  static estimate() {
3005
- return this.native().estimate();
3004
+ return $mol_wire_sync(this.native()).estimate();
3006
3005
  }
3007
3006
  static dir() {
3008
- return this.native().getDirectory();
3007
+ return $mol_wire_sync(this.native()).getDirectory();
3009
3008
  }
3010
3009
  }
3011
3010
  __decorate([
@@ -3059,12 +3058,7 @@ var $;
3059
3058
  }
3060
3059
  else {
3061
3060
  this.native().setItem(key, JSON.stringify(next));
3062
- try {
3063
- this.$.$mol_storage.persisted(true);
3064
- }
3065
- catch (error) {
3066
- $mol_fail_log(error);
3067
- }
3061
+ this.$.$mol_storage.persisted(true);
3068
3062
  }
3069
3063
  return next;
3070
3064
  }