@mx-cartographer/experiences 3.7.0-alpha.sms2 → 3.7.0-alpha.sms4

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/dist/index.es.js CHANGED
@@ -226,7 +226,7 @@ class UA {
226
226
  };
227
227
  return fetch(`${this.endpoint}${e}`, r).then((i) => {
228
228
  if (!i.ok)
229
- throw i;
229
+ throw console.log("hey response was not ok, steph", i), i;
230
230
  return i.text();
231
231
  }).then((i) => i.length ? JSON.parse(i) : {}).then((i) => i).catch((i) => {
232
232
  throw xt.notify(i), i;
@@ -12573,7 +12573,11 @@ const ya = {
12573
12573
  ...Ch(),
12574
12574
  ...fh(),
12575
12575
  ...vh()
12576
- }, xr = async (A, e) => !e || !Or[A] ? null : await e.sendAnalyticEvent(Or[A]), Pr = async (A, e) => !e || !Dr[A] ? null : await e.sendAnalyticsPageview(Dr[A]);
12576
+ }, xr = async (A, e) => !e || !Or[A] ? null : e.sendAnalyticEvent(Or[A]).then((n) => n).catch((n) => {
12577
+ throw n;
12578
+ }), Pr = async (A, e) => !e || !Dr[A] ? null : e.sendAnalyticsPageview(Dr[A]).then((n) => n).catch((n) => {
12579
+ throw n;
12580
+ });
12577
12581
  class ph {
12578
12582
  onAnalyticEvent = xr;
12579
12583
  onAnalyticPageView = Pr;
@@ -12584,7 +12588,7 @@ class ph {
12584
12588
  initialize = async (e, n, a) => {
12585
12589
  this.onAnalyticEvent = (r, i) => {
12586
12590
  xr(r, i).then((o) => o).catch((o) => {
12587
- throw o.status === 401 && a(), o;
12591
+ throw console.log("InsightsMicroWidgetStore > onAnalyticEvent catch", o), o.status === 401 && a(), o;
12588
12592
  });
12589
12593
  }, this.onAnalyticPageView = (r, i) => {
12590
12594
  Pr(r, i).then((o) => o).catch((o) => {