koztv-blog-tools 1.2.9 → 1.2.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/index.js CHANGED
@@ -333,7 +333,7 @@ Do not add any explanations or notes.`
333
333
  let lastError = null;
334
334
  for (let attempt = 0; attempt < maxRetries; attempt++) {
335
335
  if (attempt > 0) {
336
- const delay = 3e3 * Math.pow(2, attempt - 1);
336
+ const delay = 1e3 * Math.pow(2, attempt - 1);
337
337
  await new Promise((r) => setTimeout(r, delay));
338
338
  }
339
339
  const response = await fetch(endpoint, {
@@ -770,7 +770,7 @@ async function processPost(post, options, exportDir) {
770
770
  } catch (error) {
771
771
  onProgress?.(` Error translating to ${targetLang}: ${error.message}`);
772
772
  }
773
- await new Promise((r) => setTimeout(r, 2e3));
773
+ await new Promise((r) => setTimeout(r, 500));
774
774
  }
775
775
  } else {
776
776
  const defaultLang = translate?.sourceLang || "ru";
package/dist/index.mjs CHANGED
@@ -276,7 +276,7 @@ Do not add any explanations or notes.`
276
276
  let lastError = null;
277
277
  for (let attempt = 0; attempt < maxRetries; attempt++) {
278
278
  if (attempt > 0) {
279
- const delay = 3e3 * Math.pow(2, attempt - 1);
279
+ const delay = 1e3 * Math.pow(2, attempt - 1);
280
280
  await new Promise((r) => setTimeout(r, delay));
281
281
  }
282
282
  const response = await fetch(endpoint, {
@@ -713,7 +713,7 @@ async function processPost(post, options, exportDir) {
713
713
  } catch (error) {
714
714
  onProgress?.(` Error translating to ${targetLang}: ${error.message}`);
715
715
  }
716
- await new Promise((r) => setTimeout(r, 2e3));
716
+ await new Promise((r) => setTimeout(r, 500));
717
717
  }
718
718
  } else {
719
719
  const defaultLang = translate?.sourceLang || "ru";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koztv-blog-tools",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "Shared utilities for Telegram-based blog sites",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",