@moneko/core 3.43.0 → 3.43.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.
@@ -23,11 +23,11 @@ export interface RequestFormData extends IncomingMessage {
23
23
  query?: Record<string, string>;
24
24
  body?: Promise<BodyInit | null>;
25
25
  }
26
- export type MockServerResponse = ServerResponse<IncomingMessage> & {
26
+ export interface MockServerResponse extends ServerResponse<IncomingMessage> {
27
27
  req: IncomingMessage;
28
- send(chunk: unknown): ReturnType<ServerResponse<IncomingMessage>['end']>;
29
- };
30
- export type ProxyFuncType = (req: IncomingMessage, res: MockServerResponse) => void | Promise<void>;
28
+ send<T>(chunk: T): ReturnType<ServerResponse<IncomingMessage>['end']>;
29
+ }
30
+ export type ProxyFuncType = (req: RequestFormData, res: MockServerResponse) => void | Promise<void>;
31
31
  export type MockConfiguration = Record<string, ProxyFuncType | Record<string, any> | null>;
32
32
  declare function clearProxy(iproxy: MockConfiguration, path: string, old: MockConfiguration);
33
33
  export type YApiOptionBySchema = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/core",
3
- "version": "3.43.0",
3
+ "version": "3.43.1",
4
4
  "description": "core",
5
5
  "main": "lib/index.mjs",
6
6
  "type": "module",