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.7-beta.1 to 7.5.0-beta.0

deps/sqlite3/sqlite3.c

11

deps/symlink.js

@@ -6,12 +6,15 @@ 'use strict';

const dest = process.argv[2];
const source = path.resolve(path.sep, process.argv[3]);
const source = path.resolve(path.sep, process.argv[3] || path.join(__dirname, 'sqlite3'));
const filenames = process.argv.slice(4).map(str => path.basename(str));
/*
This creates symlinks inside the <$2> directory, linking to the SQLite3
amalgamation files inside the directory specified by the absolute path <$3>.
This creates symlinks inside the <$2> directory, linking to files inside the
directory specified by the absolute path <$3>. If no path <$3> is provided,
the default path of "./deps/sqlite3" is used. The basenames of the files to
link are specified by <$4...>.
*/
for (const filename of ['sqlite3.c', 'sqlite3.h']) {
for (const filename of filenames) {
fs.accessSync(path.join(source, filename));
fs.symlinkSync(path.join(source, filename), path.join(dest, filename), 'file');
}

@@ -5,7 +5,5 @@ 'use strict';

const util = require('./util');
const SqliteError = require('./sqlite-error');
const {
Database: CPPDatabase,
setErrorConstructor,
} = require('bindings')('better_sqlite3.node');
let DEFAULT_ADDON;

@@ -39,2 +37,3 @@ function Database(filenameGiven, options) {

const verbose = 'verbose' in options ? options.verbose : null;
const nativeBindingPath = 'nativeBinding' in options ? options.nativeBinding : null;

@@ -46,3 +45,16 @@ // Validate interpreted options

if (verbose != null && typeof verbose !== 'function') throw new TypeError('Expected the "verbose" option to be a function');
if (nativeBindingPath != null && typeof nativeBindingPath !== 'string') throw new TypeError('Expected the "nativeBinding" option to be a string');
// Load the native addon
let addon;
if (nativeBindingPath == null) {
addon = DEFAULT_ADDON || (DEFAULT_ADDON = require('bindings')('better_sqlite3.node'));
} else {
addon = require(path.resolve(nativeBindingPath).replace(/(\.node)?$/, '.node'));
}
if (!addon.isInitialized) {
addon.setErrorConstructor(SqliteError);
addon.isInitialized = true;
}
// Make sure the specified directory exists

@@ -54,3 +66,3 @@ if (!anonymous && !fs.existsSync(path.dirname(filename))) {

Object.defineProperties(this, {
[util.cppdb]: { value: new CPPDatabase(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
[util.cppdb]: { value: new addon.Database(filename, filenameGiven, anonymous, readonly, fileMustExist, timeout, verbose || null, buffer || null) },
...wrappers.getters,

@@ -77,2 +89,1 @@ });

module.exports = Database;
setErrorConstructor(require('./sqlite-error'));

@@ -15,4 +15,3 @@ 'use strict';

Error.captureStackTrace(this, SqliteError);
descriptor.value = code;
Object.defineProperty(this, 'code', descriptor);
this.code = code;
}

@@ -19,0 +18,0 @@ Object.setPrototypeOf(SqliteError, Error);

{
"name": "better-sqlite3-multiple-ciphers",
"version": "7.4.7-beta.1",
"version": "7.5.0-beta.0",
"description": "better-sqlite3 with multiple-cipher encryption support",
"homepage": "https://github.com/m4heshd/better-sqlite3-multiple-ciphers",
"author": "Mahesh Bandara Wijerathna (m4heshd) <m4heshd@gmail.com>",
"main": "lib/index.js",
"repository": {

@@ -12,6 +11,12 @@ "type": "git",

},
"main": "lib/index.js",
"files": [
"binding.gyp",
"src/*.[ch]pp",
"lib/**",
"deps/**"
],
"dependencies": {
"bindings": "^1.5.0",
"prebuild-install": "^7.0.0",
"tar": "^6.1.11"
"prebuild-install": "^7.0.0"
},

@@ -56,2 +61,3 @@ "devDependencies": {

"sqlcipher",
"sqlite3multipleciphers",
"encryption",

@@ -58,0 +64,0 @@ "transactions",

@@ -25,3 +25,3 @@ # better-sqlite3-multiple-ciphers

- ### Beta
- **better-sqlite3-multiple-ciphers** - [`7.4.7-beta.1`](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers/v/7.4.7-beta.1)
- **better-sqlite3-multiple-ciphers** - [`7.5.0-beta.0`](https://www.npmjs.com/package/better-sqlite3-multiple-ciphers/v/7.5.0-beta.0)
- **SQLite** - [`3.37.2`](https://www.sqlite.org/draft/releaselog/3_37_2.html)

@@ -28,0 +28,0 @@ - **SQLite3 Multiple Ciphers** - [`1.3.7`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.3.7)

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

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