@gscdump/sdk 0.32.2 → 0.32.3

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.
Files changed (2) hide show
  1. package/dist/index.mjs +4 -1
  2. package/package.json +5 -5
package/dist/index.mjs CHANGED
@@ -1532,9 +1532,12 @@ function createPartnerRealtimeClient(options) {
1532
1532
  close(code, reason) {
1533
1533
  manualClose = true;
1534
1534
  clearReconnectTimer();
1535
- socket?.close(code, reason);
1535
+ const ws = socket;
1536
1536
  socket = null;
1537
1537
  setStatus("closed");
1538
+ if (!ws) return;
1539
+ if (ws.readyState === 0) ws.onopen = () => ws.close(code, reason);
1540
+ else ws.close(code, reason);
1538
1541
  },
1539
1542
  ping() {
1540
1543
  sendJson({ type: "ping" });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/sdk",
3
3
  "type": "module",
4
- "version": "0.32.2",
4
+ "version": "0.32.3",
5
5
  "description": "Consumer SDK for hosted gscdump.com integrations.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -44,10 +44,10 @@
44
44
  "date-fns": "^4.4.0",
45
45
  "ofetch": "^1.5.1",
46
46
  "zod": "^4.4.3",
47
- "@gscdump/analysis": "0.32.2",
48
- "@gscdump/engine": "0.32.2",
49
- "@gscdump/contracts": "0.32.2",
50
- "gscdump": "0.32.2"
47
+ "@gscdump/analysis": "0.32.3",
48
+ "@gscdump/contracts": "0.32.3",
49
+ "@gscdump/engine": "0.32.3",
50
+ "gscdump": "0.32.3"
51
51
  },
52
52
  "devDependencies": {
53
53
  "typescript": "^6.0.3",