socket-function 1.1.45 → 1.1.46

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/package.json +1 -1
  2. package/src/batching.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "socket-function",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
package/src/batching.ts CHANGED
@@ -337,8 +337,8 @@ export function retryFunctional<T extends AnyFunction>(fnc: T, config?: {
337
337
  throw e;
338
338
  }
339
339
  if (retries < 0) throw e;
340
- console.warn(`Retrying ${name}, due to error ${String(e.stack)}`);
341
340
  retries--;
341
+ console.warn(`Retrying ${name} (${retries} left), due to error ${String(e.stack)}`);
342
342
  let curCount = maxRetries - retries;
343
343
  await delay(minDelay * expFactor ** curCount);
344
344
  return runFnc(args, retries);