@theokit/sdk 4.15.3 → 4.15.4

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/eval.js CHANGED
@@ -16276,7 +16276,11 @@ async function loadDriver(filePath) {
16276
16276
  betterSqliteCause = cause;
16277
16277
  }
16278
16278
  try {
16279
- const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? import('sqlite'));
16279
+ const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? Promise.resolve(
16280
+ process.getBuiltinModule?.("node:sqlite") ?? (() => {
16281
+ throw new Error("node:sqlite built-in unavailable (Node < 22.3)");
16282
+ })()
16283
+ ));
16280
16284
  return adaptNodeSqlite(new mod.DatabaseSync(filePath));
16281
16285
  } catch (nodeSqliteCause) {
16282
16286
  const b = betterSqliteCause instanceof Error ? betterSqliteCause.message : String(betterSqliteCause);