buzzcasting-storage 3.11.0 → 3.11.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.
|
@@ -44,7 +44,7 @@ export declare class BuzzcastingStorageManager {
|
|
|
44
44
|
getDashboards: (query: IQuery) => Promise<IResponse | undefined>;
|
|
45
45
|
setDashboard: (query: IQuery) => Promise<IResponse | undefined>;
|
|
46
46
|
loadImages: () => Promise<IResponse | undefined>;
|
|
47
|
-
storeImage: (
|
|
47
|
+
storeImage: (imageFile: File) => Promise<IResponse | number>;
|
|
48
48
|
deleteImage: (imageName: string) => Promise<IResponse | number>;
|
|
49
49
|
getImages: (query: IQuery) => Promise<IResponse | undefined>;
|
|
50
50
|
setImage: (query: IQuery) => Promise<IResponse | undefined>;
|
|
@@ -133,7 +133,7 @@ function Ot(h, t) {
|
|
|
133
133
|
}
|
|
134
134
|
return t;
|
|
135
135
|
}
|
|
136
|
-
const xa = "3.
|
|
136
|
+
const xa = "3.11.1";
|
|
137
137
|
class ka {
|
|
138
138
|
options;
|
|
139
139
|
url;
|
|
@@ -421,15 +421,15 @@ class ka {
|
|
|
421
421
|
})).catch((l) => ({ success: !1, message: `${l}`, data: null }));
|
|
422
422
|
}
|
|
423
423
|
async storeImage(t) {
|
|
424
|
-
const { version: o } = this.options, l = this.formHeaders(), m =
|
|
424
|
+
const { version: o } = this.options, l = this.formHeaders(), m = t;
|
|
425
425
|
return console.info(
|
|
426
426
|
"%capi%c %cstoreImage",
|
|
427
427
|
c.API,
|
|
428
428
|
c.NONE,
|
|
429
429
|
c.WIDGET,
|
|
430
|
-
t
|
|
430
|
+
t.name
|
|
431
431
|
), await fetch(
|
|
432
|
-
[this.url, "api", o, _.IMAGES
|
|
432
|
+
[this.url, "api", o, _.IMAGES].join("/"),
|
|
433
433
|
{ ...l, body: m, method: "post" }
|
|
434
434
|
).then((w) => {
|
|
435
435
|
if (!w.ok)
|