buzzcasting-storage 3.18.3 → 3.18.4
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.
|
@@ -118,7 +118,7 @@ function Pt(f, t) {
|
|
|
118
118
|
}
|
|
119
119
|
return t;
|
|
120
120
|
}
|
|
121
|
-
const $a = "3.18.
|
|
121
|
+
const $a = "3.18.3";
|
|
122
122
|
async function* ja(f) {
|
|
123
123
|
const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
|
|
124
124
|
let i = "";
|
|
@@ -3561,7 +3561,7 @@ class Kn {
|
|
|
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
|
-
|
|
3564
|
+
hashtable: "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",
|
|
@@ -3575,7 +3575,7 @@ class Kn {
|
|
|
3575
3575
|
}), this.db.open();
|
|
3576
3576
|
}
|
|
3577
3577
|
getHash = async (t) => {
|
|
3578
|
-
const i = await this.db.table("
|
|
3578
|
+
const i = await this.db.table("hashtable").where({ id: t.widget }).last().catch(() => {
|
|
3579
3579
|
G(2, ["%chash%c %capi%C %chash", o.API, o.NONE, o.APP]);
|
|
3580
3580
|
});
|
|
3581
3581
|
return G(3, [
|
|
@@ -3588,7 +3588,7 @@ class Kn {
|
|
|
3588
3588
|
t
|
|
3589
3589
|
]), i?.hash ?? "none";
|
|
3590
3590
|
};
|
|
3591
|
-
setHash = async (t) => await this.db.table("
|
|
3591
|
+
setHash = async (t) => await this.db.table("hashtable").where({
|
|
3592
3592
|
id: t.widget
|
|
3593
3593
|
}).modify({ hash: t.hash }).then(() => (G(3, [
|
|
3594
3594
|
"%cset%c %chash%c %chash}",
|
|
@@ -3608,7 +3608,7 @@ class Kn {
|
|
|
3608
3608
|
t,
|
|
3609
3609
|
i.message
|
|
3610
3610
|
]), 400));
|
|
3611
|
-
clearHash = async () => await this.db.table("
|
|
3611
|
+
clearHash = async () => await this.db.table("hashtable").clear().then(() => 201).catch((t) => (G(2, [
|
|
3612
3612
|
"%cclear%c %cstorage%c %chash",
|
|
3613
3613
|
o.KO,
|
|
3614
3614
|
o.NONE,
|
|
@@ -3617,7 +3617,7 @@ class Kn {
|
|
|
3617
3617
|
o.WIDGET,
|
|
3618
3618
|
"clear hashes"
|
|
3619
3619
|
]), 400));
|
|
3620
|
-
deleteHash = async (t) => await this.db.table("
|
|
3620
|
+
deleteHash = async (t) => await this.db.table("hashtable").where({ id: t.widget }).delete().then(() => 201).catch((i) => (G(2, [
|
|
3621
3621
|
"%cdelete%c %cstorage%c %chash",
|
|
3622
3622
|
o.KO,
|
|
3623
3623
|
o.NONE,
|
|
@@ -3627,7 +3627,7 @@ class Kn {
|
|
|
3627
3627
|
"clear dashboard hashes",
|
|
3628
3628
|
t.dashboard
|
|
3629
3629
|
]), 400));
|
|
3630
|
-
createHash = async (t) => await this.db.table("
|
|
3630
|
+
createHash = async (t) => await this.db.table("hashtable").put({
|
|
3631
3631
|
id: t.widget,
|
|
3632
3632
|
hash: t.hash
|
|
3633
3633
|
}).then(() => 201).catch((i) => (G(2, [
|