hono 3.5.7 → 3.5.8
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/dist/cjs/utils/buffer.js
CHANGED
|
@@ -60,7 +60,7 @@ const bufferToString = (buffer) => {
|
|
|
60
60
|
}
|
|
61
61
|
return buffer;
|
|
62
62
|
};
|
|
63
|
-
const _decodeURIComponent = decodeURIComponent;
|
|
63
|
+
const _decodeURIComponent = (str) => decodeURIComponent(str.replace(/\+/g, " "));
|
|
64
64
|
const bufferToFormData = (arrayBuffer, contentType) => {
|
|
65
65
|
const decoder = new TextDecoder("utf-8");
|
|
66
66
|
const content = decoder.decode(arrayBuffer);
|
|
@@ -35,7 +35,7 @@ declare class Hono<E extends Env = Env, S extends Schema = {}, BasePath extends
|
|
|
35
35
|
private clone;
|
|
36
36
|
private notFoundHandler;
|
|
37
37
|
private errorHandler;
|
|
38
|
-
route<SubPath extends string, SubEnv extends Env, SubSchema extends Schema, SubBasePath extends string>(path: SubPath, app: Hono<SubEnv, SubSchema, SubBasePath>): Hono<E, MergeSchemaPath<SubSchema, SubPath
|
|
38
|
+
route<SubPath extends string, SubEnv extends Env, SubSchema extends Schema, SubBasePath extends string>(path: SubPath, app: Hono<SubEnv, SubSchema, SubBasePath>): Hono<E, MergeSchemaPath<SubSchema, MergePath<BasePath, SubPath>> & S, BasePath>;
|
|
39
39
|
/** @description
|
|
40
40
|
* Use `basePath` instead of `route` when passing **one** argument, such as `app.route('/api')`.
|
|
41
41
|
* The use of `route` with **one** argument has been removed in v4.
|
package/dist/utils/buffer.js
CHANGED
|
@@ -35,7 +35,7 @@ var bufferToString = (buffer) => {
|
|
|
35
35
|
}
|
|
36
36
|
return buffer;
|
|
37
37
|
};
|
|
38
|
-
var _decodeURIComponent = decodeURIComponent;
|
|
38
|
+
var _decodeURIComponent = (str) => decodeURIComponent(str.replace(/\+/g, " "));
|
|
39
39
|
var bufferToFormData = (arrayBuffer, contentType) => {
|
|
40
40
|
const decoder = new TextDecoder("utf-8");
|
|
41
41
|
const content = decoder.decode(arrayBuffer);
|