@tursodatabase/database
Advanced tools
+19
-0
@@ -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" | ||
| } | ||
| } |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
54884
0.96%1099
1.76%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed