Socket
Socket
Sign inDemoInstall

better-sqlite3-multiple-ciphers

Package Overview
Dependencies
37
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.5.3-beta.0 to 8.6.0

11

deps/copy.js

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

for (const { filename, optional } of files) {
if (optional && !fs.existsSync(path.join(source, filename))) {
const sourceFilepath = path.join(source, filename);
const destFilepath = path.join(dest, filename);
if (optional && !fs.existsSync(sourceFilepath)) {
continue;
}
fs.accessSync(path.join(source, filename));
fs.copyFileSync(path.join(source, filename), path.join(dest, filename));
fs.accessSync(sourceFilepath);
fs.mkdirSync(path.dirname(destFilepath), { recursive: true });
fs.copyFileSync(sourceFilepath, destFilepath);
}

@@ -36,3 +36,3 @@ 'use strict';

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

@@ -44,11 +44,17 @@ // 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');
if (nativeBinding != null && typeof nativeBinding !== 'string' && typeof nativeBinding !== 'object') throw new TypeError('Expected the "nativeBinding" option to be a string or addon object');
// Load the native addon
let addon;
if (nativeBindingPath == null) {
if (nativeBinding == null) {
addon = DEFAULT_ADDON || (DEFAULT_ADDON = require('bindings')('better_sqlite3.node'));
} else if (typeof nativeBinding === 'string') {
// See <https://webpack.js.org/api/module-variables/#__non_webpack_require__-webpack-specific>
const requireFunc = typeof __non_webpack_require__ === 'function' ? __non_webpack_require__ : require;
addon = requireFunc(path.resolve(nativeBinding).replace(/(\.node)?$/, '.node'));
} else {
addon = require(path.resolve(nativeBindingPath).replace(/(\.node)?$/, '.node'));
// See <https://github.com/WiseLibs/better-sqlite3/issues/972>
addon = nativeBinding;
}
if (!addon.isInitialized) {

@@ -55,0 +61,0 @@ addon.setErrorConstructor(SqliteError);

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

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

"bindings": "^1.5.0",
"prebuild-install": "^7.1.0"
"prebuild-install": "^7.1.1"
},
"devDependencies": {
"@types/node": "20.4.9",
"chai": "^4.3.6",
"cli-color": "^2.0.2",
"fs-extra": "^10.1.0",
"chai": "^4.3.8",
"cli-color": "^2.0.3",
"fs-extra": "^11.1.1",
"mocha": "^10.2.0",
"node-gyp": "8.4.1",
"node-gyp": "9.4.0",
"nodemark": "^0.3.0",
"prebuild": "^11.0.4",
"sqlite": "^4.1.1",
"sqlite3": "^5.0.8"
"sqlite": "^5.0.1",
"sqlite3": "^5.1.6"
},

@@ -37,0 +37,0 @@ "overrides": {

@@ -20,6 +20,6 @@ # better-sqlite3-multiple-ciphers

- ### Stable
- **better-sqlite3-multiple-ciphers** - [`8.5.2`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v8.5.2)
- **better-sqlite3** - [`8.5.2`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v8.5.2)
- **SQLite** - [`3.42.0`](https://www.sqlite.org/releaselog/3_42_0.html)
- **SQLite3 Multiple Ciphers** - [`1.6.3`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.6.3)
- **better-sqlite3-multiple-ciphers** - [`8.6.0`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v8.6.0)
- **better-sqlite3** - [`8.6.0`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v8.6.0)
- **SQLite** - [`3.43.0`](https://www.sqlite.org/releaselog/3_43_0.html)
- **SQLite3 Multiple Ciphers** - [`1.6.4`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.6.4)

@@ -26,0 +26,0 @@ - ### Beta

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc