@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 +7 -0
- package/README.zh-CN.md +7 -0
- package/dist/index.d.cts +2 -3
- package/dist/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/package.json +3 -2
package/README.md
ADDED
package/README.zh-CN.md
ADDED
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<
|
|
48
|
-
type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<
|
|
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<
|
|
48
|
-
type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<
|
|
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<
|
|
48
|
-
type HonoMiddleware = (context: HonoContextLike, next: HonoNext) => Promise<
|
|
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.
|
|
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.
|
|
35
|
+
"@mokup/runtime": "0.1.0"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
38
|
"typescript": "^5.9.3",
|