Skip to content

Commit

Permalink
Merge pull request #34 from tcavenezuela/feat/bump-fsuipc-node-changes
Browse files Browse the repository at this point in the history
feat bump latest fsuipc-node changes
  • Loading branch information
carl0shd authored Dec 31, 2024
2 parents 1fbe191 + 7f4e11c commit d329a09
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-chicken-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'fsuipc.js': patch
---

Bump bump latest changes from fsuipc-node 0.7.3
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-plugin-n": "^15.2.4",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"lerna": "^5.0.0",
"lerna": "^8.0.1",
"prettier": "^2.7.1",
"tsc-alias": "^1.7.0",
"typescript": "^4.7.2",
Expand Down
6 changes: 4 additions & 2 deletions packages/core/src/native/FSUIPC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Napi::Value FSUIPC::Open(const Napi::CallbackInfo& info) {
Napi::Value FSUIPC::Close(const Napi::CallbackInfo& info) {
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(info.Env());

auto worker = new CloseAsyncWorker(info.Env(), deferred, this);
auto env = info.Env();
auto worker = new CloseAsyncWorker(env, deferred, this);
worker->Queue();

return deferred.Promise();
Expand All @@ -78,7 +79,8 @@ Napi::Value FSUIPC::Close(const Napi::CallbackInfo& info) {
Napi::Value FSUIPC::Process(const Napi::CallbackInfo& info) {
Napi::Promise::Deferred deferred = Napi::Promise::Deferred::New(info.Env());

auto worker = new ProcessAsyncWorker(info.Env(), deferred, this);
auto env = info.Env();
auto worker = new ProcessAsyncWorker(env, deferred, this);
worker->Queue();

return deferred.Promise();
Expand Down

0 comments on commit d329a09

Please sign in to comment.