@builder.io/dev-tools 1.19.6 → 1.19.7
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 +570 -555
- 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 +121 -121
- package/server/index.mjs +120 -120
- package/types/cli/launch/server.d.ts +3 -1
- package/types/common/errors.d.ts +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Express } from "express";
|
|
2
2
|
import type { LaunchServerStatus } from "$/ai-utils";
|
|
3
|
+
import type { DevToolsSys } from "../../types";
|
|
3
4
|
export declare const BUILDER_ENDPOINT_PREFIX = "/_builder.io";
|
|
4
5
|
export declare const BUILDER_API_ENDPOINT_PREFIX: string;
|
|
5
6
|
/**
|
|
@@ -11,7 +12,8 @@ export declare const NON_AUTHENTICATED_ENDPOINTS: {
|
|
|
11
12
|
readonly STATUS_V2: "/status-v2";
|
|
12
13
|
readonly INIT_LOGS: "/init-logs";
|
|
13
14
|
};
|
|
14
|
-
export declare const configureServer: ({ app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState, }: {
|
|
15
|
+
export declare const configureServer: ({ sys, app, validBuilderPrivateKey, authenticateProxy, isLocal, sharedState, }: {
|
|
16
|
+
sys: DevToolsSys;
|
|
15
17
|
app: Express;
|
|
16
18
|
validBuilderPrivateKey: string | undefined;
|
|
17
19
|
authenticateProxy: boolean;
|
package/types/common/errors.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export declare class NetworkError extends PrivateError {
|
|
|
25
25
|
readonly statusCode?: number;
|
|
26
26
|
readonly errorCode?: string;
|
|
27
27
|
}
|
|
28
|
-
export type NetworkErrorType = "connection_refused" | "connection_timeout" | "dns_not_found" | "
|
|
28
|
+
export type NetworkErrorType = "connection_refused" | "connection_reset" | "connection_aborted" | "connection_timeout" | "dns_not_found" | "ssl_certificate_expired" | "ssl_certificate_not_yet_valid" | "ssl_self_signed" | "ssl_certificate_invalid" | "ssl_handshake_failed" | "ssl_protocol_error" | "proxy_error" | "network_unreachable" | "server_error" | "socket_error" | "unknown";
|
|
29
29
|
export declare function convertNodeErrorToNetworkError(error: Error & {
|
|
30
30
|
code?: string;
|
|
31
31
|
}, hostname: string, port?: number): NetworkError;
|