zynapse 0.1.7 → 0.1.8

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.
@@ -84,7 +84,7 @@ async function bidirectionalProcedureCodeGen(proc, parentService) {
84
84
  name: inputIdentifier,
85
85
  });
86
86
  let buff = `export ${schema}\nexport ${stringifiedAlias}\n\nexport function use${parentService.name}${proc.name}Bidirectional`;
87
- buff += `(extraOptions?: {
87
+ buff += `(active?: boolean = true,extraOptions?: {
88
88
  onError?: (errorMessage: string) => void;
89
89
  onClose?: () => void;
90
90
  })`;
@@ -163,7 +163,7 @@ const send = useCallback((data: z.infer<typeof ${inputIdentifier}>) => {
163
163
  socketRef.current = undefined;
164
164
  setIsConnected(false);
165
165
  };
166
- }, []);
166
+ }, [active]);
167
167
 
168
168
 
169
169
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zynapse",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "A TypeScript library providing a schema-based API system with type-safe server implementations",
5
5
  "type": "module",
6
6
  "main": "./dist/schema/index.js",