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.
@@ -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)) {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.41.56";
4
+ const version = "0.41.57";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -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, defineWebSocketHandler(webhook.websocket || {}));
31
+ nitro.router.use(webhook.path, defineEventHandler({
32
+ handler: () => {
33
+ },
34
+ websocket: webhook.websocket || {}
35
+ }));
33
36
  }
34
37
  }
35
38
  export default addNitroApp;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.41.56",
4
+ "version": "0.41.57",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {