Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@tursodatabase/database

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tursodatabase/database - npm Package Compare versions

Comparing version
0.7.0-pre.1
to
0.7.0-pre.2
+19
-0
dist/promise.test.js

@@ -287,1 +287,20 @@ import { unlinkSync } from "node:fs";

});
test('transaction.concurrent uses BEGIN CONCURRENT', async () => {
const db = await connect(':memory:');
const originalExec = db.exec;
const calls = [];
db.exec = async (sql) => {
calls.push(sql);
};
try {
const txn = db.transaction(async () => {
calls.push('body');
}).concurrent;
await txn();
expect(calls).toEqual(['BEGIN CONCURRENT', 'body', 'COMMIT']);
}
finally {
db.exec = originalExec;
await db.close();
}
});
+6
-6
{
"name": "@tursodatabase/database",
"version": "0.7.0-pre.1",
"version": "0.7.0-pre.2",
"repository": {

@@ -50,3 +50,3 @@ "type": "git",

"dependencies": {
"@tursodatabase/database-common": "^0.7.0-pre.1"
"@tursodatabase/database-common": "^0.7.0-pre.2"
},

@@ -57,7 +57,7 @@ "imports": {

"optionalDependencies": {
"@tursodatabase/database-linux-x64-gnu": "0.7.0-pre.1",
"@tursodatabase/database-win32-x64-msvc": "0.7.0-pre.1",
"@tursodatabase/database-darwin-arm64": "0.7.0-pre.1",
"@tursodatabase/database-linux-arm64-gnu": "0.7.0-pre.1"
"@tursodatabase/database-linux-x64-gnu": "0.7.0-pre.2",
"@tursodatabase/database-win32-x64-msvc": "0.7.0-pre.2",
"@tursodatabase/database-darwin-arm64": "0.7.0-pre.2",
"@tursodatabase/database-linux-arm64-gnu": "0.7.0-pre.2"
}
}