@wthek/hono-middleware 0.0.0-stage → 1.1.0

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/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Himanshu Bansal
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
package/README.md CHANGED
@@ -1,3 +1,161 @@
1
- # Temporary Holding Version
1
+ # Official @wthek Extension – Hono Middleware for `http-error-kit`
2
+
3
+ **Seamless Hono Error Handling with @wthek**
4
+
5
+ _Built for applications powered by [http-error-kit][http-error-kit], this middleware ensures that all `http-error-kit` errors are properly formatted and returned with the correct HTTP status codes in Hono._
6
+
7
+ > 💡 What the HEK?! Need a hassle-free way to manage error responses for `http-error-kit` errors in Hono? `@wthek/hono-middleware` has got you covered!
8
+
9
+ ![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/skillnter/wthek-hono-middleware/main.yml)
10
+ [![npm version](https://img.shields.io/npm/v/%40wthek%2Fhono-middleware?color=brightgreen)](https://www.npmjs.com/package/@wthek/hono-middleware)
11
+ [![GitHub license](https://img.shields.io/github/license/skillnter/wthek-hono-middleware?color=brightgreen)](LICENSE)
12
+ ![NPM Type Definitions](https://img.shields.io/npm/types/%40wthek%2Fhono-middleware)
13
+ [![GitHub Issues](https://img.shields.io/github/issues/Skillnter/wthek-hono-middleware)](https://github.com/Skillnter/wthek-hono-middleware/issues)
14
+ ![npm](https://img.shields.io/npm/dy/%40wthek%2Fhono-middleware)
15
+ [![Bundle Size](https://img.shields.io/bundlephobia/minzip/%40wthek%2Fhono-middleware)](https://bundlephobia.com/package/%40wthek%2Fhono-middleware)
16
+ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/453f3cdfa02749c9b4c506dbbf5e103a)](https://app.codacy.com/gh/Skillnter/wthek-hono-middleware/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
17
+ [![Codacy Badge](https://app.codacy.com/project/badge/Coverage/453f3cdfa02749c9b4c506dbbf5e103a)](https://app.codacy.com/gh/Skillnter/wthek-hono-middleware/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
18
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/@wthek/hono-middleware/)](https://socket.dev/npm/package/@wthek/hono-middleware/overview/)
19
+ [![GitHub Pages](https://img.shields.io/badge/GitHub%20Pages-121013?logo=github&logoColor=white)](https://skillnter.github.io/wthek-hono-middleware/)
20
+ [![Github Sponsors](https://img.shields.io/badge/GitHub%20Sponsors-30363D?&logo=GitHub-Sponsors&logoColor=EA4AAA)](https://github.com/sponsors/Skillnter)
21
+ [![Open Collective](https://img.shields.io/badge/Open%20Collective-3385FF?logo=open-collective&logoColor=white)](https://opencollective.com/skillnter)
22
+ [![Buy Me A Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?&logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/skillnter)
23
+ [![Patreon](https://img.shields.io/badge/Patreon-F96854?logo=patreon&logoColor=white)](https://www.patreon.com/skillnter)
24
+ [![PayPal](https://img.shields.io/badge/PayPal-003087?logo=paypal&logoColor=fff)](https://www.paypal.me/skillnte)
25
+
26
+ ## Features
27
+
28
+ - **Official `http-error-kit` Extension** – The recommended error-handling middleware for Hono apps.
29
+ - **Auto-sets HTTP status codes** – Ensures the response status matches the error type.
30
+ - **Plug-and-Play Middleware** – Register via `KitHonoMiddleware(app)` or `app.onError(KitHonoErrorHandler())`.
31
+ - **Graceful Fallbacks** – Returns clean error responses for non-Kit errors.
32
+ - **Configurable Logging** – Enable console logging or provide your own logger callback (Pino, Winston).
33
+ - **`handleUnknownErrors` Option** – Optionally catch non-Kit errors and return a structured 500 JSON response.
34
+ - **Multi-Runtime Support** – Works seamlessly across Node.js, Cloudflare Workers, Deno, and Bun.
35
+
36
+ ## Table of Content
37
+
38
+ - [Installation](#installation)
39
+ - [Usage](#usage)
40
+ - [Options](#options)
41
+ - [AI Agent Integration](#ai-agent-integration)
42
+ - [Explore More WTHek Extensions](#explore-more-wthek-extensions)
43
+ - [People](#people)
44
+ - [Donations](#donations)
45
+ - [License](#license)
46
+
47
+ ## Installation
48
+
49
+ ```console
50
+ npm install @wthek/hono-middleware
51
+ ```
52
+
53
+ ## Usage
54
+
55
+ ### 1. Global Setup (`KitHonoMiddleware`)
56
+
57
+ ```typescript
58
+ import { Hono } from "hono";
59
+ import { KitHonoMiddleware } from "@wthek/hono-middleware";
60
+ import { KitHttpError } from "http-error-kit";
61
+ import { NOT_FOUND } from "http-response-status-code";
62
+
63
+ const app = new Hono();
64
+
65
+ app.get("/users/:id", (c) => {
66
+ throw new KitHttpError(NOT_FOUND, "User Not Found", { id: c.req.param("id") });
67
+ });
68
+
69
+ // Register global error handler
70
+ KitHonoMiddleware(app, {
71
+ log: true,
72
+ handleUnknownErrors: true,
73
+ });
74
+
75
+ export default app;
76
+ ```
77
+
78
+ ### 2. Standalone Handler (`KitHonoErrorHandler`)
79
+
80
+ ```typescript
81
+ import { Hono } from "hono";
82
+ import { KitHonoErrorHandler } from "@wthek/hono-middleware";
83
+
84
+ const app = new Hono();
85
+
86
+ app.onError(
87
+ KitHonoErrorHandler({
88
+ log: (err, c) => console.error(`Error on ${c.req.method} ${c.req.path}:`, err),
89
+ handleUnknownErrors: true,
90
+ })
91
+ );
92
+ ```
93
+
94
+ ## Options
95
+
96
+ | Option | Type | Default | Description |
97
+ | --------------------- | ------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------- |
98
+ | `log` | `boolean \| ((error: unknown, c: Context) => void)` | `false` | When `true`, logs via `console.error`. When a function is provided, receives `(error, c)` for custom logging. |
99
+ | `handleUnknownErrors` | `boolean` | `false` | When `true`, non-Kit errors return a structured 500 JSON response instead of plain text. |
100
+
101
+ ### Custom Formatting with `KitHttpErrorConfig`
102
+
103
+ ```typescript
104
+ import { KitHttpErrorConfig } from "http-error-kit";
105
+
106
+ KitHttpErrorConfig.configureFormatter(
107
+ (statusCode, message, details, ...args) => ({
108
+ status: statusCode,
109
+ error: message,
110
+ details,
111
+ timestamp: new Date().toISOString(),
112
+ })
113
+ );
114
+ ```
115
+
116
+ ## AI Agent Integration
117
+
118
+ When building with AI coding assistants (Claude Code, Cursor, GitHub Copilot, Antigravity, Devin), add the following directive to your project's `.cursorrules`, `.github/copilot-instructions.md`, or system prompt:
119
+
120
+ ```markdown
121
+ ### Hono Error Handling Rule
122
+ - Always throw semantic error classes from `http-error-kit` (e.g., `BadRequestError`, `NotFoundError`, `UnauthorizedError`) inside Hono route handlers.
123
+ - In Hono setup, register `@wthek/hono-middleware`: `KitHonoMiddleware(app, { handleUnknownErrors: true })`.
124
+ - For scoped sub-routers or custom onError flows, use `app.onError(KitHonoErrorHandler({ handleUnknownErrors: true }))`.
125
+ ```
126
+
127
+ ## Explore More WTHek Extensions
128
+
129
+ The WTHek ecosystem continues to grow with new extensions to simplify error handling across various frameworks and libraries. Stay updated with the latest tools that integrate seamlessly with `http-error-kit`.
130
+
131
+ **Check out the official list of extensions**: [Official Extensions List](https://github.com/Skillnter/http-error-kit/wiki/Official-Extensions-List)
132
+
133
+ ## People
134
+
135
+ The original author of the project is [Himanshu Bansal][skillnter]
136
+
137
+ ## Donations
138
+
139
+ **This is all voluntary work**, so if you want to support my efforts you can
140
+
141
+ - [Buy Me A Coffee](https://www.buymeacoffee.com/skillnter)
142
+ - [Paypal](https://www.paypal.me/skillnte)
143
+ - [GitHub Sponsor](https://github.com/sponsors/Skillnter)
144
+ - [Patreon](https://www.patreon.com/skillnter)
145
+ - [Open Collective](https://opencollective.com/skillnter)
146
+
147
+ You can also use the following:
148
+
149
+ ![BNB: 0x1D59a291391a3CE17C63D5dC50F258Dc0Ab62889](https://img.shields.io/badge/BNB-0x1D59a291391a3CE17C63D5dC50F258Dc0Ab62889-brightgreen)
150
+
151
+ ![BTC: bc1p22h4nsad5d8ketyhuvf0vyva6unttxwzzqvkty5r839as0mlclgs72d3mf](https://img.shields.io/badge/BTC-bc1p22h4nsad5d8ketyhuvf0vyva6unttxwzzqvkty5r839as0mlclgs72d3mf-brightgreen)
152
+
153
+ ![ETH: 0x1D59a291391a3CE17C63D5dC50F258Dc0Ab62889](https://img.shields.io/badge/ETH-0x1D59a291391a3CE17C63D5dC50F258Dc0Ab62889-brightgreen)
154
+
155
+ ## License
156
+
157
+ `@wthek/hono-middleware` project is open-sourced software licensed under the [MIT license](LICENSE) by [Himanshu Bansal][skillnter].
158
+
159
+ [skillnter]: https://github.com/Skillnter/
160
+ [http-error-kit]: https://www.npmjs.com/package/http-error-kit
2
161
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
@@ -0,0 +1,70 @@
1
+ import type { Context, ErrorHandler, Hono } from "hono";
2
+ /**
3
+ * Configuration options for KitHonoMiddleware and KitHonoErrorHandler.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * const options: IKitHonoMiddlewareOptions = {
8
+ * log: true,
9
+ * handleUnknownErrors: true,
10
+ * };
11
+ * ```
12
+ */
13
+ export interface IKitHonoMiddlewareOptions {
14
+ /**
15
+ * Optional logger callback or boolean flag.
16
+ * When set to `true`, errors are logged via `console.error`.
17
+ * When set to a function, the function receives the error and context
18
+ * for custom logging (e.g. Pino, Winston).
19
+ *
20
+ * @default false
21
+ */
22
+ log?: boolean | ((error: unknown, c: Context) => void);
23
+ /**
24
+ * If true, catches non-Kit errors and returns a structured 500 JSON response
25
+ * instead of passing raw error messages.
26
+ *
27
+ * @default false
28
+ */
29
+ handleUnknownErrors?: boolean;
30
+ }
31
+ /**
32
+ * Returns a Hono error handler function for applications powered by `http-error-kit`.
33
+ * The returned handler inspects errors and, if they are instances of `KitHttpError`
34
+ * or `KitGeneralError`, sends a structured JSON response with the appropriate HTTP status code.
35
+ * Unrecognised errors are either returned as a text error response or formatted as a structured
36
+ * 500 JSON response when `handleUnknownErrors` is enabled.
37
+ *
38
+ * Use this when you need to pass the handler explicitly to `app.onError` or sub-routers.
39
+ *
40
+ * @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the handler.
41
+ * @returns {ErrorHandler} A Hono-compatible error handler function.
42
+ *
43
+ * @example
44
+ * ```typescript
45
+ * import { Hono } from "hono";
46
+ * import { KitHonoErrorHandler } from "@wthek/hono-middleware";
47
+ *
48
+ * const app = new Hono();
49
+ * app.onError(KitHonoErrorHandler({ log: true }));
50
+ * ```
51
+ */
52
+ export declare const KitHonoErrorHandler: (options?: IKitHonoMiddlewareOptions) => ErrorHandler;
53
+ /**
54
+ * KitHonoMiddleware is a convenience wrapper that registers `KitHonoErrorHandler`
55
+ * as the global error handler on the given Hono instance via `app.onError`.
56
+ *
57
+ * @param {Hono} app The Hono application instance.
58
+ * @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the middleware.
59
+ *
60
+ * @example
61
+ * ```typescript
62
+ * import { Hono } from "hono";
63
+ * import { KitHonoMiddleware } from "@wthek/hono-middleware";
64
+ *
65
+ * const app = new Hono();
66
+ * KitHonoMiddleware(app, { log: true, handleUnknownErrors: true });
67
+ * ```
68
+ */
69
+ export declare const KitHonoMiddleware: (app: Hono, options?: IKitHonoMiddlewareOptions) => void;
70
+ //# sourceMappingURL=index.d.ts.map
package/dist/index.js ADDED
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KitHonoMiddleware = exports.KitHonoErrorHandler = void 0;
4
+ var http_error_kit_1 = require("http-error-kit");
5
+ var http_response_status_code_1 = require("http-response-status-code");
6
+ /**
7
+ * Returns a Hono error handler function for applications powered by `http-error-kit`.
8
+ * The returned handler inspects errors and, if they are instances of `KitHttpError`
9
+ * or `KitGeneralError`, sends a structured JSON response with the appropriate HTTP status code.
10
+ * Unrecognised errors are either returned as a text error response or formatted as a structured
11
+ * 500 JSON response when `handleUnknownErrors` is enabled.
12
+ *
13
+ * Use this when you need to pass the handler explicitly to `app.onError` or sub-routers.
14
+ *
15
+ * @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the handler.
16
+ * @returns {ErrorHandler} A Hono-compatible error handler function.
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * import { Hono } from "hono";
21
+ * import { KitHonoErrorHandler } from "@wthek/hono-middleware";
22
+ *
23
+ * const app = new Hono();
24
+ * app.onError(KitHonoErrorHandler({ log: true }));
25
+ * ```
26
+ */
27
+ var KitHonoErrorHandler = function (options) {
28
+ var _a = options !== null && options !== void 0 ? options : {}, _b = _a.log, log = _b === void 0 ? false : _b, _c = _a.handleUnknownErrors, handleUnknownErrors = _c === void 0 ? false : _c;
29
+ return function (error, c) {
30
+ var _a, _b;
31
+ try {
32
+ if (log) {
33
+ if (typeof log === "function") {
34
+ log(error, c);
35
+ }
36
+ else {
37
+ console.error(error);
38
+ }
39
+ }
40
+ if (error instanceof http_error_kit_1.KitHttpError || error instanceof http_error_kit_1.KitGeneralError) {
41
+ // eslint-disable-next-line
42
+ var statusCode = ((_b = (_a = error.getInputs()) === null || _a === void 0 ? void 0 : _a.statusCode) !== null && _b !== void 0 ? _b : http_response_status_code_1.INTERNAL_SERVER_ERROR);
43
+ var payload = typeof error.toJSON === "function" ? error.toJSON() : error;
44
+ return c.json(payload, statusCode);
45
+ }
46
+ if (handleUnknownErrors) {
47
+ return c.json({
48
+ message: (0, http_response_status_code_1.getStatusDescription)(http_response_status_code_1.INTERNAL_SERVER_ERROR),
49
+ statusCode: http_response_status_code_1.INTERNAL_SERVER_ERROR,
50
+ }, http_response_status_code_1.INTERNAL_SERVER_ERROR);
51
+ }
52
+ var message = error instanceof Error
53
+ ? error.message
54
+ : (0, http_response_status_code_1.getStatusDescription)(http_response_status_code_1.INTERNAL_SERVER_ERROR);
55
+ return c.text(message, http_response_status_code_1.INTERNAL_SERVER_ERROR);
56
+ }
57
+ catch (_c) {
58
+ return c.text((0, http_response_status_code_1.getStatusDescription)(http_response_status_code_1.INTERNAL_SERVER_ERROR), http_response_status_code_1.INTERNAL_SERVER_ERROR);
59
+ }
60
+ };
61
+ };
62
+ exports.KitHonoErrorHandler = KitHonoErrorHandler;
63
+ /**
64
+ * KitHonoMiddleware is a convenience wrapper that registers `KitHonoErrorHandler`
65
+ * as the global error handler on the given Hono instance via `app.onError`.
66
+ *
67
+ * @param {Hono} app The Hono application instance.
68
+ * @param {IKitHonoMiddlewareOptions} [options] Optional configuration for the middleware.
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * import { Hono } from "hono";
73
+ * import { KitHonoMiddleware } from "@wthek/hono-middleware";
74
+ *
75
+ * const app = new Hono();
76
+ * KitHonoMiddleware(app, { log: true, handleUnknownErrors: true });
77
+ * ```
78
+ */
79
+ var KitHonoMiddleware = function (app, options) {
80
+ app.onError((0, exports.KitHonoErrorHandler)(options));
81
+ };
82
+ exports.KitHonoMiddleware = KitHonoMiddleware;
package/llms.txt ADDED
@@ -0,0 +1,64 @@
1
+ # @wthek/hono-middleware
2
+
3
+ > Production-safe Hono error-handling middleware for `http-error-kit`.
4
+
5
+ ## Overview
6
+ `@wthek/hono-middleware` catches `KitHttpError` and `KitGeneralError` instances thrown in Hono routes and automatically responds with the matching HTTP status code and structured JSON error payload. It integrates with Hono's `app.onError()`, supports custom logging functions, and provides optional fallback handling for unknown exceptions.
7
+
8
+ ## Installation
9
+ ```bash
10
+ npm install @wthek/hono-middleware http-error-kit http-response-status-code
11
+ ```
12
+
13
+ ## Quick Start
14
+ ```typescript
15
+ import { Hono } from "hono";
16
+ import { KitHonoMiddleware } from "@wthek/hono-middleware";
17
+ import { BadRequestError, NotFoundError } from "http-error-kit";
18
+
19
+ const app = new Hono();
20
+
21
+ // Register global error handling middleware
22
+ KitHonoMiddleware(app, { log: true, handleUnknownErrors: true });
23
+
24
+ app.get("/api/users/:id", (c) => {
25
+ const id = c.req.param("id");
26
+ if (!id) {
27
+ throw new BadRequestError("User ID is required");
28
+ }
29
+ throw new NotFoundError("User not found");
30
+ });
31
+
32
+ export default app;
33
+ ```
34
+
35
+ ## Scoped Error Handler (`KitHonoErrorHandler`)
36
+ ```typescript
37
+ import { Hono } from "hono";
38
+ import { KitHonoErrorHandler } from "@wthek/hono-middleware";
39
+
40
+ const app = new Hono();
41
+
42
+ // Register directly via app.onError
43
+ app.onError(KitHonoErrorHandler({ log: true, handleUnknownErrors: true }));
44
+ ```
45
+
46
+ ## API Reference
47
+
48
+ ### `KitHonoMiddleware(app: Hono, options?: IKitHonoMiddlewareOptions)`
49
+ Registers `KitHonoErrorHandler` on the given Hono instance via `app.onError()`.
50
+
51
+ ### `KitHonoErrorHandler(options?: IKitHonoMiddlewareOptions)`
52
+ Returns a Hono-compatible error handler function: `(error: unknown, c: Context) => Response | Promise<Response>`.
53
+
54
+ #### Options (`IKitHonoMiddlewareOptions`)
55
+ - `log` (`boolean | ((error: unknown, c: Context) => void)`, default: `false`):
56
+ When `true`, logs via `console.error`. When a function is provided, calls custom logger callback.
57
+ - `handleUnknownErrors` (`boolean`, default: `false`):
58
+ When `true`, catches non-Kit errors and returns a structured 500 JSON response instead of plain text error message.
59
+
60
+ ## Safety Rules for AI Agents
61
+ 1. Register `KitHonoMiddleware(app)` during application setup before defining execution exports.
62
+ 2. Throw errors directly from `http-error-kit` (e.g., `throw new NotFoundError(...)`) inside route handlers.
63
+ 3. Hono automatically catches synchronous throws and rejected promises inside handlers and directs them to `onError`.
64
+
package/package.json CHANGED
@@ -1,6 +1,114 @@
1
- {
2
- "name": "@wthek/hono-middleware",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
1
+ {
2
+ "name": "@wthek/hono-middleware",
3
+ "version": "1.1.0",
4
+ "description": "Production-safe Hono error-handling middleware for http-error-kit. Maps KitHttpError instances to structured JSON responses with correct HTTP status codes and optional logging.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "default": "./dist/index.js"
11
+ },
12
+ "./package.json": "./package.json"
13
+ },
14
+ "sideEffects": false,
15
+ "scripts": {
16
+ "test": "jest --config jest.config.ts",
17
+ "build": "tsc --build",
18
+ "coverage": "jest --coverage --config jest.config.ts",
19
+ "prepublishOnly": "npm run test && npm run build"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "git+https://github.com/Skillnter/wthek-hono-middleware.git"
24
+ },
25
+ "keywords": [
26
+ "http",
27
+ "error",
28
+ "kit",
29
+ "http-errors",
30
+ "custom-errors",
31
+ "error-handling",
32
+ "hono",
33
+ "hono-middleware",
34
+ "hono-error-handler",
35
+ "honojs",
36
+ "rest-api",
37
+ "status-codes",
38
+ "api-error",
39
+ "json-error",
40
+ "rfc-7807",
41
+ "rfc-9457",
42
+ "structured-errors",
43
+ "api-error-response",
44
+ "ai-agent",
45
+ "agent-skill",
46
+ "antigravity",
47
+ "cursor",
48
+ "copilot",
49
+ "typescript",
50
+ "middleware",
51
+ "wthek",
52
+ "skillnter"
53
+ ],
54
+ "author": "Himanshu Bansal <skillhimanshubansal@gmail.com>",
55
+ "license": "MIT",
56
+ "engines": {
57
+ "node": ">=18"
58
+ },
59
+ "bugs": {
60
+ "url": "https://github.com/Skillnter/wthek-hono-middleware/issues"
61
+ },
62
+ "homepage": "https://github.com/Skillnter/wthek-hono-middleware#readme",
63
+ "dependencies": {
64
+ "http-error-kit": "^1.5.0",
65
+ "http-response-status-code": "^1.9.0"
66
+ },
67
+ "peerDependencies": {
68
+ "hono": "^4.0.0"
69
+ },
70
+ "devDependencies": {
71
+ "@types/jest": "^29.5.14",
72
+ "@types/mocha": "^10.0.10",
73
+ "@types/node": "^22.13.4",
74
+ "@typescript-eslint/eslint-plugin": "^8.22.0",
75
+ "eslint-plugin-security": "^3.0.1",
76
+ "hono": "^4.13.18",
77
+ "jest": "^29.7.0",
78
+ "ts-jest": "^29.2.5",
79
+ "ts-node": "^10.9.2",
80
+ "tslib": "^2.8.1",
81
+ "typescript": "^5.7.3"
82
+ },
83
+ "publishConfig": {
84
+ "@skillnter:registry": "https://npm.pkg.github.com/"
85
+ },
86
+ "files": [
87
+ "dist/index.js",
88
+ "dist/index.d.ts",
89
+ "llms.txt",
90
+ "LICENSE"
91
+ ],
92
+ "funding": [
93
+ {
94
+ "type": "github",
95
+ "url": "https://github.com/sponsors/Skillnter"
96
+ },
97
+ {
98
+ "type": "patreon",
99
+ "url": "https://www.patreon.com/skillnter"
100
+ },
101
+ {
102
+ "type": "open_collective",
103
+ "url": "https://opencollective.com/skillnter"
104
+ },
105
+ {
106
+ "type": "buy_me_a_coffee",
107
+ "url": "https://buymeacoffee.com/skillnter"
108
+ },
109
+ {
110
+ "type": "paypal",
111
+ "url": "https://www.paypal.com/paypalme/skillnte"
112
+ }
113
+ ]
114
+ }