Socket
Socket
Sign inDemoInstall

lmdb

Package Overview
Dependencies
19
Maintainers
3
Versions
168
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.9.0-timestamp.2 to 2.9.0-timestamp.3

3

native.js
import { dirname, join, default as pathModule } from 'path';
import { fileURLToPath } from 'url';
import loadNAPI from 'node-gyp-build-optional-packages';
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;
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, directWrite;
path = pathModule;

@@ -64,2 +64,3 @@ let dirName = dirname(fileURLToPath(import.meta.url)).replace(/dist$/, '');

resetTxn = externals.resetTxn;
directWrite = externals.directWrite;
getCurrentValue = externals.getCurrentValue;

@@ -66,0 +67,0 @@ getCurrentShared = externals.getCurrentShared;

{
"name": "lmdb",
"author": "Kris Zyp",
"version": "2.9.0-timestamp.2",
"version": "2.9.0-timestamp.3",
"description": "Simple, efficient, scalable, high-performance LMDB interface",

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

"dependencies": {
"msgpackr": "^1.9.5",
"msgpackr": "^1.9.9",
"node-addon-api": "^6.1.0",

@@ -109,9 +109,9 @@ "node-gyp-build-optional-packages": "5.1.1",

"optionalDependencies": {
"@lmdb/lmdb-darwin-arm64": "2.9.0-timestamp.2",
"@lmdb/lmdb-darwin-x64": "2.9.0-timestamp.2",
"@lmdb/lmdb-linux-arm": "2.9.0-timestamp.2",
"@lmdb/lmdb-linux-arm64": "2.9.0-timestamp.2",
"@lmdb/lmdb-linux-x64": "2.9.0-timestamp.2",
"@lmdb/lmdb-win32-x64": "2.9.0-timestamp.2"
"@lmdb/lmdb-darwin-arm64": "2.9.0-timestamp.3",
"@lmdb/lmdb-darwin-x64": "2.9.0-timestamp.3",
"@lmdb/lmdb-linux-arm": "2.9.0-timestamp.3",
"@lmdb/lmdb-linux-arm64": "2.9.0-timestamp.3",
"@lmdb/lmdb-linux-x64": "2.9.0-timestamp.3",
"@lmdb/lmdb-win32-x64": "2.9.0-timestamp.3"
}
}
import { RangeIterable } from './util/RangeIterable.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 { getAddress, Cursor, Txn, orderedBinary, lmdbError, getByBinary, setGlobalBuffer, prefetch, iterate, position as doPosition, resetTxn, getCurrentValue, getCurrentShared, getStringByBinary, globalBuffer, getSharedBuffer, startRead, setReadCallback, directWrite } from './native.js';
import { saveKey } from './keys.js';

@@ -262,2 +262,13 @@ const IF_EXISTS = 3.542694326329068e-103;

},
directWrite(id, options) {
let rc;
let txn = env.writeTxn || (options && options.transaction) || (readTxnRenewed ? readTxn : renewReadTxn(this));
let keySize = this.writeKey(id, keyBytes, 0);
let dataOffset = (((keySize >> 3) + 1) << 3);
keyBytes.set(options.bytes, dataOffset)
rc = directWrite(this.dbAddress, keySize, options.offset, options.bytes.length, txn.address || 0);
if (rc < 0) lmdbError(rc);
},
resetReadTxn() {

@@ -264,0 +275,0 @@ resetReadTxn();

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc