mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-19 15:05:47 +01:00
Merge 'bindings/javascript: Rename to ' from Pekka Enberg
We already have a `@tursodatabase/sync` package so let's make the name of the better-sqlite3 compatibility API package stand out. Closes #2667
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./dist/promise.js",
|
||||
"./sync": "./dist/sync.js"
|
||||
"./compat": "./dist/compat.js"
|
||||
},
|
||||
"files": [
|
||||
"browser.js",
|
||||
@@ -60,4 +60,4 @@
|
||||
"node": "./index.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user