@omercnet/paseo-shared-browser 4.1.7 → 4.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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-shared-browser",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@omercnet/paseo-shared-browser",
9
- "version": "4.1.7",
9
+ "version": "4.1.8",
10
10
  "dependencies": {
11
11
  "@getpaseo/plugin": "0.15.0",
12
12
  "@modelcontextprotocol/sdk": "1.32.2",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omercnet/paseo-shared-browser",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "description": "One real Chromium session per Paseo workspace, shared live across every connected client.",
5
5
  "keywords": [
6
6
  "browser",
@@ -96,6 +96,8 @@ export class SupervisorClient {
96
96
  socket.once("connect", () => resolve(socket));
97
97
  socket.once("error", reject);
98
98
  });
99
+ // disconnect() had no socket to destroy while this attempt was still connecting.
100
+ if (this.closed) throw new Error("Supervisor client disconnected while connecting");
99
101
  this.socket.setEncoding("utf8");
100
102
  this.socket.on("data", (chunk: string) => this.consume(chunk));
101
103
  this.socket.once("close", () => this.handleClose(new Error("Supervisor connection closed")));