@chronark/zod-bird
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -74,5 +74,3 @@ "use strict"; | ||
if (res.status === 429 || res.status >= 500) { | ||
const delay = 1e3 + i ** 2 * 50; | ||
console.warn(`retrying ${url.toString()} in ${delay}ms`); | ||
await new Promise((r) => setTimeout(r, delay)); | ||
await new Promise((r) => setTimeout(r, 1e3 + i ** 2 * 50)); | ||
continue; | ||
@@ -79,0 +77,0 @@ } |
{ | ||
"name": "@chronark/zod-bird", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -52,5 +52,3 @@ import { z } from "zod"; | ||
if (res.status === 429 || res.status >= 500) { | ||
const delay = 1000 + i ** 2 * 50; | ||
console.warn(`retrying ${url.toString()} in ${delay}ms`); | ||
await new Promise((r) => setTimeout(r, delay)); | ||
await new Promise((r) => setTimeout(r, 1000 + i ** 2 * 50)); | ||
continue; | ||
@@ -57,0 +55,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
60388
813