@evolu/nodejs 2.2.1 → 2.3.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.
|
@@ -36,12 +36,16 @@ const createNodeJsRelayWithDeps = (deps) => async ({ port = 443, name = SimpleNa
|
|
|
36
36
|
return sqlite;
|
|
37
37
|
const depsWithSqlite = { ...deps, sqlite: sqlite.value };
|
|
38
38
|
if (!dbFileExists) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
39
|
+
{
|
|
40
|
+
const result = createBaseSqliteStorageTables(depsWithSqlite);
|
|
41
|
+
if (!result.ok)
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
{
|
|
45
|
+
const result = createRelayStorageTables(depsWithSqlite);
|
|
46
|
+
if (!result.ok)
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const storage = createRelaySqliteStorage(depsWithSqlite)({
|
|
47
51
|
onStorageError: log.storageError,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evolu/nodejs",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "Evolu for Node.js",
|
|
5
5
|
"author": "Daniel Steigerwald <daniel@steigerwald.cz>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"shx": "^0.4.0",
|
|
31
31
|
"typescript": "^5.9.2",
|
|
32
32
|
"vitest": "^4.0.4",
|
|
33
|
-
"@evolu/common": "7.
|
|
33
|
+
"@evolu/common": "7.3.0",
|
|
34
34
|
"@evolu/tsconfig": "0.0.2"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@evolu/common": "^7.
|
|
37
|
+
"@evolu/common": "^7.3.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
40
40
|
"node": ">=22.0.0"
|
package/src/local-first/Relay.ts
CHANGED
|
@@ -87,11 +87,14 @@ const createNodeJsRelayWithDeps =
|
|
|
87
87
|
const depsWithSqlite = { ...deps, sqlite: sqlite.value };
|
|
88
88
|
|
|
89
89
|
if (!dbFileExists) {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
{
|
|
91
|
+
const result = createBaseSqliteStorageTables(depsWithSqlite);
|
|
92
|
+
if (!result.ok) return result;
|
|
93
|
+
}
|
|
94
|
+
{
|
|
95
|
+
const result = createRelayStorageTables(depsWithSqlite);
|
|
96
|
+
if (!result.ok) return result;
|
|
97
|
+
}
|
|
95
98
|
}
|
|
96
99
|
|
|
97
100
|
const storage = createRelaySqliteStorage(depsWithSqlite)({
|