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.
package/dist/cli/index.mjs
CHANGED
|
@@ -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
|
|
32
|
+
nitro.router.use(webhook.path, defineWebSocketHandler(webhook.websocket || {}));
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
export default addNitroApp;
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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?:
|
|
716
|
+
websocket?: Partial<Hooks>;
|
|
717
717
|
rules?: MergeRouteRules;
|
|
718
718
|
modules?: Partial<SetupModuleOption>;
|
|
719
719
|
storage?: StorageConfig<ServiceHandlerInput<Input, PathParams, QueryParams, HiddenParameters>>;
|