Comparing version 3.2.1 to 3.2.2
{ | ||
"name": "lmdb", | ||
"author": "Kris Zyp", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Simple, efficient, scalable, high-performance LMDB interface", | ||
@@ -114,9 +114,9 @@ "license": "MIT", | ||
"optionalDependencies": { | ||
"@lmdb/lmdb-darwin-arm64": "3.2.1", | ||
"@lmdb/lmdb-darwin-x64": "3.2.1", | ||
"@lmdb/lmdb-linux-arm": "3.2.1", | ||
"@lmdb/lmdb-linux-arm64": "3.2.1", | ||
"@lmdb/lmdb-linux-x64": "3.2.1", | ||
"@lmdb/lmdb-win32-x64": "3.2.1" | ||
"@lmdb/lmdb-darwin-arm64": "3.2.2", | ||
"@lmdb/lmdb-darwin-x64": "3.2.2", | ||
"@lmdb/lmdb-linux-arm": "3.2.2", | ||
"@lmdb/lmdb-linux-arm64": "3.2.2", | ||
"@lmdb/lmdb-linux-x64": "3.2.2", | ||
"@lmdb/lmdb-win32-x64": "3.2.2" | ||
} | ||
} |
26
read.js
@@ -404,19 +404,13 @@ import { RangeIterable } from './util/RangeIterable.js'; | ||
}; | ||
let userSharedBuffers = | ||
this._userSharedBuffers || (this._userSharedBuffers = new Map()); | ||
let sharedBuffer = userSharedBuffers.get(id.toString()); | ||
if (!sharedBuffer) { | ||
setKeyBytes(); | ||
let sharedBuffer = getUserSharedBuffer( | ||
env.address, | ||
keySize, | ||
defaultBuffer, | ||
options?.callback, | ||
); | ||
sharedBuffer.notify = () => { | ||
setKeyBytes(); | ||
sharedBuffer = getUserSharedBuffer( | ||
env.address, | ||
keySize, | ||
defaultBuffer, | ||
options?.callback, | ||
); | ||
userSharedBuffers.set(id.toString(), sharedBuffer); | ||
sharedBuffer.notify = () => { | ||
setKeyBytes(); | ||
return notifyUserCallbacks(env.address, keySize); | ||
}; | ||
} | ||
return notifyUserCallbacks(env.address, keySize); | ||
}; | ||
return sharedBuffer; | ||
@@ -423,0 +417,0 @@ }, |
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
2531094
7892