bindings/javascript: Rename @tursodatabase/database/sync to compat

We already have a `@tursodatabase/sync` package so let's make the name of the
better-sqlite3 compatibility API package stand out.
This commit is contained in:
Pekka Enberg
2025-08-19 13:20:34 +03:00
parent 7c2bdac7ca
commit 692323ae9b
3 changed files with 3 additions and 3 deletions

View File

@@ -516,7 +516,7 @@ const connect = async (path, options = {}) => {
}
const provider = process.env.PROVIDER;
if (provider === "turso") {
const { Database, SqliteError }= await import("@tursodatabase/database/sync");
const { Database, SqliteError }= await import("@tursodatabase/database/compat");
const db = new Database(path, options);
return [db, path, provider, SqliteError];
}