crypto-database 2.4.468 → 2.5.2
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/crypto-database.darwin-arm64.node +0 -0
- package/crypto-database.darwin-x64.node +0 -0
- package/crypto-database.linux-x64-gnu.node +0 -0
- package/crypto-database.win32-x64-msvc.node +0 -0
- package/nedb-distro.js +12 -0
- package/nedbd-v2-linux-x64 +0 -0
- package/nedbd-v2-win-x64.exe +0 -0
- package/nedbd-v2.js +7 -0
- package/package.json +3 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/nedb-distro.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// crypto-database — distribution defaults.
|
|
3
|
+
//
|
|
4
|
+
// The verifiable v2/v3 distribution defaults to the content-addressed v3
|
|
5
|
+
// segment store (self-verifying objects; AS OF / TRACE time-travel). These
|
|
6
|
+
// defaults are applied by setting the engine's existing env knobs BEFORE the
|
|
7
|
+
// native addon opens any database — the engine reads them at open time.
|
|
8
|
+
//
|
|
9
|
+
// Set-if-unset: an explicit value always wins, so `NEDB_DAG_V3=0` opts out.
|
|
10
|
+
if (process.env.NEDB_DAG_V3 === undefined) process.env.NEDB_DAG_V3 = "1";
|
|
11
|
+
|
|
12
|
+
module.exports = require("./index.js");
|
package/nedbd-v2-linux-x64
CHANGED
|
Binary file
|
package/nedbd-v2-win-x64.exe
CHANGED
|
Binary file
|
package/nedbd-v2.js
CHANGED
|
@@ -68,9 +68,16 @@ function main() {
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
+
// crypto-database default: the verifiable v3 segment store. Injected into the
|
|
72
|
+
// daemon's env (the engine reads NEDB_DAG_V3 at database open). Set-if-unset,
|
|
73
|
+
// so an explicit NEDB_DAG_V3=0 (or --dag-v3) from the caller still wins.
|
|
74
|
+
const env = { ...process.env };
|
|
75
|
+
if (env.NEDB_DAG_V3 === undefined) env.NEDB_DAG_V3 = "1";
|
|
76
|
+
|
|
71
77
|
const child = spawn(binPath, process.argv.slice(2), {
|
|
72
78
|
stdio: "inherit",
|
|
73
79
|
windowsHide: false,
|
|
80
|
+
env,
|
|
74
81
|
});
|
|
75
82
|
|
|
76
83
|
child.on("error", (err) => {
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "crypto-database",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "NEDB — hash-chained, time-traveling, bi-temporal embedded database with Rust native core. SQL, Redis, MongoDB adapters. Causal Write Provenance. RESP2 wire protocol.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "nedb-distro.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"bin": {
|
|
8
8
|
"nedbd-v2": "./nedbd-v2.js",
|
|
9
9
|
"nedbdv2": "./nedbd-v2.js"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"nedb-distro.js",
|
|
12
13
|
"index.js",
|
|
13
14
|
"index.d.ts",
|
|
14
15
|
"nedbd-v2.js",
|