@valbuild/server 0.64.0 → 0.65.0
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/dist/declarations/src/ValFS.d.ts +0 -1
- package/dist/declarations/src/ValFSHost.d.ts +0 -1
- package/dist/declarations/src/ValRouter.d.ts +1 -1
- package/dist/declarations/src/ValServer.d.ts +4 -2
- package/dist/valbuild-server.cjs.d.ts +2 -2
- package/dist/valbuild-server.cjs.dev.js +797 -240
- package/dist/valbuild-server.cjs.prod.js +797 -240
- package/dist/valbuild-server.esm.js +797 -240
- package/package.json +5 -4
- package/dist/valbuild-server.cjs.d.ts.map +0 -1
@@ -113,7 +113,7 @@ type ValServerOverrides = Partial<{
|
|
113
113
|
*/
|
114
114
|
disableCache?: boolean;
|
115
115
|
}>;
|
116
|
-
export declare function createValServer(valModules: ValModules, route: string, opts: ValApiOptions, callbacks: ValServerCallbacks, formatter?: (code: string, filePath: string) => string | Promise<string>): Promise<ValServer>;
|
116
|
+
export declare function createValServer(valModules: ValModules, route: string, opts: ValApiOptions, config: ValConfig, callbacks: ValServerCallbacks, formatter?: (code: string, filePath: string) => string | Promise<string>): Promise<ValServer>;
|
117
117
|
export declare function safeReadGit(cwd: string): Promise<{
|
118
118
|
commit?: string;
|
119
119
|
branch?: string;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
import { ValModules } from "@valbuild/core";
|
1
|
+
import { ValModules, ValConfig } from "@valbuild/core";
|
3
2
|
import { Api, ServerOf } from "@valbuild/shared/internal";
|
4
3
|
import { z } from "zod";
|
5
4
|
export type ValServerOptions = {
|
@@ -11,10 +10,12 @@ export type ValServerOptions = {
|
|
11
10
|
valSecret?: string;
|
12
11
|
apiKey?: string;
|
13
12
|
project?: string;
|
13
|
+
config: ValConfig;
|
14
14
|
};
|
15
15
|
export type ValServerConfig = ValServerOptions & ({
|
16
16
|
mode: "fs";
|
17
17
|
cwd: string;
|
18
|
+
config: ValConfig;
|
18
19
|
} | {
|
19
20
|
mode: "http";
|
20
21
|
valContentUrl: string;
|
@@ -23,6 +24,7 @@ export type ValServerConfig = ValServerOptions & ({
|
|
23
24
|
commit: string;
|
24
25
|
branch: string;
|
25
26
|
root?: string;
|
27
|
+
config: ValConfig;
|
26
28
|
});
|
27
29
|
export type ValServer = ServerOf<Api>;
|
28
30
|
export declare const ValServer: (valModules: ValModules, options: ValServerConfig, callbacks: ValServerCallbacks) => ServerOf<Api>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from "./declarations/src/index";
|
2
|
-
//# sourceMappingURL=
|
1
|
+
export * from "./declarations/src/index.js";
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsYnVpbGQtc2VydmVyLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
|