Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

rocksdb-native

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rocksdb-native - npm Package Compare versions

Comparing version
3.11.3
to
3.11.4
+23
-47
binding.cc

@@ -301,27 +301,31 @@ #include <set>

js_handle_scope_t *scope;
err = js_open_handle_scope(env, &scope);
assert(err == 0);
if (db->closing) {
js_handle_scope_t *scope;
err = js_open_handle_scope(env, &scope);
assert(err == 0);
js_receiver_t ctx;
err = js_get_reference_value(env, req->ctx, ctx);
assert(err == 0);
js_receiver_t ctx;
err = js_get_reference_value(env, req->ctx, ctx);
assert(err == 0);
rocksdb_native_on_close_t cb;
err = js_get_reference_value(env, req->on_close, cb);
assert(err == 0);
rocksdb_native_on_close_t cb;
err = js_get_reference_value(env, req->on_close, cb);
assert(err == 0);
req->on_close.reset();
req->self.reset();
req->ctx.reset();
req->on_close.reset();
req->self.reset();
req->ctx.reset();
db->ctx.reset();
if (!db->exiting) {
err = js_call_function_with_checkpoint(env, cb, ctx);
(void) err;
}
if (!db->exiting) {
err = js_call_function_with_checkpoint(env, cb, ctx);
(void) err;
err = js_close_handle_scope(env, scope);
assert(err == 0);
} else {
delete req;
}
err = js_close_handle_scope(env, scope);
assert(err == 0);
db->ctx.reset();

@@ -344,12 +348,4 @@ err = js_finish_deferred_teardown_callback(teardown);

js_handle_scope_t *scope;
err = js_open_handle_scope(env, &scope);
assert(err == 0);
auto req = new rocksdb_native_close_t();
js_arraybuffer_t handle;
rocksdb_native_close_t *req;
err = js_create_arraybuffer(env, req, handle);
assert(err == 0);
req->env = env;

@@ -360,22 +356,2 @@ req->handle.data = req;

assert(err == 0);
js_receiver_t ctx;
err = js_get_null(env, static_cast<js_value_t **>(ctx));
assert(err == 0);
rocksdb_native_on_close_t on_close;
err = js_get_null(env, static_cast<js_value_t **>(on_close));
assert(err == 0);
err = js_create_reference(env, ctx, req->ctx);
assert(err == 0);
err = js_create_reference(env, handle, req->self);
assert(err == 0);
err = js_create_reference(env, on_close, req->on_close);
assert(err == 0);
err = js_close_handle_scope(env, scope);
assert(err == 0);
}

@@ -382,0 +358,0 @@

{
"name": "rocksdb-native",
"version": "3.11.3",
"version": "3.11.4",
"description": "librocksdb bindings for JavaScript",

@@ -5,0 +5,0 @@ "exports": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display