jax-hono 1.0.27 → 1.0.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jax-hono",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "description": "Lightweight framework layer on top of Hono, built for Bun",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
package/utils/error.ts ADDED
@@ -0,0 +1,5 @@
1
+ export function getErrorMessage(error: unknown): string {
2
+ if (error instanceof Error) return error.message;
3
+ if (error == null) return String(error);
4
+ return typeof error === "string" ? error : String(error);
5
+ }
package/utils/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from "./array";
2
2
  export * from "./async";
3
- export * from "./crypto";
3
+ export * from "./crypto";
4
+ export * from "./error";
4
5
  export * from "./http";
5
6
  export * from "./order";
6
7
  export * from "./regexp";