Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiask88 committed Dec 27, 2024
1 parent db34f29 commit 4b962de
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
architecture: ${{ matrix.arch }}

- name: Install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [16, 18, 20]
node: [18, 20, 22]
arch: [x86, x64]
exclude:
- { os: ubuntu-latest, arch: x86 }
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"name": "Mathias Küsel"
},
"engines": {
"node": ">=16"
"node": "^18 || ^20 || >= 21"
},
"license": "MIT",
"readmeFilename": "README.md",
Expand All @@ -36,14 +36,14 @@
"scripts": {
"install": "node-gyp-build",
"rebuild": "npm run install --build-from-source",
"prebuild": "prebuildify -t 10.17.0 --napi --strip",
"prebuild": "prebuildify -t 18.20.4 --napi --strip",
"test": "",
"download-prebuilds": "prebuildify-ci download",
"prebuild-linux-arm": "prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64-lts -t 10.17.0 --napi --strip",
"prebuild-linux-arm": "prebuildify-cross -i linux-armv6 -i linux-armv7 -i linux-arm64-lts -t 18.20.4 --napi --strip",
"prebuild-android-arm": "prebuildify-cross -i android-armv7 -i android-arm64 -t 8.14.0 --napi --strip",
"prebuild-linux-x64": "prebuildify-cross -i centos7-devtoolset7 -i alpine -t 10.17.0 --napi --strip",
"prebuild-darwin-x64+arm64": "prebuildify -t 10.17.0 --napi --strip --arch x64+arm64",
"prebuild-win32-x86": "prebuildify -t 10.17.0 --napi --strip",
"prebuild-win32-x64": "prebuildify -t 10.17.0 --napi --strip"
"prebuild-linux-x64": "prebuildify-cross -i centos7-devtoolset7 -i alpine -t 18.20.4 --napi --strip",
"prebuild-darwin-x64+arm64": "prebuildify -t 18.20.4 --napi --strip --arch x64+arm64",
"prebuild-win32-x86": "prebuildify -t 18.20.4 --napi --strip",
"prebuild-win32-x64": "prebuildify -t 18.20.4 --napi --strip"
}
}
4 changes: 2 additions & 2 deletions src/node_snap7_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ S7Server::S7Server(const Napi::CallbackInfo &info) : Napi::ObjectWrap<S7Server>(
tsfn.Unref(env);
tsfnrw.Unref(env);

snap7Server->SetEventsCallback(&EventCallBack, this);
snap7Server->SetEventsCallback(reinterpret_cast<pfn_SrvCallBack>(&EventCallBack), this);
}

S7Server::~S7Server() {
Expand Down Expand Up @@ -551,7 +551,7 @@ Napi::Value S7Server::SetResourceless(const Napi::CallbackInfo& info) {

int ret;
if (resourceless) {
ret = snap7Server->SetRWAreaCallback(&RWAreaCallBack, this);
ret = snap7Server->SetRWAreaCallback(reinterpret_cast<pfn_RWAreaCallBack>(&RWAreaCallBack), this);
} else {
ret = snap7Server->SetRWAreaCallback(nullptr, nullptr);
}
Expand Down

0 comments on commit 4b962de

Please sign in to comment.