fix(core): Do not crash express app on unhandled rejected promises (#5252)
This commit is contained in:
committed by
GitHub
parent
68e4083bbd
commit
7e229a3d38
@@ -32,6 +32,7 @@ if (![14, 16, 18].includes(nodeVersionMajor)) {
|
||||
// Prevent oclif from loading ts-node and typescript
|
||||
process.env.OCLIF_TS_NODE = '0';
|
||||
|
||||
require('express-async-errors');
|
||||
require('source-map-support').install();
|
||||
|
||||
require('@oclif/command')
|
||||
|
||||
@@ -119,7 +119,7 @@
|
||||
"axios": "^0.21.1",
|
||||
"basic-auth": "^2.0.1",
|
||||
"bcryptjs": "^2.4.3",
|
||||
"body-parser": "^1.18.3",
|
||||
"body-parser": "^1.20.1",
|
||||
"body-parser-xml": "^2.0.3",
|
||||
"bull": "^4.10.2",
|
||||
"callsites": "^3.1.0",
|
||||
@@ -134,7 +134,8 @@
|
||||
"csrf": "^3.1.0",
|
||||
"curlconverter": "^3.0.0",
|
||||
"dotenv": "^8.0.0",
|
||||
"express": "^4.16.4",
|
||||
"express": "^4.18.2",
|
||||
"express-async-errors": "^3.1.1",
|
||||
"express-openapi-validator": "^4.13.6",
|
||||
"express-prom-bundle": "^6.6.0",
|
||||
"fast-glob": "^3.2.5",
|
||||
|
||||
Reference in New Issue
Block a user