@nxtedition/rocksdb 5.2.28 → 5.2.29
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 +0 -13
- package/package.json +1 -1
- package/prebuilds/linux-x64/node.napi.node +0 -0
package/binding.cc
CHANGED
|
@@ -167,19 +167,6 @@ static std::string StringProperty(napi_env env,
|
|
|
167
167
|
return defaultValue;
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
static size_t StringOrBufferLength(napi_env env, napi_value value) {
|
|
171
|
-
size_t size = 0;
|
|
172
|
-
|
|
173
|
-
if (IsString(env, value)) {
|
|
174
|
-
napi_get_value_string_utf8(env, value, nullptr, 0, &size);
|
|
175
|
-
} else if (IsBuffer(env, value)) {
|
|
176
|
-
char* buf = nullptr;
|
|
177
|
-
napi_get_buffer_info(env, value, (void**)&buf, &size);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
return size;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
170
|
static std::optional<std::string> RangeOption(napi_env env, napi_value opts, const std::string_view& name) {
|
|
184
171
|
if (HasProperty(env, opts, name)) {
|
|
185
172
|
const auto value = GetProperty(env, opts, name);
|
package/package.json
CHANGED
|
Binary file
|