hono 3.4.2 → 3.4.3

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.
@@ -44,8 +44,8 @@ const errorHandler = (err, c) => {
44
44
  class Hono extends defineDynamicClass() {
45
45
  constructor(init = {}) {
46
46
  super();
47
- this._basePath = "";
48
- this.path = "*";
47
+ this._basePath = "/";
48
+ this.path = "/";
49
49
  this.routes = [];
50
50
  this.notFoundHandler = notFoundHandler;
51
51
  this.errorHandler = errorHandler;
package/dist/hono-base.js CHANGED
@@ -22,8 +22,8 @@ var errorHandler = (err, c) => {
22
22
  var Hono = class extends defineDynamicClass() {
23
23
  constructor(init = {}) {
24
24
  super();
25
- this._basePath = "";
26
- this.path = "*";
25
+ this._basePath = "/";
26
+ this.path = "/";
27
27
  this.routes = [];
28
28
  this.notFoundHandler = notFoundHandler;
29
29
  this.errorHandler = errorHandler;
@@ -19,7 +19,7 @@ export declare type MiddlewareHandler<E extends Env = any, P extends string = an
19
19
  export declare type H<E extends Env = any, P extends string = any, I extends Input = {}, O = {}> = Handler<E, P, I, O> | MiddlewareHandler<E, P, I>;
20
20
  export declare type NotFoundHandler<E extends Env = any> = (c: Context<E>) => Response | Promise<Response>;
21
21
  export declare type ErrorHandler<E extends Env = any> = (err: Error, c: Context<E>) => Response | Promise<Response>;
22
- export interface HandlerInterface<E extends Env = Env, M extends string = any, S = {}, BasePath extends string = ''> {
22
+ export interface HandlerInterface<E extends Env = Env, M extends string = any, S = {}, BasePath extends string = '/'> {
23
23
  <P extends string = ExtractKey<S> extends never ? BasePath : ExtractKey<S>, I extends Input = {}, O = {}>(...handlers: [H<E, P, I, O>, H<E, P, I, O>]): Hono<E, RemoveBlankRecord<S | Schema<M, P, I['in'], O>>, BasePath>;
24
24
  <P extends string = ExtractKey<S> extends never ? BasePath : ExtractKey<S>, O = {}, I extends Input = {}, I2 extends Input = I, I3 extends Input = I & I2>(...handlers: [H<E, P, I, O>, H<E, P, I2, O>, H<E, P, I3, O>]): Hono<E, RemoveBlankRecord<S | Schema<M, P, I3['in'], O>>, BasePath>;
25
25
  <P extends string = ExtractKey<S> extends never ? BasePath : ExtractKey<S>, O = {}, I extends Input = {}, I2 extends Input = I, I3 extends Input = I & I2, I4 extends Input = I2 & I3>(...handlers: [H<E, P, I, O>, H<E, P, I2, O>, H<E, P, I3, O>, H<E, P, I4, O>]): Hono<E, RemoveBlankRecord<S | Schema<M, P, I4['in'], O>>, BasePath>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "3.4.2",
3
+ "version": "3.4.3",
4
4
  "description": "Ultrafast web framework for the Edges",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",