better-sqlite3-multiple-ciphers 7.4.5 → 7.4.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,13 +1,8 @@
1
1
  # better-sqlite3-multiple-ciphers
2
2
 
3
- <a href="https://www.npmjs.com/package/better-sqlite3-multiple-ciphers">
4
- <img src="https://img.shields.io/npm/v/better-sqlite3-multiple-ciphers?logo=npm&color=cc3838&style=for-the-badge" alt="NPM Version">
5
- </a>
6
- <a href="https://www.npmjs.com/package/better-sqlite3-multiple-ciphers">
7
- <img src="https://img.shields.io/npm/dt/better-sqlite3-multiple-ciphers?logo=DocuSign&logoColor=FFF&color=2757c4&style=for-the-badge" alt="Downloads">
8
- </a>
9
-
10
- ####
3
+ [![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)
4
+ [![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)
5
+ [![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)
11
6
 
12
7
  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.
13
8
 
@@ -17,6 +12,7 @@ The fastest and simplest library for SQLite3 in Node.js. This particular fork su
17
12
  - Support for user-defined functions, aggregates, virtual tables, and extensions
18
13
  - 64-bit integers *(invisible until you need them)*
19
14
  - Worker thread support *(for large/slow queries)*
15
+ - Encryption support using multiple algorithms
20
16
 
21
17
  ## Current versions
22
18
 
@@ -26,9 +22,9 @@ The fastest and simplest library for SQLite3 in Node.js. This particular fork su
26
22
  - **SQLite3 Multiple Ciphers** - `1.3.4`
27
23
 
28
24
  - ### Beta
29
- - **better-sqlite3-multiple-ciphers** - [`7.4.5-beta.0`](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers/v/7.4.5-beta.0)
30
- - **SQLite** - `3.36.0`
31
- - **SQLite3 Multiple Ciphers** - `1.3.4`
25
+ - **better-sqlite3-multiple-ciphers** - [`7.4.6-beta.0`](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers/v/7.4.6-beta.0)
26
+ - **SQLite** - `3.37.0`
27
+ - **SQLite3 Multiple Ciphers** - `1.3.5`
32
28
 
33
29
  ## Help this project stay strong! &#128170;
34
30
 
@@ -40,6 +36,10 @@ The fastest and simplest library for SQLite3 in Node.js. This particular fork su
40
36
 
41
37
  Also head over to [SQLite3MultipleCiphers](https://github.com/utelle/SQLite3MultipleCiphers) repo and give some support to the developer to keep this very useful extension alive.
42
38
 
39
+ You can also support me (the maintainer of this fork) by buying me a coffee. 😊
40
+
41
+ [![ko-fi](https://i.ibb.co/QmQknmc/ko-fi.png)](https://ko-fi.com/m4heshd)
42
+
43
43
  ## How other libraries compare
44
44
 
45
45
  | |select 1 row &nbsp;`get()`&nbsp;|select 100 rows &nbsp;&nbsp;`all()`&nbsp;&nbsp;|select 100 rows `iterate()` 1-by-1|insert 1 row `run()`|insert 100 rows in a transaction|
package/deps/setup.ps1 CHANGED
@@ -2,7 +2,7 @@
2
2
  $ErrorActionPreference = "Stop"
3
3
 
4
4
  # SQLite Info
5
- $SQLITEMC_VER = "v1.3.4"
5
+ $SQLITEMC_VER = "v1.3.5"
6
6
  $API_URL = "https://api.github.com/repos/utelle/SQLite3MultipleCiphers/releases/tags/" + $SQLITEMC_VER
7
7
 
8
8
  # Paths
Binary file
@@ -1,17 +1,17 @@
1
1
  # Custom configuration
2
2
 
3
- 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.
3
+ 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.
4
4
 
5
5
  ```bash
6
- npm install better-sqlite3 --build-from-source --sqlite3=/path/to/sqlite-amalgamation
6
+ npm install better-sqlite3-multiple-ciphers --build-from-source --sqlite3=/path/to/sqlite-amalgamation
7
7
  ```
8
8
 
9
- 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.
9
+ 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.
10
10
 
11
11
  ```json
12
12
  {
13
13
  "scripts": {
14
- "preinstall": "npm install better-sqlite3@'^7.0.0' --no-save --build-from-source --sqlite3=\"$(pwd)/sqlite-amalgamation\""
14
+ "preinstall": "npm install better-sqlite3-multiple-ciphers@'^7.0.0' --no-save --build-from-source --sqlite3=\"$(pwd)/sqlite-amalgamation\""
15
15
  }
16
16
  }
17
17
  ```
@@ -20,7 +20,7 @@ Your amalgamation directory must contain `sqlite3.c` and `sqlite3.h`. Any desire
20
20
 
21
21
  ### Step by step example
22
22
 
23
- If you're creating a package that relies on a custom build of `better-sqlite3`, you can follow these steps to get started.
23
+ 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.
24
24
 
25
25
  1. Download the SQLite3 source code from [their website](https://sqlite.com/download.html) (e.g., `sqlite-amalgamation-1234567.zip`)
26
26
  2. Unzip the compressed archive
@@ -34,7 +34,7 @@ If you're using a SQLite3 encryption extension that is a drop-in replacement for
34
34
 
35
35
  # Bundled configuration
36
36
 
37
- By default, this distribution currently uses SQLite3 **version 3.36.0** with the following [compilation options](https://www.sqlite.org/compile.html):
37
+ By default, this distribution currently uses SQLite3 **version 3.37.0** with the following [compilation options](https://www.sqlite.org/compile.html):
38
38
 
39
39
  ```
40
40
  SQLITE_DQS=0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-sqlite3-multiple-ciphers",
3
- "version": "7.4.5",
3
+ "version": "7.4.6-beta.0",
4
4
  "description": "better-sqlite3 with multiple-cipher encryption support",
5
5
  "homepage": "https://github.com/m4heshd/better-sqlite3-multiple-ciphers",
6
6
  "author": "Mahesh Bandara Wijerathna (m4heshd) <m4heshd@gmail.com>",
@@ -35,15 +35,15 @@
35
35
  "download": "bash ./deps/download.sh",
36
36
  "setup": "powershell ./deps/setup.ps1",
37
37
  "lzz": "lzz -hx hpp -sx cpp -k BETTER_SQLITE3 -d -hl -sl -e ./src/better_sqlite3.lzz",
38
- "release:patch": "npm --no-git-tag-version version patch",
39
- "release:minor": "npm --no-git-tag-version version minor",
40
- "release:major": "npm --no-git-tag-version version major",
41
- "release:patch:beta": "npm --no-git-tag-version --preid=beta version prepatch",
42
- "release:minor:beta": "npm --no-git-tag-version --preid=beta version preminor",
43
- "release:major:beta": "npm --no-git-tag-version --preid=beta version premajor",
44
- "release:prerelease:beta": "npm --no-git-tag-version --preid=beta version prerelease",
45
- "publish": "npm publish",
46
- "publish:beta": "npm publish --tag beta"
38
+ "bump:patch": "npm --no-git-tag-version version patch",
39
+ "bump:minor": "npm --no-git-tag-version version minor",
40
+ "bump:major": "npm --no-git-tag-version version major",
41
+ "bump:patch:beta": "npm --no-git-tag-version --preid=beta version prepatch",
42
+ "bump:minor:beta": "npm --no-git-tag-version --preid=beta version preminor",
43
+ "bump:major:beta": "npm --no-git-tag-version --preid=beta version premajor",
44
+ "bump:prerelease:beta": "npm --no-git-tag-version --preid=beta version prerelease",
45
+ "release": "npm publish",
46
+ "release:beta": "npm publish --tag beta"
47
47
  },
48
48
  "license": "MIT",
49
49
  "keywords": [
@@ -17,16 +17,11 @@ describe('Encryption using default method (Sqleet)', () => {
17
17
  this.db = new Database(util.current());
18
18
  expect(() => this.db.prepare('SELECT * FROM user')).to.throw(Database.SqliteError);
19
19
  });
20
- /*
21
- Temporarily commenting out this test since having `SQLITE_DEBUG` enabled
22
- throws an assertion failure exception if an incorrect passphrase is used.
23
- It cannot be caught in JS which leads to the whole test process being broken.
24
- */
25
- // it('should not allow access with an incorrect passphrase', () => {
26
- // this.db = new Database(util.current());
27
- // this.db.pragma(`key='false_passphrase'`);
28
- // expect(() => this.db.prepare('SELECT * FROM user')).to.throw(Database.SqliteError);
29
- // });
20
+ it('should not allow access with an incorrect passphrase', () => {
21
+ this.db = new Database(util.current());
22
+ this.db.pragma(`key='false_passphrase'`);
23
+ expect(() => this.db.prepare('SELECT * FROM user')).to.throw(Database.SqliteError);
24
+ });
30
25
  it('should allow access with the correct passphrase', () => {
31
26
  this.db = new Database(util.current());
32
27
  this.db.pragma(`key='passphrase'`);