document-drive 1.0.0-alpha.85 → 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 +14 -14
- package/src/server/index.ts +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-drive",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.87",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./src/index.ts",
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
"document-model-libs": "^1.57.0"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
|
-
"@prisma/client": "5.
|
|
41
|
+
"@prisma/client": "5.17.0",
|
|
42
42
|
"localforage": "^1.10.0",
|
|
43
|
-
"redis": "^4.6.
|
|
44
|
-
"sequelize": "^6.
|
|
43
|
+
"redis": "^4.6.15",
|
|
44
|
+
"sequelize": "^6.37.3",
|
|
45
45
|
"sqlite3": "^5.1.7"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"exponential-backoff": "^3.1.1",
|
|
49
|
-
"graphql": "^16.
|
|
49
|
+
"graphql": "^16.9.0",
|
|
50
50
|
"graphql-request": "^6.1.0",
|
|
51
51
|
"json-stringify-deterministic": "^1.0.12",
|
|
52
52
|
"nanoevents": "^9.0.0",
|
|
@@ -56,29 +56,29 @@
|
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@commitlint/cli": "^18.6.1",
|
|
58
58
|
"@commitlint/config-conventional": "^18.6.3",
|
|
59
|
-
"@prisma/client": "5.
|
|
59
|
+
"@prisma/client": "5.17.0",
|
|
60
60
|
"@semantic-release/changelog": "^6.0.3",
|
|
61
61
|
"@semantic-release/git": "^10.0.1",
|
|
62
62
|
"@total-typescript/ts-reset": "^0.5.1",
|
|
63
|
-
"@types/node": "^20.
|
|
63
|
+
"@types/node": "^20.14.11",
|
|
64
64
|
"@types/uuid": "^9.0.8",
|
|
65
65
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
66
66
|
"@typescript-eslint/parser": "^6.21.0",
|
|
67
|
-
"@vitest/coverage-v8": "^1.
|
|
67
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
68
68
|
"document-model": "^1.7.0",
|
|
69
|
-
"document-model-libs": "^1.
|
|
69
|
+
"document-model-libs": "^1.70.0",
|
|
70
70
|
"eslint": "^8.57.0",
|
|
71
71
|
"eslint-config-prettier": "^9.1.0",
|
|
72
72
|
"fake-indexeddb": "^5.0.2",
|
|
73
73
|
"localforage": "^1.10.0",
|
|
74
|
-
"msw": "^2.
|
|
75
|
-
"prettier": "^3.
|
|
74
|
+
"msw": "^2.3.1",
|
|
75
|
+
"prettier": "^3.3.3",
|
|
76
76
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
77
|
-
"prisma": "^5.
|
|
78
|
-
"semantic-release": "^23.
|
|
77
|
+
"prisma": "^5.17.0",
|
|
78
|
+
"semantic-release": "^23.1.1",
|
|
79
79
|
"sequelize": "^6.37.2",
|
|
80
80
|
"sqlite3": "^5.1.7",
|
|
81
|
-
"typescript": "^5.
|
|
81
|
+
"typescript": "^5.5.3",
|
|
82
82
|
"vitest": "^1.6.0"
|
|
83
83
|
},
|
|
84
84
|
"packageManager": "pnpm@9.1.4+sha256.30a1801ac4e723779efed13a21f4c39f9eb6c9fbb4ced101bce06b422593d7c9"
|
package/src/server/index.ts
CHANGED
|
@@ -1294,7 +1294,13 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
|
|
|
1294
1294
|
return undefined;
|
|
1295
1295
|
}
|
|
1296
1296
|
} catch (error) {
|
|
1297
|
-
|
|
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(
|