@utogether/utils 3.0.0-beta.8 → 3.0.0-beta.9
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/pkg/storage.d.ts +1 -0
- package/dist/utils.es.js +1 -1
- package/dist/utils.umd.js +1 -1
- package/package.json +1 -1
package/dist/pkg/storage.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare class localforageProxy implements ProxyStorage {
|
|
|
26
26
|
removeItem(key: string): void;
|
|
27
27
|
clear(): void;
|
|
28
28
|
}
|
|
29
|
+
export declare const storageSession: sessionStorageProxy;
|
|
29
30
|
export declare const storageLocal: localStorageProxy;
|
|
30
31
|
export declare const dbstorage: localforageProxy;
|
|
31
32
|
export {};
|
package/dist/utils.es.js
CHANGED
|
@@ -69,7 +69,7 @@ class localforageProxy {
|
|
|
69
69
|
this.storage.clear();
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const storageLocal = new localStorageProxy(localStorage), dbstorage = new localforageProxy();
|
|
72
|
+
const storageLocal = new localStorageProxy(window.localStorage), dbstorage = new localforageProxy();
|
|
73
73
|
/*! typescript-cookie v1.0.6 | MIT */
|
|
74
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));
|
|
75
75
|
function stringifyAttributes(a) {
|