cry-synced-db-client 0.1.1 → 0.1.2

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1046,14 +1046,14 @@ class DexieDb extends Dexie {
1046
1046
  if (existing) {
1047
1047
  await table.update(key, {
1048
1048
  ...data,
1049
- _dirty: true,
1049
+ _dirty: data._dirty ?? true,
1050
1050
  _localChangedAt: new Date
1051
1051
  });
1052
1052
  } else {
1053
1053
  await table.put({
1054
1054
  _id: id,
1055
1055
  ...data,
1056
- _dirty: true,
1056
+ _dirty: data._dirty ?? true,
1057
1057
  _localChangedAt: new Date
1058
1058
  });
1059
1059
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cry-synced-db-client",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",