Comparing version 2.5.2 to 2.5.3
@@ -0,0 +0,0 @@ import { dirname, join, default as pathModule } from 'path'; |
@@ -0,0 +0,0 @@ import { createRequire } from 'module'; |
@@ -65,2 +65,3 @@ import { Compression, getAddress, arch, fs, path as pathModule, lmdbError, EventEmitter, MsgpackrEncoder, Env, Dbi, tmpdir, os, nativeAddon } from './native.js'; | ||
0x20000, // Otherwise we start small with 128KB | ||
safeRestore: process.env.LMDB_RESTORE == 'safe', | ||
}, options); | ||
@@ -104,3 +105,4 @@ if (options.asyncTransactionOrder == 'strict') { | ||
(options.usePreviousSnapshot ? 0x2000000 : 0) | | ||
(options.remapChunks ? 0x4000000 : 0); | ||
(options.remapChunks ? 0x4000000 : 0) | | ||
(options.safeRestore ? 0x8000000 : 0); | ||
@@ -107,0 +109,0 @@ let env = new Env(); |
{ | ||
"name": "lmdb", | ||
"author": "Kris Zyp", | ||
"version": "2.5.2", | ||
"version": "2.5.3", | ||
"description": "Simple, efficient, scalable, high-performance LMDB interface", | ||
@@ -95,9 +95,9 @@ "license": "MIT", | ||
"optionalDependencies": { | ||
"@lmdb/lmdb-darwin-arm64": "2.5.2", | ||
"@lmdb/lmdb-darwin-x64": "2.5.2", | ||
"@lmdb/lmdb-linux-arm": "2.5.2", | ||
"@lmdb/lmdb-linux-arm64": "2.5.2", | ||
"@lmdb/lmdb-linux-x64": "2.5.2", | ||
"@lmdb/lmdb-win32-x64": "2.5.2" | ||
"@lmdb/lmdb-darwin-arm64": "2.5.3", | ||
"@lmdb/lmdb-darwin-x64": "2.5.3", | ||
"@lmdb/lmdb-linux-arm": "2.5.3", | ||
"@lmdb/lmdb-linux-arm64": "2.5.3", | ||
"@lmdb/lmdb-linux-x64": "2.5.3", | ||
"@lmdb/lmdb-win32-x64": "2.5.3" | ||
} | ||
} |
@@ -0,0 +0,0 @@ import { RangeIterable } from './util/RangeIterable.js'; |
@@ -446,2 +446,3 @@ [![license](https://img.shields.io/badge/license-MIT-brightgreen)](LICENSE) | ||
* `noSubdir` - Treat `path` as a filename instead of directory (this is the default if the path appears to end with an extension and has '.' in it) | ||
* `safeRestore` - When using `overlappingSync`, lmdb-js will use the latest committed transaction if the OS's boot id hasn't changed, but this will force lmdb-store to always use the latest safely _flushed_ transaction even if the boot id hasn't changed. | ||
* `readOnly` - Self-descriptive. | ||
@@ -448,0 +449,0 @@ * `mapAsync` - Not recommended, commits are already performed in a separate thread (asyncronous to JS), and this prevents accurate notification of when flushes finish. |
@@ -0,0 +0,0 @@ const SKIP = {}; |
@@ -0,0 +0,0 @@ import { getAddress, write, compress } from './native.js'; |
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5237
537
2291181
18
178
0
3
0