dexie-cloud-addon 4.0.1-beta.36 → 4.0.1-beta.37

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.
@@ -101,7 +101,7 @@ function __spreadArray$1(to, from, pack) {
101
101
  *
102
102
  * ==========================================================================
103
103
  *
104
- * Version 4.0.1-beta.36, Mon Apr 17 2023
104
+ * Version 4.0.1-beta.37, Mon Apr 17 2023
105
105
  *
106
106
  * https://dexie.org
107
107
  *
@@ -3751,7 +3751,10 @@ function encodeIdsForServer(schema, currentUser, changes) {
3751
3751
  function cloneChange(change, rewriteValues) {
3752
3752
  // clone on demand:
3753
3753
  return Object.assign(Object.assign({}, change), { muts: rewriteValues
3754
- ? change.muts.map(function (m) { return (Object.assign(Object.assign({}, m), { keys: m.keys.slice(), values: m.values.slice() })); })
3754
+ ? change.muts.map(function (m) {
3755
+ return (m.type === 'insert' || m.type === 'upsert') && m.values
3756
+ ? Object.assign(Object.assign({}, m), { keys: m.keys.slice(), values: m.values.slice() }) : Object.assign(Object.assign({}, m), { keys: m.keys.slice() });
3757
+ })
3755
3758
  : change.muts.map(function (m) { return (Object.assign(Object.assign({}, m), { keys: m.keys.slice() })); }) });
3756
3759
  }
3757
3760
  //import {BisonWebStreamReader} from "dreambase-library/dist/typeson-simplified/BisonWebStreamReader";
@@ -7039,7 +7042,7 @@ function dexieCloud(dexie) {
7039
7042
  });
7040
7043
  var syncComplete = new Subject();
7041
7044
  dexie.cloud = {
7042
- version: '4.0.1-beta.36',
7045
+ version: '4.0.1-beta.37',
7043
7046
  options: Object.assign({}, DEFAULT_OPTIONS),
7044
7047
  schema: null,
7045
7048
  get currentUserId() {
@@ -7378,7 +7381,7 @@ function dexieCloud(dexie) {
7378
7381
  });
7379
7382
  }
7380
7383
  }
7381
- dexieCloud.version = '4.0.1-beta.36';
7384
+ dexieCloud.version = '4.0.1-beta.37';
7382
7385
  Dexie.Cloud = dexieCloud;
7383
7386
 
7384
7387
  export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId };