@nxtedition/rocksdb 13.5.2 → 13.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/rocksdb",
3
- "version": "13.5.2",
3
+ "version": "13.5.3",
4
4
  "description": "A low-level Node.js RocksDB binding",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
package/util.h CHANGED
@@ -138,7 +138,7 @@ static napi_status GetString(napi_env env, napi_value from, rocksdb::Slice& to)
138
138
  {
139
139
  napi_value property;
140
140
  NAPI_STATUS_RETURN(napi_get_named_property(env, from, "byteLength", &property));
141
- NAPI_STATUS_RETURN(napi_get_value_int32(env, property, &pos));
141
+ NAPI_STATUS_RETURN(napi_get_value_int32(env, property, &len));
142
142
  }
143
143
 
144
144
  if (len < 0 || len > length) {