builder.io 1.18.34 → 1.18.36

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.
@@ -19,11 +19,16 @@ export interface ProxyMiddleware extends MiddlewareFunction {
19
19
  * @param socket - The socket connection
20
20
  * @param head - The first packet of the upgraded stream
21
21
  */
22
- upgrade?: WebSocketUpgradeFunction;
22
+ upgrade: WebSocketUpgradeFunction;
23
23
  /**
24
24
  * Cleanup method for graceful shutdown
25
25
  */
26
- cleanup?: () => void;
26
+ cleanup: () => void;
27
+ /**
28
+ * The target host to proxy to:
29
+ * e.g. "http://localhost:4000"
30
+ */
31
+ target: URL;
27
32
  }
28
33
  /**
29
34
  * Type guard to check if a middleware has WebSocket upgrade capability
@@ -1,12 +0,0 @@
1
- export interface DevServerUrlInfo {
2
- url: string;
3
- port: number;
4
- }
5
- /**
6
- * Parse dev server output to extract URL and port information
7
- *
8
- * @param output - The command output string to parse
9
- * @param customPatterns - Optional array of custom regex patterns to try first
10
- * @returns Object with url and port, or null if no valid URL found
11
- */
12
- export declare function parseDevServerOutput(output: string, customPatterns?: string[]): DevServerUrlInfo | null;
@@ -1 +0,0 @@
1
- export {};