silgi 0.41.56 → 0.41.57
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/dist/cli/build.mjs
CHANGED
|
@@ -1585,7 +1585,6 @@ async function generateApp(app, options = {}) {
|
|
|
1585
1585
|
if (template.watch === false) {
|
|
1586
1586
|
if (Array.isArray(app.options.watchOptions.ignored)) {
|
|
1587
1587
|
app.options.watchOptions.ignored.push(`${template.dst || template.src}`);
|
|
1588
|
-
app.options.devServer.watch.push(`!${template.dst || template.src}`);
|
|
1589
1588
|
}
|
|
1590
1589
|
}
|
|
1591
1590
|
if (options.filter && !options.filter(template)) {
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
defineEventHandler,
|
|
3
|
-
toWebRequest
|
|
4
|
-
defineWebSocketHandler
|
|
3
|
+
toWebRequest
|
|
5
4
|
} from "h3";
|
|
6
5
|
import {
|
|
7
6
|
silgiFetch,
|
|
@@ -29,7 +28,11 @@ export async function addNitroApp(silgiContext = useSilgi()) {
|
|
|
29
28
|
}
|
|
30
29
|
const webhookServices = Object.entries(silgiContext.services).filter(([key]) => key.startsWith("websocket:")).map(([, value]) => value);
|
|
31
30
|
for (const webhook of webhookServices) {
|
|
32
|
-
nitro.router.use(webhook.path,
|
|
31
|
+
nitro.router.use(webhook.path, defineEventHandler({
|
|
32
|
+
handler: () => {
|
|
33
|
+
},
|
|
34
|
+
websocket: webhook.websocket || {}
|
|
35
|
+
}));
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
export default addNitroApp;
|