@athenna/http 3.0.7 → 3.0.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": "3.0.
|
|
3
|
+
"version": "3.0.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>",
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
"fastify": "4.9.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@athenna/artisan": "3.0.
|
|
61
|
-
"@athenna/common": "3.0.
|
|
62
|
-
"@athenna/config": "3.0.
|
|
63
|
-
"@athenna/ioc": "3.0.
|
|
64
|
-
"@athenna/logger": "3.0.
|
|
60
|
+
"@athenna/artisan": "3.0.9",
|
|
61
|
+
"@athenna/common": "3.0.2",
|
|
62
|
+
"@athenna/config": "3.0.4",
|
|
63
|
+
"@athenna/ioc": "3.0.2",
|
|
64
|
+
"@athenna/logger": "3.0.9",
|
|
65
65
|
"@fastify/cors": "8.1.1",
|
|
66
66
|
"@fastify/helmet": "10.0.2",
|
|
67
67
|
"@fastify/rate-limit": "7.5.0",
|
|
@@ -70,8 +70,9 @@ export class HttpExceptionHandler {
|
|
|
70
70
|
|
|
71
71
|
const logger = Config.exists('logging.channels.exception')
|
|
72
72
|
? Log.channel('exception')
|
|
73
|
-
: Logger.
|
|
73
|
+
: Logger.getVanillaLogger({
|
|
74
74
|
level: 'trace',
|
|
75
|
+
driver: 'console',
|
|
75
76
|
streamType: 'stderr',
|
|
76
77
|
formatter: 'none',
|
|
77
78
|
})
|
|
@@ -187,8 +187,9 @@ export class HttpKernel {
|
|
|
187
187
|
Server.use(async ctx => {
|
|
188
188
|
const logger = Config.exists('logging.channels.request')
|
|
189
189
|
? Log.channel('request')
|
|
190
|
-
: Logger.
|
|
190
|
+
: Logger.getVanillaLogger({
|
|
191
191
|
level: 'trace',
|
|
192
|
+
driver: 'console',
|
|
192
193
|
formatter: 'none',
|
|
193
194
|
})
|
|
194
195
|
|
|
@@ -17,7 +17,7 @@ export class ControllerProvider extends ServiceProvider {
|
|
|
17
17
|
* @return {Promise<void>}
|
|
18
18
|
*/
|
|
19
19
|
async boot() {
|
|
20
|
-
const path = Path.
|
|
20
|
+
const path = Path.http('Controllers')
|
|
21
21
|
const subAlias = 'App/Http/Controllers'
|
|
22
22
|
|
|
23
23
|
const controllers = await Module.getAllFromWithAlias(path, subAlias)
|
|
@@ -17,7 +17,7 @@ export class MiddlewareProvider extends ServiceProvider {
|
|
|
17
17
|
* @return {Promise<void>}
|
|
18
18
|
*/
|
|
19
19
|
async boot() {
|
|
20
|
-
const path = Path.
|
|
20
|
+
const path = Path.http('Middlewares')
|
|
21
21
|
const subAlias = 'App/Http/Middlewares'
|
|
22
22
|
|
|
23
23
|
const middlewares = await Module.getAllFromWithAlias(path, subAlias)
|