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.
- package/cli/index.cjs +486 -480
- package/cli/index.cjs.map +4 -4
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +4 -4
- package/server/index.cjs +90 -90
- package/server/index.mjs +96 -96
- package/types/cli/codegen.d.ts +21 -0
- package/types/cli/launch/dev-server-orchestrator.d.ts +1 -1
- package/types/cli/launch/proxy.d.ts +4 -1
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types/proxy-middleware.d.ts +7 -2
- package/types/cli/utils/dev-server-url-parser.d.ts +0 -12
- package/types/cli/utils/dev-server-url-parser.test.d.ts +0 -1
package/types/cli/codegen.d.ts
CHANGED
|
@@ -341,6 +341,27 @@ export declare class CodeGenSession {
|
|
|
341
341
|
newContent: string | null;
|
|
342
342
|
action: "create" | "update" | "delete";
|
|
343
343
|
}>;
|
|
344
|
+
/**
|
|
345
|
+
* Discards changes for a specific file by creating a revert commit
|
|
346
|
+
* @param filePath - The file path to discard changes for
|
|
347
|
+
* @returns success status, commit hash for reverting, and optional error message
|
|
348
|
+
*/
|
|
349
|
+
discardFileChanges(filePath: string): Promise<{
|
|
350
|
+
success: boolean;
|
|
351
|
+
commitHash?: string;
|
|
352
|
+
error?: string;
|
|
353
|
+
}>;
|
|
354
|
+
/**
|
|
355
|
+
* Reverts a discard commit using git revert
|
|
356
|
+
* @param commitHash - The commit hash to revert
|
|
357
|
+
* @returns success status and optional error message
|
|
358
|
+
*/
|
|
359
|
+
revertDiscard(options: {
|
|
360
|
+
commitHash: string;
|
|
361
|
+
}): Promise<{
|
|
362
|
+
success: boolean;
|
|
363
|
+
error?: string;
|
|
364
|
+
}>;
|
|
344
365
|
/**
|
|
345
366
|
* Checks if a file exists in the workspace
|
|
346
367
|
* @param filePath A file path that may include a workspace prefix
|
|
@@ -100,6 +100,6 @@ export interface DevServerOrchestrator {
|
|
|
100
100
|
close: () => Promise<void>;
|
|
101
101
|
}
|
|
102
102
|
export declare const importPty: (sys: DevToolsSys) => typeof import("@lydell/node-pty") | undefined;
|
|
103
|
-
export declare function safeParseUrl(serverUrl:
|
|
103
|
+
export declare function safeParseUrl(serverUrl: any): URL | undefined;
|
|
104
104
|
export declare function devServerOrchestrator(sys: DevToolsSys, fusionConfig: FusionConfig, initialSetupState: "installed" | "not-installed" | "install-failed"): Promise<DevServerOrchestrator>;
|
|
105
105
|
export declare const checkPortsListenedByPid: (pid: number) => number[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { DevToolsSys } from "../../types";
|
|
2
2
|
import type { ProxyMiddleware } from "../../types/proxy-middleware";
|
|
3
|
-
|
|
3
|
+
import type { IncomingMessage } from "http";
|
|
4
|
+
export declare const createPassThroughProxy: () => import("http-proxy-3").ProxyServer<typeof IncomingMessage, typeof import("http").ServerResponse, Error>;
|
|
5
|
+
export declare const createProxyMiddleware: (serverUrl: URL, sys: DevToolsSys) => ProxyMiddleware | undefined;
|
|
4
6
|
/**
|
|
5
7
|
* Detects if HTML was server-side rendered by checking for framework-specific markers.
|
|
6
8
|
* Returns whether SSR was used and whether the header/head was server-rendered.
|
|
@@ -9,3 +11,4 @@ export declare const detectSSR: (body: string) => {
|
|
|
9
11
|
hasSSR: boolean;
|
|
10
12
|
hasHeaderSSR: boolean;
|
|
11
13
|
};
|
|
14
|
+
export declare const permissiveHTTPS: any;
|