From 9f7771ddbf406d1260f433eb95c1be1d69c894cf Mon Sep 17 00:00:00 2001 From: maralorn Date: Wed, 11 Mar 2026 12:34:55 +0100 Subject: [PATCH] fix(replication): Propagate errors on 'paused' from underlying replication to sync event --- packages/node_modules/pouchdb-replication/src/sync.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/node_modules/pouchdb-replication/src/sync.js b/packages/node_modules/pouchdb-replication/src/sync.js index e6beef9972..bb64a20729 100644 --- a/packages/node_modules/pouchdb-replication/src/sync.js +++ b/packages/node_modules/pouchdb-replication/src/sync.js @@ -60,18 +60,18 @@ class Sync extends EE { doc }); }; - const pushPaused = () => { + const pushPaused = (err) => { this.pushPaused = true; /* istanbul ignore if */ if (this.pullPaused) { - this.emit('paused'); + this.emit('paused',err); } }; - const pullPaused = () => { + const pullPaused = (err) => { this.pullPaused = true; /* istanbul ignore if */ if (this.pushPaused) { - this.emit('paused'); + this.emit('paused',err); } }; const pushActive = () => {