cry-synced-db-client 0.1.118 → 0.1.119

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 +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4405,7 +4405,9 @@ var SyncedDb = class _SyncedDb {
4405
4405
  const result = {};
4406
4406
  for (const [collectionName] of this.collections) {
4407
4407
  const dirtyItems = await this.dexieDb.getDirty(collectionName);
4408
- result[collectionName] = dirtyItems;
4408
+ if (dirtyItems.length > 0) {
4409
+ result[collectionName] = dirtyItems;
4410
+ }
4409
4411
  }
4410
4412
  return result;
4411
4413
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cry-synced-db-client",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",