Skip to content

Commit

Permalink
NodeJS 20 support
Browse files Browse the repository at this point in the history
  • Loading branch information
NotArandomGUY committed Mar 14, 2024
1 parent a7a81ae commit f3e0b2f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions START-DEV.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set /p insp=Inspect? (Y/N):
if "%insp%" equ "Y" goto launch-inspect

:launch
node .\buildDev\entry\mainEntry -ll=5
node --security-revert=CVE-2023-46809 .\buildDev\entry\mainEntry -ll=5
exit

:launch-inspect
node --inspect .\buildDev\entry\mainEntry -ll=5
node --inspect --security-revert=CVE-2023-46809 .\buildDev\entry\mainEntry -ll=5
exit
2 changes: 1 addition & 1 deletion START-REL.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
cls
node .\buildRel\mainEntry
node --security-revert=CVE-2023-46809 .\buildRel\mainEntry
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export default class Server {
await this.runShutdownTasks()
await waitMs(delay)

await detachedSpawn(execPath, process.argv.slice(1))
await detachedSpawn(execPath, ['--security-revert=CVE-2023-46809', ...process.argv.slice(1)])
exit()
}

Expand Down
2 changes: 1 addition & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class Update {
await this.server.runShutdownTasks(true)

logger.info('message.update.info.restart')
await detachedSpawn(path, [process.argv[1], ...args])
await detachedSpawn(path, ['--security-revert=CVE-2023-46809', process.argv[1], ...args])

logger.info('message.update.info.exit')
proc.exit()
Expand Down

0 comments on commit f3e0b2f

Please sign in to comment.