cry-synced-db-client 0.1.111 → 0.1.112

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 -4
  2. package/package.json +2 -1
package/dist/index.js CHANGED
@@ -3615,7 +3615,7 @@ var SyncedDb = class _SyncedDb {
3615
3615
  }
3616
3616
  this.safeCallback(this.onDexieSyncEnd, { calledFrom: "setSyncOnlyTheseCollections", collectionCount: newlyAllowed.length, totalItems, durationMs: Date.now() - dexieStart });
3617
3617
  }
3618
- if (newlyAllowed.length > 0 && this.connectionManager.canSync() && this.leaderElection.isLeader()) {
3618
+ if (newlyAllowed.length > 0 && this.connectionManager.canSync()) {
3619
3619
  this.sync("setSyncOnlyTheseCollections").catch(() => {
3620
3620
  });
3621
3621
  }
@@ -4261,9 +4261,6 @@ var SyncedDb = class _SyncedDb {
4261
4261
  }
4262
4262
  return;
4263
4263
  }
4264
- if (!this.leaderElection.isLeader()) {
4265
- return;
4266
- }
4267
4264
  if (this.syncLock) return;
4268
4265
  this.syncLock = true;
4269
4266
  this.syncing = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cry-synced-db-client",
3
- "version": "0.1.111",
3
+ "version": "0.1.112",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -37,6 +37,7 @@
37
37
  "dependencies": {
38
38
  "cry-db": "^2.4.24",
39
39
  "cry-helpers": "^2.1.193",
40
+ "cry-synced-db-client": "^0.1.111",
40
41
  "msgpackr": "^1.11.9",
41
42
  "notepack": "^0.0.2",
42
43
  "notepack.io": "^3.0.1",