From 10f0e3c8d47812670fcdf8913847607ebdad27ee Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Tue, 12 Nov 2024 19:41:17 +0400 Subject: [PATCH] fix: add support for Node.js v22 (#48) --- .github/workflows/deploy.yml | 6 +- .github/workflows/release.yml | 2 +- package-lock.json | 249 +++++++++++++++++++--------------- package.json | 17 ++- src/service.cc | 4 +- 5 files changed, 153 insertions(+), 125 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e14f9ab..4aa7b21 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,7 +29,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 architecture: ${{ matrix.node_arch }} - name: Install dependencies @@ -65,7 +65,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: 'https://registry.npmjs.org' - uses: actions/download-artifact@v4 @@ -83,7 +83,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 registry-url: 'https://npm.pkg.github.com' scope: '@NeuraLegion' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cc436d3..678fc91 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: 22 - run: npm ci --ignore-scripts - run: npm run semantic-release diff --git a/package-lock.json b/package-lock.json index ee3979c..0f9b0be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "hasInstallScript": true, "license": "MIT", "dependencies": { - "nan": "^2.19.0", - "node-gyp-build": "github:derevnjuk/node-gyp-build#0d253a1f7f903f8ac211c5dfc711ffc422d6e3f4", + "nan": "^2.22.0", + "node-gyp-build": "^4.8.3", "plist": "^3.1.0" }, "devDependencies": { @@ -21,8 +21,8 @@ "@semantic-release/git": "^10.0.1", "husky": "^8.0.3", "is-ci": "^3.0.1", - "prebuildify": "github:derevnjuk/prebuildify#fde6268682ac5093257ec28b5dbc0eaa3807dc4e", - "prebuildify-cross": "^5.1.0", + "prebuildify": "^6.0.1", + "prebuildify-cross": "^5.1.1", "semantic-release": "^23.0.8" } }, @@ -1124,6 +1124,89 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@thegecko/docker-run": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@thegecko/docker-run/-/docker-run-3.1.0.tgz", + "integrity": "sha512-tTdWPOzyub+cu5ybpqtHKXqnN2WQwLU3FuOaWggi9rdlJZY60zgKwrhySpyI6j2SYjN3DrTT+vT5v2AwjcoTqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "debug": "^1.0.2", + "docker-raw-stream": "^1.3.0", + "docker-remote-api": "^4.4.0", + "minimist": "^1.1.0", + "pump": "^1.0.0", + "through2": "^0.6.2" + }, + "bin": { + "docker-run": "bin.js" + } + }, + "node_modules/@thegecko/docker-run/node_modules/debug": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/debug/-/debug-1.0.5.tgz", + "integrity": "sha512-SIKSrp4+XqcUaNWhwaPJbLFnvSXPsZ4xBdH2WRK0Xo++UzMC4eepYghGAVhVhOwmfq3kqowqJ5w45R3pmYZnuA==", + "dev": true, + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/@thegecko/docker-run/node_modules/isarray": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", + "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@thegecko/docker-run/node_modules/ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "dev": true, + "license": "MIT" + }, + "node_modules/@thegecko/docker-run/node_modules/pump": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", + "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", + "dev": true, + "license": "MIT", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/@thegecko/docker-run/node_modules/readable-stream": { + "version": "1.0.34", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", + "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", + "dev": true, + "license": "MIT", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "0.0.1", + "string_decoder": "~0.10.x" + } + }, + "node_modules/@thegecko/docker-run/node_modules/string_decoder": { + "version": "0.10.31", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", + "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@thegecko/docker-run/node_modules/through2": { + "version": "0.6.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", + "integrity": "sha512-RkK/CCESdTKQZHdmKICijdKKsCRVHs5KsLZ6pACAmF/1GPUQhonHSXWNERctxEp7RmvjdNbZTL5z9V7nSCXKcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "readable-stream": ">=1.0.33-1 <1.1.0-0", + "xtend": ">=4.0.0 <4.1.0-0" + } + }, "node_modules/@types/conventional-commits-parser": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/conventional-commits-parser/-/conventional-commits-parser-5.0.0.tgz", @@ -1815,12 +1898,13 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -2982,6 +3066,7 @@ "resolved": "https://registry.npmjs.org/docker-raw-stream/-/docker-raw-stream-1.3.1.tgz", "integrity": "sha512-nSuCryfNrVwgI6jKvgxYcQkDN7cMeuIaJuLPMIvQCCNJih10ugx/dzzyAMgfsNRIYjM4SHg6Em1iXhGxA08R7Q==", "dev": true, + "license": "MIT", "dependencies": { "through2": "^0.5.1" } @@ -2990,13 +3075,15 @@ "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/docker-raw-stream/node_modules/readable-stream": { "version": "1.0.34", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", "dev": true, + "license": "MIT", "dependencies": { "core-util-is": "~1.0.0", "inherits": "~2.0.1", @@ -3008,13 +3095,15 @@ "version": "0.10.31", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/docker-raw-stream/node_modules/through2": { "version": "0.5.1", "resolved": "https://registry.npmjs.org/through2/-/through2-0.5.1.tgz", "integrity": "sha512-zexCrAOTbjkBCXGyozn7hhS3aEaqdrc59mAD2E3dKYzV1vFuEGQ1hEDJN2oQMQFwy4he2zyLqPZV+AlfS8ZWJA==", "dev": true, + "license": "MIT", "dependencies": { "readable-stream": "~1.0.17", "xtend": "~3.0.0" @@ -3050,82 +3139,6 @@ "node": ">=0.4" } }, - "node_modules/docker-run": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/docker-run/-/docker-run-3.1.0.tgz", - "integrity": "sha512-9Bt9AbCX5gUfqNoiwyeYmo3aNj9UlM15FvqUmj3SR+V4AsC+QkbDZasx66AXJHtNN1WalKLKe09vLEf1qZ/v3w==", - "dev": true, - "dependencies": { - "debug": "^1.0.2", - "docker-raw-stream": "^1.3.0", - "docker-remote-api": "^4.4.0", - "minimist": "^1.1.0", - "pump": "^1.0.0", - "through2": "^0.6.2" - }, - "bin": { - "docker-run": "bin.js" - } - }, - "node_modules/docker-run/node_modules/debug": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/debug/-/debug-1.0.5.tgz", - "integrity": "sha512-SIKSrp4+XqcUaNWhwaPJbLFnvSXPsZ4xBdH2WRK0Xo++UzMC4eepYghGAVhVhOwmfq3kqowqJ5w45R3pmYZnuA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/docker-run/node_modules/isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "node_modules/docker-run/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", - "dev": true - }, - "node_modules/docker-run/node_modules/pump": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", - "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", - "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "node_modules/docker-run/node_modules/readable-stream": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.0.34.tgz", - "integrity": "sha512-ok1qVCJuRkNmvebYikljxJA/UEsKwLl2nI1OmaqAu4/UE+h0wKCHok4XkL/gvi39OacXvw59RJUOFUkDib2rHg==", - "dev": true, - "dependencies": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.1", - "isarray": "0.0.1", - "string_decoder": "~0.10.x" - } - }, - "node_modules/docker-run/node_modules/string_decoder": { - "version": "0.10.31", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", - "integrity": "sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==", - "dev": true - }, - "node_modules/docker-run/node_modules/through2": { - "version": "0.6.5", - "resolved": "https://registry.npmjs.org/through2/-/through2-0.6.5.tgz", - "integrity": "sha512-RkK/CCESdTKQZHdmKICijdKKsCRVHs5KsLZ6pACAmF/1GPUQhonHSXWNERctxEp7RmvjdNbZTL5z9V7nSCXKcg==", - "dev": true, - "dependencies": { - "readable-stream": ">=1.0.33-1 <1.1.0-0", - "xtend": ">=4.0.0 <4.1.0-0" - } - }, "node_modules/domain-browser": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", @@ -3158,10 +3171,11 @@ } }, "node_modules/elliptic": { - "version": "6.5.5", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.5.tgz", - "integrity": "sha512-7EjbcmUm17NQFu4Pmgmq2olYMj8nwMnpcddByChSUjArp8F5DQWcIcpriwO4ZToLNAJig0yiyjswfyGNje/ixw==", + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.0.tgz", + "integrity": "sha512-dpwoQcLc/2WLQvJvLRHKZ+f9FgOdjnq11rurqwekGQygGPsYSK29OMMD2WalatiqQ+XGFDglTNixpPfI+lpaAA==", "dev": true, + "license": "MIT", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", @@ -3591,10 +3605,11 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -4726,6 +4741,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -5291,12 +5307,13 @@ } }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { @@ -5435,9 +5452,10 @@ } }, "node_modules/nan": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/nan/-/nan-2.19.0.tgz", - "integrity": "sha512-nO1xXxfh/RWNxfd/XPfbIfFk5vgLsAxUR9y5O0cHMJu/AW9U95JLXqthYHjEp+8gQ5p96K9jUp8nbVOxCdRbtw==" + "version": "2.22.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.0.tgz", + "integrity": "sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==", + "license": "MIT" }, "node_modules/neo-async": { "version": "2.6.2", @@ -5452,10 +5470,11 @@ "dev": true }, "node_modules/node-abi": { - "version": "3.58.0", - "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.58.0.tgz", - "integrity": "sha512-pXY1jnGf5T7b8UNzWzIqf0EkX4bx/w8N2AvwlGnk2SYYA/kzDVPaH0Dh0UG4EwxBB5eKOIZKPr8VAHSHL1DPGg==", + "version": "3.71.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.71.0.tgz", + "integrity": "sha512-SZ40vRiy/+wRTf21hxkkEjPJZpARzUMVcJoQse2EF8qkUWbbO2z7vd5oA/H6bVH6SZQ5STGcu0KRDS7biNRfxw==", "dev": true, + "license": "MIT", "dependencies": { "semver": "^7.3.5" }, @@ -5479,9 +5498,10 @@ } }, "node_modules/node-gyp-build": { - "version": "4.8.0", - "resolved": "git+ssh://git@github.com/derevnjuk/node-gyp-build.git#0d253a1f7f903f8ac211c5dfc711ffc422d6e3f4", - "integrity": "sha512-k5kOAtbp3q+puv3wHV6ZMMAHa2oKH9TTOHWCv8GcJDp4a3EaFvXpFtp2eQiSiP2fPloZD9uaH9f3rrPzfEIMLw==", + "version": "4.8.3", + "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.8.3.tgz", + "integrity": "sha512-EMS95CMJzdoSKoIiXo8pxKoL8DYxwIZXYlLmgPb8KUv794abpnLK6ynsCAWNliOjREKruYKdzbh76HHYUHX7nw==", + "license": "MIT", "bin": { "node-gyp-build": "bin.js", "node-gyp-build-optional": "optional.js", @@ -8829,14 +8849,15 @@ } }, "node_modules/prebuildify": { - "version": "6.0.0", - "resolved": "git+ssh://git@github.com/derevnjuk/prebuildify.git#fde6268682ac5093257ec28b5dbc0eaa3807dc4e", - "integrity": "sha512-etbb1J+9URW2Z8gNnPIftmGs3sDu/Oysp4fyyb5k81zlvqdflO7qRdU9LW04ahmS2wh53P5uma1up1v3vAzrcw==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/prebuildify/-/prebuildify-6.0.1.tgz", + "integrity": "sha512-8Y2oOOateom/s8dNBsGIcnm6AxPmLH4/nanQzL5lQMU+sC0CMhzARZHizwr36pUPLdvBnOkCNQzxg4djuFSgIw==", "dev": true, + "license": "MIT", "dependencies": { "minimist": "^1.2.5", "mkdirp-classic": "^0.5.3", - "node-abi": "^3.58.0", + "node-abi": "^3.3.0", "npm-run-path": "^3.1.0", "pump": "^3.0.0", "tar-fs": "^2.1.0" @@ -8846,14 +8867,15 @@ } }, "node_modules/prebuildify-cross": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/prebuildify-cross/-/prebuildify-cross-5.1.0.tgz", - "integrity": "sha512-OthEdNpp6irC18hzVUJ6t/b1xrgcY9lUw/kGG7xRmkuA4g9cH0HgaL6BWQuzjmAnafZ6b8rO9As+KqbUK37WHg==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/prebuildify-cross/-/prebuildify-cross-5.1.1.tgz", + "integrity": "sha512-tVH9doU6OedEnoDgsYFgGnB9pUe5+4KZ1WJGdrlh7oeF5G9Kw61B8PL/h3LP0nB3h00dy+XdI21OpL7e4ovPfA==", "dev": true, + "license": "GPL-3.0", "dependencies": { + "@thegecko/docker-run": "^3.1.0", "@vweevers/docker-pull": "^1.1.1", "browserify": "^17.0.0", - "docker-run": "^3.1.0", "log-update": "^4.0.0", "minimist": "^1.2.0", "npm-packlist": "^4.0.0", @@ -10261,6 +10283,7 @@ "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, diff --git a/package.json b/package.json index a25e075..e8644b9 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "access": "public" }, "dependencies": { - "nan": "^2.19.0", - "node-gyp-build": "github:derevnjuk/node-gyp-build#0d253a1f7f903f8ac211c5dfc711ffc422d6e3f4", + "nan": "^2.22.0", + "node-gyp-build": "^4.8.3", "plist": "^3.1.0" }, "commitlint": { @@ -63,16 +63,21 @@ "@semantic-release/git": "^10.0.1", "husky": "^8.0.3", "is-ci": "^3.0.1", - "prebuildify": "github:derevnjuk/prebuildify#fde6268682ac5093257ec28b5dbc0eaa3807dc4e", - "prebuildify-cross": "^5.1.0", + "prebuildify": "^6.0.1", + "prebuildify-cross": "^5.1.1", "semantic-release": "^23.0.8" }, "scripts": { "semantic-release": "semantic-release", - "build:gyp": "prebuildify --napi false --strip --target 10.24.1 --target 12.22.12 --target 14.21.3 --target 16.20.2 --target 18.17.1 --target 19.9.0 --target 20.12.2 --target 21.7.3", - "build:gyp-cross": "prebuildify-cross --napi false --strip --target 10.24.1 --target 12.22.12 --target 14.21.3 --target 16.20.2 --target 18.17.1 --target 19.9.0 --target 20.12.2 --target 21.7.3", + "build:gyp": "prebuildify --napi false --strip --target 10.24.1 --target 12.22.12 --target 14.21.3 --target 16.20.2 --target 18.17.1 --target 19.9.0 --target 20.12.2 --target 21.7.3 --target 22.11.0", + "build:gyp-cross": "prebuildify-cross --napi false --strip --target 10.24.1 --target 12.22.12 --target 14.21.3 --target 16.20.2 --target 18.17.1 --target 19.9.0 --target 20.12.2 --target 21.7.3 --target 22.11.0", "native_install": "node-gyp-build", "install": "node scripts/install.js", "prepare": "is-ci || husky install" + }, + "overrides": { + "prebuildify": { + "node-abi": "^3.71.0" + } } } diff --git a/src/service.cc b/src/service.cc index 168e6a2..a110ad3 100644 --- a/src/service.cc +++ b/src/service.cc @@ -74,7 +74,7 @@ VOID WINAPI handler (DWORD signal) { } VOID WINAPI run (DWORD argc, LPTSTR *argv) { - if (! (status_handle = RegisterServiceCtrlHandler ("", handler))) { + if (!(status_handle = RegisterServiceCtrlHandler(const_cast(""), handler))) { set_status (SERVICE_STOPPED, GetLastError (), 0); return; } @@ -87,7 +87,7 @@ VOID WINAPI run (DWORD argc, LPTSTR *argv) { } DWORD __stdcall run_thread (LPVOID param) { - SERVICE_TABLE_ENTRY table[] = {{"", run}, {0, }}; + SERVICE_TABLE_ENTRY table[] = {{const_cast(""), run}, {0, }}; if (StartServiceCtrlDispatcher (table)) { while (1) {