hono 4.0.8 → 4.0.9

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.
@@ -69,7 +69,7 @@ class StreamingApi {
69
69
  await body.pipeTo(this.writable, { preventClose: true });
70
70
  this.writer = this.writable.getWriter();
71
71
  }
72
- async onAbort(listener) {
72
+ onAbort(listener) {
73
73
  this.abortSubscribers.push(listener);
74
74
  }
75
75
  }
@@ -9,10 +9,8 @@ export type Env = {
9
9
  };
10
10
  export type Next = () => Promise<void>;
11
11
  export type Input = {
12
- in?: Partial<ValidationTargets>;
13
- out?: Partial<{
14
- [K in keyof ValidationTargets]: unknown;
15
- }>;
12
+ in?: {};
13
+ out?: {};
16
14
  };
17
15
  export type BlankSchema = {};
18
16
  export type BlankInput = {};
@@ -10,5 +10,5 @@ export declare class StreamingApi {
10
10
  sleep(ms: number): Promise<unknown>;
11
11
  close(): Promise<void>;
12
12
  pipe(body: ReadableStream): Promise<void>;
13
- onAbort(listener: () => void | Promise<void>): Promise<void>;
13
+ onAbort(listener: () => void | Promise<void>): void;
14
14
  }
@@ -47,7 +47,7 @@ var StreamingApi = class {
47
47
  await body.pipeTo(this.writable, { preventClose: true });
48
48
  this.writer = this.writable.getWriter();
49
49
  }
50
- async onAbort(listener) {
50
+ onAbort(listener) {
51
51
  this.abortSubscribers.push(listener);
52
52
  }
53
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.0.8",
3
+ "version": "4.0.9",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",