@resolveio/client-lib-core 1.0.11 → 1.1.0

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.
@@ -1165,11 +1165,11 @@ class SocketManagerService {
1165
1165
  type: 'collectionUpdate'
1166
1166
  });
1167
1167
  update.data[2] = messageId;
1168
- if (update.type === 'updateDocument' && update.oldData) {
1168
+ if (update.type === 'updateDocument') {
1169
1169
  update.data[4] = 'updateDocumentOffline';
1170
1170
  update.data[0] = 'Offline - ' + update.data[0];
1171
1171
  }
1172
- else if (update.type === 'updateDocumentProps' && update.oldData) {
1172
+ else if (update.type === 'updateDocumentProps') {
1173
1173
  update.data[4] = 'updateDocumentPropsOffline';
1174
1174
  update.data[0] = 'Offline - ' + update.data[0];
1175
1175
  }
@@ -1337,7 +1337,6 @@ class SocketManagerService {
1337
1337
  this._offline.insertDocument('collectionUpdate', {
1338
1338
  type: 'insert',
1339
1339
  data: data,
1340
- oldData: null,
1341
1340
  date: new Date()
1342
1341
  });
1343
1342
  let res = this._offline.insertDocument(data[5], data[6]);
@@ -1352,7 +1351,6 @@ class SocketManagerService {
1352
1351
  this._offline.insertDocument('collectionUpdate', {
1353
1352
  type: 'updateDocument',
1354
1353
  data: data,
1355
- oldData: this._offline.findOne(data[5], data[6]._id),
1356
1354
  date: new Date()
1357
1355
  });
1358
1356
  if (this._offline.findOne(data[5], { _id: data[6]._id })) {
@@ -1372,7 +1370,6 @@ class SocketManagerService {
1372
1370
  this._offline.insertDocument('collectionUpdate', {
1373
1371
  type: 'updateDocumentProps',
1374
1372
  data: data,
1375
- oldData: this._offline.findOne(data[5], data[6]),
1376
1373
  date: new Date()
1377
1374
  });
1378
1375
  if (this._offline.findOne(data[5], { _id: data[6] })) {
@@ -1392,7 +1389,6 @@ class SocketManagerService {
1392
1389
  this._offline.insertDocument('collectionUpdate', {
1393
1390
  type: 'removeDocument',
1394
1391
  data: data,
1395
- oldData: null,
1396
1392
  date: new Date()
1397
1393
  });
1398
1394
  if (this._offline.findOne(data[5], { _id: data[6] })) {