buzzcasting-storage 1.0.8 → 1.0.10

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.
@@ -3115,11 +3115,13 @@ class cs {
3115
3115
  k(this, "options");
3116
3116
  k(this, "setCloud", async (e, n) => {
3117
3117
  const r = B(e);
3118
- window.BuzzCasting.WidgetData[r] = n;
3118
+ window.BuzzCasting.WidgetData[r] = n, await new Promise((s, i) => s(() => {
3119
+ window.BuzzCasting.WidgetData[r] = n;
3120
+ }));
3119
3121
  });
3120
3122
  k(this, "getCloud", async (e) => {
3121
3123
  const n = B(e);
3122
- return window.localStorage.getObject(n);
3124
+ return await new Promise((r, s) => r(window.BuzzCasting.WidgetData[n]));
3123
3125
  });
3124
3126
  k(this, "setSeries", async (e, n) => {
3125
3127
  const r = B(e);
@@ -3127,7 +3129,7 @@ class cs {
3127
3129
  });
3128
3130
  k(this, "getSeries", async (e) => {
3129
3131
  const n = B(e);
3130
- return window.localStorage.getObject(n);
3132
+ return await window.localStorage.getObject(n);
3131
3133
  });
3132
3134
  k(this, "setMessages", async (e, n) => {
3133
3135
  const r = B(e);
@@ -3135,7 +3137,7 @@ class cs {
3135
3137
  });
3136
3138
  k(this, "getMessages", async (e) => {
3137
3139
  const n = B(e);
3138
- return window.localStorage.getObject(n);
3140
+ return await window.localStorage.getObject(n);
3139
3141
  });
3140
3142
  k(this, "cleanMessages", async (e) => {
3141
3143
  console.log("cleanMessages not implemented for ", this.options.storage);
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "mark.tamis@touchflows.com"
6
6
  },
7
7
  "type": "module",
8
- "version": "1.0.8",
8
+ "version": "1.0.10",
9
9
  "private": false,
10
10
  "exports": {
11
11
  ".": {