miqro 7.0.3 → 7.0.5

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": "miqro",
3
- "version": "7.0.3",
3
+ "version": "7.0.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "build/esm/src/lib.js",
@@ -82,7 +82,7 @@ async function main() {
82
82
  cache,
83
83
  localCache,
84
84
  loggerProvider,
85
- wsManager: webSocketManager,
85
+ webSocketManager,
86
86
  logger: loggerProvider.getLogger("server"),
87
87
  dbManager,
88
88
  port: PORT
@@ -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
- ${SERVERCONFIGLIST ? `\n await Promise.all([${SERVERCONFIGLIST}].filter(config=>config.preload).map(config=>config.preload(serverInterface)));\n` : ""}
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")}