@plur-ai/core 0.8.2 → 0.8.3

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2601,7 +2601,7 @@ async function withAsyncLock(filePath, fn, options) {
2601
2601
  if (attempt === maxRetries) {
2602
2602
  throw new Error(`Failed to acquire lock on ${filePath} after ${maxRetries} retries`);
2603
2603
  }
2604
- const delay = baseDelay * Math.pow(2, attempt);
2604
+ const delay = Math.min(baseDelay * Math.pow(2, attempt), 5e3);
2605
2605
  await sleep(delay);
2606
2606
  }
2607
2607
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plur-ai/core",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",