silgi 0.41.39 → 0.41.40

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.41.39";
4
+ const version = "0.41.40";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -29,7 +29,7 @@ export async function addNitroApp(silgiContext = useSilgi()) {
29
29
  }
30
30
  const webhookServices = Object.entries(silgiContext.services).filter(([key]) => key.startsWith("websocket:")).map(([, value]) => value);
31
31
  for (const webhook of webhookServices) {
32
- nitro.router.use(webhook.path, defineWebSocketHandler(webhook.websocket?.hooks || {}));
32
+ nitro.router.use(webhook.path, defineWebSocketHandler(webhook.websocket || {}));
33
33
  }
34
34
  }
35
35
  export default addNitroApp;
@@ -713,7 +713,7 @@ interface ServiceSetup<Method extends HTTPMethod = HTTPMethod, Path extends stri
713
713
  path: Path;
714
714
  method?: Method;
715
715
  handler?: ServiceHandler<Input, Output, PathParams, QueryParams, Resolved, HiddenParameters>;
716
- websocket?: WebSocketOptions;
716
+ websocket?: Partial<Hooks>;
717
717
  rules?: MergeRouteRules;
718
718
  modules?: Partial<SetupModuleOption>;
719
719
  storage?: StorageConfig<ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.41.39",
4
+ "version": "0.41.40",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {