@powerhousedao/reactor-api 4.1.0-dev.124 → 4.1.0-dev.125

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,2 +1,3 @@
1
- export declare const useServer: any;
1
+ import type { useServer as wsUseServer } from "graphql-ws/use/ws";
2
+ export declare const useServer: typeof wsUseServer;
2
3
  //# sourceMappingURL=websocket.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/graphql/websocket.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,SAAS,KAMlB,CAAC"}
1
+ {"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/graphql/websocket.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgBlE,eAAO,MAAM,SAAS,oBAMlB,CAAC"}
@@ -1,17 +1,13 @@
1
1
  let useServerImpl = null;
2
2
  if (process.env.VITEST !== "true" && process.env.NODE_ENV !== "test") {
3
3
  try {
4
- // @ts-expect-error - graphql-ws subpath not resolved by TypeScript
5
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
6
- const mod = await import("graphql-ws/lib/use/ws");
7
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-member-access
8
- useServerImpl = mod.useServer;
4
+ const { useServer } = await import("graphql-ws/use/ws");
5
+ useServerImpl = useServer;
9
6
  }
10
7
  catch (error) {
11
8
  console.warn("Failed to load graphql-ws WebSocket server. Subscriptions will not work.", error);
12
9
  }
13
10
  }
14
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
15
11
  export const useServer = useServerImpl ||
16
12
  (() => {
17
13
  throw new Error("WebSocket server not available in test mode. Set NODE_ENV=production to enable.");
@@ -1 +1 @@
1
- {"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../src/graphql/websocket.ts"],"names":[],"mappings":"AAAA,IAAI,aAAa,GAAQ,IAAI,CAAC;AAE9B,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;IACrE,IAAI,CAAC;QACH,mEAAmE;QACnE,mEAAmE;QACnE,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAC;QAClD,+GAA+G;QAC/G,aAAa,GAAG,GAAG,CAAC,SAAS,CAAC;IAChC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CACV,0EAA0E,EAC1E,KAAK,CACN,CAAC;IACJ,CAAC;AACH,CAAC;AAED,mEAAmE;AACnE,MAAM,CAAC,MAAM,SAAS,GACpB,aAAa;IACb,CAAC,GAAG,EAAE;QACJ,MAAM,IAAI,KAAK,CACb,iFAAiF,CAClF,CAAC;IACJ,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../../src/graphql/websocket.ts"],"names":[],"mappings":"AAEA,IAAI,aAAa,GAA8B,IAAI,CAAC;AAEpD,IAAI,OAAO,CAAC,GAAG,CAAC,MAAM,KAAK,MAAM,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,MAAM,EAAE,CAAC;IACrE,IAAI,CAAC;QACH,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;QACxD,aAAa,GAAG,SAAS,CAAC;IAC5B,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CACV,0EAA0E,EAC1E,KAAK,CACN,CAAC;IACJ,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,SAAS,GACpB,aAAa;IACb,CAAC,GAAG,EAAE;QACJ,MAAM,IAAI,KAAK,CACb,iFAAiF,CAClF,CAAC;IACJ,CAAC,CAAC,CAAC"}