@nxtedition/rocksdb 7.0.34 → 7.0.35
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.
- package/index.js +7 -6
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -241,7 +241,13 @@ class RocksLevel extends AbstractLevel {
|
|
|
241
241
|
since: options?.since ?? 0,
|
|
242
242
|
keys: options?.keys ?? true,
|
|
243
243
|
values: options?.values ?? true,
|
|
244
|
-
data: options?.data ?? true
|
|
244
|
+
data: options?.data ?? true,
|
|
245
|
+
column: options?.column ?? null
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// HACK: We don't properly check for nully column in binding.
|
|
249
|
+
if (!options.column) {
|
|
250
|
+
delete options.column
|
|
245
251
|
}
|
|
246
252
|
|
|
247
253
|
if (typeof options.since !== 'number') {
|
|
@@ -264,11 +270,6 @@ class RocksLevel extends AbstractLevel {
|
|
|
264
270
|
throw new TypeError("'column' must be nully or a object")
|
|
265
271
|
}
|
|
266
272
|
|
|
267
|
-
// HACK: We don't properly check for nully column in binding.
|
|
268
|
-
if (!options.column) {
|
|
269
|
-
delete options.column
|
|
270
|
-
}
|
|
271
|
-
|
|
272
273
|
class Updates {
|
|
273
274
|
constructor (db, options) {
|
|
274
275
|
this.context = binding.updates_init(db[kContext], options)
|