@streamlayer/sdk-web 1.5.5 → 1.5.6

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.
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { pino as bi } from "pino";
2
- import { QuestionType as _, QuestionStatus as Y, PromotionType as re, NotificationEnabled as Rr, SilenceSetting as vi } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
2
+ import { QuestionType as C, QuestionStatus as Y, PromotionType as re, NotificationEnabled as Rr, SilenceSetting as vi } from "@streamlayer/sl-eslib/interactive/interactive.common_pb";
3
3
  import { PickHistoryStatus as ct } from "@streamlayer/sl-eslib/interactive/feed/interactive.feed_pb";
4
4
  import { SdkOverlayType as D } from "@streamlayer/sl-eslib/sdkSettings/sdkSettings.common_pb";
5
5
  import { InvitationCategory as Vr, InvitationFrom as $r } from "@streamlayer/sl-eslib/analytics/v1/invitations/invitations_pb";
@@ -22,7 +22,7 @@ import { NotificationKind as pe, NotificationType as Gr } from "@streamlayer/sl-
22
22
  function Ii(t) {
23
23
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
24
24
  }
25
- var On = { exports: {} }, $ = On.exports = {}, ae, ue;
25
+ var On = { exports: {} }, V = On.exports = {}, ae, ue;
26
26
  function ir() {
27
27
  throw new Error("setTimeout has not been defined");
28
28
  }
@@ -87,7 +87,7 @@ function Cn() {
87
87
  _e = null, xe = !1, Ti(t);
88
88
  }
89
89
  }
90
- $.nextTick = function(t) {
90
+ V.nextTick = function(t) {
91
91
  var e = new Array(arguments.length - 1);
92
92
  if (arguments.length > 1)
93
93
  for (var r = 1; r < arguments.length; r++)
@@ -100,36 +100,36 @@ function Ln(t, e) {
100
100
  Ln.prototype.run = function() {
101
101
  this.fun.apply(null, this.array);
102
102
  };
103
- $.title = "browser";
104
- $.browser = !0;
105
- $.env = {};
106
- $.argv = [];
107
- $.version = "";
108
- $.versions = {};
103
+ V.title = "browser";
104
+ V.browser = !0;
105
+ V.env = {};
106
+ V.argv = [];
107
+ V.version = "";
108
+ V.versions = {};
109
109
  function ve() {
110
110
  }
111
- $.on = ve;
112
- $.addListener = ve;
113
- $.once = ve;
114
- $.off = ve;
115
- $.removeListener = ve;
116
- $.removeAllListeners = ve;
117
- $.emit = ve;
118
- $.prependListener = ve;
119
- $.prependOnceListener = ve;
120
- $.listeners = function(t) {
111
+ V.on = ve;
112
+ V.addListener = ve;
113
+ V.once = ve;
114
+ V.off = ve;
115
+ V.removeListener = ve;
116
+ V.removeAllListeners = ve;
117
+ V.emit = ve;
118
+ V.prependListener = ve;
119
+ V.prependOnceListener = ve;
120
+ V.listeners = function(t) {
121
121
  return [];
122
122
  };
123
- $.binding = function(t) {
123
+ V.binding = function(t) {
124
124
  throw new Error("process.binding is not supported");
125
125
  };
126
- $.cwd = function() {
126
+ V.cwd = function() {
127
127
  return "/";
128
128
  };
129
- $.chdir = function(t) {
129
+ V.chdir = function(t) {
130
130
  throw new Error("process.chdir is not supported");
131
131
  };
132
- $.umask = function() {
132
+ V.umask = function() {
133
133
  return 0;
134
134
  };
135
135
  var _i = On.exports;
@@ -900,7 +900,7 @@ const to = (t, e, r) => {
900
900
  eventId: s
901
901
  }
902
902
  });
903
- if (a.data?.attributes?.question?.type !== _.PROMOTION)
903
+ if (a.data?.attributes?.question?.type !== C.PROMOTION)
904
904
  return a.data?.attributes;
905
905
  },
906
906
  dedupeTime: 1e3 * 60 * 10,
@@ -952,7 +952,7 @@ const to = (t, e, r) => {
952
952
  fetcher: async (o, s, a, u) => a ? (await n.list({
953
953
  eventId: a,
954
954
  filter: {
955
- types: u === Le.ALLOWED ? [] : [_.FACTOID, _.PROMOTION, _.TWEET],
955
+ types: u === Le.ALLOWED ? [] : [C.FACTOID, C.PROMOTION, C.TWEET],
956
956
  statuses: [Y.ACTIVE, Y.RESOLVED]
957
957
  }
958
958
  })).data : [],
@@ -971,7 +971,7 @@ const to = (t, e, r) => {
971
971
  const u = (await r.list({
972
972
  eventId: s,
973
973
  filter: {
974
- types: [_.PROMOTION],
974
+ types: [C.PROMOTION],
975
975
  statuses: [Y.ACTIVE]
976
976
  },
977
977
  pagination: {
@@ -1069,8 +1069,8 @@ const yo = (t) => {
1069
1069
  }
1070
1070
  });
1071
1071
  }, c = () => {
1072
- const g = a.get(), b = g.data?.question.id, S = g.data?.promotion?.type, C = a.get()?.isOpened;
1073
- b && !C && (o.debug({ id: b }, "markAsViewed: %o"), s.setShowed(b), a.setKey("isOpened", !0), G.emit("advertisement", {
1072
+ const g = a.get(), b = g.data?.question.id, S = g.data?.promotion?.type, O = a.get()?.isOpened;
1073
+ b && !O && (o.debug({ id: b }, "markAsViewed: %o"), s.setShowed(b), a.setKey("isOpened", !0), G.emit("advertisement", {
1074
1074
  action: "opened",
1075
1075
  payload: {
1076
1076
  id: b,
@@ -1187,7 +1187,7 @@ class bo {
1187
1187
  }), this.questionSubscription.connect()) : (this.log.info("cleanup on close question"), this.questionSubscription !== void 0 && (e.transport.removeSubscription(this.questionSubscription), this.questionSubscription = void 0));
1188
1188
  })), this.feedSubscription = ao(this.slStreamId, e.transport), this.cancels.add(this.feedSubscription.addListener("feed-subscription-active-question", (r) => {
1189
1189
  const n = this.activeQuestionId.get().data?.question?.id, i = r.data?.attributes?.question;
1190
- if (!(!i || i.type === _.PROMOTION)) {
1190
+ if (!(!i || i.type === C.PROMOTION)) {
1191
1191
  if (i.status === Y.RESOLVED) {
1192
1192
  n === i.id && this.activeQuestionId.mutate(void 0);
1193
1193
  return;
@@ -1480,9 +1480,9 @@ const Oo = {
1480
1480
  usersIds: v
1481
1481
  });
1482
1482
  a.set({
1483
- data: S.data.map((C, R) => ({
1484
- ...C.attributes,
1485
- friendsRank: R + 1
1483
+ data: S.data.map((O, $) => ({
1484
+ ...O.attributes,
1485
+ friendsRank: $ + 1
1486
1486
  })),
1487
1487
  hasMore: !1,
1488
1488
  key: Date.now(),
@@ -1721,11 +1721,11 @@ const Je = new Be(), Ro = (t, e, r) => {
1721
1721
  }
1722
1722
  }, r();
1723
1723
  }, $o = {
1724
- [_.FACTOID]: "insight",
1725
- [_.POLL]: "poll",
1726
- [_.TRIVIA]: "trivia",
1727
- [_.PREDICTION]: "prediction",
1728
- [_.TWEET]: "tweet"
1724
+ [C.FACTOID]: "insight",
1725
+ [C.POLL]: "poll",
1726
+ [C.TRIVIA]: "trivia",
1727
+ [C.PREDICTION]: "prediction",
1728
+ [C.TWEET]: "tweet"
1729
1729
  }, Mo = (t, e, r) => {
1730
1730
  t.sdk.uiState = J({}), t.ui = {
1731
1731
  enableAppNotification: function() {
@@ -1885,21 +1885,21 @@ const Je = new Be(), Ro = (t, e, r) => {
1885
1885
  return r.toString();
1886
1886
  }, qo = (t, e, r, n) => {
1887
1887
  const i = J({});
1888
- return br(i, () => Bo(t, [e, r]).subscribe(async ({ data: a, error: u, loading: l }) => {
1889
- const c = u ? "https://masters.com" : a?.url, f = n.get() || "", p = e.get() || "", v = r.get() || "", g = {
1890
- [Pt]: f,
1891
- [Vn]: p,
1892
- [$n]: v
1888
+ return br(i, () => Bo(t, [e, r]).subscribe(async ({ data: a, loading: u }) => {
1889
+ const l = a === void 0 && u === !1 ? "https://streamlayer.io" : a?.url, c = n.get() || "", f = e.get() || "", p = r.get() || "", v = {
1890
+ [Pt]: c,
1891
+ [Vn]: f,
1892
+ [$n]: p
1893
1893
  };
1894
- if (!l && c) {
1894
+ if (!u && l) {
1895
1895
  i.setKey("loading", !0);
1896
- let b = window.location.search, S = window.location.hash;
1897
- b && S || S ? b = `?${Xr(b, g)}` : S = `#${Xr("", g)}`;
1898
- const C = window.location.origin + window.location.pathname + b + S;
1896
+ let g = window.location.search, b = window.location.hash;
1897
+ g && b || b ? g = `?${Xr(g, v)}` : b = `#${Xr("", v)}`;
1898
+ const S = window.location.origin + window.location.pathname + g + b;
1899
1899
  try {
1900
- const R = await Uo(t, { web: C, mobile: c });
1900
+ const O = await Uo(t, { web: S, mobile: l });
1901
1901
  i.set({
1902
- data: R.data?.link,
1902
+ data: O.data?.link,
1903
1903
  loading: !1
1904
1904
  });
1905
1905
  } catch {
@@ -1930,7 +1930,7 @@ const xo = (t, e, r, n) => {
1930
1930
  autoHideDuration: 1e6,
1931
1931
  data: {
1932
1932
  questionId: "onboarding",
1933
- questionType: _.UNSET,
1933
+ questionType: C.UNSET,
1934
1934
  onboarding: {
1935
1935
  ...i,
1936
1936
  instantOpen: !n.getOnboardingInstantOpen({
@@ -2023,7 +2023,7 @@ const xo = (t, e, r, n) => {
2023
2023
  usersIds: [...u, a]
2024
2024
  };
2025
2025
  return (await o(l)).data?.attributes?.summary;
2026
- }, zo = /* @__PURE__ */ new Set([_.POLL, _.PREDICTION, _.TRIVIA]);
2026
+ }, zo = /* @__PURE__ */ new Set([C.POLL, C.PREDICTION, C.TRIVIA]);
2027
2027
  class Ho extends kn {
2028
2028
  /** user statistics (leaderboard panel) */
2029
2029
  userSummary;
@@ -2087,7 +2087,7 @@ class Ho extends kn {
2087
2087
  if (!r || !n?.attributes)
2088
2088
  return;
2089
2089
  const { status: i, type: o, id: s, answers: a } = r;
2090
- if (i === Y.RESOLVED && o === _.PREDICTION) {
2090
+ if (i === Y.RESOLVED && o === C.PREDICTION) {
2091
2091
  const u = this.background.getCurrentSessionId({
2092
2092
  prefix: `notification-id:${s}`
2093
2093
  }), l = [...this.feedList.getValues().data || []], c = l.findIndex((K) => K.id === s), f = l[c];
@@ -2099,34 +2099,34 @@ class Ho extends kn {
2099
2099
  b || (b = await co(s, this.transport)), g(), window.requestAnimationFrame(() => {
2100
2100
  v.invalidate();
2101
2101
  }), p || (p = b?.answers.find(({ youVoted: K }) => K)?.id);
2102
- const S = a.find(({ correct: K }) => K), C = p ? a.find(({ id: K }) => K === p) : void 0, R = !!C?.correct;
2102
+ const S = a.find(({ correct: K }) => K), O = p ? a.find(({ id: K }) => K === p) : void 0, $ = !!O?.correct;
2103
2103
  if (f && l[c]?.attributes?.attributes.case === "question") {
2104
2104
  try {
2105
- l[c].attributes.attributes.value.answerId = p, l[c].attributes.attributes.value.openForVoting = !1, p && (l[c].attributes.attributes.value.status = R ? ct.WON : ct.LOST);
2105
+ l[c].attributes.attributes.value.answerId = p, l[c].attributes.attributes.value.openForVoting = !1, p && (l[c].attributes.attributes.value.status = $ ? ct.WON : ct.LOST);
2106
2106
  } catch {
2107
2107
  }
2108
2108
  this.feedList.getStore().mutate(l);
2109
2109
  }
2110
- if (!C || !S)
2110
+ if (!O || !S)
2111
2111
  return;
2112
2112
  this.openedQuestionId.get()?.questionId !== r.id && this.notifications.add({
2113
2113
  type: Ee.QUESTION_RESOLVED,
2114
2114
  action: () => this.openQuestion(r.id, n),
2115
2115
  close: () => this.closeQuestion(s),
2116
- autoHideDuration: R ? 15e3 : 12e3,
2116
+ autoHideDuration: $ ? 15e3 : 12e3,
2117
2117
  id: u,
2118
2118
  emitEvent: !1,
2119
2119
  data: {
2120
2120
  questionId: s,
2121
- questionType: _.PREDICTION,
2121
+ questionType: C.PREDICTION,
2122
2122
  question: {
2123
- title: R ? `Congratulations! You answered correctly! You won ${S.points} pts!` : `Better luck next time! Correct: ${S?.text}!`,
2123
+ title: $ ? `Congratulations! You answered correctly! You won ${S.points} pts!` : `Better luck next time! Correct: ${S?.text}!`,
2124
2124
  votedAnswer: {
2125
- title: C?.text,
2126
- points: C?.points
2125
+ title: O?.text,
2126
+ points: O?.points
2127
2127
  },
2128
2128
  correctAnswerTitle: S?.text,
2129
- correct: !!R,
2129
+ correct: !!$,
2130
2130
  predictionResult: i === Y.RESOLVED,
2131
2131
  questionTitle: r?.subject
2132
2132
  }
@@ -2212,7 +2212,7 @@ class Ho extends kn {
2212
2212
  });
2213
2213
  const f = n.get().data;
2214
2214
  if (i(), f) {
2215
- const p = f.answers.find((S) => S.correct === !0), v = f.answers.findIndex((S) => S.id === r), g = f.answers[v], b = f.answers.every(({ percentageDecimal: S }, C) => S === o?.answers[C].percentageDecimal);
2215
+ const p = f.answers.find((S) => S.correct === !0), v = f.answers.findIndex((S) => S.id === r), g = f.answers[v], b = f.answers.every(({ percentageDecimal: S }, O) => S === o?.answers[O].percentageDecimal);
2216
2216
  a[u].attributes.attributes.value.answerId = r, a[u].attributes.attributes.value.openForVoting = !1, a[u].attributes.attributes.value.text = g?.text || "", p && (a[u].attributes.attributes.value.status = p.id === r ? ct.WON : ct.LOST), this.feedList.getStore().mutate([...a]), f.answers[v].correct = p?.id === r, f.answers[v].youVoted = !0, b && f.answers.forEach((S) => {
2217
2217
  S.percentageDecimal = 0;
2218
2218
  }), p?.id === r && (f.answers[v].pointsEarned = f.status === Y.RESOLVED ? 0 : p.points), n.mutate({ ...f });
@@ -2314,7 +2314,7 @@ class Ho extends kn {
2314
2314
  }
2315
2315
  }
2316
2316
  });
2317
- else if (e.data.question.type === _.FACTOID) {
2317
+ else if (e.data.question.type === C.FACTOID) {
2318
2318
  const n = e.data.question.options?.options.value, i = {
2319
2319
  heading: e.data.question.notification.title,
2320
2320
  body: e.data.question.notification.body,
@@ -2343,7 +2343,7 @@ class Ho extends kn {
2343
2343
  insight: i
2344
2344
  }
2345
2345
  });
2346
- } else if (e.data.question.type === _.TWEET) {
2346
+ } else if (e.data.question.type === C.TWEET) {
2347
2347
  const n = e.data.question.options?.options.value, i = {
2348
2348
  title: e.data.question.notification?.title,
2349
2349
  body: e.data.question.notification?.body,
@@ -2616,15 +2616,15 @@ class rs {
2616
2616
  };
2617
2617
  }
2618
2618
  const Ze = {
2619
- [_.UNSET]: x.UNSET,
2620
- [_.FACTOID]: x.POLLS_INSIGHT,
2621
- [_.POLL]: x.POLLS_POLL,
2622
- [_.PREDICTION]: x.POLLS_PREDICTION,
2623
- [_.PROMOTION]: x.POLLS_PROMOTION,
2624
- [_.TRIVIA]: x.POLLS_TRIVIA,
2625
- [_.TWEET]: x.POLLS_TWITTER
2619
+ [C.UNSET]: x.UNSET,
2620
+ [C.FACTOID]: x.POLLS_INSIGHT,
2621
+ [C.POLL]: x.POLLS_POLL,
2622
+ [C.PREDICTION]: x.POLLS_PREDICTION,
2623
+ [C.PROMOTION]: x.POLLS_PROMOTION,
2624
+ [C.TRIVIA]: x.POLLS_TRIVIA,
2625
+ [C.TWEET]: x.POLLS_TWITTER
2626
2626
  };
2627
- _.UNSET + "", pe.UNSET, _.FACTOID + "", pe.POLLS, _.POLL + "", pe.POLLS, _.PREDICTION + "", pe.POLLS, _.PROMOTION + "", pe.POLLS, _.TRIVIA + "", pe.POLLS, _.TWEET + "", pe.POLLS;
2627
+ C.UNSET + "", pe.UNSET, C.FACTOID + "", pe.POLLS, C.POLL + "", pe.POLLS, C.PREDICTION + "", pe.POLLS, C.PROMOTION + "", pe.POLLS, C.TRIVIA + "", pe.POLLS, C.TWEET + "", pe.POLLS;
2628
2628
  const ns = {
2629
2629
  [D.UNSET]: z.UNSET,
2630
2630
  [D.INPLAY]: z.INPLAY,
@@ -2908,7 +2908,7 @@ function Mn(t, e, r) {
2908
2908
  throw new Error("fastqueue concurrency must be equal to or greater than 1");
2909
2909
  if (r = P, !u.paused)
2910
2910
  for (; i && s < r; )
2911
- s++, C();
2911
+ s++, O();
2912
2912
  },
2913
2913
  running: l,
2914
2914
  resume: v,
@@ -2917,7 +2917,7 @@ function Mn(t, e, r) {
2917
2917
  getQueue: p,
2918
2918
  unshift: S,
2919
2919
  empty: W,
2920
- kill: R,
2920
+ kill: $,
2921
2921
  killAndDrain: K,
2922
2922
  error: ee
2923
2923
  };
@@ -2929,42 +2929,42 @@ function Mn(t, e, r) {
2929
2929
  u.paused = !0;
2930
2930
  }
2931
2931
  function f() {
2932
- for (var P = i, V = 0; P; )
2933
- P = P.next, V++;
2934
- return V;
2932
+ for (var P = i, R = 0; P; )
2933
+ P = P.next, R++;
2934
+ return R;
2935
2935
  }
2936
2936
  function p() {
2937
- for (var P = i, V = []; P; )
2938
- V.push(P.value), P = P.next;
2939
- return V;
2937
+ for (var P = i, R = []; P; )
2938
+ R.push(P.value), P = P.next;
2939
+ return R;
2940
2940
  }
2941
2941
  function v() {
2942
2942
  if (u.paused) {
2943
2943
  if (u.paused = !1, i === null) {
2944
- s++, C();
2944
+ s++, O();
2945
2945
  return;
2946
2946
  }
2947
2947
  for (; i && s < r; )
2948
- s++, C();
2948
+ s++, O();
2949
2949
  }
2950
2950
  }
2951
2951
  function g() {
2952
2952
  return s === 0 && u.length() === 0;
2953
2953
  }
2954
- function b(P, V) {
2954
+ function b(P, R) {
2955
2955
  var T = n.get();
2956
- T.context = t, T.release = C, T.value = P, T.callback = V || W, T.errorHandler = a, s >= r || u.paused ? o ? (o.next = T, o = T) : (i = T, o = T, u.saturated()) : (s++, e.call(t, T.value, T.worked));
2956
+ T.context = t, T.release = O, T.value = P, T.callback = R || W, T.errorHandler = a, s >= r || u.paused ? o ? (o.next = T, o = T) : (i = T, o = T, u.saturated()) : (s++, e.call(t, T.value, T.worked));
2957
2957
  }
2958
- function S(P, V) {
2958
+ function S(P, R) {
2959
2959
  var T = n.get();
2960
- T.context = t, T.release = C, T.value = P, T.callback = V || W, T.errorHandler = a, s >= r || u.paused ? i ? (T.next = i, i = T) : (i = T, o = T, u.saturated()) : (s++, e.call(t, T.value, T.worked));
2960
+ T.context = t, T.release = O, T.value = P, T.callback = R || W, T.errorHandler = a, s >= r || u.paused ? i ? (T.next = i, i = T) : (i = T, o = T, u.saturated()) : (s++, e.call(t, T.value, T.worked));
2961
2961
  }
2962
- function C(P) {
2962
+ function O(P) {
2963
2963
  P && n.release(P);
2964
- var V = i;
2965
- V && s <= r ? u.paused ? s-- : (o === i && (o = null), i = V.next, V.next = null, e.call(t, V.value, V.worked), o === null && u.empty()) : --s === 0 && u.drain();
2964
+ var R = i;
2965
+ R && s <= r ? u.paused ? s-- : (o === i && (o = null), i = R.next, R.next = null, e.call(t, R.value, R.worked), o === null && u.empty()) : --s === 0 && u.drain();
2966
2966
  }
2967
- function R() {
2967
+ function $() {
2968
2968
  i = null, o = null, u.drain = W;
2969
2969
  }
2970
2970
  function K() {
@@ -3915,14 +3915,14 @@ var Xa = function(e) {
3915
3915
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(y) : i(y) || h(y);
3916
3916
  }
3917
3917
  t.isArrayBufferView = S;
3918
- function C(y) {
3918
+ function O(y) {
3919
3919
  return n(y) === "Uint8Array";
3920
3920
  }
3921
- t.isUint8Array = C;
3922
- function R(y) {
3921
+ t.isUint8Array = O;
3922
+ function $(y) {
3923
3923
  return n(y) === "Uint8ClampedArray";
3924
3924
  }
3925
- t.isUint8ClampedArray = R;
3925
+ t.isUint8ClampedArray = $;
3926
3926
  function K(y) {
3927
3927
  return n(y) === "Uint16Array";
3928
3928
  }
@@ -3935,10 +3935,10 @@ var Xa = function(e) {
3935
3935
  return n(y) === "Int8Array";
3936
3936
  }
3937
3937
  t.isInt8Array = P;
3938
- function V(y) {
3938
+ function R(y) {
3939
3939
  return n(y) === "Int16Array";
3940
3940
  }
3941
- t.isInt16Array = V;
3941
+ t.isInt16Array = R;
3942
3942
  function T(y) {
3943
3943
  return n(y) === "Int32Array";
3944
3944
  }
@@ -4023,10 +4023,10 @@ var Xa = function(e) {
4023
4023
  return u(y) === "[object Map Iterator]";
4024
4024
  }
4025
4025
  t.isMapIterator = E;
4026
- function O(y) {
4026
+ function _(y) {
4027
4027
  return u(y) === "[object Set Iterator]";
4028
4028
  }
4029
- t.isSetIterator = O;
4029
+ t.isSetIterator = _;
4030
4030
  function F(y) {
4031
4031
  return u(y) === "[object Generator]";
4032
4032
  }
@@ -4104,10 +4104,10 @@ var iu = yr.exports;
4104
4104
  h.push(s(arguments[m]));
4105
4105
  return h.join(" ");
4106
4106
  }
4107
- for (var m = 1, w = arguments, L = w.length, k = String(d).replace(r, function(O) {
4108
- if (O === "%%") return "%";
4109
- if (m >= L) return O;
4110
- switch (O) {
4107
+ for (var m = 1, w = arguments, L = w.length, k = String(d).replace(r, function(_) {
4108
+ if (_ === "%%") return "%";
4109
+ if (m >= L) return _;
4110
+ switch (_) {
4111
4111
  case "%s":
4112
4112
  return String(w[m++]);
4113
4113
  case "%d":
@@ -4119,10 +4119,10 @@ var iu = yr.exports;
4119
4119
  return "[Circular]";
4120
4120
  }
4121
4121
  default:
4122
- return O;
4122
+ return _;
4123
4123
  }
4124
4124
  }), E = w[m]; m < L; E = w[++m])
4125
- R(E) || !oe(E) ? k += " " + E : k += " " + s(E);
4125
+ $(E) || !oe(E) ? k += " " + E : k += " " + s(E);
4126
4126
  return k;
4127
4127
  }, t.deprecate = function(d, h) {
4128
4128
  if (typeof A < "u" && A.noDeprecation === !0)
@@ -4165,7 +4165,7 @@ var iu = yr.exports;
4165
4165
  seen: [],
4166
4166
  stylize: u
4167
4167
  };
4168
- return arguments.length >= 3 && (m.depth = arguments[2]), arguments.length >= 4 && (m.colors = arguments[3]), C(h) ? m.showHidden = h : h && t._extend(m, h), T(m.showHidden) && (m.showHidden = !1), T(m.depth) && (m.depth = 2), T(m.colors) && (m.colors = !1), T(m.customInspect) && (m.customInspect = !0), m.colors && (m.stylize = a), c(m, d, m.depth);
4168
+ return arguments.length >= 3 && (m.depth = arguments[2]), arguments.length >= 4 && (m.colors = arguments[3]), O(h) ? m.showHidden = h : h && t._extend(m, h), T(m.showHidden) && (m.showHidden = !1), T(m.depth) && (m.depth = 2), T(m.colors) && (m.colors = !1), T(m.customInspect) && (m.customInspect = !0), m.colors && (m.stylize = a), c(m, d, m.depth);
4169
4169
  }
4170
4170
  t.inspect = s, s.colors = {
4171
4171
  bold: [1, 22],
@@ -4220,8 +4220,8 @@ var iu = yr.exports;
4220
4220
  return p(h);
4221
4221
  if (k.length === 0) {
4222
4222
  if (de(h)) {
4223
- var O = h.name ? ": " + h.name : "";
4224
- return d.stylize("[Function" + O + "]", "special");
4223
+ var _ = h.name ? ": " + h.name : "";
4224
+ return d.stylize("[Function" + _ + "]", "special");
4225
4225
  }
4226
4226
  if (ie(h))
4227
4227
  return d.stylize(RegExp.prototype.toString.call(h), "regexp");
@@ -4254,16 +4254,16 @@ var iu = yr.exports;
4254
4254
  }
4255
4255
  if (ee(h))
4256
4256
  return d.stylize("" + h, "number");
4257
- if (C(h))
4257
+ if (O(h))
4258
4258
  return d.stylize("" + h, "boolean");
4259
- if (R(h))
4259
+ if ($(h))
4260
4260
  return d.stylize("null", "null");
4261
4261
  }
4262
4262
  function p(d) {
4263
4263
  return "[" + Error.prototype.toString.call(d) + "]";
4264
4264
  }
4265
4265
  function v(d, h, m, w, L) {
4266
- for (var k = [], E = 0, O = h.length; E < O; ++E)
4266
+ for (var k = [], E = 0, _ = h.length; E < _; ++E)
4267
4267
  De(h, String(E)) ? k.push(g(
4268
4268
  d,
4269
4269
  h,
@@ -4284,23 +4284,23 @@ var iu = yr.exports;
4284
4284
  }), k;
4285
4285
  }
4286
4286
  function g(d, h, m, w, L, k) {
4287
- var E, O, F;
4288
- if (F = Object.getOwnPropertyDescriptor(h, L) || { value: h[L] }, F.get ? F.set ? O = d.stylize("[Getter/Setter]", "special") : O = d.stylize("[Getter]", "special") : F.set && (O = d.stylize("[Setter]", "special")), De(w, L) || (E = "[" + L + "]"), O || (d.seen.indexOf(F.value) < 0 ? (R(m) ? O = c(d, F.value, null) : O = c(d, F.value, m - 1), O.indexOf(`
4289
- `) > -1 && (k ? O = O.split(`
4287
+ var E, _, F;
4288
+ if (F = Object.getOwnPropertyDescriptor(h, L) || { value: h[L] }, F.get ? F.set ? _ = d.stylize("[Getter/Setter]", "special") : _ = d.stylize("[Getter]", "special") : F.set && (_ = d.stylize("[Setter]", "special")), De(w, L) || (E = "[" + L + "]"), _ || (d.seen.indexOf(F.value) < 0 ? ($(m) ? _ = c(d, F.value, null) : _ = c(d, F.value, m - 1), _.indexOf(`
4289
+ `) > -1 && (k ? _ = _.split(`
4290
4290
  `).map(function(H) {
4291
4291
  return " " + H;
4292
4292
  }).join(`
4293
- `).slice(2) : O = `
4294
- ` + O.split(`
4293
+ `).slice(2) : _ = `
4294
+ ` + _.split(`
4295
4295
  `).map(function(H) {
4296
4296
  return " " + H;
4297
4297
  }).join(`
4298
- `))) : O = d.stylize("[Circular]", "special")), T(E)) {
4298
+ `))) : _ = d.stylize("[Circular]", "special")), T(E)) {
4299
4299
  if (k && L.match(/^\d+$/))
4300
- return O;
4300
+ return _;
4301
4301
  E = JSON.stringify("" + L), E.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (E = E.slice(1, -1), E = d.stylize(E, "name")) : (E = E.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), E = d.stylize(E, "string"));
4302
4302
  }
4303
- return E + ": " + O;
4303
+ return E + ": " + _;
4304
4304
  }
4305
4305
  function b(d, h, m) {
4306
4306
  var w = d.reduce(function(L, k) {
@@ -4316,14 +4316,14 @@ var iu = yr.exports;
4316
4316
  return Array.isArray(d);
4317
4317
  }
4318
4318
  t.isArray = S;
4319
- function C(d) {
4319
+ function O(d) {
4320
4320
  return typeof d == "boolean";
4321
4321
  }
4322
- t.isBoolean = C;
4323
- function R(d) {
4322
+ t.isBoolean = O;
4323
+ function $(d) {
4324
4324
  return d === null;
4325
4325
  }
4326
- t.isNull = R;
4326
+ t.isNull = $;
4327
4327
  function K(d) {
4328
4328
  return d == null;
4329
4329
  }
@@ -4336,10 +4336,10 @@ var iu = yr.exports;
4336
4336
  return typeof d == "string";
4337
4337
  }
4338
4338
  t.isString = P;
4339
- function V(d) {
4339
+ function R(d) {
4340
4340
  return typeof d == "symbol";
4341
4341
  }
4342
- t.isSymbol = V;
4342
+ t.isSymbol = R;
4343
4343
  function T(d) {
4344
4344
  return d === void 0;
4345
4345
  }
@@ -4426,8 +4426,8 @@ var iu = yr.exports;
4426
4426
  function m() {
4427
4427
  for (var w, L, k = new Promise(function(F, H) {
4428
4428
  w = F, L = H;
4429
- }), E = [], O = 0; O < arguments.length; O++)
4430
- E.push(arguments[O]);
4429
+ }), E = [], _ = 0; _ < arguments.length; _++)
4430
+ E.push(arguments[_]);
4431
4431
  E.push(function(F, H) {
4432
4432
  F ? L(F) : w(H);
4433
4433
  });
@@ -4468,11 +4468,11 @@ var iu = yr.exports;
4468
4468
  return L.apply(k, arguments);
4469
4469
  };
4470
4470
  d.apply(this, m).then(
4471
- function(O) {
4472
- A.nextTick(E.bind(null, null, O));
4471
+ function(_) {
4472
+ A.nextTick(E.bind(null, null, _));
4473
4473
  },
4474
- function(O) {
4475
- A.nextTick(Re.bind(null, O, E));
4474
+ function(_) {
4475
+ A.nextTick(Re.bind(null, _, E));
4476
4476
  }
4477
4477
  );
4478
4478
  }
@@ -4700,20 +4700,20 @@ function du(t) {
4700
4700
  function b(...S) {
4701
4701
  if (!b.enabled)
4702
4702
  return;
4703
- const C = b, R = Number(/* @__PURE__ */ new Date()), K = R - (f || R);
4704
- C.diff = K, C.prev = f, C.curr = R, f = R, S[0] = r.coerce(S[0]), typeof S[0] != "string" && S.unshift("%O");
4703
+ const O = b, $ = Number(/* @__PURE__ */ new Date()), K = $ - (f || $);
4704
+ O.diff = K, O.prev = f, O.curr = $, f = $, S[0] = r.coerce(S[0]), typeof S[0] != "string" && S.unshift("%O");
4705
4705
  let ee = 0;
4706
- S[0] = S[0].replace(/%([a-zA-Z%])/g, (V, T) => {
4707
- if (V === "%%")
4706
+ S[0] = S[0].replace(/%([a-zA-Z%])/g, (R, T) => {
4707
+ if (R === "%%")
4708
4708
  return "%";
4709
4709
  ee++;
4710
4710
  const ie = r.formatters[T];
4711
4711
  if (typeof ie == "function") {
4712
4712
  const oe = S[ee];
4713
- V = ie.call(C, oe), S.splice(ee, 1), ee--;
4713
+ R = ie.call(O, oe), S.splice(ee, 1), ee--;
4714
4714
  }
4715
- return V;
4716
- }), r.formatArgs.call(C, S), (C.log || r.log).apply(C, S);
4715
+ return R;
4716
+ }), r.formatArgs.call(O, S), (O.log || r.log).apply(O, S);
4717
4717
  }
4718
4718
  return b.namespace = c, b.useColors = r.useColors(), b.color = r.selectColor(c), b.extend = n, b.destroy = r.destroy, Object.defineProperty(b, "enabled", {
4719
4719
  enumerable: !0,
package/package.json CHANGED
@@ -24,18 +24,18 @@
24
24
  "devDependencies": {
25
25
  "avvio": "=8.2.1",
26
26
  "tslib": "^2.7.0",
27
- "@streamlayer/feature-gamification": "^1.9.0",
28
- "@streamlayer/sdk-web-analytics": "^1.4.6",
29
- "@streamlayer/sdk-web-api": "^1.6.6",
30
- "@streamlayer/sdk-web-core": "^1.6.5",
31
- "@streamlayer/sdk-web-features": "^1.0.27",
32
- "@streamlayer/sdk-web-interfaces": "^1.2.6",
33
- "@streamlayer/sdk-web-logger": "^1.0.27",
34
- "@streamlayer/sdk-web-notifications": "^1.2.6",
35
- "@streamlayer/sdk-web-storage": "^1.0.27",
36
- "@streamlayer/sdk-web-types": "^1.8.0"
27
+ "@streamlayer/feature-gamification": "^1.9.1",
28
+ "@streamlayer/sdk-web-analytics": "^1.4.7",
29
+ "@streamlayer/sdk-web-api": "^1.6.7",
30
+ "@streamlayer/sdk-web-core": "^1.6.6",
31
+ "@streamlayer/sdk-web-features": "^1.0.28",
32
+ "@streamlayer/sdk-web-interfaces": "^1.2.7",
33
+ "@streamlayer/sdk-web-logger": "^1.0.28",
34
+ "@streamlayer/sdk-web-notifications": "^1.2.7",
35
+ "@streamlayer/sdk-web-storage": "^1.0.28",
36
+ "@streamlayer/sdk-web-types": "^1.8.1"
37
37
  },
38
- "version": "1.5.5",
38
+ "version": "1.5.6",
39
39
  "type": "module",
40
40
  "main": "./src/index.js",
41
41
  "typings": "./src/index.d.ts"