@uniformdev/context 20.49.5-alpha.5 → 20.50.0

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/api/api.js CHANGED
@@ -239,7 +239,7 @@ async function handleRateLimits(callApi) {
239
239
  }
240
240
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
241
241
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
242
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
242
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
243
243
  backoffRetriesLeft -= 1;
244
244
  }
245
245
  return response;
package/dist/api/api.mjs CHANGED
@@ -174,7 +174,7 @@ async function handleRateLimits(callApi) {
174
174
  }
175
175
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
176
176
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
177
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
177
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
178
178
  backoffRetriesLeft -= 1;
179
179
  }
180
180
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context",
3
- "version": "20.49.5-alpha.5+eb5527af63",
3
+ "version": "20.50.0",
4
4
  "description": "Uniform Context core package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -70,5 +70,5 @@
70
70
  "publishConfig": {
71
71
  "access": "public"
72
72
  },
73
- "gitHead": "eb5527af632184a0269a47072f4ab4a498ce4d16"
73
+ "gitHead": "58f9d804c4f3e01abea765fa69202b540427e999"
74
74
  }