@reboot-dev/reboot 0.37.1 → 0.37.2
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/reboot_native.cc +6 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"@bufbuild/protobuf": "1.3.2",
|
|
4
4
|
"@bufbuild/protoplugin": "1.3.2",
|
|
5
5
|
"@bufbuild/protoc-gen-es": "1.3.2",
|
|
6
|
-
"@reboot-dev/reboot-api": "0.37.
|
|
6
|
+
"@reboot-dev/reboot-api": "0.37.2",
|
|
7
7
|
"chalk": "^4.1.2",
|
|
8
8
|
"node-addon-api": "^7.0.0",
|
|
9
9
|
"node-gyp": ">=10.2.0",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"type": "module",
|
|
22
22
|
"name": "@reboot-dev/reboot",
|
|
23
|
-
"version": "0.37.
|
|
23
|
+
"version": "0.37.2",
|
|
24
24
|
"description": "npm package for Reboot",
|
|
25
25
|
"scripts": {
|
|
26
26
|
"preinstall": "node preinstall.cjs",
|
package/reboot_native.cc
CHANGED
|
@@ -698,6 +698,7 @@ template <
|
|
|
698
698
|
typename PythonDoneCallback,
|
|
699
699
|
typename NodeCallback>
|
|
700
700
|
Napi::Promise NodePromiseFromPythonFuture(
|
|
701
|
+
std::string&& what,
|
|
701
702
|
Napi::Env env,
|
|
702
703
|
PythonFutureCallback&& python_future_callback,
|
|
703
704
|
PythonDoneCallback&& python_done_callback,
|
|
@@ -803,9 +804,11 @@ Napi::Promise NodePromiseFromPythonFuture(
|
|
|
803
804
|
|
|
804
805
|
template <typename PythonFutureCallback>
|
|
805
806
|
Napi::Promise NodePromiseFromPythonFuture(
|
|
807
|
+
std::string&& what,
|
|
806
808
|
Napi::Env env,
|
|
807
809
|
PythonFutureCallback&& python_future_callback) {
|
|
808
810
|
return NodePromiseFromPythonFuture(
|
|
811
|
+
std::move(what),
|
|
809
812
|
env,
|
|
810
813
|
std::forward<PythonFutureCallback>(python_future_callback),
|
|
811
814
|
[](py::object py_result) {
|
|
@@ -831,8 +834,9 @@ Napi::Promise NodePromiseFromPythonTask(
|
|
|
831
834
|
PythonDoneCallback&& python_done_callback,
|
|
832
835
|
NodeCallback&& node_callback) {
|
|
833
836
|
return NodePromiseFromPythonFuture(
|
|
837
|
+
std::string(name),
|
|
834
838
|
env,
|
|
835
|
-
[name
|
|
839
|
+
[name,
|
|
836
840
|
create_task = std::move(create_task),
|
|
837
841
|
python_task_callback = std::forward<PythonTaskCallback>(
|
|
838
842
|
python_task_callback)]() mutable {
|
|
@@ -1252,6 +1256,7 @@ Napi::Promise make_js_cancelled(
|
|
|
1252
1256
|
Napi::Env& env,
|
|
1253
1257
|
py::object* py_cancelled) {
|
|
1254
1258
|
return NodePromiseFromPythonFuture(
|
|
1259
|
+
"make_js_cancelled",
|
|
1255
1260
|
env,
|
|
1256
1261
|
[py_cancelled]() {
|
|
1257
1262
|
// After returning we won't need `py_cancelled` anymore, so we
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const REBOOT_VERSION = "0.37.
|
|
1
|
+
export declare const REBOOT_VERSION = "0.37.2";
|
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const REBOOT_VERSION = "0.37.
|
|
1
|
+
export const REBOOT_VERSION = "0.37.2";
|