@nxtedition/rocksdb 10.3.2 → 10.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -189,10 +189,10 @@ class RocksLevel extends AbstractLevel {
189
189
  binding.db_get_many(this[kContext], keys, options ?? EMPTY, (err, arg1, arg2) => {
190
190
  if (err) {
191
191
  callback(err)
192
- } else if (!valueEncoding || valueEncoding === 'buffer') {
193
- bufferHandler(arg1, arg2)
194
- } else {
192
+ } else if (valueEncoding === 'utf8') {
195
193
  callback(null, arg1)
194
+ } else {
195
+ bufferHandler(arg1, arg2)
196
196
  }
197
197
  this[kUnref]()
198
198
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "10.3.2",
3
+ "version": "10.3.3",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",