builder.io 1.11.44 → 1.11.45

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,14 +1,17 @@
1
1
  import type { Duplex } from "stream";
2
+ import type { DevToolsSys } from "../types";
2
3
  /**
3
4
  * Tracks active WebSocket connections to prevent memory leaks
4
5
  */
5
6
  export declare class ConnectionTracker {
6
7
  private connections;
7
8
  private maxConnections;
9
+ private sys;
10
+ constructor(sys: DevToolsSys);
8
11
  /**
9
12
  * Add a connection to tracking
10
13
  */
11
- addConnection(socket: Duplex): boolean;
14
+ addConnection(socket: Duplex, req?: any): boolean;
12
15
  /**
13
16
  * Remove a connection from tracking
14
17
  */
package/types/types.d.ts CHANGED
@@ -54,6 +54,7 @@ export interface DevToolsSys extends DevToolsPath {
54
54
  getFrameworks: () => Framework[];
55
55
  getRepoInfo: (githubWorkingDirectory?: string) => Promise<RepoInfo>;
56
56
  Sentry: typeof import("@sentry/node") | undefined;
57
+ connectionTracker: import("./types/connection-tracker").ConnectionTracker;
57
58
  ts: typeof import("typescript");
58
59
  version: string;
59
60
  sdkVersion: SDK_VERSION_VALUES | null;