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.
@@ -108,7 +108,7 @@
108
108
  *
109
109
  * ==========================================================================
110
110
  *
111
- * Version 4.0.1-beta.36, Mon Apr 17 2023
111
+ * Version 4.0.1-beta.37, Mon Apr 17 2023
112
112
  *
113
113
  * https://dexie.org
114
114
  *
@@ -3758,7 +3758,10 @@
3758
3758
  function cloneChange(change, rewriteValues) {
3759
3759
  // clone on demand:
3760
3760
  return Object.assign(Object.assign({}, change), { muts: rewriteValues
3761
- ? change.muts.map(function (m) { return (Object.assign(Object.assign({}, m), { keys: m.keys.slice(), values: m.values.slice() })); })
3761
+ ? change.muts.map(function (m) {
3762
+ return (m.type === 'insert' || m.type === 'upsert') && m.values
3763
+ ? Object.assign(Object.assign({}, m), { keys: m.keys.slice(), values: m.values.slice() }) : Object.assign(Object.assign({}, m), { keys: m.keys.slice() });
3764
+ })
3762
3765
  : change.muts.map(function (m) { return (Object.assign(Object.assign({}, m), { keys: m.keys.slice() })); }) });
3763
3766
  }
3764
3767
  //import {BisonWebStreamReader} from "dreambase-library/dist/typeson-simplified/BisonWebStreamReader";
@@ -7046,7 +7049,7 @@
7046
7049
  });
7047
7050
  var syncComplete = new rxjs.Subject();
7048
7051
  dexie.cloud = {
7049
- version: '4.0.1-beta.36',
7052
+ version: '4.0.1-beta.37',
7050
7053
  options: Object.assign({}, DEFAULT_OPTIONS),
7051
7054
  schema: null,
7052
7055
  get currentUserId() {
@@ -7385,7 +7388,7 @@
7385
7388
  });
7386
7389
  }
7387
7390
  }
7388
- dexieCloud.version = '4.0.1-beta.36';
7391
+ dexieCloud.version = '4.0.1-beta.37';
7389
7392
  Dexie__default["default"].Cloud = dexieCloud;
7390
7393
 
7391
7394
  exports["default"] = dexieCloud;