@art-ws/fastify-http-server 2.0.15 → 2.0.16
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.
@@ -87,9 +87,11 @@ export async function createHttpServer({ routes, port, handlers, plugins, onWebs
|
|
87
87
|
}
|
88
88
|
fastify[method](path, { ...(options || {}) }, fastifyHandler);
|
89
89
|
});
|
90
|
-
onBeforeReady
|
91
|
-
|
92
|
-
|
90
|
+
if (onBeforeReady || onAfterReady) {
|
91
|
+
onBeforeReady?.({ fastify });
|
92
|
+
await fastify.ready();
|
93
|
+
onAfterReady?.({ fastify });
|
94
|
+
}
|
93
95
|
if (port) {
|
94
96
|
try {
|
95
97
|
const host = "0.0.0.0";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@art-ws/fastify-http-server",
|
3
|
-
"version": "2.0.
|
3
|
+
"version": "2.0.16",
|
4
4
|
"description": "Fastify Http server",
|
5
5
|
"license": "UNLICENSED",
|
6
6
|
"author": "Alexander Shagin",
|
@@ -17,8 +17,8 @@
|
|
17
17
|
"@fastify/static": "^8.2.0",
|
18
18
|
"@fastify/websocket": "^11.2.0",
|
19
19
|
"fastify": "^5.5.0",
|
20
|
-
"@art-ws/
|
21
|
-
"@art-ws/
|
20
|
+
"@art-ws/di": "2.0.21",
|
21
|
+
"@art-ws/http-server": "2.0.13"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
24
|
"eslint": "^9.34.0",
|