buzzcasting-storage 3.17.1 → 3.17.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/dist/buzzcasting-storage.esm.js +51 -51
- package/package.json +12 -12
|
@@ -118,7 +118,7 @@ function _t(f, t) {
|
|
|
118
118
|
}
|
|
119
119
|
return t;
|
|
120
120
|
}
|
|
121
|
-
const $a = "3.17.
|
|
121
|
+
const $a = "3.17.1";
|
|
122
122
|
async function* ja(f) {
|
|
123
123
|
const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
|
|
124
124
|
let i = "";
|
|
@@ -482,7 +482,7 @@ function Ka(f) {
|
|
|
482
482
|
}
|
|
483
483
|
var rr = { exports: {} }, La = rr.exports, jn;
|
|
484
484
|
function Ba() {
|
|
485
|
-
return jn || (jn = 1, function(f, t) {
|
|
485
|
+
return jn || (jn = 1, (function(f, t) {
|
|
486
486
|
(function(i, l) {
|
|
487
487
|
f.exports = l();
|
|
488
488
|
})(La, function() {
|
|
@@ -584,7 +584,7 @@ function Ba() {
|
|
|
584
584
|
return b[e];
|
|
585
585
|
})), it = null;
|
|
586
586
|
function Ce(e) {
|
|
587
|
-
return it = /* @__PURE__ */ new WeakMap(), e = function r(n) {
|
|
587
|
+
return it = /* @__PURE__ */ new WeakMap(), e = (function r(n) {
|
|
588
588
|
if (!n || typeof n != "object") return n;
|
|
589
589
|
var a = it.get(n);
|
|
590
590
|
if (a) return a;
|
|
@@ -597,7 +597,7 @@ function Ba() {
|
|
|
597
597
|
for (u in a = d === Object.prototype ? {} : Object.create(d), it.set(n, a), n) re(n, u) && (a[u] = r(n[u]));
|
|
598
598
|
}
|
|
599
599
|
return a;
|
|
600
|
-
}(e), it = null, e;
|
|
600
|
+
})(e), it = null, e;
|
|
601
601
|
}
|
|
602
602
|
var Yn = {}.toString;
|
|
603
603
|
function nr(e) {
|
|
@@ -735,12 +735,12 @@ function Ba() {
|
|
|
735
735
|
function en(e) {
|
|
736
736
|
me = e;
|
|
737
737
|
}
|
|
738
|
-
var ut = {}, tn = 100, Ge = typeof Promise > "u" ? [] : function() {
|
|
738
|
+
var ut = {}, tn = 100, Ge = typeof Promise > "u" ? [] : (function() {
|
|
739
739
|
var e = Promise.resolve();
|
|
740
740
|
if (typeof crypto > "u" || !crypto.subtle) return [e, se(e), e];
|
|
741
741
|
var r = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
|
|
742
742
|
return [r, se(r), e];
|
|
743
|
-
}(), lt = Ge[0], fe = Ge[1], Ge = Ge[2], fe = fe && fe.then, Me = lt && lt.constructor, cr = !!Ge, dt = function(e, r) {
|
|
743
|
+
})(), lt = Ge[0], fe = Ge[1], Ge = Ge[2], fe = fe && fe.then, Me = lt && lt.constructor, cr = !!Ge, dt = function(e, r) {
|
|
744
744
|
ht.push([e, r]), It && (queueMicrotask(aa), It = !1);
|
|
745
745
|
}, ur = !0, It = !0, Ke = [], Tt = [], lr = ct, Pe = { id: "global", global: !0, ref: 0, unhandleds: [], onunhandled: X, pgp: !1, env: {}, finalize: X }, L = Pe, ht = [], Le = 0, Rt = [];
|
|
746
746
|
function M(e) {
|
|
@@ -751,7 +751,7 @@ function Ba() {
|
|
|
751
751
|
if (e !== ut) throw new TypeError("Not a function");
|
|
752
752
|
return this._state = arguments[1], this._value = arguments[2], void (this._state === !1 && hr(this, this._value));
|
|
753
753
|
}
|
|
754
|
-
this._state = null, this._value = null, ++r.ref, function n(a, s) {
|
|
754
|
+
this._state = null, this._value = null, ++r.ref, (function n(a, s) {
|
|
755
755
|
try {
|
|
756
756
|
s(function(c) {
|
|
757
757
|
if (a._state === null) {
|
|
@@ -765,7 +765,7 @@ function Ba() {
|
|
|
765
765
|
} catch (c) {
|
|
766
766
|
hr(a, c);
|
|
767
767
|
}
|
|
768
|
-
}(this, e);
|
|
768
|
+
})(this, e);
|
|
769
769
|
}
|
|
770
770
|
var dr = { get: function() {
|
|
771
771
|
var e = L, r = $t;
|
|
@@ -811,9 +811,9 @@ function Ba() {
|
|
|
811
811
|
var a, s = r._value;
|
|
812
812
|
!r._state && Tt.length && (Tt = []), a = me && r._consoleTask ? r._consoleTask.run(function() {
|
|
813
813
|
return e(s);
|
|
814
|
-
}) : e(s), r._state || Tt.indexOf(s) !== -1 || function(c) {
|
|
814
|
+
}) : e(s), r._state || Tt.indexOf(s) !== -1 || (function(c) {
|
|
815
815
|
for (var u = Ke.length; u; ) if (Ke[--u]._value === c._value) return Ke.splice(u, 1);
|
|
816
|
-
}(r), n.resolve(a);
|
|
816
|
+
})(r), n.resolve(a);
|
|
817
817
|
} catch (c) {
|
|
818
818
|
n.reject(c);
|
|
819
819
|
} finally {
|
|
@@ -1055,18 +1055,18 @@ function Ba() {
|
|
|
1055
1055
|
case "string":
|
|
1056
1056
|
return r < e ? 1 : e < r ? -1 : 0;
|
|
1057
1057
|
case "binary":
|
|
1058
|
-
return function(s, c) {
|
|
1058
|
+
return (function(s, c) {
|
|
1059
1059
|
for (var u = s.length, d = c.length, p = u < d ? u : d, m = 0; m < p; ++m) if (s[m] !== c[m]) return s[m] < c[m] ? -1 : 1;
|
|
1060
1060
|
return u === d ? 0 : u < d ? -1 : 1;
|
|
1061
|
-
}(dn(e), dn(r));
|
|
1061
|
+
})(dn(e), dn(r));
|
|
1062
1062
|
case "Array":
|
|
1063
|
-
return function(s, c) {
|
|
1063
|
+
return (function(s, c) {
|
|
1064
1064
|
for (var u = s.length, d = c.length, p = u < d ? u : d, m = 0; m < p; ++m) {
|
|
1065
1065
|
var w = V(s[m], c[m]);
|
|
1066
1066
|
if (w !== 0) return w;
|
|
1067
1067
|
}
|
|
1068
1068
|
return u === d ? 0 : u < d ? -1 : 1;
|
|
1069
|
-
}(e, r);
|
|
1069
|
+
})(e, r);
|
|
1070
1070
|
}
|
|
1071
1071
|
} catch {
|
|
1072
1072
|
}
|
|
@@ -1137,7 +1137,7 @@ function Ba() {
|
|
|
1137
1137
|
try {
|
|
1138
1138
|
var p = a && a.db._novip === this.db._novip ? a === L.trans ? a._promise(e, u, n) : Ne(function() {
|
|
1139
1139
|
return a._promise(e, u, n);
|
|
1140
|
-
}, { trans: a, transless: L.transless || L }) : function m(w, h, O, y) {
|
|
1140
|
+
}, { trans: a, transless: L.transless || L }) : (function m(w, h, O, y) {
|
|
1141
1141
|
if (w.idbdb && (w._state.openComplete || L.letThrough || w._vip)) {
|
|
1142
1142
|
var v = w._createTransaction(h, O, w._dbSchema);
|
|
1143
1143
|
try {
|
|
@@ -1169,7 +1169,7 @@ function Ba() {
|
|
|
1169
1169
|
return w._state.dbReadyPromise.then(function() {
|
|
1170
1170
|
return m(w, h, O, y);
|
|
1171
1171
|
});
|
|
1172
|
-
}(this.db, e, [this.name], u);
|
|
1172
|
+
})(this.db, e, [this.name], u);
|
|
1173
1173
|
return c && (p._consoleTask = c, p = p.catch(function(m) {
|
|
1174
1174
|
return console.trace(m), q(m);
|
|
1175
1175
|
})), p;
|
|
@@ -1244,13 +1244,13 @@ function Ba() {
|
|
|
1244
1244
|
function s() {
|
|
1245
1245
|
return r !== null && r.apply(this, arguments) || this;
|
|
1246
1246
|
}
|
|
1247
|
-
(this.schema.mappedClass = e).prototype instanceof un && (function(p, m) {
|
|
1247
|
+
(this.schema.mappedClass = e).prototype instanceof un && ((function(p, m) {
|
|
1248
1248
|
if (typeof m != "function" && m !== null) throw new TypeError("Class extends value " + String(m) + " is not a constructor or null");
|
|
1249
1249
|
function w() {
|
|
1250
1250
|
this.constructor = p;
|
|
1251
1251
|
}
|
|
1252
1252
|
i(p, m), p.prototype = m === null ? Object.create(m) : (w.prototype = m.prototype, new w());
|
|
1253
|
-
}(s, r = e), Object.defineProperty(s.prototype, "db", { get: function() {
|
|
1253
|
+
})(s, r = e), Object.defineProperty(s.prototype, "db", { get: function() {
|
|
1254
1254
|
return n;
|
|
1255
1255
|
}, enumerable: !1, configurable: !0 }), s.prototype.table = function() {
|
|
1256
1256
|
return a;
|
|
@@ -1796,14 +1796,14 @@ function Ba() {
|
|
|
1796
1796
|
var P = c(A);
|
|
1797
1797
|
if (r(P, p, y)) return !0;
|
|
1798
1798
|
for (var N = null, I = y; I < h; ++I) {
|
|
1799
|
-
var R = function($, T, k, j, C, K) {
|
|
1799
|
+
var R = (function($, T, k, j, C, K) {
|
|
1800
1800
|
for (var W = Math.min($.length, j.length), F = -1, H = 0; H < W; ++H) {
|
|
1801
1801
|
var he = T[H];
|
|
1802
1802
|
if (he !== j[H]) return C($[H], k[H]) < 0 ? $.substr(0, H) + k[H] + k.substr(H + 1) : C($[H], j[H]) < 0 ? $.substr(0, H) + j[H] + k.substr(H + 1) : 0 <= F ? $.substr(0, F) + T[F] + k.substr(F + 1) : null;
|
|
1803
1803
|
C($[H], he) < 0 && (F = H);
|
|
1804
1804
|
}
|
|
1805
1805
|
return W < j.length && K === "next" ? $ + k.substr($.length) : W < $.length && K === "prev" ? $.substr(0, k.length) : F < 0 ? null : $.substr(0, F) + j[F] + k.substr(F + 1);
|
|
1806
|
-
}(A, P, d[I], p[I], u, m);
|
|
1806
|
+
})(A, P, d[I], p[I], u, m);
|
|
1807
1807
|
R === null && N === null ? y = I + 1 : (N === null || 0 < u(N, R)) && (N = R);
|
|
1808
1808
|
}
|
|
1809
1809
|
return E(N !== null ? function() {
|
|
@@ -2029,10 +2029,10 @@ function Ba() {
|
|
|
2029
2029
|
var r, n = this._root(), a = M.resolve(e);
|
|
2030
2030
|
n._waitingFor ? n._waitingFor = n._waitingFor.then(function() {
|
|
2031
2031
|
return a;
|
|
2032
|
-
}) : (n._waitingFor = a, n._waitingQueue = [], r = n.idbtrans.objectStore(n.storeNames[0]), function c() {
|
|
2032
|
+
}) : (n._waitingFor = a, n._waitingQueue = [], r = n.idbtrans.objectStore(n.storeNames[0]), (function c() {
|
|
2033
2033
|
for (++n._spinCount; n._waitingQueue.length; ) n._waitingQueue.shift()();
|
|
2034
2034
|
n._waitingFor && (r.get(-1 / 0).onsuccess = c);
|
|
2035
|
-
}());
|
|
2035
|
+
})());
|
|
2036
2036
|
var s = n._waitingFor;
|
|
2037
2037
|
return new M(function(c, u) {
|
|
2038
2038
|
a.then(function(d) {
|
|
@@ -2257,9 +2257,9 @@ function Ba() {
|
|
|
2257
2257
|
n.forEach(function(s) {
|
|
2258
2258
|
var c = a[s];
|
|
2259
2259
|
r.forEach(function(u) {
|
|
2260
|
-
var d = function p(m, w) {
|
|
2260
|
+
var d = (function p(m, w) {
|
|
2261
2261
|
return Hn(m, w) || (m = se(m)) && p(m, w);
|
|
2262
|
-
}(u, s);
|
|
2262
|
+
})(u, s);
|
|
2263
2263
|
(!d || "value" in d && d.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? Ae(u, s, { get: function() {
|
|
2264
2264
|
return this.table(s);
|
|
2265
2265
|
}, set: function(p) {
|
|
@@ -2331,9 +2331,9 @@ function Ba() {
|
|
|
2331
2331
|
return N !== "$meta";
|
|
2332
2332
|
})) : P.objectStore("$meta").put(A._cfg.version, "version"));
|
|
2333
2333
|
});
|
|
2334
|
-
}), function A() {
|
|
2334
|
+
}), (function A() {
|
|
2335
2335
|
return E.length ? M.resolve(E.shift()(y.idbtrans)).then(A) : M.resolve();
|
|
2336
|
-
}().then(function() {
|
|
2336
|
+
})().then(function() {
|
|
2337
2337
|
Sn(S, v);
|
|
2338
2338
|
})) : M.resolve();
|
|
2339
2339
|
var h, O, y, v, E, S;
|
|
@@ -2350,13 +2350,13 @@ function Ba() {
|
|
|
2350
2350
|
var n = Vt(0, e.idbdb, r);
|
|
2351
2351
|
zt(e, e._dbSchema, r);
|
|
2352
2352
|
for (var a = 0, s = Ar(n, e._dbSchema).change; a < s.length; a++) {
|
|
2353
|
-
var c = function(u) {
|
|
2353
|
+
var c = (function(u) {
|
|
2354
2354
|
if (u.change.length || u.recreate) return console.warn("Unable to patch indexes of table ".concat(u.name, " because it has changes on the type of index or primary key.")), { value: void 0 };
|
|
2355
2355
|
var d = r.objectStore(u.name);
|
|
2356
2356
|
u.add.forEach(function(p) {
|
|
2357
2357
|
me && console.debug("Dexie upgrade patch: Creating missing index ".concat(u.name, ".").concat(p.src)), Ht(d, p);
|
|
2358
2358
|
});
|
|
2359
|
-
}(s[a]);
|
|
2359
|
+
})(s[a]);
|
|
2360
2360
|
if (typeof c == "object") return c.value;
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
@@ -2481,10 +2481,10 @@ function Ba() {
|
|
|
2481
2481
|
}
|
|
2482
2482
|
}
|
|
2483
2483
|
function wt(e, r) {
|
|
2484
|
-
Tr(r) || function n(a, p) {
|
|
2484
|
+
Tr(r) || (function n(a, p) {
|
|
2485
2485
|
var c = p.from, u = p.to, d = p.l, p = p.r;
|
|
2486
2486
|
Et(a, c, u), d && n(a, d), p && n(a, p);
|
|
2487
|
-
}(e, r);
|
|
2487
|
+
})(e, r);
|
|
2488
2488
|
}
|
|
2489
2489
|
function _n(e, r) {
|
|
2490
2490
|
var n = Yt(r), a = n.next();
|
|
@@ -2525,11 +2525,11 @@ function Ba() {
|
|
|
2525
2525
|
}
|
|
2526
2526
|
function Xt(e, r) {
|
|
2527
2527
|
return D(r).forEach(function(n) {
|
|
2528
|
-
e[n] ? wt(e[n], r[n]) : e[n] = function a(s) {
|
|
2528
|
+
e[n] ? wt(e[n], r[n]) : e[n] = (function a(s) {
|
|
2529
2529
|
var c, u, d = {};
|
|
2530
2530
|
for (c in s) re(s, c) && (u = s[c], d[c] = !u || typeof u != "object" || Jr.has(u.constructor) ? u : a(u));
|
|
2531
2531
|
return d;
|
|
2532
|
-
}(r[n]);
|
|
2532
|
+
})(r[n]);
|
|
2533
2533
|
}), e;
|
|
2534
2534
|
}
|
|
2535
2535
|
function Rr(e, r) {
|
|
@@ -2773,14 +2773,14 @@ function Ba() {
|
|
|
2773
2773
|
case "deleteRange":
|
|
2774
2774
|
if (d.fire === X) break;
|
|
2775
2775
|
return c._promise("readwrite", function() {
|
|
2776
|
-
return function h(O, y, v) {
|
|
2776
|
+
return (function h(O, y, v) {
|
|
2777
2777
|
return n.query({ trans: O, values: !1, query: { index: a, range: y }, limit: v }).then(function(E) {
|
|
2778
2778
|
var S = E.result;
|
|
2779
2779
|
return w({ type: "delete", keys: S, trans: O }).then(function(A) {
|
|
2780
2780
|
return 0 < A.numFailures ? Promise.reject(A.failures[0]) : S.length < v ? { failures: [], numFailures: 0, lastResult: void 0 } : h(O, l(l({}, y), { lower: S[S.length - 1], lowerOpen: !0 }), v);
|
|
2781
2781
|
});
|
|
2782
2782
|
});
|
|
2783
|
-
}(s.trans, s.range, 1e4);
|
|
2783
|
+
})(s.trans, s.range, 1e4);
|
|
2784
2784
|
}, !0);
|
|
2785
2785
|
}
|
|
2786
2786
|
return n.mutate(s);
|
|
@@ -3003,7 +3003,7 @@ function Ba() {
|
|
|
3003
3003
|
return V(e.lower, r.lower) === 0 && V(e.upper, r.upper) === 0 && !!e.lowerOpen == !!r.lowerOpen && !!e.upperOpen == !!r.upperOpen;
|
|
3004
3004
|
}
|
|
3005
3005
|
function _a(e, r) {
|
|
3006
|
-
return function(n, a, s, c) {
|
|
3006
|
+
return (function(n, a, s, c) {
|
|
3007
3007
|
if (n === void 0) return a !== void 0 ? -1 : 0;
|
|
3008
3008
|
if (a === void 0) return 1;
|
|
3009
3009
|
if ((a = V(n, a)) === 0) {
|
|
@@ -3012,7 +3012,7 @@ function Ba() {
|
|
|
3012
3012
|
if (c) return -1;
|
|
3013
3013
|
}
|
|
3014
3014
|
return a;
|
|
3015
|
-
}(e.lower, r.lower, e.lowerOpen, r.lowerOpen) <= 0 && 0 <= function(n, a, s, c) {
|
|
3015
|
+
})(e.lower, r.lower, e.lowerOpen, r.lowerOpen) <= 0 && 0 <= (function(n, a, s, c) {
|
|
3016
3016
|
if (n === void 0) return a !== void 0 ? 1 : 0;
|
|
3017
3017
|
if (a === void 0) return -1;
|
|
3018
3018
|
if ((a = V(n, a)) === 0) {
|
|
@@ -3021,7 +3021,7 @@ function Ba() {
|
|
|
3021
3021
|
if (c) return 1;
|
|
3022
3022
|
}
|
|
3023
3023
|
return a;
|
|
3024
|
-
}(e.upper, r.upper, e.upperOpen, r.upperOpen);
|
|
3024
|
+
})(e.upper, r.upper, e.upperOpen, r.upperOpen);
|
|
3025
3025
|
}
|
|
3026
3026
|
function Aa(e, r, n, a) {
|
|
3027
3027
|
e.subscribers.add(n), a.addEventListener("abort", function() {
|
|
@@ -3088,7 +3088,7 @@ function Ba() {
|
|
|
3088
3088
|
}), u) : a.mutate(c);
|
|
3089
3089
|
}, query: function(c) {
|
|
3090
3090
|
if (!In(L, a) || !Tn("query", c)) return a.query(c);
|
|
3091
|
-
var u = ((m = L.trans) === null || m === void 0 ? void 0 : m.db._options.cache) === "immutable", h = L, d = h.requery, p = h.signal, m = function(v, E, S, A) {
|
|
3091
|
+
var u = ((m = L.trans) === null || m === void 0 ? void 0 : m.db._options.cache) === "immutable", h = L, d = h.requery, p = h.signal, m = (function(v, E, S, A) {
|
|
3092
3092
|
var P = Fe["idb://".concat(v, "/").concat(E)];
|
|
3093
3093
|
if (!P) return [];
|
|
3094
3094
|
if (!(E = P.queries[S])) return [null, !1, P, null];
|
|
@@ -3107,7 +3107,7 @@ function Ba() {
|
|
|
3107
3107
|
return kn(R.req.query.range, A.query.range);
|
|
3108
3108
|
}), [I, !!I, P, N];
|
|
3109
3109
|
}
|
|
3110
|
-
}(r, n, "query", c), w = m[0], h = m[1], O = m[2], y = m[3];
|
|
3110
|
+
})(r, n, "query", c), w = m[0], h = m[1], O = m[2], y = m[3];
|
|
3111
3111
|
return w && h ? w.obsSet = c.obsSet : (h = a.query(c).then(function(v) {
|
|
3112
3112
|
var E = v.result;
|
|
3113
3113
|
if (w && (w.res = E), u) {
|
|
@@ -3402,7 +3402,7 @@ function Ba() {
|
|
|
3402
3402
|
Xt(p, E), Rr(m, p) && O();
|
|
3403
3403
|
}, v = function() {
|
|
3404
3404
|
var E, S, A;
|
|
3405
|
-
!d && qt.indexedDB && (p = {}, E = {}, u && u.abort(), u = new AbortController(), A = function(P) {
|
|
3405
|
+
!d && qt.indexedDB && (p = {}, E = {}, u && u.abort(), u = new AbortController(), A = (function(P) {
|
|
3406
3406
|
var N = Je();
|
|
3407
3407
|
try {
|
|
3408
3408
|
c && qe();
|
|
@@ -3411,11 +3411,11 @@ function Ba() {
|
|
|
3411
3411
|
} finally {
|
|
3412
3412
|
N && Ze();
|
|
3413
3413
|
}
|
|
3414
|
-
}(S = { subscr: E, signal: u.signal, requery: O, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
|
|
3415
|
-
n = !0, r = P, d || S.signal.aborted || (p = {}, function(N) {
|
|
3414
|
+
})(S = { subscr: E, signal: u.signal, requery: O, querier: e, trans: null }), Promise.resolve(A).then(function(P) {
|
|
3415
|
+
n = !0, r = P, d || S.signal.aborted || (p = {}, (function(N) {
|
|
3416
3416
|
for (var I in N) if (re(N, I)) return;
|
|
3417
3417
|
return 1;
|
|
3418
|
-
}(m = E) || h || (Re(yt, y), h = !0), pr(function() {
|
|
3418
|
+
})(m = E) || h || (Re(yt, y), h = !0), pr(function() {
|
|
3419
3419
|
return !d && s.next && s.next(P);
|
|
3420
3420
|
}));
|
|
3421
3421
|
}, function(P) {
|
|
@@ -3532,10 +3532,10 @@ function Ba() {
|
|
|
3532
3532
|
return new ft({ remove: e });
|
|
3533
3533
|
}, default: Se, RangeSet: oe, mergeRanges: wt, rangesOverlap: _n }), { default: Se }), Se;
|
|
3534
3534
|
});
|
|
3535
|
-
}(rr)), rr.exports;
|
|
3535
|
+
})(rr)), rr.exports;
|
|
3536
3536
|
}
|
|
3537
3537
|
var Ua = Ba();
|
|
3538
|
-
const Fr = /* @__PURE__ */ Ka(Ua), Gn = Symbol.for("Dexie"), Ot = globalThis[Gn] || (globalThis[Gn] = Fr);
|
|
3538
|
+
const Fr = /* @__PURE__ */ Ka(Ua), Gn = /* @__PURE__ */ Symbol.for("Dexie"), Ot = globalThis[Gn] || (globalThis[Gn] = Fr);
|
|
3539
3539
|
if (Fr.semVer !== Ot.semVer)
|
|
3540
3540
|
throw new Error(`Two different versions of Dexie loaded in the same app: ${Fr.semVer} and ${Ot.semVer}`);
|
|
3541
3541
|
const {
|
|
@@ -3556,12 +3556,12 @@ class Kn {
|
|
|
3556
3556
|
subscribers = [];
|
|
3557
3557
|
options;
|
|
3558
3558
|
constructor(t) {
|
|
3559
|
-
this.options = t, this.db = new Ot(t.app), this.db.version(
|
|
3559
|
+
this.options = t, this.db = new Ot(t.app), this.db.version(16).stores({
|
|
3560
3560
|
channel: "id,slide_index",
|
|
3561
3561
|
cloud: "id,dashboard_id",
|
|
3562
3562
|
dashboard: "id,name,update",
|
|
3563
3563
|
display: "id,monitor_id,presentation_id,colstart,colend,rowstart,rowend",
|
|
3564
|
-
hash: "[presentation_id
|
|
3564
|
+
hash: "[id+presentation_id], id, presentation_id, hash",
|
|
3565
3565
|
images: "id,basename,extension,size,type,url",
|
|
3566
3566
|
messages: "id,utc,expires",
|
|
3567
3567
|
monitor: "id,player_id,cols,rows,order,width,height,physicalwidth,physicalheight,devicePixelRatio,screenLeft,screenTop,orientation,monitor",
|
|
@@ -3625,12 +3625,12 @@ class Kn {
|
|
|
3625
3625
|
o.STORAGE,
|
|
3626
3626
|
o.NONE,
|
|
3627
3627
|
o.WIDGET,
|
|
3628
|
-
"clear
|
|
3629
|
-
t.
|
|
3628
|
+
"clear dashboard hashes",
|
|
3629
|
+
t.dashboard
|
|
3630
3630
|
]), 400));
|
|
3631
3631
|
createHash = async (t) => await this.db.table("hash").put({
|
|
3632
3632
|
id: t.widget,
|
|
3633
|
-
|
|
3633
|
+
presentation_id: t.presentation,
|
|
3634
3634
|
hash: t.hash
|
|
3635
3635
|
}).then(() => 201).catch((i) => (G(2, [
|
|
3636
3636
|
"%cset%c %cstorage%c %chash",
|
|
@@ -3805,7 +3805,7 @@ class Kn {
|
|
|
3805
3805
|
query: t
|
|
3806
3806
|
};
|
|
3807
3807
|
const i = t?.order ?? "utc", l = Math.floor(Date.now() / 1e3);
|
|
3808
|
-
i !== "utc" && (t.since = l -
|
|
3808
|
+
i !== "utc" && (t.since = l - 3600 * 24 * 30), this.options.delay !== 0 ? t.before = l - (this.options.delay || 0) : t.before = l;
|
|
3809
3809
|
const g = (D) => D.utc > (t?.since || 0), b = (D) => D.utc < (t?.before || l);
|
|
3810
3810
|
try {
|
|
3811
3811
|
const D = this.db.table(_.TOPICS).where("widget_id").equals(t.widget).filter(g).filter(b);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buzzcasting-storage",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.17.
|
|
4
|
+
"version": "3.17.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mark Tamis, TouchFlows SAS",
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"ndjson-readablestream": "^1.4.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@antfu/eslint-config": "^6.
|
|
40
|
-
"@commitlint/cli": "^20.
|
|
41
|
-
"@commitlint/config-conventional": "^20.
|
|
42
|
-
"@types/node": "^24.10.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
45
|
-
"@vitest/coverage-v8": "^4.0.
|
|
46
|
-
"buzzcasting-utils": "^1.
|
|
39
|
+
"@antfu/eslint-config": "^6.7.3",
|
|
40
|
+
"@commitlint/cli": "^20.3.0",
|
|
41
|
+
"@commitlint/config-conventional": "^20.3.0",
|
|
42
|
+
"@types/node": "^24.10.4",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.51.0",
|
|
45
|
+
"@vitest/coverage-v8": "^4.0.16",
|
|
46
|
+
"buzzcasting-utils": "^1.11.0",
|
|
47
47
|
"camelcase": "^9.0.0",
|
|
48
48
|
"changelogen": "^0.6.2",
|
|
49
|
-
"eslint": "^9.39.
|
|
49
|
+
"eslint": "^9.39.2",
|
|
50
50
|
"lint-staged": "^16.2.7",
|
|
51
51
|
"typescript": "^5.9.3",
|
|
52
|
-
"vite": "^7.
|
|
52
|
+
"vite": "^7.3.0",
|
|
53
53
|
"vite-plugin-dts": "^4.5.4",
|
|
54
|
-
"vitest": "^4.0.
|
|
54
|
+
"vitest": "^4.0.16"
|
|
55
55
|
},
|
|
56
56
|
"lint-staged": {
|
|
57
57
|
"*.ts": "npm run lint"
|