@nxtedition/rocksdb 7.0.9 → 7.0.10

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/binding.cc CHANGED
@@ -198,6 +198,8 @@ static napi_value ToError(napi_env env, const rocksdb::Status& status) {
198
198
  return CreateError(env, "LEVEL_NOT_FOUND", msg);
199
199
  } else if (status.IsCorruption()) {
200
200
  return CreateError(env, "LEVEL_CORRUPTION", msg);
201
+ } else if (status.IsTryAgain()) {
202
+ return CreateError(env, "LEVEL_TRYAGAIN", msg);
201
203
  } else if (status.IsIOError()) {
202
204
  if (msg.find("IO error: lock ") != std::string::npos) { // env_posix.cc
203
205
  return CreateError(env, "LEVEL_LOCKED", msg);
@@ -1471,7 +1473,7 @@ NAPI_METHOD(iterator_get_sequence) {
1471
1473
  napi_value result;
1472
1474
  NAPI_STATUS_THROWS(napi_create_bigint_int64(env, seq, &result));
1473
1475
 
1474
- return 0;
1476
+ return result;
1475
1477
  }
1476
1478
 
1477
1479
  struct NextWorker final : public Worker {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "7.0.9",
3
+ "version": "7.0.10",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",