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