buzzcasting-storage 3.15.13 → 3.16.0

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.
@@ -24,6 +24,7 @@ export declare class BuzzcastingStorageManager {
24
24
  private actions;
25
25
  cleanMessages: () => Promise<void>;
26
26
  hideMessage: (query: IQuery) => Promise<IResponse>;
27
+ clearCards: () => Promise<void>;
27
28
  hideLabels: (query: IQuery) => Promise<IResponse>;
28
29
  getSubscribers: () => Promise<any[]>;
29
30
  deleteSubscribers: () => Promise<any[]>;
@@ -118,7 +118,7 @@ function _t(f, t) {
118
118
  }
119
119
  return t;
120
120
  }
121
- const $a = "3.15.12";
121
+ const $a = "3.15.14";
122
122
  async function* ja(f) {
123
123
  const t = f.pipeThrough(new TextDecoderStream("utf-8")).getReader();
124
124
  let o = "";
@@ -203,7 +203,7 @@ class Ga {
203
203
  return M;
204
204
  }).then((M) => M.json()).then((M) => (M.query = t, M)).catch((M) => ({ success: !1, message: `${M}`, data: null, query: t }));
205
205
  }
206
- async stream(t) {
206
+ async ndjson(t) {
207
207
  const { version: o } = this.options, l = this.headers(), g = await fetch(
208
208
  `${[this.url, "api", o, "stream"].join("/")}`,
209
209
  {
@@ -4403,6 +4403,7 @@ class Bn {
4403
4403
  getHash = async (t, o) => "none";
4404
4404
  setHash = async (t, o) => 404;
4405
4405
  setCards = async (t) => 404;
4406
+ clearCards = async () => 404;
4406
4407
  getCloud = async (t) => {
4407
4408
  const o = Y(t);
4408
4409
  return await _e(o).then((l) => l).catch(() => (console.warn("%capi", i.API, _.CLOUD, t.slide, t.widget), { data: null, message: "Cloud Data error", success: !1 }));
@@ -4707,6 +4708,7 @@ class Un {
4707
4708
  getHash = async (t, o) => "none";
4708
4709
  setHash = async (t, o) => 404;
4709
4710
  setCards = async (t) => 404;
4711
+ clearCards = async () => 404;
4710
4712
  getCloud = async (t) => {
4711
4713
  const o = Y(t);
4712
4714
  try {
@@ -5045,6 +5047,7 @@ class Wn {
5045
5047
  getHash = async (t, o) => "none";
5046
5048
  setHash = async (t, o) => 404;
5047
5049
  setCards = async (t) => 404;
5050
+ clearCards = async () => 404;
5048
5051
  getCloud = async (t) => {
5049
5052
  const o = Y(t);
5050
5053
  try {
@@ -5383,6 +5386,7 @@ class Fn {
5383
5386
  getHash = async (t, o) => "none";
5384
5387
  setHash = async (t, o) => 404;
5385
5388
  setCards = async (t) => 404;
5389
+ clearCards = async () => 404;
5386
5390
  getCloud = async (t) => {
5387
5391
  const o = Y(t);
5388
5392
  try {
@@ -5762,7 +5766,7 @@ class rs {
5762
5766
  const t = [];
5763
5767
  Object.values(this.subscribers).forEach((o) => {
5764
5768
  t.push(o);
5765
- }), this.api.stream(t);
5769
+ }), this.api.ndjson(t);
5766
5770
  };
5767
5771
  apiQuery = async (t) => await this.api.get(t).then(async (o) => await this.processResponse(o)).catch((o) => ({ code: 204, hash: "" }));
5768
5772
  processResponse = async (t) => {
@@ -5977,6 +5981,9 @@ class rs {
5977
5981
  `${o} messages hidden`
5978
5982
  ]), await this.api.hideMessage(t);
5979
5983
  };
5984
+ clearCards = async () => {
5985
+ await this.sm?.clearCards();
5986
+ };
5980
5987
  hideLabels = async (t) => await this.api.hideLabels(t);
5981
5988
  getSubscribers = async () => await new Promise((t) => t(this.subscribers));
5982
5989
  deleteSubscribers = async () => (this.subscribers = [], await new Promise((t) => t(this.subscribers)));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "buzzcasting-storage",
3
3
  "type": "module",
4
- "version": "3.15.13",
4
+ "version": "3.16.0",
5
5
  "private": false,
6
6
  "author": {
7
7
  "name": "Mark Tamis, TouchFlows SAS",