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

lmdb

Package Overview
Dependencies
Maintainers
3
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lmdb - npm Package Compare versions

Comparing version 2.7.4 to 2.7.5

4

native.js

@@ -5,6 +5,4 @@ import { dirname, join, default as pathModule } from 'path';

export let Env, Txn, Dbi, Compression, Cursor, getAddress, getBufferAddress, createBufferForAddress, clearKeptObjects, globalBuffer, setGlobalBuffer, arch, fs, os, onExit, tmpdir, lmdbError, path, EventEmitter, orderedBinary, MsgpackrEncoder, WeakLRUCache, setEnvMap, getEnvMap, getByBinary, detachBuffer, startRead, setReadCallback, write, position, iterate, prefetch, resetTxn, getCurrentValue, getCurrentShared, getStringByBinary, getSharedByBinary, getSharedBuffer, compress;
path = pathModule;
let dirName = (typeof __dirname == 'string' ? __dirname : // for bun, which doesn't have fileURLToPath
dirname(fileURLToPath(import.meta.url))).replace(/dist$/, ''); // for node, which doesn't have __dirname in ESM
let dirName = dirname(fileURLToPath(import.meta.url)).replace(/dist$/, '');
export let nativeAddon = loadNAPI(dirName);

@@ -11,0 +9,0 @@

@@ -5,8 +5,8 @@ import { createRequire } from 'module';

export { nativeAddon } from './native.js'
import { setFlagsFromString } from 'v8';
setRequire(createRequire(import.meta.url));
let require = createRequire(import.meta.url);
setRequire(require);
export let v8AccelerationEnabled = false
let versions = process.versions;
if (!versions.deno) {
if (!versions.deno && !process.isBun) {
let [ majorVersion, minorVersion ] = versions.node.split('.');

@@ -16,4 +16,5 @@ if (versions.v8 && +majorVersion == nativeAddon.version.nodeCompiledVersion) {

let fastApiCalls = (majorVersion == 17 || majorVersion == 18 || majorVersion == 16 && minorVersion > 8) && !process.env.DISABLE_TURBO_CALLS;
if (fastApiCalls)
setFlagsFromString('--turbo-fast-api-calls')
if (fastApiCalls) {
require('v8').setFlagsFromString('--turbo-fast-api-calls');
}
nativeAddon.enableDirectV8(v8Funcs, fastApiCalls);

@@ -20,0 +21,0 @@ Object.assign(nativeAddon, v8Funcs);

{
"name": "lmdb",
"author": "Kris Zyp",
"version": "2.7.4",
"version": "2.7.5",
"description": "Simple, efficient, scalable, high-performance LMDB interface",

@@ -83,3 +83,3 @@ "license": "MIT",

"node-addon-api": "^4.3.0",
"node-gyp-build-optional-packages": "5.0.5",
"node-gyp-build-optional-packages": "5.0.6",
"ordered-binary": "^1.4.0",

@@ -109,9 +109,9 @@ "weak-lru-cache": "^1.2.2"

"optionalDependencies": {
"@lmdb/lmdb-darwin-arm64": "2.7.4",
"@lmdb/lmdb-darwin-x64": "2.7.4",
"@lmdb/lmdb-linux-arm": "2.7.4",
"@lmdb/lmdb-linux-arm64": "2.7.4",
"@lmdb/lmdb-linux-x64": "2.7.4",
"@lmdb/lmdb-win32-x64": "2.7.4"
"@lmdb/lmdb-darwin-arm64": "2.7.5",
"@lmdb/lmdb-darwin-x64": "2.7.5",
"@lmdb/lmdb-linux-arm": "2.7.5",
"@lmdb/lmdb-linux-arm64": "2.7.5",
"@lmdb/lmdb-linux-x64": "2.7.5",
"@lmdb/lmdb-win32-x64": "2.7.5"
}
}
import { RangeIterable } from './util/RangeIterable.js';
import { getAddress, Cursor, Txn, orderedBinary, lmdbError, getByBinary, detachBuffer, setGlobalBuffer, prefetch, iterate, position as doPosition, resetTxn, getCurrentValue, getCurrentShared, getStringByBinary, globalBuffer, getSharedBuffer, startRead, setReadCallback } from './native.js';
import { getAddress, Cursor, Txn, orderedBinary, lmdbError, getByBinary, setGlobalBuffer, prefetch, iterate, position as doPosition, resetTxn, getCurrentValue, getCurrentShared, getStringByBinary, globalBuffer, getSharedBuffer, startRead, setReadCallback } from './native.js';
import { saveKey } from './keys.js';
import lmdb from "./index.js";
const IF_EXISTS = 3.542694326329068e-103;

@@ -6,0 +5,0 @@ const ITERATOR_DONE = { done: true, value: undefined };

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