@uniformdev/context 20.49.5-alpha.8 → 20.50.1-alpha.1
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 +1 -1
- package/dist/api/api.mjs +1 -1
- package/package.json +2 -2
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.
|
|
3
|
+
"version": "20.50.1-alpha.1+b0bc8e0346",
|
|
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": "
|
|
73
|
+
"gitHead": "b0bc8e034642a423b0309bfed8be51f7966aa5d6"
|
|
74
74
|
}
|