miqro 7.0.3 → 7.0.4
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
|
@@ -90,6 +90,8 @@ async function main() {
|
|
|
90
90
|
|
|
91
91
|
await Promise.all([${DBCONFIGLIST}]);
|
|
92
92
|
|
|
93
|
+
${SERVERCONFIGLIST ? `\n await Promise.all([${SERVERCONFIGLIST}].filter(config=>config.preload).map(config=>config.preload(serverInterface)));\n` : ""}
|
|
94
|
+
|
|
93
95
|
${!WSLIST ? "" : `\n webSocketManager.replaceALLWS(await Promise.all([${WSLIST}]))`}
|
|
94
96
|
const app = new App({
|
|
95
97
|
onUpgrade: (req, socket, head) => {
|
|
@@ -101,7 +103,7 @@ async function main() {
|
|
|
101
103
|
}
|
|
102
104
|
}
|
|
103
105
|
});
|
|
104
|
-
|
|
106
|
+
|
|
105
107
|
app.use(ServerRequestHandler(serverInterface));
|
|
106
108
|
app.use(LoggerHandler());
|
|
107
109
|
${services.map(service => `app.use(await (await require("./${join(service, "router.cjs")}")).setupRouter());`).join("\n")}
|