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