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.
@@ -3189,7 +3189,10 @@
3189
3189
  function cloneChange(change, rewriteValues) {
3190
3190
  // clone on demand:
3191
3191
  return Object.assign(Object.assign({}, change), { muts: rewriteValues
3192
- ? change.muts.map((m) => (Object.assign(Object.assign({}, m), { keys: m.keys.slice(), values: m.values.slice() })))
3192
+ ? change.muts.map((m) => {
3193
+ return (m.type === 'insert' || m.type === 'upsert') && m.values
3194
+ ? Object.assign(Object.assign({}, m), { keys: m.keys.slice(), values: m.values.slice() }) : Object.assign(Object.assign({}, m), { keys: m.keys.slice() });
3195
+ })
3193
3196
  : change.muts.map((m) => (Object.assign(Object.assign({}, m), { keys: m.keys.slice() }))) });
3194
3197
  }
3195
3198
 
@@ -6020,7 +6023,7 @@
6020
6023
  });
6021
6024
  const syncComplete = new rxjs.Subject();
6022
6025
  dexie.cloud = {
6023
- version: '4.0.1-beta.36',
6026
+ version: '4.0.1-beta.37',
6024
6027
  options: Object.assign({}, DEFAULT_OPTIONS),
6025
6028
  schema: null,
6026
6029
  get currentUserId() {
@@ -6281,7 +6284,7 @@
6281
6284
  });
6282
6285
  }
6283
6286
  }
6284
- dexieCloud.version = '4.0.1-beta.36';
6287
+ dexieCloud.version = '4.0.1-beta.37';
6285
6288
  Dexie__default["default"].Cloud = dexieCloud;
6286
6289
 
6287
6290
  // In case the SW lives for a while, let it reuse already opened connections: