@rsbuild/core 2.1.12 → 2.2.0-beta.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/compiled/connect-next/index.d.ts +11 -10
- package/compiled/connect-next/package.json +1 -1
- package/compiled/css-loader/index.js +2 -2
- package/compiled/html-rspack-plugin/index.js +14 -14
- package/compiled/postcss-loader/index.js +6 -6
- package/dist/626.js +43 -50
- package/dist/client/hmr.js +2 -5
- package/dist/connect-next.js +1 -1
- package/dist/manifest-plugin.js +1 -1
- package/dist/memfs.js +1 -1
- package/dist/open.js +2 -2
- package/dist/server/runner/type.d.ts +1 -1
- package/dist/tinyglobby.js +1 -1
- package/dist/types/config.d.ts +1 -1
- package/package.json +5 -5
- package/types.d.ts +2 -3
|
@@ -18,31 +18,32 @@ interface IncomingMessage extends http.IncomingMessage {
|
|
|
18
18
|
originalUrl?: http.IncomingMessage['url'] | undefined;
|
|
19
19
|
}
|
|
20
20
|
type NextFunction = (err?: any) => void;
|
|
21
|
-
type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) =>
|
|
22
|
-
type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) =>
|
|
23
|
-
type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) =>
|
|
21
|
+
type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => unknown;
|
|
22
|
+
type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => unknown;
|
|
23
|
+
type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => unknown;
|
|
24
24
|
type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction;
|
|
25
25
|
type ServerHandle = HandleFunction | http.Server;
|
|
26
|
+
type ListenCallback = () => void;
|
|
26
27
|
interface ServerStackItem {
|
|
27
28
|
route: string;
|
|
28
29
|
handle: ServerHandle;
|
|
29
30
|
}
|
|
30
31
|
interface Server extends EventEmitter {
|
|
31
|
-
(req: http.IncomingMessage, res: http.ServerResponse, next?:
|
|
32
|
+
(req: http.IncomingMessage, res: http.ServerResponse, next?: NextFunction): void;
|
|
32
33
|
route: string;
|
|
33
34
|
stack: ServerStackItem[];
|
|
34
|
-
handle(req: http.IncomingMessage, res: http.ServerResponse, next?:
|
|
35
|
+
handle(req: http.IncomingMessage, res: http.ServerResponse, next?: NextFunction): void;
|
|
35
36
|
use(fn: NextHandleFunction): Server;
|
|
36
37
|
use(fn: HandleFunction): Server;
|
|
37
38
|
use(fn: http.Server): Server;
|
|
38
39
|
use(route: string, fn: NextHandleFunction): Server;
|
|
39
40
|
use(route: string, fn: HandleFunction): Server;
|
|
40
41
|
use(route: string, fn: http.Server): Server;
|
|
41
|
-
listen(port: number, hostname?: string, backlog?: number, callback?:
|
|
42
|
-
listen(port: number, hostname?: string, callback?:
|
|
43
|
-
listen(path: string, callback?:
|
|
44
|
-
listen(options: ListenOptions, callback?:
|
|
45
|
-
listen(handle: unknown, listeningListener?:
|
|
42
|
+
listen(port: number, hostname?: string, backlog?: number, callback?: ListenCallback): http.Server;
|
|
43
|
+
listen(port: number, hostname?: string, callback?: ListenCallback): http.Server;
|
|
44
|
+
listen(path: string, callback?: ListenCallback): http.Server;
|
|
45
|
+
listen(options: ListenOptions, callback?: ListenCallback): http.Server;
|
|
46
|
+
listen(handle: unknown, listeningListener?: ListenCallback): http.Server;
|
|
46
47
|
}
|
|
47
48
|
/**
|
|
48
49
|
* Create a new connect server.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"connect-next","author":"TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)","version":"
|
|
1
|
+
{"name":"connect-next","author":"TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)","version":"5.0.0","license":"MIT","types":"index.d.ts","type":"module"}
|