Skip to content

Commit

Permalink
fix(core): Do not crash express app on unhandled rejected promises (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Jan 26, 2023
1 parent 68e4083 commit 7e229a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/cli/bin/n8n
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
5 changes: 3 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
14 changes: 12 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e229a3

Please sign in to comment.