@worthai/onboarding-sdk 3.0.0-beta.2.16.1 → 3.0.0-beta.2.18.2

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.
@@ -2569,26 +2569,30 @@ class Gs {
2569
2569
  params: r,
2570
2570
  hasAttachment: s,
2571
2571
  withCredentials: o,
2572
- onUploadProgress: i
2572
+ onUploadProgress: i,
2573
+ skipUnauthorizedRedirect: u
2573
2574
  }) {
2574
2575
  return this.request(oe.POST, e, {
2575
2576
  data: n,
2576
2577
  params: r,
2577
2578
  headers: this._setupHeaders(s),
2578
2579
  withCredentials: o,
2579
- onUploadProgress: i
2580
+ onUploadProgress: i,
2581
+ skipUnauthorizedRedirect: u
2580
2582
  });
2581
2583
  }
2582
2584
  get({
2583
2585
  url: e,
2584
2586
  params: n,
2585
2587
  hasAttachment: r,
2586
- withCredentials: s
2588
+ withCredentials: s,
2589
+ skipUnauthorizedRedirect: o
2587
2590
  }) {
2588
2591
  return this.request(oe.GET, e, {
2589
2592
  params: n,
2590
2593
  headers: this._setupHeaders(r),
2591
- withCredentials: s
2594
+ withCredentials: s,
2595
+ skipUnauthorizedRedirect: o
2592
2596
  });
2593
2597
  }
2594
2598
  put({
@@ -2596,13 +2600,15 @@ class Gs {
2596
2600
  data: n,
2597
2601
  params: r,
2598
2602
  hasAttachment: s,
2599
- withCredentials: o
2603
+ withCredentials: o,
2604
+ skipUnauthorizedRedirect: i
2600
2605
  }) {
2601
2606
  return this.request(oe.PUT, e, {
2602
2607
  data: n,
2603
2608
  params: r,
2604
2609
  headers: this._setupHeaders(s),
2605
- withCredentials: o
2610
+ withCredentials: o,
2611
+ skipUnauthorizedRedirect: i
2606
2612
  });
2607
2613
  }
2608
2614
  patch({
@@ -2610,25 +2616,29 @@ class Gs {
2610
2616
  data: n,
2611
2617
  params: r,
2612
2618
  hasAttachment: s,
2613
- withCredentials: o
2619
+ withCredentials: o,
2620
+ skipUnauthorizedRedirect: i
2614
2621
  }) {
2615
2622
  return this.request(oe.PATCH, e, {
2616
2623
  data: n,
2617
2624
  params: r,
2618
2625
  headers: this._setupHeaders(s),
2619
- withCredentials: o
2626
+ withCredentials: o,
2627
+ skipUnauthorizedRedirect: i
2620
2628
  });
2621
2629
  }
2622
2630
  delete({
2623
2631
  url: e,
2624
2632
  params: n,
2625
2633
  hasAttachment: r,
2626
- withCredentials: s
2634
+ withCredentials: s,
2635
+ skipUnauthorizedRedirect: o
2627
2636
  }) {
2628
2637
  return this.request(oe.DELETE, e, {
2629
2638
  params: n,
2630
2639
  headers: this._setupHeaders(r),
2631
- withCredentials: s
2640
+ withCredentials: s,
2641
+ skipUnauthorizedRedirect: o
2632
2642
  });
2633
2643
  }
2634
2644
  async request(e, n, r) {
@@ -2665,7 +2675,8 @@ class Gs {
2665
2675
  unauthorizedRedirectUrl: e
2666
2676
  }) {
2667
2677
  return { requestInterceptor: (o) => o, successInterceptor: (o) => o, errorInterceptor: async (o) => {
2668
- if (o.response?.status === En.UNAUTHORIZED) {
2678
+ const i = o.config?.skipUnauthorizedRedirect;
2679
+ if (o.response?.status === En.UNAUTHORIZED && !i) {
2669
2680
  if (this._handleUnauthorized)
2670
2681
  return await this._handleUnauthorized({
2671
2682
  error: o,
@@ -3145,7 +3156,7 @@ class X {
3145
3156
  u.setAttribute(oo, "true"), u.dataset.theme = io, i.appendChild(u), r = u, this._element = u;
3146
3157
  const {
3147
3158
  mountWorthOnboardingRuntime: c
3148
- } = await import("./runtimeAdapter-Dx2wAxkD.js");
3159
+ } = await import("./runtimeAdapter-BIQis7G9.js");
3149
3160
  if (n !== this._mountGeneration || this._state !== "mounting")
3150
3161
  throw this._createError("MOUNT_CANCELLED", "Worth onboarding mount was cancelled before the runtime started rendering.");
3151
3162
  const l = await Promise.resolve(c(u, this._options));
@@ -3343,13 +3354,14 @@ export {
3343
3354
  Ho as h,
3344
3355
  Ts as i,
3345
3356
  eo as j,
3346
- ko as k,
3347
- mo as l,
3348
- po as m,
3357
+ Eo as k,
3358
+ ko as l,
3359
+ mo as m,
3349
3360
  to as n,
3350
- In as o,
3351
- Tn as p,
3352
- Mo as q,
3353
- Eo as r,
3361
+ po as o,
3362
+ In as p,
3363
+ Tn as q,
3364
+ Rn as r,
3365
+ Mo as s,
3354
3366
  _n as w
3355
3367
  };
@@ -1,4 +1,4 @@
1
- import { W as a, d as n, h as d, q as e } from "./index-DhxanEjx.js";
1
+ import { W as a, d as n, h as d, s as e } from "./index-BBzSdUHZ.js";
2
2
  export {
3
3
  a as WorthOnboardingError,
4
4
  n as WorthOnboardingErrorCode,