memorio 3.0.1 → 3.0.2
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/README.md +59 -48
- package/docs/README.md +59 -48
- package/docs/markdown/CACHE.md +3 -3
- package/docs/markdown/CHANGELOG.md +63 -154
- package/docs/markdown/DEVTOOLS.md +1 -1
- package/docs/markdown/IDB.md +3 -3
- package/docs/markdown/LOGGER.md +2 -2
- package/docs/markdown/OBSERVER.md +4 -4
- package/docs/markdown/PLATFORM.md +5 -5
- package/docs/markdown/SECURITY.md +16 -4
- package/docs/markdown/SESSION.md +4 -4
- package/docs/markdown/STATE.md +7 -7
- package/docs/markdown/STORE.md +7 -7
- package/docs/markdown/USEOBSERVER.md +1 -1
- package/examples/react-app.tsx +6 -1
- package/index.cjs +106 -98
- package/index.js +106 -96
- package/package.json +1 -1
- package/types/memorio.d.ts +6 -0
package/index.cjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
1
|
var e = Object.getOwnPropertyNames, t = (t, o) => function() {
|
|
4
2
|
return t && (o = (0, t[e(t)[0]])(t = 0)), o;
|
|
5
3
|
}, o = {}, r = t({
|
|
@@ -63,7 +61,7 @@ var e = Object.getOwnPropertyNames, t = (t, o) => function() {
|
|
|
63
61
|
}
|
|
64
62
|
};
|
|
65
63
|
}
|
|
66
|
-
}), m = {},
|
|
64
|
+
}), m = {}, g = t({
|
|
67
65
|
"functions/idb/tools/db.version.ts"() {
|
|
68
66
|
idb.db.version = e => {
|
|
69
67
|
let t = 0;
|
|
@@ -74,7 +72,7 @@ var e = Object.getOwnPropertyNames, t = (t, o) => function() {
|
|
|
74
72
|
return t;
|
|
75
73
|
};
|
|
76
74
|
}
|
|
77
|
-
}),
|
|
75
|
+
}), h = {}, p = t({
|
|
78
76
|
"functions/idb/tools/db.support.ts"() {
|
|
79
77
|
idb.db.support = () => {
|
|
80
78
|
const e = "indexedDB" in globalThis;
|
|
@@ -196,7 +194,7 @@ var e = Object.getOwnPropertyNames, t = (t, o) => function() {
|
|
|
196
194
|
}
|
|
197
195
|
});
|
|
198
196
|
|
|
199
|
-
function
|
|
197
|
+
function E() {
|
|
200
198
|
const e = globalThis;
|
|
201
199
|
if (void 0 !== e.crypto && e.crypto.randomUUID) return e.crypto.randomUUID();
|
|
202
200
|
if (void 0 !== e.crypto && e.crypto.getRandomValues) {
|
|
@@ -206,7 +204,12 @@ function x() {
|
|
|
206
204
|
return `session_${Date.now()}_${Math.random().toString(36).substring(2, 15)}`;
|
|
207
205
|
}
|
|
208
206
|
|
|
209
|
-
function
|
|
207
|
+
function x() {
|
|
208
|
+
const e = globalThis;
|
|
209
|
+
return e.Deno && e.Deno.version ? "deno" : "undefined" != typeof process && process.versions && process.versions.node ? "node" : "undefined" != typeof globalThis && void 0 !== globalThis.ServiceWorkerGlobalScope ? "edge" : "undefined" != typeof window && "undefined" != typeof document ? "browser" : "unknown";
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function N() {
|
|
210
213
|
try {
|
|
211
214
|
if ("undefined" != typeof sessionStorage) {
|
|
212
215
|
const e = "__memorio_test__";
|
|
@@ -216,7 +219,7 @@ function E() {
|
|
|
216
219
|
return null;
|
|
217
220
|
}
|
|
218
221
|
|
|
219
|
-
function
|
|
222
|
+
function I() {
|
|
220
223
|
try {
|
|
221
224
|
if ("undefined" != typeof localStorage) {
|
|
222
225
|
const e = "__memorio_test__";
|
|
@@ -226,40 +229,37 @@ function N() {
|
|
|
226
229
|
return null;
|
|
227
230
|
}
|
|
228
231
|
|
|
229
|
-
function
|
|
232
|
+
function D() {
|
|
230
233
|
return "undefined" != typeof indexedDB;
|
|
231
234
|
}
|
|
232
235
|
|
|
233
|
-
function
|
|
234
|
-
const e =
|
|
235
|
-
const e = globalThis;
|
|
236
|
-
return e.Deno && e.Deno.version ? "deno" : "undefined" != typeof process && process.versions && process.versions.node ? "node" : "undefined" != typeof globalThis && void 0 !== globalThis.ServiceWorkerGlobalScope ? "edge" : "undefined" != typeof window && "undefined" != typeof document ? "browser" : "unknown";
|
|
237
|
-
}(), t = void 0 !== globalThis.isSecureContext ? globalThis.isSecureContext : "browser" === e;
|
|
236
|
+
function A() {
|
|
237
|
+
const e = x(), t = void 0 !== globalThis.isSecureContext ? globalThis.isSecureContext : "browser" === e;
|
|
238
238
|
return {
|
|
239
239
|
platform: e,
|
|
240
|
-
hasSessionStorage: null !==
|
|
241
|
-
hasLocalStorage: null !==
|
|
242
|
-
hasIndexedDB:
|
|
240
|
+
hasSessionStorage: null !== N(),
|
|
241
|
+
hasLocalStorage: null !== I(),
|
|
242
|
+
hasIndexedDB: D(),
|
|
243
243
|
hasDispatchEvent: "function" == typeof globalThis.dispatchEvent,
|
|
244
244
|
hasNavigator: "undefined" != typeof navigator,
|
|
245
245
|
hasProcess: "undefined" != typeof process,
|
|
246
246
|
isSecureContext: t,
|
|
247
|
-
sessionId:
|
|
247
|
+
sessionId: E()
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
var A = new Map;
|
|
252
|
-
|
|
253
251
|
var z = new Map;
|
|
254
252
|
|
|
255
|
-
|
|
256
|
-
|
|
253
|
+
var J = new Map;
|
|
254
|
+
|
|
255
|
+
function B(e) {
|
|
256
|
+
const t = e || `context_${E()}`, o = {
|
|
257
257
|
state: {},
|
|
258
258
|
store: new Map,
|
|
259
259
|
session: new Map,
|
|
260
260
|
cache: new Map
|
|
261
261
|
};
|
|
262
|
-
return
|
|
262
|
+
return J.set(t, o), {
|
|
263
263
|
id: t,
|
|
264
264
|
state: o.state,
|
|
265
265
|
store: {
|
|
@@ -312,13 +312,13 @@ Object.defineProperty(globalThis, "memorio", {
|
|
|
312
312
|
}), Object.defineProperty(memorio, "version", {
|
|
313
313
|
writable: !1,
|
|
314
314
|
enumerable: !1,
|
|
315
|
-
value: "3.0.
|
|
315
|
+
value: "3.0.2"
|
|
316
316
|
});
|
|
317
317
|
|
|
318
|
-
var
|
|
318
|
+
var C = [ "list", "state", "store", "idb", "observer", "useObserver", "remove", "removeAll", "_platform", "_capabilities", "_sessionId" ];
|
|
319
319
|
|
|
320
320
|
!function() {
|
|
321
|
-
const e =
|
|
321
|
+
const e = A(), t = globalThis;
|
|
322
322
|
void 0 !== t.memorio && (t.memorio._platform = e.platform, t.memorio._capabilities = e),
|
|
323
323
|
e.hasDispatchEvent || (t.dispatchEvent = function(e) {
|
|
324
324
|
return !0;
|
|
@@ -329,15 +329,15 @@ var B = [ "list", "state", "store", "idb", "observer", "useObserver", "remove",
|
|
|
329
329
|
this.type = e, this.detail = t;
|
|
330
330
|
}
|
|
331
331
|
})), "function" != typeof t.addEventListener && (t.addEventListener = function(e, t) {
|
|
332
|
-
|
|
332
|
+
z.has(e) || z.set(e, []), z.get(e).push(t);
|
|
333
333
|
}, t.removeEventListener = function(e, t) {
|
|
334
|
-
const o =
|
|
334
|
+
const o = z.get(e);
|
|
335
335
|
if (o) {
|
|
336
336
|
const e = o.indexOf(t);
|
|
337
337
|
e > -1 && o.splice(e, 1);
|
|
338
338
|
}
|
|
339
339
|
}, t.dispatchEvent = function(e) {
|
|
340
|
-
const t =
|
|
340
|
+
const t = z.get(e.type);
|
|
341
341
|
return t && t.forEach(t => {
|
|
342
342
|
try {
|
|
343
343
|
t(e);
|
|
@@ -346,18 +346,26 @@ var B = [ "list", "state", "store", "idb", "observer", "useObserver", "remove",
|
|
|
346
346
|
});
|
|
347
347
|
}();
|
|
348
348
|
|
|
349
|
-
var $ =
|
|
349
|
+
var $ = A();
|
|
350
350
|
|
|
351
351
|
Object.defineProperty(memorio, "_sessionId", {
|
|
352
352
|
writable: !1,
|
|
353
353
|
enumerable: !1,
|
|
354
354
|
value: $.sessionId
|
|
355
|
-
}), memorio.createContext =
|
|
356
|
-
return Array.from(
|
|
355
|
+
}), memorio.createContext = B, memorio.listContexts = function() {
|
|
356
|
+
return Array.from(J.keys());
|
|
357
357
|
}, memorio.deleteContext = function(e) {
|
|
358
|
-
return
|
|
359
|
-
}, memorio.
|
|
360
|
-
return
|
|
358
|
+
return J.delete(e);
|
|
359
|
+
}, memorio.isBrowser = function() {
|
|
360
|
+
return "browser" === x();
|
|
361
|
+
}, memorio.isNode = function() {
|
|
362
|
+
return "node" === x();
|
|
363
|
+
}, memorio.isDeno = function() {
|
|
364
|
+
return "deno" === x();
|
|
365
|
+
}, memorio.isEdge = function() {
|
|
366
|
+
return "edge" === x();
|
|
367
|
+
}, memorio.getCapabilities = A, memorio.isolate = function(e) {
|
|
368
|
+
return B(e);
|
|
361
369
|
}, Object.defineProperty(memorio, "dispatch", {
|
|
362
370
|
writable: !1,
|
|
363
371
|
enumerable: !1,
|
|
@@ -386,7 +394,7 @@ Object.defineProperty(memorio, "_sessionId", {
|
|
|
386
394
|
}), globalThis.memorio._tracking = !1, globalThis.memorio._trackedPaths = new Set,
|
|
387
395
|
globalThis.memorio._locked = !1;
|
|
388
396
|
|
|
389
|
-
var
|
|
397
|
+
var R = (e, t, o = []) => new Proxy(e, {
|
|
390
398
|
get(e, r) {
|
|
391
399
|
if ("__path" === r) return o.length > 0 ? "state." + o.join(".") : "state";
|
|
392
400
|
if ("list" === r) return JSON.parse(JSON.stringify(globalThis.state));
|
|
@@ -407,14 +415,14 @@ var C = (e, t, o = []) => new Proxy(e, {
|
|
|
407
415
|
}
|
|
408
416
|
try {
|
|
409
417
|
const s = Reflect.get(e, r);
|
|
410
|
-
return s && "object" == typeof s && [ "Array", "Object" ].includes(s.constructor.name) ?
|
|
418
|
+
return s && "object" == typeof s && [ "Array", "Object" ].includes(s.constructor.name) ? R(s, t, o.concat(r)) : s;
|
|
411
419
|
} catch (e) {
|
|
412
420
|
return;
|
|
413
421
|
}
|
|
414
422
|
},
|
|
415
423
|
set(e, r, s) {
|
|
416
424
|
if (globalThis.memorio._locked) return !1;
|
|
417
|
-
if (
|
|
425
|
+
if (C.includes(r)) return !1;
|
|
418
426
|
if (e[r] && "object" == typeof e[r] && Object.isFrozen(e[r])) return !1;
|
|
419
427
|
if (e[r] && "object" == typeof e[r] && e[r].__locked) return !1;
|
|
420
428
|
try {
|
|
@@ -489,7 +497,7 @@ var C = (e, t, o = []) => new Proxy(e, {
|
|
|
489
497
|
getOwnPropertyDescriptor: (e, t) => Reflect.getOwnPropertyDescriptor(e, t)
|
|
490
498
|
});
|
|
491
499
|
|
|
492
|
-
globalThis?.state || (globalThis.state =
|
|
500
|
+
globalThis?.state || (globalThis.state = R({}, () => {})), globalThis.state.lock = () => {
|
|
493
501
|
globalThis.memorio._locked = !0;
|
|
494
502
|
}, globalThis.state.unlock = () => {
|
|
495
503
|
globalThis.memorio._locked = !1;
|
|
@@ -580,10 +588,10 @@ globalThis.observer = (e, t = null, o = !0) => {
|
|
|
580
588
|
}
|
|
581
589
|
}, Object.freeze(globalThis.useObserver);
|
|
582
590
|
|
|
583
|
-
var
|
|
591
|
+
var W = I(), M = new Map, q = null !== W, L = "memorio_store_";
|
|
584
592
|
|
|
585
|
-
function
|
|
586
|
-
return e && "string" == typeof e ? e.length > 512 ? "" : /^[a-zA-Z0-9_.-]+$/.test(e) ?
|
|
593
|
+
function U(e) {
|
|
594
|
+
return e && "string" == typeof e ? e.length > 512 ? "" : /^[a-zA-Z0-9_.-]+$/.test(e) ? L + e : "" : "";
|
|
587
595
|
}
|
|
588
596
|
|
|
589
597
|
Object.defineProperty(globalThis, "store", {
|
|
@@ -594,14 +602,14 @@ Object.defineProperty(globalThis, "store", {
|
|
|
594
602
|
get: {
|
|
595
603
|
value: e => {
|
|
596
604
|
if (!e) return;
|
|
597
|
-
const t =
|
|
605
|
+
const t = U(e);
|
|
598
606
|
try {
|
|
599
|
-
if (
|
|
600
|
-
const e =
|
|
607
|
+
if (q) {
|
|
608
|
+
const e = W.getItem(t);
|
|
601
609
|
return e ? JSON.parse(e) : e;
|
|
602
610
|
}
|
|
603
611
|
{
|
|
604
|
-
const e =
|
|
612
|
+
const e = M.get(t);
|
|
605
613
|
return e ? JSON.parse(e) : e;
|
|
606
614
|
}
|
|
607
615
|
} catch (e) {}
|
|
@@ -611,11 +619,11 @@ Object.defineProperty(globalThis, "store", {
|
|
|
611
619
|
set: {
|
|
612
620
|
value: (e, t) => {
|
|
613
621
|
if (!e) return;
|
|
614
|
-
const o =
|
|
622
|
+
const o = U(e);
|
|
615
623
|
try {
|
|
616
|
-
if (
|
|
617
|
-
if (null == t)
|
|
618
|
-
} else if (null == t)
|
|
624
|
+
if (q) {
|
|
625
|
+
if (null == t) W.setItem(o, JSON.stringify(null)); else if ("object" == typeof t || "number" == typeof t || "boolean" == typeof t || "string" == typeof t) W.setItem(o, JSON.stringify(t)); else if ("function" == typeof t) return;
|
|
626
|
+
} else if (null == t) M.set(o, JSON.stringify(null)); else if ("object" == typeof t || "number" == typeof t || "boolean" == typeof t || "string" == typeof t) M.set(o, JSON.stringify(t)); else if ("function" == typeof t) return;
|
|
619
627
|
} catch (e) {}
|
|
620
628
|
return null;
|
|
621
629
|
}
|
|
@@ -623,11 +631,11 @@ Object.defineProperty(globalThis, "store", {
|
|
|
623
631
|
remove: {
|
|
624
632
|
value: e => {
|
|
625
633
|
if (!e) return;
|
|
626
|
-
const t =
|
|
634
|
+
const t = U(e);
|
|
627
635
|
try {
|
|
628
|
-
if (
|
|
629
|
-
if (
|
|
630
|
-
} else if (
|
|
636
|
+
if (q) {
|
|
637
|
+
if (W.getItem(t)) return W.removeItem(t), !0;
|
|
638
|
+
} else if (M.has(t)) return M.delete(t), !0;
|
|
631
639
|
} catch (e) {}
|
|
632
640
|
return !1;
|
|
633
641
|
}
|
|
@@ -637,14 +645,14 @@ Object.defineProperty(globalThis, "store", {
|
|
|
637
645
|
},
|
|
638
646
|
removeAll: {
|
|
639
647
|
value: () => {
|
|
640
|
-
if (
|
|
648
|
+
if (q) {
|
|
641
649
|
const e = [];
|
|
642
|
-
for (let t = 0; t <
|
|
643
|
-
const o =
|
|
644
|
-
o?.startsWith(
|
|
650
|
+
for (let t = 0; t < W.length; t++) {
|
|
651
|
+
const o = W.key(t);
|
|
652
|
+
o?.startsWith(L) && e.push(o);
|
|
645
653
|
}
|
|
646
|
-
e.forEach(e =>
|
|
647
|
-
} else
|
|
654
|
+
e.forEach(e => W.removeItem(e));
|
|
655
|
+
} else M.clear();
|
|
648
656
|
return !0;
|
|
649
657
|
}
|
|
650
658
|
},
|
|
@@ -657,25 +665,25 @@ Object.defineProperty(globalThis, "store", {
|
|
|
657
665
|
size: {
|
|
658
666
|
value: () => {
|
|
659
667
|
let e = 0;
|
|
660
|
-
return
|
|
661
|
-
if (t.startsWith(
|
|
662
|
-
const o =
|
|
668
|
+
return q ? Object.keys(W).forEach(t => {
|
|
669
|
+
if (t.startsWith(L)) {
|
|
670
|
+
const o = W.getItem(t);
|
|
663
671
|
o && (e += o.length);
|
|
664
672
|
}
|
|
665
|
-
}) :
|
|
673
|
+
}) : M.forEach(t => {
|
|
666
674
|
e += t.length;
|
|
667
675
|
}), e;
|
|
668
676
|
}
|
|
669
677
|
},
|
|
670
678
|
isPersistent: {
|
|
671
|
-
get: () =>
|
|
679
|
+
get: () => q
|
|
672
680
|
}
|
|
673
681
|
}), Object.freeze(store);
|
|
674
682
|
|
|
675
|
-
var
|
|
683
|
+
var V = N(), F = new Map, K = null !== V, Z = "memorio_session_";
|
|
676
684
|
|
|
677
|
-
function
|
|
678
|
-
return e && "string" == typeof e ? e.length > 512 ? "" : /^[a-zA-Z0-9_.-]+$/.test(e) ?
|
|
685
|
+
function G(e) {
|
|
686
|
+
return e && "string" == typeof e ? e.length > 512 ? "" : /^[a-zA-Z0-9_.-]+$/.test(e) ? Z + e : "" : "";
|
|
679
687
|
}
|
|
680
688
|
|
|
681
689
|
Object.defineProperty(globalThis, "session", {
|
|
@@ -686,14 +694,14 @@ Object.defineProperty(globalThis, "session", {
|
|
|
686
694
|
get: {
|
|
687
695
|
value: e => {
|
|
688
696
|
if (!e) return;
|
|
689
|
-
const t =
|
|
697
|
+
const t = G(e);
|
|
690
698
|
try {
|
|
691
|
-
if (
|
|
692
|
-
const e =
|
|
699
|
+
if (K) {
|
|
700
|
+
const e = V.getItem(t);
|
|
693
701
|
return e ? JSON.parse(e) : e;
|
|
694
702
|
}
|
|
695
703
|
{
|
|
696
|
-
const e =
|
|
704
|
+
const e = F.get(t);
|
|
697
705
|
return e ? JSON.parse(e) : e;
|
|
698
706
|
}
|
|
699
707
|
} catch (e) {}
|
|
@@ -702,20 +710,20 @@ Object.defineProperty(globalThis, "session", {
|
|
|
702
710
|
set: {
|
|
703
711
|
value: (e, t) => {
|
|
704
712
|
if (!e) return;
|
|
705
|
-
const o =
|
|
713
|
+
const o = G(e);
|
|
706
714
|
try {
|
|
707
|
-
|
|
715
|
+
K ? null == t ? V.setItem(o, JSON.stringify(null)) : "object" != typeof t && "number" != typeof t && "boolean" != typeof t && "string" != typeof t || V.setItem(o, JSON.stringify(t)) : null == t ? F.set(o, JSON.stringify(null)) : "object" != typeof t && "number" != typeof t && "boolean" != typeof t && "string" != typeof t || F.set(o, JSON.stringify(t));
|
|
708
716
|
} catch (e) {}
|
|
709
717
|
}
|
|
710
718
|
},
|
|
711
719
|
remove: {
|
|
712
720
|
value: e => {
|
|
713
721
|
if (!e) return;
|
|
714
|
-
const t =
|
|
722
|
+
const t = G(e);
|
|
715
723
|
try {
|
|
716
|
-
if (
|
|
717
|
-
if (
|
|
718
|
-
} else if (
|
|
724
|
+
if (K) {
|
|
725
|
+
if (V.getItem(t)) return V.removeItem(t), !0;
|
|
726
|
+
} else if (F.has(t)) return F.delete(t), !0;
|
|
719
727
|
} catch (e) {}
|
|
720
728
|
}
|
|
721
729
|
},
|
|
@@ -724,14 +732,14 @@ Object.defineProperty(globalThis, "session", {
|
|
|
724
732
|
},
|
|
725
733
|
removeAll: {
|
|
726
734
|
value: () => {
|
|
727
|
-
if (
|
|
735
|
+
if (K) {
|
|
728
736
|
const e = [];
|
|
729
|
-
for (let t = 0; t <
|
|
730
|
-
const o =
|
|
731
|
-
o?.startsWith(
|
|
737
|
+
for (let t = 0; t < V.length; t++) {
|
|
738
|
+
const o = V.key(t);
|
|
739
|
+
o?.startsWith(Z) && e.push(o);
|
|
732
740
|
}
|
|
733
|
-
e.forEach(e =>
|
|
734
|
-
} else
|
|
741
|
+
e.forEach(e => V.removeItem(e));
|
|
742
|
+
} else F.clear();
|
|
735
743
|
return !0;
|
|
736
744
|
}
|
|
737
745
|
},
|
|
@@ -744,35 +752,35 @@ Object.defineProperty(globalThis, "session", {
|
|
|
744
752
|
size: {
|
|
745
753
|
value: () => {
|
|
746
754
|
let e = 0;
|
|
747
|
-
return
|
|
748
|
-
if (t.startsWith(
|
|
749
|
-
const o =
|
|
755
|
+
return K ? Object.keys(V).forEach(t => {
|
|
756
|
+
if (t.startsWith(Z)) {
|
|
757
|
+
const o = V.getItem(t);
|
|
750
758
|
o && (e += o.length);
|
|
751
759
|
}
|
|
752
|
-
}) :
|
|
760
|
+
}) : F.forEach(t => {
|
|
753
761
|
e += t.length;
|
|
754
762
|
}), e;
|
|
755
763
|
}
|
|
756
764
|
},
|
|
757
765
|
isPersistent: {
|
|
758
|
-
get: () =>
|
|
766
|
+
get: () => K
|
|
759
767
|
}
|
|
760
768
|
}), Object.freeze(session);
|
|
761
769
|
|
|
762
|
-
var
|
|
770
|
+
var H = {};
|
|
763
771
|
|
|
764
772
|
Object.defineProperty(globalThis, "cache", {
|
|
765
773
|
value: new Proxy({}, {
|
|
766
|
-
get: (e, t) => "get" === t ? e =>
|
|
767
|
-
|
|
768
|
-
} : "remove" === t ? e => (delete
|
|
769
|
-
!0) :
|
|
770
|
-
set: (e, t, o) => (
|
|
771
|
-
deleteProperty: (e, t) => (delete
|
|
774
|
+
get: (e, t) => "get" === t ? e => H[e] : "set" === t ? (e, t) => {
|
|
775
|
+
H[e] = t;
|
|
776
|
+
} : "remove" === t ? e => (delete H[e], !0) : "removeAll" === t || "clear" === t ? () => (Object.keys(H).forEach(e => delete H[e]),
|
|
777
|
+
!0) : H[t],
|
|
778
|
+
set: (e, t, o) => (H[t] = o, !0),
|
|
779
|
+
deleteProperty: (e, t) => (delete H[t], !0)
|
|
772
780
|
}),
|
|
773
781
|
enumerable: !1,
|
|
774
782
|
configurable: !0
|
|
775
|
-
}), Object.freeze(cache),
|
|
783
|
+
}), Object.freeze(cache), D() ? (async () => {
|
|
776
784
|
Object.defineProperty(globalThis, "idb", {
|
|
777
785
|
value: {
|
|
778
786
|
db: {},
|
|
@@ -790,8 +798,8 @@ Object.defineProperty(globalThis, "cache", {
|
|
|
790
798
|
}), await Promise.all([ Promise.resolve().then(() => (r(), o)), Promise.resolve().then(() => (n(),
|
|
791
799
|
s)), Promise.resolve().then(() => (l(), i)), Promise.resolve().then(() => (c(),
|
|
792
800
|
a)), Promise.resolve().then(() => (u(), b)), Promise.resolve().then(() => (f(),
|
|
793
|
-
d)), Promise.resolve().then(() => (
|
|
794
|
-
|
|
801
|
+
d)), Promise.resolve().then(() => (g(), m)), Promise.resolve().then(() => (p(),
|
|
802
|
+
h)), Promise.resolve().then(() => (y(), v)), Promise.resolve().then(() => (j(),
|
|
795
803
|
T)), Promise.resolve().then(() => (O(), P)), Promise.resolve().then(() => (S(),
|
|
796
804
|
w)), Promise.resolve().then(() => (k(), _)) ]), Object.preventExtensions(idb), Object.seal(idb),
|
|
797
805
|
Object.freeze(idb);
|