buzzcasting-storage 3.18.1 → 3.18.3
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.2";
|
|
122
122
|
async function* ja(f) {
|
|
123
123
|
const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
|
|
124
124
|
let i = "";
|
|
@@ -3556,12 +3556,12 @@ class Kn {
|
|
|
3556
3556
|
subscribers = [];
|
|
3557
3557
|
options;
|
|
3558
3558
|
constructor(t) {
|
|
3559
|
-
this.options = t, this.db = new At(t.app), this.db.version(
|
|
3559
|
+
this.options = t, this.db = new At(t.app), this.db.version(18).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
|
-
hashes: "
|
|
3564
|
+
hashes: "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("hashes").where({ id: t.widget
|
|
3578
|
+
const i = await this.db.table("hashes").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, [
|
|
@@ -3589,8 +3589,7 @@ class Kn {
|
|
|
3589
3589
|
]), i?.hash ?? "none";
|
|
3590
3590
|
};
|
|
3591
3591
|
setHash = async (t) => await this.db.table("hashes").where({
|
|
3592
|
-
id: t.widget
|
|
3593
|
-
presentation_id: t.presentation
|
|
3592
|
+
id: t.widget
|
|
3594
3593
|
}).modify({ hash: t.hash }).then(() => (G(3, [
|
|
3595
3594
|
"%cset%c %chash%c %chash}",
|
|
3596
3595
|
o.OK,
|
|
@@ -3618,7 +3617,7 @@ class Kn {
|
|
|
3618
3617
|
o.WIDGET,
|
|
3619
3618
|
"clear hashes"
|
|
3620
3619
|
]), 400));
|
|
3621
|
-
deleteHash = async (t) => await this.db.table("hashes").where({
|
|
3620
|
+
deleteHash = async (t) => await this.db.table("hashes").where({ id: t.widget }).delete().then(() => 201).catch((i) => (G(2, [
|
|
3622
3621
|
"%cdelete%c %cstorage%c %chash",
|
|
3623
3622
|
o.KO,
|
|
3624
3623
|
o.NONE,
|
|
@@ -3630,7 +3629,6 @@ class Kn {
|
|
|
3630
3629
|
]), 400));
|
|
3631
3630
|
createHash = async (t) => await this.db.table("hashes").put({
|
|
3632
3631
|
id: t.widget,
|
|
3633
|
-
presentation_id: t.presentation,
|
|
3634
3632
|
hash: t.hash
|
|
3635
3633
|
}).then(() => 201).catch((i) => (G(2, [
|
|
3636
3634
|
"%cset%c %cstorage%c %chash",
|