@port-labs/jq-node-bindings 1.0.3 → 1.0.4
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 +2 -2
- package/src/binding.cc +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@port-labs/jq-node-bindings",
|
|
3
|
-
"version": "v1.0.
|
|
3
|
+
"version": "v1.0.4",
|
|
4
4
|
"description": "Node.js bindings for JQ",
|
|
5
5
|
"jq-node-bindings": "1.0.3",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -44,4 +44,4 @@
|
|
|
44
44
|
"engines": {
|
|
45
45
|
"node": ">=6.0.0"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|
package/src/binding.cc
CHANGED
|
@@ -359,9 +359,6 @@ bool jv_object_to_napi(std::string key, napi_env env, jv actual, napi_value ret,
|
|
|
359
359
|
return true;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
362
|
napi_value ExecSync(napi_env env, napi_callback_info info) {
|
|
366
363
|
size_t argc = 2;
|
|
367
364
|
napi_value args[2];
|
|
@@ -417,6 +414,7 @@ napi_value ExecSync(napi_env env, napi_callback_info info) {
|
|
|
417
414
|
}
|
|
418
415
|
|
|
419
416
|
wrapper->lock();
|
|
417
|
+
jq_set_input_cb(wrapper->get_jq(), NULL, NULL);
|
|
420
418
|
|
|
421
419
|
jq_start(wrapper->get_jq(), input, 0);
|
|
422
420
|
jv result = jq_next(wrapper->get_jq(), global_timeout_sec);
|
|
@@ -491,6 +489,7 @@ void ExecuteAsync(napi_env env, void* data) {
|
|
|
491
489
|
return;
|
|
492
490
|
}
|
|
493
491
|
wrapper->lock();
|
|
492
|
+
jq_set_input_cb(wrapper->get_jq(), NULL, NULL);
|
|
494
493
|
jq_start(wrapper->get_jq(), input, 0);
|
|
495
494
|
ASYNC_DEBUG_LOG(work, "jq execution started");
|
|
496
495
|
|