@layr-labs/ecloud-sdk 1.0.0-dev.7 → 1.0.0-dev.8

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/browser.cjs CHANGED
@@ -710,6 +710,7 @@ var import_axios = __toESM(require("axios"), 1);
710
710
  var MAX_RETRIES = 5;
711
711
  var INITIAL_BACKOFF_MS = 1e3;
712
712
  var MAX_BACKOFF_MS = 3e4;
713
+ var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
713
714
  function sleep(ms) {
714
715
  return new Promise((resolve) => setTimeout(resolve, ms));
715
716
  }
@@ -729,7 +730,7 @@ async function requestWithRetry(config) {
729
730
  for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
730
731
  const res = await (0, import_axios.default)({ ...config, validateStatus: () => true });
731
732
  lastResponse = res;
732
- if (res.status !== 429) {
733
+ if (!RETRYABLE_STATUSES.has(res.status)) {
733
734
  return res;
734
735
  }
735
736
  if (attempt < MAX_RETRIES) {
@@ -758,7 +759,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
758
759
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
759
760
  var CanUpdateAppProfilePermission = "0x036fef61";
760
761
  function getDefaultClientId() {
761
- const version = true ? "1.0.0-dev.7" : "0.0.0";
762
+ const version = true ? "1.0.0-dev.8" : "0.0.0";
762
763
  return `ecloud-sdk/v${version}`;
763
764
  }
764
765
  var UserApiClient = class {