hono 4.7.9 → 4.7.10

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.
@@ -98,6 +98,8 @@ class Hono {
98
98
  router: this.router,
99
99
  getPath: this.getPath
100
100
  });
101
+ clone.errorHandler = this.errorHandler;
102
+ clone.#notFoundHandler = this.#notFoundHandler;
101
103
  clone.routes = this.routes;
102
104
  return clone;
103
105
  }
@@ -119,7 +119,7 @@ const verifyFromJwks = async (token, options, init) => {
119
119
  if (!matchingKey) {
120
120
  throw new import_types.JwtTokenInvalid(token);
121
121
  }
122
- return await verify(token, matchingKey, matchingKey.alg);
122
+ return await verify(token, matchingKey, matchingKey.alg || header.alg);
123
123
  };
124
124
  const decode = (token) => {
125
125
  try {
package/dist/hono-base.js CHANGED
@@ -76,6 +76,8 @@ var Hono = class {
76
76
  router: this.router,
77
77
  getPath: this.getPath
78
78
  });
79
+ clone.errorHandler = this.errorHandler;
80
+ clone.#notFoundHandler = this.#notFoundHandler;
79
81
  clone.routes = this.routes;
80
82
  return clone;
81
83
  }
@@ -100,7 +100,7 @@ var verifyFromJwks = async (token, options, init) => {
100
100
  if (!matchingKey) {
101
101
  throw new JwtTokenInvalid(token);
102
102
  }
103
- return await verify(token, matchingKey, matchingKey.alg);
103
+ return await verify(token, matchingKey, matchingKey.alg || header.alg);
104
104
  };
105
105
  var decode = (token) => {
106
106
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.7.9",
3
+ "version": "4.7.10",
4
4
  "description": "Web framework built on Web Standards",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",