use latest node version and catch unhandledRejections
This commit is contained in:
parent
19f9a72e5d
commit
08884a9fec
|
@ -42,7 +42,7 @@
|
|||
"test": "jasmine-ts --config=jasmine.json"
|
||||
},
|
||||
"engines": {
|
||||
"node": "14.x"
|
||||
"node": "16.x"
|
||||
},
|
||||
"resolutions": {
|
||||
"bn.js": "5.1.3",
|
||||
|
|
|
@ -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})`)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue