@utogether/utils 3.0.0-beta.7 → 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/utils.es.js +2 -3
- package/dist/utils.umd.js +1 -1
- package/package.json +1 -1
package/dist/utils.es.js
CHANGED
|
@@ -69,7 +69,7 @@ class localforageProxy {
|
|
|
69
69
|
this.storage.clear();
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
const
|
|
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) {
|
|
@@ -10122,7 +10122,7 @@ const delay = (a) => new Promise((l) => setTimeout(l, a)), useDark = () => ({ is
|
|
|
10122
10122
|
};
|
|
10123
10123
|
};
|
|
10124
10124
|
function isUrl(a) {
|
|
10125
|
-
return
|
|
10125
|
+
return /(((^http(s)?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(a);
|
|
10126
10126
|
}
|
|
10127
10127
|
const getDictName = (a, l) => {
|
|
10128
10128
|
var o, r;
|
|
@@ -10163,7 +10163,6 @@ export {
|
|
|
10163
10163
|
showMessage,
|
|
10164
10164
|
sleep,
|
|
10165
10165
|
storageLocal,
|
|
10166
|
-
storageSession,
|
|
10167
10166
|
successMessage,
|
|
10168
10167
|
toggleClass,
|
|
10169
10168
|
useAttrs,
|