hyoo_sync_client 0.0.256 → 0.0.257

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
@@ -2365,7 +2365,12 @@ var $;
2365
2365
  (function ($) {
2366
2366
  class $mol_storage extends $mol_object2 {
2367
2367
  static native() {
2368
- return this.$.$mol_dom_context.navigator.storage;
2368
+ return this.$.$mol_dom_context.navigator.storage ?? {
2369
+ persisted: async () => false,
2370
+ persist: async () => false,
2371
+ estimate: async () => ({}),
2372
+ getDirectory: async () => null,
2373
+ };
2369
2374
  }
2370
2375
  static persisted(next, cache) {
2371
2376
  $mol_mem_persist();
@@ -2384,7 +2389,7 @@ var $;
2384
2389
  return next ?? $mol_wire_sync(native).persisted();
2385
2390
  }
2386
2391
  static estimate() {
2387
- return $mol_wire_sync(this.native()).estimate();
2392
+ return $mol_wire_sync(this.native() ?? {}).estimate();
2388
2393
  }
2389
2394
  static dir() {
2390
2395
  return $mol_wire_sync(this.native()).getDirectory();
@@ -2398,7 +2403,7 @@ var $;
2398
2403
  ], $mol_storage, "persisted", null);
2399
2404
  $.$mol_storage = $mol_storage;
2400
2405
  })($ || ($ = {}));
2401
- //mol/storage/storage.web.ts
2406
+ //mol/storage/storage.ts
2402
2407
  ;
2403
2408
  "use strict";
2404
2409
  var $;