@fncts/node 0.0.42 → 0.0.44
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/_cjs/fs/api.cjs +4 -2
- package/_cjs/fs/api.cjs.map +1 -1
- package/_cjs/http/IncomingMessage.cjs +5 -0
- package/_cjs/http/IncomingMessage.cjs.map +1 -1
- package/_cjs/http/ServerRequest.cjs +6 -3
- package/_cjs/http/ServerRequest.cjs.map +1 -1
- package/_cjs/stream/api.cjs +57 -39
- package/_cjs/stream/api.cjs.map +1 -1
- package/_mjs/fs/api.mjs +4 -2
- package/_mjs/fs/api.mjs.map +1 -1
- package/_mjs/http/IncomingMessage.mjs +5 -0
- package/_mjs/http/IncomingMessage.mjs.map +1 -1
- package/_mjs/http/ServerRequest.mjs +6 -3
- package/_mjs/http/ServerRequest.mjs.map +1 -1
- package/_mjs/stream/api.mjs +57 -39
- package/_mjs/stream/api.mjs.map +1 -1
- package/_src/fs/api.ts +2 -2
- package/_src/stream/api.ts +16 -0
- package/fs/api.d.ts +1 -1
- package/http/Server.d.ts +1 -1
- package/package.json +3 -3
package/fs/api.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export declare function realpathNative(path: fs.PathLike, options: {
|
|
|
99
99
|
}): FIO<ErrnoException, Buffer>;
|
|
100
100
|
export declare function rename(oldPath: fs.PathLike, newPath: fs.PathLike): FIO<ErrnoException, void>;
|
|
101
101
|
export declare function rm(path: fs.PathLike, options?: fs.RmOptions): FIO<ErrnoException, void>;
|
|
102
|
-
export declare function rmdir(path: fs.PathLike
|
|
102
|
+
export declare function rmdir(path: fs.PathLike): FIO<ErrnoException, void>;
|
|
103
103
|
export declare function stat(path: fs.PathLike, options?: {
|
|
104
104
|
bigint?: false;
|
|
105
105
|
}): FIO<ErrnoException, fs.Stats>;
|
package/http/Server.d.ts
CHANGED
|
@@ -29,5 +29,5 @@ export declare function make(evaluate: Lazy<Http.Server>, options: Net.ListenOpt
|
|
|
29
29
|
*/
|
|
30
30
|
export declare function makeHandler<R, E>(httpApp: HttpApp.Default<R, E>): IO<Exclude<R, ServerRequest | Scope>, never, (nodeRequest: Http.IncomingMessage, nodeResponse: Http.ServerResponse) => void>;
|
|
31
31
|
export declare function makeHandler<R, E, App extends HttpApp.Default<any, any>>(httpApp: HttpApp.Default<R, E>, middleware: Middleware.Applied<R, E | ResponseError, App>): IO<Exclude<R, ServerRequest | Scope>, never, (nodeRequest: Http.IncomingMessage, nodeResponse: Http.ServerResponse) => void>;
|
|
32
|
-
export declare function makeUpgradeHandler<R, E>(wss: UIO<ws.WebSocketServer>, httpApp: HttpApp.Default<R, E>, middleware?: Middleware): import("@fncts/io/IO").IO<import("@fncts/io/Scope").Scope
|
|
32
|
+
export declare function makeUpgradeHandler<R, E>(wss: UIO<ws.WebSocketServer>, httpApp: HttpApp.Default<R, E>, middleware?: Middleware): import("@fncts/io/IO").IO<R | import("@fncts/io/Scope").Scope, never, (nodeRequest: Http.IncomingMessage, socket: Duplex, head: Buffer) => void>;
|
|
33
33
|
export declare function handleResponse(request: ServerRequest, response: ServerResponse): import("@fncts/io/IO").IO<never, ResponseError, void>;
|