@utogether/utils 3.0.0-beta.22 → 3.0.0-beta.24

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/utils.es.js CHANGED
@@ -69,22 +69,7 @@ class localforageProxy {
69
69
  this.storage.clear();
70
70
  }
71
71
  }
72
- let window$1;
73
- window$1 || (window$1 = {
74
- sessionStorage: {
75
- // getItem: () => {},
76
- // setItem: () => {},
77
- // removeItem: () => {},
78
- // clear: () => {},
79
- },
80
- localStorage: {
81
- // getItem: () => {},
82
- // setItem: () => {},
83
- // removeItem: () => {},
84
- // clear: () => {},
85
- }
86
- });
87
- const storageSession = new sessionStorageProxy(window$1 == null ? void 0 : window$1.sessionStorage), storageLocal = new localStorageProxy(window$1 == null ? void 0 : window$1.localStorage), dbstorage = new localforageProxy();
72
+ const storageSession = new sessionStorageProxy(sessionStorage), storageLocal = new localStorageProxy(localStorage), dbstorage = new localforageProxy();
88
73
  /*! typescript-cookie v1.0.6 | MIT */
89
74
  const encodeName = (a) => encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape), encodeValue = (a) => encodeURIComponent(a).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent), decodeName = decodeURIComponent, decodeValue = (a) => (a[0] === '"' && (a = a.slice(1, -1)), a.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent));
90
75
  function stringifyAttributes(a) {