This is an automated email from the ASF dual-hosted git repository.
jan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pouchdb.git
The following commit(s) were added to refs/heads/master by this push:
new b36628f39 fix(replication): Propagate errors on 'paused' from
underlying replication to sync event
b36628f39 is described below
commit b36628f3968e6cf994848870e96e8cb45e5723ce
Author: maralorn <[email protected]>
AuthorDate: Wed Mar 11 12:34:55 2026 +0100
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 e6beef997..bb64a2072 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 = () => {