miolo 3.0.0-beta.209 → 3.0.0-beta.210
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 +1 -1
- package/src/server-cron.mjs +7 -0
- package/template/package.json +3 -3
package/package.json
CHANGED
package/src/server-cron.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { init_config } from "./config/index.mjs"
|
|
2
2
|
import { init_cron } from "./engines/cron/index.mjs"
|
|
3
|
+
import { init_socket } from "./engines/socket/index.mjs"
|
|
3
4
|
import { init_context_middleware } from "./middleware/context/index.mjs"
|
|
4
5
|
|
|
5
6
|
export async function miolo_cron(makeConfig) {
|
|
@@ -21,6 +22,9 @@ export async function miolo_cron(makeConfig) {
|
|
|
21
22
|
app.start = async () => {
|
|
22
23
|
// Init and reset db connection
|
|
23
24
|
await app.context.miolo.db.init_connection()
|
|
25
|
+
if (app.context.miolo?.io) {
|
|
26
|
+
app.context.miolo.io.attach(app.http.server)
|
|
27
|
+
}
|
|
24
28
|
await app.cron.start()
|
|
25
29
|
}
|
|
26
30
|
|
|
@@ -34,5 +38,8 @@ export async function miolo_cron(makeConfig) {
|
|
|
34
38
|
await app.start()
|
|
35
39
|
}
|
|
36
40
|
|
|
41
|
+
// Socket.io
|
|
42
|
+
init_socket(app, config?.socket)
|
|
43
|
+
|
|
37
44
|
return app
|
|
38
45
|
}
|
package/template/package.json
CHANGED
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"intre": "^3.0.0-beta.4",
|
|
46
46
|
"joi": "^18.2.3",
|
|
47
47
|
"lucide-react": "^1.21.0",
|
|
48
|
-
"miolo-cli": "^3.0.0-beta.
|
|
48
|
+
"miolo-cli": "^3.0.0-beta.210",
|
|
49
49
|
"miolo-model": "file:../miolo-model",
|
|
50
|
-
"miolo-react": "^3.0.0-beta.
|
|
50
|
+
"miolo-react": "^3.0.0-beta.210",
|
|
51
51
|
"next-themes": "^0.4.6",
|
|
52
52
|
"radix-ui": "^1.6.0",
|
|
53
53
|
"react": "^19.2.7",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@biomejs/biome": "2.5.0",
|
|
65
|
-
"miolo": "^3.0.0-beta.
|
|
65
|
+
"miolo": "^3.0.0-beta.210",
|
|
66
66
|
"sass-embedded": "^1.100.0"
|
|
67
67
|
},
|
|
68
68
|
"overrides": {
|