@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/index.cjs CHANGED
@@ -1830,7 +1830,11 @@ async function loadDriver(filePath) {
1830
1830
  betterSqliteCause = cause;
1831
1831
  }
1832
1832
  try {
1833
- const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? import('sqlite'));
1833
+ const mod = await (driverLoaderOverrides?.nodeSqlite?.() ?? Promise.resolve(
1834
+ process.getBuiltinModule?.("node:sqlite") ?? (() => {
1835
+ throw new Error("node:sqlite built-in unavailable (Node < 22.3)");
1836
+ })()
1837
+ ));
1834
1838
  return adaptNodeSqlite(new mod.DatabaseSync(filePath));
1835
1839
  } catch (nodeSqliteCause) {
1836
1840
  const b = betterSqliteCause instanceof Error ? betterSqliteCause.message : String(betterSqliteCause);