@flux-ui/application 3.0.0-next.72 → 3.0.0-next.73

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/dist/index.js CHANGED
@@ -3619,7 +3619,7 @@ var HttpAdapter = _HttpAdapter = class HttpAdapter {
3619
3619
  HttpAdapter = _HttpAdapter = __decorate([adapter_default], HttpAdapter);
3620
3620
  RegExp(`[a-z]`), RegExp(`[A-Z]`), RegExp(`[0-9]`), RegExp(`[!"#$%&'()*+,-./:;<=>?@[\\\\\\]^_\`{|}~]`);
3621
3621
  //#endregion
3622
- //#region ../internals/dist/composable-5ooZTjm_.js
3622
+ //#region ../internals/dist/composable-BLswOqxr.js
3623
3623
  function D(e, t, n, r = { passive: !0 }) {
3624
3624
  watch(e, (e, i, a) => {
3625
3625
  e && (e.addEventListener(t, n, r), a(() => e.removeEventListener(t, n)));
@@ -3628,11 +3628,13 @@ function D(e, t, n, r = { passive: !0 }) {
3628
3628
  function k(e, t) {
3629
3629
  let n = `flux/${e}`, r = ref(i() ?? t);
3630
3630
  function i() {
3631
- if (n in localStorage) {
3631
+ if (!(n in localStorage)) return null;
3632
+ try {
3632
3633
  let e = JSON.parse(localStorage.getItem(n));
3633
3634
  return Array.isArray(e) && e[0] === `DateTime` && (e = DateTime.fromISO(e[1])), e;
3635
+ } catch {
3636
+ return null;
3634
3637
  }
3635
- return null;
3636
3638
  }
3637
3639
  return watch(r, (e) => {
3638
3640
  let t = e;