New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bun-sqlite-key-value

Package Overview
Dependencies
Maintainers
0
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bun-sqlite-key-value - npm Package Compare versions

Comparing version 1.4.3 to 1.4.4

2

package.json
{
"name": "bun-sqlite-key-value",
"version": "1.4.3",
"version": "1.4.4",
"author": {

@@ -5,0 +5,0 @@ "name": "Gerold Penz",

@@ -64,2 +64,3 @@ # Bun SQLite Key Value

Pass an empty string (`""`) or `":memory:"` or `undefined` for an in-memory database.
If the database folder does not exist, it will be created.

@@ -70,5 +71,7 @@ ### options (optional)

Open the database as read-only (default: false).
The database folder will not be created.
`create?: boolean`:
Allow creating a new database (default: true)
If the database folder does not exist, it will be created.

@@ -75,0 +78,0 @@ `readwrite?: boolean`:

@@ -75,7 +75,7 @@ import { Database, type Statement } from "bun:sqlite"

// Create database directory
if (filename && filename.toLowerCase() !== ":memory:" && dbOptions.create && !dbOptions.readonly) {
if (filename?.length && filename.toLowerCase() !== ":memory:" && dbOptions.create && !dbOptions.readonly) {
const dbDir = dirname(resolve(filename))
if (!existsSync(dbDir)) {
console.debug(`The "${dbDir}" folder is created.`)
mkdirSync(dbDir)
console.log(`The "${dbDir}" folder is created.`)
mkdirSync(dbDir, {recursive: true})
}

@@ -82,0 +82,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc