deserved 0.6.0 → 0.6.1
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/README.md +25 -18
- package/index.d.ts +62 -3
- package/package.json +17 -13
- package/src/cli.ts +176 -0
- package/src/handlers.ts +1098 -0
- package/src/index.ts +3 -0
- package/src/live.ts +98 -0
- package/src/log.ts +97 -0
- package/src/options.ts +29 -0
- package/src/server.ts +202 -0
- package/chunk-6mm4k23z.js +0 -38
- package/cli.js +0 -33
- package/handlers.d.ts +0 -52
- package/index.js +0 -2
- package/live.d.ts +0 -17
- package/log.d.ts +0 -6
- package/options.d.ts +0 -26
- package/server.d.ts +0 -20
package/server.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type Options } from "./options";
|
|
2
|
-
export type ServerHandle = {
|
|
3
|
-
port: number;
|
|
4
|
-
hostname: string;
|
|
5
|
-
url: string;
|
|
6
|
-
stop: () => Promise<void>;
|
|
7
|
-
};
|
|
8
|
-
export declare class RootError extends Error {
|
|
9
|
-
constructor(message: string, options?: ErrorOptions);
|
|
10
|
-
}
|
|
11
|
-
export declare class BindError extends Error {
|
|
12
|
-
constructor(host: string, port: number, options?: ErrorOptions);
|
|
13
|
-
}
|
|
14
|
-
export declare function formatUrl(host: string, port: number): string;
|
|
15
|
-
export type StartOptions = {
|
|
16
|
-
portExplicit?: boolean;
|
|
17
|
-
banner?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare function startServer(opts: Options, { portExplicit, banner }?: StartOptions): Promise<ServerHandle>;
|
|
20
|
-
export declare function serve(options?: Partial<Options>): Promise<ServerHandle>;
|