Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sqlite3

Package Overview
Dependencies
Maintainers
9
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite3 - npm Package Compare versions

Comparing version 5.0.8 to 5.0.9

deps/sqlite-autoconf-3390100.tar.gz

2

package.json
{
"name": "sqlite3",
"description": "Asynchronous, non-blocking SQLite3 bindings",
"version": "5.0.8",
"version": "5.0.9",
"homepage": "https://github.com/TryGhost/node-sqlite3",

@@ -6,0 +6,0 @@ "author": {

@@ -20,3 +20,3 @@ # ⚙️ node-sqlite3

- Written in modern C++ and tested for memory leaks
- Bundles SQLite v3.38.4, or you can build using a local SQLite
- Bundles SQLite v3.39.1, or you can build using a local SQLite

@@ -27,3 +27,3 @@ # Installing

* (recommended) Latest package:
* (recommended) Latest published package:
```bash

@@ -126,24 +126,10 @@ npm install sqlite3

By default the node-gyp install will use `python` as part of the installation. A
different python executable can be specified on the command line.
## Custom file header (magic)
```bash
npm install --build-from-source --python=/usr/bin/python2
```
The default sqlite file header is "SQLite format 3". You can specify a different magic, though this will make standard tools and libraries unable to work with your files.
This uses the npm_config_python config, so values in .npmrc will be honoured:
```bash
python=/usr/bin/python2
npm install --build-from-source --sqlite_magic="MyCustomMagic15"
```
## Custom file header (magic)
The default sqlite file header is "SQLite format 3".
You can specify a different magic, though this will make standard tools and libraries unable to work with your files.
npm install --build-from-source --sqlite_magic="MyCustomMagic15"
Note that the magic *must* be exactly 15 characters long (16 bytes including null terminator).

@@ -155,3 +141,3 @@

To build node-sqlite3 for node-webkit:
To build `sqlite3` for node-webkit:

@@ -169,3 +155,3 @@ 1. Install [`nw-gyp`](https://github.com/rogerwang/nw-gyp) globally: `npm install nw-gyp -g` *(unless already installed)*

You can also run this command from within a `node-sqlite3` checkout:
You can also run this command from within a `sqlite3` checkout:

@@ -187,6 +173,5 @@ ```bash

For instructions for building sqlcipher see
[Building SQLCipher for node.js](https://coolaj86.com/articles/building-sqlcipher-for-node-js-on-raspberry-pi-2/)
For instructions on building SQLCipher, see [Building SQLCipher for Node.js](https://coolaj86.com/articles/building-sqlcipher-for-node-js-on-raspberry-pi-2/). Alternatively, you can install it with your local package manager.
To run node-sqlite3 against sqlcipher you need to compile from source by passing build options like:
To run against SQLCipher, you need to compile `sqlite3` from source by passing build options like:

@@ -199,4 +184,3 @@ ```bash

If your sqlcipher is installed in a custom location (if you compiled and installed it yourself),
you'll also need to to set some environment variables:
If your SQLCipher is installed in a custom location (if you compiled and installed it yourself), you'll need to set some environment variables:

@@ -209,3 +193,3 @@ ### On OS X with Homebrew

export LDFLAGS="-L`brew --prefix`/opt/sqlcipher/lib"
export CPPFLAGS="-I`brew --prefix`/opt/sqlcipher/include"
export CPPFLAGS="-I`brew --prefix`/opt/sqlcipher/include/sqlcipher"
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix`

@@ -231,5 +215,7 @@

Running sqlite3 through [electron-rebuild](https://github.com/electron/electron-rebuild) does not preserve the sqlcipher extension, so some additional flags are needed to make this build Electron compatible. Your `npm install sqlite3 --build-from-source` command needs these additional flags (be sure to replace the target version with the current Electron version you are working with):
Running `sqlite3` through [electron-rebuild](https://github.com/electron/electron-rebuild) does not preserve the SQLCipher extension, so some additional flags are needed to make this build Electron compatible. Your `npm install sqlite3 --build-from-source` command needs these additional flags (be sure to replace the target version with the current Electron version you are working with):
--runtime=electron --target=1.7.6 --dist-url=https://electronjs.org/headers
```bash
--runtime=electron --target=18.2.1 --dist-url=https://electronjs.org/headers
```

@@ -239,3 +225,3 @@ In the case of MacOS with Homebrew, the command should look like the following:

```bash
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix` --runtime=electron --target=1.7.6 --dist-url=https://electronjs.org/headers
npm install sqlite3 --build-from-source --sqlite_libname=sqlcipher --sqlite=`brew --prefix` --runtime=electron --target=18.2.1 --dist-url=https://electronjs.org/headers
```

@@ -242,0 +228,0 @@

Sorry, the diff of this file is not supported yet

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