Socket
Socket
Sign inDemoInstall

better-sqlite3-multiple-ciphers

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-sqlite3-multiple-ciphers - npm Package Compare versions

Comparing version 7.4.5 to 7.4.6-beta.0

12

docs/compilation.md
# Custom configuration
If you want to use a customized version of [SQLite3](https://www.sqlite.org) with `better-sqlite3`, you can do so by specifying the directory of your [custom amalgamation](https://www.sqlite.org/amalgamation.html) during installation.
If you want to use a customized version of [SQLite3](https://www.sqlite.org) with `better-sqlite3-multiple-ciphers`, you can do so by specifying the directory of your [custom amalgamation](https://www.sqlite.org/amalgamation.html) during installation.
```bash
npm install better-sqlite3 --build-from-source --sqlite3=/path/to/sqlite-amalgamation
npm install better-sqlite3-multiple-ciphers --build-from-source --sqlite3=/path/to/sqlite-amalgamation
```
However, if you simply run `npm install` while `better-sqlite3` is listed as a dependency in your `package.json`, the required flags above will *not* be applied. Therefore, it's recommended that you remove `better-sqlite3` from your dependency list, and instead add a [`preinstall` script](https://docs.npmjs.com/misc/scripts) like the one shown below.
However, if you simply run `npm install` while `better-sqlite3-multiple-ciphers` is listed as a dependency in your `package.json`, the required flags above will *not* be applied. Therefore, it's recommended that you remove `better-sqlite3-multiple-ciphers` from your dependency list, and instead add a [`preinstall` script](https://docs.npmjs.com/misc/scripts) like the one shown below.

@@ -14,3 +14,3 @@ ```json

"scripts": {
"preinstall": "npm install better-sqlite3@'^7.0.0' --no-save --build-from-source --sqlite3=\"$(pwd)/sqlite-amalgamation\""
"preinstall": "npm install better-sqlite3-multiple-ciphers@'^7.0.0' --no-save --build-from-source --sqlite3=\"$(pwd)/sqlite-amalgamation\""
}

@@ -24,3 +24,3 @@ }

If you're creating a package that relies on a custom build of `better-sqlite3`, you can follow these steps to get started.
If you're creating a package that relies on a custom build of `better-sqlite3-multiple-ciphers`, you can follow these steps to get started.

@@ -39,3 +39,3 @@ 1. Download the SQLite3 source code from [their website](https://sqlite.com/download.html) (e.g., `sqlite-amalgamation-1234567.zip`)

By default, this distribution currently uses SQLite3 **version 3.36.0** with the following [compilation options](https://www.sqlite.org/compile.html):
By default, this distribution currently uses SQLite3 **version 3.37.0** with the following [compilation options](https://www.sqlite.org/compile.html):

@@ -42,0 +42,0 @@ ```

{
"name": "better-sqlite3-multiple-ciphers",
"version": "7.4.5",
"version": "7.4.6-beta.0",
"description": "better-sqlite3 with multiple-cipher encryption support",

@@ -38,11 +38,11 @@ "homepage": "https://github.com/m4heshd/better-sqlite3-multiple-ciphers",

"lzz": "lzz -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz",
"release:patch": "npm --no-git-tag-version version patch",
"release:minor": "npm --no-git-tag-version version minor",
"release:major": "npm --no-git-tag-version version major",
"release:patch:beta": "npm --no-git-tag-version --preid=beta version prepatch",
"release:minor:beta": "npm --no-git-tag-version --preid=beta version preminor",
"release:major:beta": "npm --no-git-tag-version --preid=beta version premajor",
"release:prerelease:beta": "npm --no-git-tag-version --preid=beta version prerelease",
"publish": "npm publish",
"publish:beta": "npm publish --tag beta"
"bump:patch": "npm --no-git-tag-version version patch",
"bump:minor": "npm --no-git-tag-version version minor",
"bump:major": "npm --no-git-tag-version version major",
"bump:patch:beta": "npm --no-git-tag-version --preid=beta version prepatch",
"bump:minor:beta": "npm --no-git-tag-version --preid=beta version preminor",
"bump:major:beta": "npm --no-git-tag-version --preid=beta version premajor",
"bump:prerelease:beta": "npm --no-git-tag-version --preid=beta version prerelease",
"release": "npm publish",
"release:beta": "npm publish --tag beta"
},

@@ -49,0 +49,0 @@ "license": "MIT",

# better-sqlite3-multiple-ciphers
<a href="https://www.npmjs.com/package/better-sqlite3-multiple-ciphers">
<img src="https://img.shields.io/npm/v/better-sqlite3-multiple-ciphers?logo=npm&color=cc3838&style=for-the-badge" alt="NPM Version">
</a>
<a href="https://www.npmjs.com/package/better-sqlite3-multiple-ciphers">
<img src="https://img.shields.io/npm/dt/better-sqlite3-multiple-ciphers?logo=DocuSign&logoColor=FFF&color=2757c4&style=for-the-badge" alt="Downloads">
</a>
[![NPM version](https://img.shields.io/npm/v/better-sqlite3-multiple-ciphers?logo=npm&color=cc3838&style=for-the-badge)](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers)
[![Downloads](https://img.shields.io/npm/dt/better-sqlite3-multiple-ciphers?logo=DocuSign&logoColor=FFF&color=2757c4&style=for-the-badge)](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers)
[![Build status](https://img.shields.io/github/workflow/status/m4heshd/better-sqlite3-multiple-ciphers/test?label=Build%2FTest&logo=github&style=for-the-badge)](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/actions/workflows/test.yml)
####
The fastest and simplest library for SQLite3 in Node.js. This particular fork supports multiple-cipher encryption using [SQLite3MultipleCiphers](https://github.com/utelle/SQLite3MultipleCiphers). Check [usage](#usage) to learn more.

@@ -20,2 +15,3 @@

- Worker thread support *(for large/slow queries)*
- Encryption support using multiple algorithms

@@ -30,5 +26,5 @@ ## Current versions

- ### Beta
- **better-sqlite3-multiple-ciphers** - [`7.4.5-beta.0`](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers/v/7.4.5-beta.0)
- **SQLite** - `3.36.0`
- **SQLite3 Multiple Ciphers** - `1.3.4`
- **better-sqlite3-multiple-ciphers** - [`7.4.6-beta.0`](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers/v/7.4.6-beta.0)
- **SQLite** - `3.37.0`
- **SQLite3 Multiple Ciphers** - `1.3.5`

@@ -45,2 +41,6 @@ ## Help this project stay strong! &#128170;

You can also support me (the maintainer of this fork) by buying me a coffee. 😊
[![ko-fi](https://i.ibb.co/QmQknmc/ko-fi.png)](https://ko-fi.com/m4heshd)
## How other libraries compare

@@ -47,0 +47,0 @@

@@ -20,12 +20,7 @@ 'use strict';

});
/*
Temporarily commenting out this test since having `SQLITE_DEBUG` enabled
throws an assertion failure exception if an incorrect passphrase is used.
It cannot be caught in JS which leads to the whole test process being broken.
*/
// it('should not allow access with an incorrect passphrase', () => {
// this.db = new Database(util.current());
// this.db.pragma(`key='false_passphrase'`);
// expect(() => this.db.prepare('SELECT * FROM user')).to.throw(Database.SqliteError);
// });
it('should not allow access with an incorrect passphrase', () => {
this.db = new Database(util.current());
this.db.pragma(`key='false_passphrase'`);
expect(() => this.db.prepare('SELECT * FROM user')).to.throw(Database.SqliteError);
});
it('should allow access with the correct passphrase', () => {

@@ -32,0 +27,0 @@ this.db = new Database(util.current());

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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