document-drive 1.0.0-alpha.86 → 1.0.0-alpha.87

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-drive",
3
- "version": "1.0.0-alpha.86",
3
+ "version": "1.0.0-alpha.87",
4
4
  "license": "AGPL-3.0-only",
5
5
  "type": "module",
6
6
  "module": "./src/index.ts",
@@ -1294,7 +1294,13 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
1294
1294
  return undefined;
1295
1295
  }
1296
1296
  } catch (error) {
1297
- console.error(error); // TODO error
1297
+ if (
1298
+ !(error as Error).message.includes(
1299
+ `Document with id ${id} not found`
1300
+ )
1301
+ ) {
1302
+ console.error(error);
1303
+ }
1298
1304
  return undefined;
1299
1305
  }
1300
1306
  }
@@ -1537,7 +1543,7 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
1537
1543
  // new changes originating from this document drive server
1538
1544
  const source: StrandUpdateSource = newOp
1539
1545
  ? { type: 'local' }
1540
- : options?.source ?? { type: 'local' };
1546
+ : (options?.source ?? { type: 'local' });
1541
1547
 
1542
1548
  // update listener cache
1543
1549
  this.listenerStateManager
@@ -1849,7 +1855,7 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
1849
1855
  // new changes originating from this document drive server
1850
1856
  const source: StrandUpdateSource = newOp
1851
1857
  ? { type: 'local' }
1852
- : options?.source ?? { type: 'local' };
1858
+ : (options?.source ?? { type: 'local' });
1853
1859
 
1854
1860
  this.listenerStateManager
1855
1861
  .updateSynchronizationRevisions(