@mokup/server 0.0.0 → 0.0.2

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @mokup/server
2
+
3
+ English | [Chinese](./README.zh-CN.md)
4
+
5
+ ## Overview
6
+
7
+ Server adapters for Mokup that integrate the runtime with popular Node frameworks and Workers. For detailed usage, see https://mokup.icebreaker.top.
@@ -0,0 +1,7 @@
1
+ # @mokup/server
2
+
3
+ [English](./README.md) | 中文
4
+
5
+ ## 概览
6
+
7
+ Mokup 的 Server 适配器集合,用于把运行时接入各类 Node 框架与 Worker。完整文档见 https://mokup.icebreaker.top。
package/dist/index.d.cts CHANGED
@@ -42,10 +42,9 @@ interface HonoContextLike {
42
42
  req: {
43
43
  raw: Request;
44
44
  };
45
- notFound?: () => Response;
46
45
  }
47
- type HonoNext = () => Promise<unknown>;
48
- type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<unknown>;
46
+ type HonoNext = () => Promise<Response | void>;
47
+ type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<Response | void>;
49
48
  interface HonoRouteLike {
50
49
  basePath: string;
51
50
  path: string;
package/dist/index.d.mts CHANGED
@@ -42,10 +42,9 @@ interface HonoContextLike {
42
42
  req: {
43
43
  raw: Request;
44
44
  };
45
- notFound?: () => Response;
46
45
  }
47
- type HonoNext = () => Promise<unknown>;
48
- type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<unknown>;
46
+ type HonoNext = () => Promise<Response | void>;
47
+ type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<Response | void>;
49
48
  interface HonoRouteLike {
50
49
  basePath: string;
51
50
  path: string;
package/dist/index.d.ts CHANGED
@@ -42,10 +42,9 @@ interface HonoContextLike {
42
42
  req: {
43
43
  raw: Request;
44
44
  };
45
- notFound?: () => Response;
46
45
  }
47
- type HonoNext = () => Promise<unknown>;
48
- type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<unknown>;
46
+ type HonoNext = () => Promise<Response | void>;
47
+ type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<Response | void>;
49
48
  interface HonoRouteLike {
50
49
  basePath: string;
51
50
  path: string;
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@mokup/server",
3
3
  "type": "module",
4
- "version": "0.0.0",
4
+ "version": "0.0.2",
5
5
  "description": "Server adapters for @mokup/runtime.",
6
6
  "license": "MIT",
7
+ "homepage": "https://mokup.icebreaker.top",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "git+https://github.com/sonofmagic/mokup.git",
@@ -31,7 +32,7 @@
31
32
  "dist"
32
33
  ],
33
34
  "dependencies": {
34
- "@mokup/runtime": "0.0.0"
35
+ "@mokup/runtime": "0.1.0"
35
36
  },
36
37
  "devDependencies": {
37
38
  "typescript": "^5.9.3",