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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "or3-provider-sqlite",
3
3
  "configKey": "or3-provider-sqlite",
4
- "version": "0.0.6",
4
+ "version": "0.0.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -243,14 +243,7 @@ async function importRuntimeModule(moduleName) {
243
243
  return imported;
244
244
  }
245
245
  async function importCloudflareWorkersModule() {
246
- const imported = await import(
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 import(
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.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "or3-provider-sqlite",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Saluana/or3-provider-sqlite.git"