@learncard/network-brain-client 2.5.53 → 2.5.54

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.
@@ -35798,8 +35798,13 @@ var callbackLink = /* @__PURE__ */ __name((callback) => {
35798
35798
  if (attempts > 5 || error51.data?.httpStatus !== 401) {
35799
35799
  return observer.error(error51);
35800
35800
  }
35801
- await callback();
35802
- attempt();
35801
+ try {
35802
+ await callback();
35803
+ } catch {
35804
+ if (!isDone) observer.error(error51);
35805
+ return;
35806
+ }
35807
+ if (!isDone) attempt();
35803
35808
  }, "error"),
35804
35809
  next: /* @__PURE__ */ __name((result) => observer.next(result), "next"),
35805
35810
  complete: /* @__PURE__ */ __name(() => {