@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../../src/graphql/websocket.ts"],"names":[],"mappings":"
|
|
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
|
-
|
|
5
|
-
|
|
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":"
|
|
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"}
|