or3-provider-sqlite 0.0.6 → 0.0.7
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/module.json +1 -1
- package/dist/runtime/server/db/kysely.js +2 -12
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -243,14 +243,7 @@ async function importRuntimeModule(moduleName) {
|
|
|
243
243
|
return imported;
|
|
244
244
|
}
|
|
245
245
|
async function importCloudflareWorkersModule() {
|
|
246
|
-
|
|
247
|
-
/* @vite-ignore */
|
|
248
|
-
"cloudflare:workers"
|
|
249
|
-
);
|
|
250
|
-
if (!isRecord(imported)) {
|
|
251
|
-
throw new Error("cloudflare:workers did not export an object.");
|
|
252
|
-
}
|
|
253
|
-
return imported;
|
|
246
|
+
return importRuntimeModule("cloudflare:workers");
|
|
254
247
|
}
|
|
255
248
|
function isRecord(value) {
|
|
256
249
|
return typeof value === "object" && value !== null;
|
|
@@ -277,10 +270,7 @@ async function createBetterSqliteDatabase(path) {
|
|
|
277
270
|
async function createBunSqliteDatabase(path) {
|
|
278
271
|
let imported;
|
|
279
272
|
try {
|
|
280
|
-
imported = await
|
|
281
|
-
/* @vite-ignore */
|
|
282
|
-
"bun:sqlite"
|
|
283
|
-
);
|
|
273
|
+
imported = await importRuntimeModule("bun:sqlite");
|
|
284
274
|
} catch (error) {
|
|
285
275
|
throw new Error(
|
|
286
276
|
"OR3_SQLITE_DRIVER=bun requires Bun and its built-in bun:sqlite module.",
|