@athenna/http 4.26.0 → 4.28.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": "4.
|
|
3
|
+
"version": "4.28.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>",
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
"#tests": "./tests/index.js"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@athenna/artisan": "^4.
|
|
77
|
-
"@athenna/common": "^4.
|
|
78
|
-
"@athenna/config": "^4.
|
|
79
|
-
"@athenna/ioc": "^4.
|
|
80
|
-
"@athenna/logger": "^4.
|
|
76
|
+
"@athenna/artisan": "^4.41.0",
|
|
77
|
+
"@athenna/common": "^4.36.0",
|
|
78
|
+
"@athenna/config": "^4.20.0",
|
|
79
|
+
"@athenna/ioc": "^4.19.0",
|
|
80
|
+
"@athenna/logger": "^4.19.0",
|
|
81
81
|
"@athenna/test": "^4.22.0",
|
|
82
82
|
"@athenna/tsconfig": "^4.12.0",
|
|
83
|
-
"@athenna/view": "^4.
|
|
83
|
+
"@athenna/view": "^4.21.0",
|
|
84
84
|
"@fastify/cors": "^8.4.2",
|
|
85
85
|
"@fastify/helmet": "^11.1.1",
|
|
86
86
|
"@fastify/rate-limit": "^8.1.1",
|
|
@@ -60,11 +60,12 @@ export class HttpKernel {
|
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
if (swaggerPlugin) {
|
|
63
|
-
debug('Not able to register swagger plugin. Install @fastify/swagger package.');
|
|
64
63
|
await Server.plugin(swaggerPlugin, Config.get('http.swagger.configurations'));
|
|
65
64
|
}
|
|
65
|
+
else {
|
|
66
|
+
debug('Not able to register swagger plugin. Install @fastify/swagger package.');
|
|
67
|
+
}
|
|
66
68
|
if (swaggerUiPlugin) {
|
|
67
|
-
debug('Not able to register swagger-ui plugin. Install @fastify/swagger-ui package.');
|
|
68
69
|
const swaggerUiConfig = Config.get('http.swagger.ui', {});
|
|
69
70
|
if (!swaggerUiConfig.logo) {
|
|
70
71
|
const __dirname = Module.createDirname(import.meta.url);
|
|
@@ -76,6 +77,9 @@ export class HttpKernel {
|
|
|
76
77
|
}
|
|
77
78
|
await Server.plugin(swaggerUiPlugin, swaggerUiConfig);
|
|
78
79
|
}
|
|
80
|
+
else {
|
|
81
|
+
debug('Not able to register swagger-ui plugin. Install @fastify/swagger-ui package.');
|
|
82
|
+
}
|
|
79
83
|
}
|
|
80
84
|
/**
|
|
81
85
|
* Register the @fastify/rate-limit plugin in the Http server.
|