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.
@@ -0,0 +1,7 @@
1
+ interface InstallOptions {
2
+ prefix?: string;
3
+ dryRun?: boolean;
4
+ skipDeps?: boolean;
5
+ }
6
+ export declare function handleInstall(options: InstallOptions): Promise<void>;
7
+ export {};
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>;
@@ -0,0 +1,3 @@
1
+ import type { Handler } from '../index';
2
+ import type { TidewaveConfig } from '../../core';
3
+ export declare function createHandleConfig(config: TidewaveConfig): Handler;
@@ -0,0 +1,3 @@
1
+ import type { Handler } from '../index';
2
+ import type { TidewaveConfig } from '../../core';
3
+ export declare function createHandleHtml(config: TidewaveConfig): Handler;
@@ -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
- export declare const HANDLERS: Record<string, Handler>;
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 };