Socket
Socket
Sign inDemoInstall

better-sqlite-pool

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.0 to 0.3.1

.github/workflows/node.js.yml

23

index.js

@@ -6,3 +6,3 @@ "use strict";

const BetterSqlite3 = require("better-sqlite3");
const pick = require("lodash/pick");
const isV7 = parseInt(require("better-sqlite3/package.json").version) >= 7;
const releaseEvent = "release";

@@ -117,9 +117,16 @@

_rawCreateConnection() {
return new BetterSqlite3(this.path, pick(this, [
"memory",
"readonly",
"fileMustExist",
"timeout",
"verbose"
]));
const options = {
"readonly": this.readonly,
"fileMustExist": this.fileMustExist,
"timeout": this.timeout,
"verbose": this.verbose,
};
if (isV7) {
options[":memory"] = this.memory;
} else {
options["memory"] = this.memory;
}
return new BetterSqlite3(this.path, options);
}

@@ -126,0 +133,0 @@

{
"name": "better-sqlite-pool",
"version": "0.3.0",
"version": "0.3.1",
"description": "A connection pool for better-sqlite3.",

@@ -11,5 +11,5 @@ "main": "index.js",

"author": {
"name": "Ayon Lee",
"name": "A-yon Lee",
"email": "i@hyurl.com",
"url": "http://hyurl.com"
"url": "https://github.com/hyurl"
},

@@ -25,6 +25,2 @@ "repository": {

"license": "MIT",
"dependencies": {
"better-sqlite3": "^6.0.1",
"lodash": "^4.17.15"
},
"engines": {

@@ -34,5 +30,5 @@ "node": ">=8.0"

"devDependencies": {
"@types/better-sqlite3": "^5.4.0",
"@types/lodash": "^4.14.149"
"@types/better-sqlite3": "^5.4.1",
"better-sqlite3": "^7.4.0"
}
}

@@ -9,2 +9,11 @@ # Better-SQLite-Pool

NOTE: Since v0.3.1, this package no longer includes `better-sqlite3` by default,
you have to install it explicitly.
## Install
```sh
npm i better-sqlite3 better-sqlite-pool
```
## Example

@@ -91,2 +100,2 @@

you can still run the driver though, if it's not so much important, just leave
the error alone.
the error alone.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc