@athenna/http 1.3.7 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/http",
3
- "version": "1.3.7",
3
+ "version": "1.4.0",
4
4
  "description": "The Athenna Http server. Built on top of fastify.",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -49,9 +49,9 @@
49
49
  "#tests/*": "./tests/*.js"
50
50
  },
51
51
  "dependencies": {
52
- "@athenna/ioc": "1.1.8",
53
- "@athenna/logger": "1.2.3",
54
- "@secjs/utils": "1.9.3",
52
+ "@athenna/ioc": "1.2.0",
53
+ "@athenna/logger": "1.2.5",
54
+ "@secjs/utils": "1.9.4",
55
55
  "fastify": "3.27.4",
56
56
  "fastify-cors": "6.0.3",
57
57
  "fastify-rate-limit": "5.8.0"
@@ -64,11 +64,11 @@ export class HttpExceptionHandler {
64
64
  return
65
65
  }
66
66
 
67
- const prettyError = await new Exception(
68
- body.message,
69
- body.statusCode,
70
- body.code,
71
- ).prettify()
67
+ const exception = new Exception(body.message, body.statusCode, body.code)
68
+
69
+ exception.stack = body.stack
70
+
71
+ const prettyError = await exception.prettify()
72
72
 
73
73
  Log.channel('exception').error(prettyError.concat('\n'))
74
74
  }