hono 3.1.5 → 3.1.7
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
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
[](https://doc.deno.land/https/deno.land/x/hono/mod.ts)
|
|
26
26
|
[](https://discord.gg/KMh2eNSdxV)
|
|
27
27
|
|
|
28
|
-
Hono - _**\[炎\] means flame🔥 in Japanese**_ - is a small, simple, and ultrafast web framework for the
|
|
28
|
+
Hono - _**\[炎\] means flame🔥 in Japanese**_ - is a small, simple, and ultrafast web framework for the Edges.
|
|
29
29
|
It works on Cloudflare Workers, Fastly Compute@Edge, Deno, Bun, Vercel, Lagon, Node.js, and others.
|
|
30
30
|
Fast, but not only fast.
|
|
31
31
|
|
|
@@ -93,7 +93,7 @@ For more details, see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md).
|
|
|
93
93
|
|
|
94
94
|
Thanks to [all contributors](https://github.com/honojs/hono/graphs/contributors)! Especially, [@metrue](https://github.com/metrue) and [@usualoma](https://github.com/usualoma)!
|
|
95
95
|
|
|
96
|
-
##
|
|
96
|
+
## Authors
|
|
97
97
|
|
|
98
98
|
Yusuke Wada <https://github.com/yusukebe>
|
|
99
99
|
|
package/dist/cjs/context.js
CHANGED
|
@@ -127,7 +127,7 @@ class Context {
|
|
|
127
127
|
this._preparedHeaders = {};
|
|
128
128
|
}
|
|
129
129
|
if (this._preparedHeaders["content-type"]) {
|
|
130
|
-
this._preparedHeaders["content-type"] = "text/plain; charset=
|
|
130
|
+
this._preparedHeaders["content-type"] = "text/plain; charset=UTF-8";
|
|
131
131
|
}
|
|
132
132
|
return typeof arg === "number" ? this.newResponse(text, arg, headers) : this.newResponse(text, arg);
|
|
133
133
|
};
|
package/dist/context.js
CHANGED
|
@@ -113,7 +113,7 @@ var Context = class {
|
|
|
113
113
|
this._preparedHeaders = {};
|
|
114
114
|
}
|
|
115
115
|
if (this._preparedHeaders["content-type"]) {
|
|
116
|
-
this._preparedHeaders["content-type"] = "text/plain; charset=
|
|
116
|
+
this._preparedHeaders["content-type"] = "text/plain; charset=UTF-8";
|
|
117
117
|
}
|
|
118
118
|
return typeof arg === "number" ? this.newResponse(text, arg, headers) : this.newResponse(text, arg);
|
|
119
119
|
};
|
|
@@ -6,7 +6,7 @@ export declare type EventContext<Env = {}, P extends string = any, Data = {}> =
|
|
|
6
6
|
functionPath: string;
|
|
7
7
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
8
8
|
passThroughOnException: () => void;
|
|
9
|
-
next: (input?: Request | string, init?: RequestInit) => Response
|
|
9
|
+
next: (input?: Request | string, init?: RequestInit) => Promise<Response>;
|
|
10
10
|
env: Env & {
|
|
11
11
|
ASSETS: {
|
|
12
12
|
fetch: typeof fetch;
|