@mx-cartographer/experiences 5.0.13-alpha.al0 → 5.0.13-alpha.al1

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
@@ -870,7 +870,7 @@ class Ae {
870
870
  return fetch(`${this.endpoint}${t}`, r).then((o) => {
871
871
  if (!o.ok)
872
872
  throw o;
873
- return o.text();
873
+ return console.log("RES INSIDE FETCH", o), o.text();
874
874
  }).then((o) => o.length ? JSON.parse(o) : {}).then((o) => o).catch((o) => {
875
875
  throw oi.notify(o), o;
876
876
  });
@@ -13597,7 +13597,7 @@ class Zr {
13597
13597
  getDevices = async () => this.fetchInstance.get(m.DEVICES).then((t) => t.map((i) => i.device));
13598
13598
  getNotificationProfiles = async () => this.fetchInstance.get(m.NOTIFICATION_PROFILES).then((t) => t.notification_profiles);
13599
13599
  // verifications endpoints respond with HTTP status codes; return 204 on success
13600
- sendEmailVerification = async () => this.fetchInstance.post(m.EMAIL_VERIFICATIONS).then((t) => ({ success: t.status === 204 }));
13600
+ sendEmailVerification = async () => this.fetchInstance.post(m.EMAIL_VERIFICATIONS).then((t) => (console.log("RES INSIDE API", t), { success: t.status === 204 }));
13601
13601
  sendPhoneVerification = async () => this.fetchInstance.post(m.PHONE_VERIFICATIONS + "/deliver").then((t) => ({ success: t.status === 204 }));
13602
13602
  verifyPhoneToken = async (t) => this.fetchInstance.post(m.PHONE_VERIFICATIONS + "/verify", { sms_verification_token: t }).then((i) => ({ success: i.verified }));
13603
13603
  updateDevice = async (t) => this.fetchInstance.put(`${m.DEVICES}/${t.guid}`, t).then((i) => i.device);
@@ -13723,7 +13723,7 @@ class Sl {
13723
13723
  };
13724
13724
  handleAlerts = (t, i) => {
13725
13725
  const n = "success", r = "error";
13726
- t.success ? i !== "token" ? this.setAlert(this.copy.verification_sent_success, n) : this.setAlert(this.copy.verified_phone_success, n) : t.success || (i !== "token" ? this.setAlert(this.copy.verification_sent_error, r) : this.setAlert(this.copy.verified_phone_error, r));
13726
+ console.log("RES IN ALERTS", t), t.success ? i !== "token" ? this.setAlert(this.copy.verification_sent_success, n) : this.setAlert(this.copy.verified_phone_success, n) : t.success || (i !== "token" ? this.setAlert(this.copy.verification_sent_error, r) : this.setAlert(this.copy.verified_phone_error, r));
13727
13727
  };
13728
13728
  }
13729
13729
  const Vl = {