@athenna/http 1.4.6 → 1.4.9

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.4.6",
3
+ "version": "1.4.9",
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>",
@@ -54,9 +54,9 @@
54
54
  "#tests/*": "./tests/*.js"
55
55
  },
56
56
  "dependencies": {
57
- "@athenna/artisan": "1.2.9",
58
- "@athenna/ioc": "1.2.2",
59
- "@athenna/logger": "1.2.7",
57
+ "@athenna/artisan": "1.3.1",
58
+ "@athenna/ioc": "1.2.3",
59
+ "@athenna/logger": "1.2.8",
60
60
  "@secjs/utils": "1.9.7",
61
61
  "fastify": "3.27.4",
62
62
  "fastify-cors": "6.0.3",
@@ -7,14 +7,18 @@ export class HttpExceptionHandler {
7
7
  *
8
8
  * @type {string[]}
9
9
  */
10
- ignoreCodes = []
10
+ get ignoreCodes() {
11
+ return []
12
+ }
11
13
 
12
14
  /**
13
15
  * Error statuses that should be ignored by Log.
14
16
  *
15
17
  * @type {number[]}
16
18
  */
17
- ignoreStatuses = []
19
+ get ignoreStatuses() {
20
+ return []
21
+ }
18
22
 
19
23
  /**
20
24
  * The global exception handler of all HTTP requests.
package/src/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export class HttpKernel {
22
22
  *
23
23
  * @type {any | Promise<any>}
24
24
  */
25
- globalMiddlewares: any | Promise<any>
25
+ get globalMiddlewares(): any | Promise<any>
26
26
  /**
27
27
  * The application's named HTTP middlewares.
28
28
  *
@@ -30,7 +30,7 @@ export class HttpKernel {
30
30
  *
31
31
  * @type {Record<string, any | Promise<any>>}
32
32
  */
33
- namedMiddlewares: Record<string, any | Promise<any>>
33
+ get namedMiddlewares(): Record<string, any | Promise<any>>
34
34
 
35
35
  /**
36
36
  * Register all global and named middlewares to the server.
@@ -81,13 +81,13 @@ export class HttpExceptionHandler {
81
81
  *
82
82
  * @type {string[]}
83
83
  */
84
- ignoreCodes: string[]
84
+ get ignoreCodes(): string[]
85
85
  /**
86
86
  * Error statuses that should be ignored by Log.
87
87
  *
88
88
  * @type {number[]}
89
89
  */
90
- ignoreStatuses: number[]
90
+ get ignoreStatuses(): number[]
91
91
 
92
92
  /**
93
93
  * The global exception handler of all HTTP requests.