@athenna/http 5.38.0 → 5.40.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": "5.38.0",
3
+ "version": "5.40.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>",
@@ -76,14 +76,14 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@athenna/artisan": "^5.7.0",
79
- "@athenna/common": "^5.14.0",
79
+ "@athenna/common": "^5.18.0",
80
80
  "@athenna/config": "^5.4.0",
81
81
  "@athenna/ioc": "^5.2.0",
82
- "@athenna/logger": "^5.7.0",
82
+ "@athenna/logger": "^5.10.0",
83
83
  "@athenna/test": "^5.5.0",
84
84
  "@athenna/tsconfig": "^5.0.0",
85
- "@athenna/view": "^5.3.0",
86
- "@athenna/vite": "^5.13.0",
85
+ "@athenna/view": "^5.4.0",
86
+ "@athenna/vite": "^5.15.0",
87
87
  "@fastify/aws-lambda": "^6.0.0",
88
88
  "@fastify/cors": "^10.1.0",
89
89
  "@fastify/helmet": "^13.0.1",
@@ -92,8 +92,8 @@
92
92
  "@fastify/static": "^8.2.0",
93
93
  "@fastify/swagger": "^9.5.1",
94
94
  "@fastify/swagger-ui": "^5.2.3",
95
- "@typescript-eslint/eslint-plugin": "^8.38.0",
96
- "@typescript-eslint/parser": "^8.38.0",
95
+ "@typescript-eslint/eslint-plugin": "^8.39.0",
96
+ "@typescript-eslint/parser": "^8.39.0",
97
97
  "autocannon": "^7.15.0",
98
98
  "commitizen": "^4.3.1",
99
99
  "cz-conventional-changelog": "^3.3.0",
@@ -26,7 +26,7 @@ export class HttpExceptionHandler {
26
26
  */
27
27
  async handle({ error, response }) {
28
28
  let code = error.code;
29
- if (error.code === undefined) {
29
+ if (!Is.String(code) || Is.Undefined(code)) {
30
30
  code = error.name || 'E_INTERNAL_SERVER';
31
31
  }
32
32
  const body = {
@@ -17,7 +17,7 @@ export interface PluginOptions {
17
17
  /**
18
18
  * Files that should trigger a page reload when changed.
19
19
  *
20
- * @default ['./src/resources/views/** /*.edge']
20
+ * @default ['./resources/views/** /*.edge']
21
21
  */
22
22
  reload?: string[];
23
23
  /**