use latest node version and catch unhandledRejections

This commit is contained in:
tjs 2022-03-30 20:22:41 -04:00
parent 19f9a72e5d
commit 08884a9fec
2 changed files with 5 additions and 1 deletions

View File

@ -42,7 +42,7 @@
"test": "jasmine-ts --config=jasmine.json"
},
"engines": {
"node": "14.x"
"node": "16.x"
},
"resolutions": {
"bn.js": "5.1.3",

View File

@ -439,3 +439,7 @@ app.get('/trades/address/:marketPk', async (req, res) => {
const httpPort = parseInt(process.env.PORT || '5000')
app.listen(httpPort)
process.on('unhandledRejection', (err: any, p: any) => {
console.error(`Unhandled rejection: ${err} promise: ${p})`)
})