@uniformdev/next-app-router 20.49.4-alpha.2 → 20.49.5-alpha.10

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/cache.js CHANGED
@@ -330,7 +330,7 @@ async function handleRateLimits(callApi) {
330
330
  }
331
331
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
332
332
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
333
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
333
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
334
334
  backoffRetriesLeft -= 1;
335
335
  }
336
336
  return response;
package/dist/cache.mjs CHANGED
@@ -317,7 +317,7 @@ async function handleRateLimits(callApi) {
317
317
  }
318
318
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
319
319
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
320
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
320
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
321
321
  backoffRetriesLeft -= 1;
322
322
  }
323
323
  return response;
package/dist/component.js CHANGED
@@ -385,7 +385,7 @@ async function handleRateLimits(callApi) {
385
385
  }
386
386
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
387
387
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
388
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
388
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
389
389
  backoffRetriesLeft -= 1;
390
390
  }
391
391
  return response;
@@ -370,7 +370,7 @@ async function handleRateLimits(callApi) {
370
370
  }
371
371
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
372
372
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
373
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
373
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
374
374
  backoffRetriesLeft -= 1;
375
375
  }
376
376
  return response;
package/dist/handler.js CHANGED
@@ -329,7 +329,7 @@ async function handleRateLimits(callApi) {
329
329
  }
330
330
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
331
331
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
332
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
332
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
333
333
  backoffRetriesLeft -= 1;
334
334
  }
335
335
  return response;
package/dist/handler.mjs CHANGED
@@ -314,7 +314,7 @@ async function handleRateLimits(callApi) {
314
314
  }
315
315
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
316
316
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
317
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
317
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
318
318
  backoffRetriesLeft -= 1;
319
319
  }
320
320
  return response;
package/dist/index.esm.js CHANGED
@@ -320,7 +320,7 @@ async function handleRateLimits(callApi) {
320
320
  }
321
321
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
322
322
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
323
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
323
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
324
324
  backoffRetriesLeft -= 1;
325
325
  }
326
326
  return response;
package/dist/index.js CHANGED
@@ -347,7 +347,7 @@ async function handleRateLimits(callApi) {
347
347
  }
348
348
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
349
349
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
350
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
350
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
351
351
  backoffRetriesLeft -= 1;
352
352
  }
353
353
  return response;
package/dist/index.mjs CHANGED
@@ -320,7 +320,7 @@ async function handleRateLimits(callApi) {
320
320
  }
321
321
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
322
322
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
323
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
323
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
324
324
  backoffRetriesLeft -= 1;
325
325
  }
326
326
  return response;
@@ -525,7 +525,7 @@ async function handleRateLimits(callApi) {
525
525
  }
526
526
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
527
527
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
528
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
528
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
529
529
  backoffRetriesLeft -= 1;
530
530
  }
531
531
  return response;
@@ -510,7 +510,7 @@ async function handleRateLimits(callApi) {
510
510
  }
511
511
  const base = Math.pow(2, backoffRetries - backoffRetriesLeft) * 333;
512
512
  const backoffWait = base + Math.round(Math.random() * (base / 2)) * (Math.random() > 0.5 ? 1 : -1);
513
- await new Promise((resolve) => setTimeout(resolve, resetWait + backoffWait));
513
+ await new Promise((resolve) => setTimeout(resolve, Math.max(0, resetWait + backoffWait)));
514
514
  backoffRetriesLeft -= 1;
515
515
  }
516
516
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/next-app-router",
3
- "version": "20.49.4-alpha.2+0201693aca",
3
+ "version": "20.49.5-alpha.10+97590818af",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "scripts": {
6
6
  "build": "tsup",
@@ -99,12 +99,12 @@
99
99
  "vitest": "3.2.4"
100
100
  },
101
101
  "dependencies": {
102
- "@uniformdev/canvas-react": "20.49.4-alpha.2+0201693aca",
103
- "@uniformdev/next-app-router-client": "20.49.4-alpha.2+0201693aca",
104
- "@uniformdev/next-app-router-shared": "20.49.4-alpha.2+0201693aca",
105
- "@uniformdev/redirect": "20.49.4-alpha.2+0201693aca",
106
- "@uniformdev/richtext": "20.49.4-alpha.2+0201693aca",
107
- "@uniformdev/webhooks": "20.49.4-alpha.2+0201693aca",
102
+ "@uniformdev/canvas-react": "20.49.5-alpha.10+97590818af",
103
+ "@uniformdev/next-app-router-client": "20.49.5-alpha.10+97590818af",
104
+ "@uniformdev/next-app-router-shared": "20.49.5-alpha.10+97590818af",
105
+ "@uniformdev/redirect": "20.49.5-alpha.10+97590818af",
106
+ "@uniformdev/richtext": "20.49.5-alpha.10+97590818af",
107
+ "@uniformdev/webhooks": "20.49.5-alpha.10+97590818af",
108
108
  "@vercel/functions": "^2.2.2",
109
109
  "encoding": "^0.1.13",
110
110
  "server-only": "^0.0.1",
@@ -121,5 +121,5 @@
121
121
  "publishConfig": {
122
122
  "access": "public"
123
123
  },
124
- "gitHead": "0201693aca0f20b06ffaaef22decc086ec730035"
124
+ "gitHead": "97590818aff0ababfb057278ba981112e219bf43"
125
125
  }