tidewave 0.5.0 → 0.5.2
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/CHANGELOG.md +7 -48
- package/README.md +41 -13
- package/dist/cli/index.js +2746 -46
- package/dist/cli/install.d.ts +7 -0
- package/dist/core.d.ts +3 -0
- package/dist/http/handlers/config.d.ts +3 -0
- package/dist/http/handlers/html.d.ts +3 -0
- package/dist/http/index.d.ts +2 -1
- package/dist/next-js/handler.js +590 -121
- package/dist/vite-plugin.js +588 -60
- package/package.json +7 -12
package/dist/core.d.ts
CHANGED
|
@@ -75,8 +75,11 @@ export interface TidewaveConfig {
|
|
|
75
75
|
clientUrl?: string;
|
|
76
76
|
allowRemoteAccess?: boolean;
|
|
77
77
|
allowedOrigins?: string[];
|
|
78
|
+
projectName?: string;
|
|
79
|
+
framework?: string;
|
|
78
80
|
team?: {
|
|
79
81
|
id?: string;
|
|
80
82
|
token?: string;
|
|
81
83
|
};
|
|
82
84
|
}
|
|
85
|
+
export declare function getProjectName(defaultName?: string): Promise<string>;
|
package/dist/http/index.d.ts
CHANGED
|
@@ -8,8 +8,9 @@ export type Response = ServerResponse<IncomingMessage>;
|
|
|
8
8
|
export type NextFn = NextFunction;
|
|
9
9
|
export declare const ENDPOINT: "/tidewave";
|
|
10
10
|
export type Handler = (req: Request, res: Response, next: NextFn) => Promise<void>;
|
|
11
|
-
|
|
11
|
+
declare function getHandlers(config: TidewaveConfig): Record<string, Handler>;
|
|
12
12
|
export declare function configureServer(server?: Server, config?: TidewaveConfig): Server;
|
|
13
13
|
export declare function serve(server: Server, config?: TidewaveConfig): void;
|
|
14
14
|
export declare function checkSecurity(config: TidewaveConfig): (req: Request, res: Response, next: NextFn) => void;
|
|
15
15
|
export declare function methodNotAllowed(res: Response): void;
|
|
16
|
+
export { getHandlers };
|