@nxtedition/lib 19.0.0 → 19.0.1
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/couch.js +6 -1
- package/package.json +1 -1
package/couch.js
CHANGED
|
@@ -351,7 +351,12 @@ export function makeCouch(opts) {
|
|
|
351
351
|
throw err
|
|
352
352
|
} else if (typeof retry === 'function') {
|
|
353
353
|
const retryState = { since: params.since }
|
|
354
|
-
Object.assign(
|
|
354
|
+
Object.assign(
|
|
355
|
+
retryState,
|
|
356
|
+
await retry(err, retryCount++, retryState, { signal }, () =>
|
|
357
|
+
delay(err, retryCount, { signal }),
|
|
358
|
+
),
|
|
359
|
+
)
|
|
355
360
|
params.since = retryState.since ?? 0
|
|
356
361
|
} else {
|
|
357
362
|
await delay(err, retryCount, { signal })
|