@fireproof/core 0.10.3-dev → 0.10.5-dev

Sign up to get free protection for your applications and to get access to all the features.
@@ -17418,15 +17418,21 @@ You can use close({ resize: true }) to resize header`);
17418
17418
  // eslint-disable-next-line @typescript-eslint/require-await
17419
17419
  load(branch = "main") {
17420
17420
  return __async(this, null, function* () {
17421
- const bytes = localStorage.getItem(this.headerKey(branch));
17422
- return bytes ? this.parseHeader(bytes.toString()) : null;
17421
+ try {
17422
+ const bytes = localStorage.getItem(this.headerKey(branch));
17423
+ return bytes ? this.parseHeader(bytes.toString()) : null;
17424
+ } catch (e5) {
17425
+ }
17423
17426
  });
17424
17427
  }
17425
17428
  // eslint-disable-next-line @typescript-eslint/require-await
17426
17429
  save(carCid, branch = "main") {
17427
17430
  return __async(this, null, function* () {
17428
- const headerKey = this.headerKey(branch);
17429
- return localStorage.setItem(headerKey, this.makeHeader(carCid));
17431
+ try {
17432
+ const headerKey = this.headerKey(branch);
17433
+ return localStorage.setItem(headerKey, this.makeHeader(carCid));
17434
+ } catch (e5) {
17435
+ }
17430
17436
  });
17431
17437
  }
17432
17438
  };
@@ -18877,4 +18883,4 @@ You can use close({ resize: true }) to resize header`);
18877
18883
  @jspm/core/nodelibs/browser/chunk-44e51b61.js:
18878
18884
  (*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
18879
18885
  */
18880
- //# sourceMappingURL=fireproof.browser.js.map
18886
+ //# sourceMappingURL=fireproof.browser.iife.js.map