durable-db 0.2.2 → 0.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.
- package/dist/vite/durableDb.js +8 -2
- package/package.json +13 -13
package/dist/vite/durableDb.js
CHANGED
|
@@ -1061,7 +1061,10 @@ function durableDb(options = {}) {
|
|
|
1061
1061
|
registryImport: state.options.registryImport
|
|
1062
1062
|
});
|
|
1063
1063
|
if (result && parsed.actions.length > 0 && state.config.command === "serve") state.invalidateDOModule();
|
|
1064
|
-
return result
|
|
1064
|
+
return result ? {
|
|
1065
|
+
code: result.code,
|
|
1066
|
+
map: result.map
|
|
1067
|
+
} : null;
|
|
1065
1068
|
}
|
|
1066
1069
|
const parsed = parseDatabaseFile(cleanId, code, { aliases: state.aliases });
|
|
1067
1070
|
if (parsed.actions.length === 0) return null;
|
|
@@ -1080,7 +1083,10 @@ function durableDb(options = {}) {
|
|
|
1080
1083
|
registryImport: state.options.registryImport
|
|
1081
1084
|
});
|
|
1082
1085
|
if (result && state.config.command === "serve") state.invalidateDOModule();
|
|
1083
|
-
return result
|
|
1086
|
+
return result ? {
|
|
1087
|
+
code: result.code,
|
|
1088
|
+
map: result.map
|
|
1089
|
+
} : null;
|
|
1084
1090
|
},
|
|
1085
1091
|
buildEnd() {
|
|
1086
1092
|
if (state.actions.size > 0) debugVite("Discovered %d action(s)", state.actions.size);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "durable-db",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/eagerpatch/durable-db.git"
|
|
@@ -78,15 +78,15 @@
|
|
|
78
78
|
"changeset": "changeset"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@babel/generator": "^
|
|
82
|
-
"@babel/parser": "^
|
|
83
|
-
"@babel/traverse": "^
|
|
84
|
-
"@babel/types": "^
|
|
81
|
+
"@babel/generator": "^8.0.6",
|
|
82
|
+
"@babel/parser": "^8.0.7",
|
|
83
|
+
"@babel/traverse": "^8.0.7",
|
|
84
|
+
"@babel/types": "^8.0.6",
|
|
85
85
|
"@outerbase/browsable-durable-object": "^0.1.0",
|
|
86
86
|
"arktype": "^2.2.8",
|
|
87
87
|
"commander": "^15.0.0",
|
|
88
88
|
"drizzle-kit": "^0.31.11",
|
|
89
|
-
"drizzle-orm": "^0.
|
|
89
|
+
"drizzle-orm": "^0.45.4",
|
|
90
90
|
"esbuild": "^0.27.1",
|
|
91
91
|
"kysely": "^0.29.6",
|
|
92
92
|
"libsql": "^0.5.0",
|
|
@@ -96,21 +96,21 @@
|
|
|
96
96
|
"vite": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@babel/generator": "^
|
|
100
|
-
"@babel/parser": "^
|
|
101
|
-
"@babel/traverse": "^
|
|
102
|
-
"@babel/types": "^
|
|
99
|
+
"@babel/generator": "^8.0.6",
|
|
100
|
+
"@babel/parser": "^8.0.7",
|
|
101
|
+
"@babel/traverse": "^8.0.7",
|
|
102
|
+
"@babel/types": "^8.0.6",
|
|
103
103
|
"@changesets/cli": "^3.0.3",
|
|
104
|
-
"@cloudflare/vitest-pool-workers": "^0.23.0",
|
|
105
104
|
"@cloudflare/workers-types": "^5.20261016.1",
|
|
106
105
|
"@types/babel__generator": "^7.6.8",
|
|
107
106
|
"@types/babel__traverse": "^7.20.6",
|
|
108
107
|
"@types/node": "^26.6.5",
|
|
109
|
-
"drizzle-kit": "^0.
|
|
108
|
+
"drizzle-kit": "^0.31.11",
|
|
110
109
|
"esbuild": "^0.27.1",
|
|
111
110
|
"tsdown": "^0.23.1",
|
|
112
111
|
"typescript": "^7.0.2",
|
|
113
112
|
"vite": "^8.3.4",
|
|
114
|
-
"vitest": "^5.0.5"
|
|
113
|
+
"vitest": "^5.0.5",
|
|
114
|
+
"@cloudflare/vitest-plugin": "^1.4.4"
|
|
115
115
|
}
|
|
116
116
|
}
|