@builder.io/dev-tools 1.18.40-dev.202512081828.78246177d → 1.18.40-dev.202512101047.78246177d
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 +1789 -1647
- 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 +1 -1
- package/server/index.cjs +854 -476
- package/server/index.mjs +870 -492
- package/types/cli/launch/server.d.ts +2 -5
- package/types/common/ast/convert-values.d.ts +1 -1
- package/types/server/source-map-resolver.d.ts +30 -0
- package/types/tsconfig.tsbuildinfo +1 -1
- package/types/types.d.ts +13 -1
|
@@ -3,21 +3,18 @@ import type { LaunchServerStatus } from "$/ai-utils";
|
|
|
3
3
|
export declare const BUILDER_ENDPOINT_PREFIX = "/_builder.io";
|
|
4
4
|
export declare const BUILDER_API_ENDPOINT_PREFIX: string;
|
|
5
5
|
/**
|
|
6
|
-
* Endpoints that are not authenticated because they are used by the fly.io health check
|
|
7
|
-
* or are called from the customer's iframe.
|
|
6
|
+
* Endpoints that are not authenticated because they are used by the fly.io health check.
|
|
8
7
|
*/
|
|
9
8
|
export declare const NON_AUTHENTICATED_ENDPOINTS: {
|
|
10
9
|
readonly STATUS: "/status";
|
|
11
10
|
readonly PROXY_STATUS: "/proxy-status";
|
|
12
11
|
readonly STATUS_V2: "/status-v2";
|
|
13
12
|
readonly INIT_LOGS: "/init-logs";
|
|
14
|
-
readonly COMPONENT_MAP: "/component-map";
|
|
15
13
|
};
|
|
16
|
-
export declare const configureServer: ({ app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState,
|
|
14
|
+
export declare const configureServer: ({ app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState, }: {
|
|
17
15
|
app: Express;
|
|
18
16
|
validBuilderPrivateKey: string | undefined;
|
|
19
17
|
authenticateProxy: boolean;
|
|
20
18
|
isLocal: boolean;
|
|
21
19
|
sharedState: LaunchServerStatus;
|
|
22
|
-
sys?: any;
|
|
23
20
|
}) => void;
|
|
@@ -8,4 +8,4 @@ export declare function objectExpressionToObjectValue(sys: DevToolsSys, objectLi
|
|
|
8
8
|
};
|
|
9
9
|
export declare function convertArrayExpressionToJsArray(sys: DevToolsSys, arr: ts.ArrayLiteralExpression): any[];
|
|
10
10
|
export declare function getTextOfPropertyName(sys: DevToolsSys, prop: ts.PropertyAssignment | ts.ObjectLiteralElementLike | undefined): string | undefined;
|
|
11
|
-
export declare function valueToExpression(sys: DevToolsSys, val: any): ts.ObjectLiteralExpression | ts.
|
|
11
|
+
export declare function valueToExpression(sys: DevToolsSys, val: any): ts.ObjectLiteralExpression | ts.Identifier | ts.StringLiteral | ts.NumericLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.ArrayLiteralExpression;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-side source map resolution for Turbopack and webpack projects
|
|
3
|
+
* Resolves bundled file locations to original source locations
|
|
4
|
+
*/
|
|
5
|
+
export interface OriginalPosition {
|
|
6
|
+
source: string;
|
|
7
|
+
line: number;
|
|
8
|
+
column: number;
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Resolve a bundled file location to its original source location
|
|
13
|
+
* @param projectRoot Root directory of the project
|
|
14
|
+
* @param bundledPath Path to the bundled file (e.g., /_next/static/chunks/app/page.js)
|
|
15
|
+
* @param line Line number in bundled file (1-indexed)
|
|
16
|
+
* @param column Column number in bundled file (0-indexed)
|
|
17
|
+
*/
|
|
18
|
+
export declare function resolveSourceLocation(projectRoot: string, bundledPath: string, line: number, column: number): Promise<OriginalPosition | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Batch resolve multiple source locations
|
|
21
|
+
*/
|
|
22
|
+
export declare function batchResolveSourceLocations(projectRoot: string, locations: Array<{
|
|
23
|
+
bundledPath: string;
|
|
24
|
+
line: number;
|
|
25
|
+
column: number;
|
|
26
|
+
}>): Promise<Array<OriginalPosition | null>>;
|
|
27
|
+
/**
|
|
28
|
+
* Clear the source map cache
|
|
29
|
+
*/
|
|
30
|
+
export declare function clearSourceMapCache(): void;
|