hono-problem-details 0.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.
Files changed (35) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +287 -0
  3. package/dist/chunk-ANLH2WEX.js +37 -0
  4. package/dist/chunk-ANLH2WEX.js.map +1 -0
  5. package/dist/index.cjs +191 -0
  6. package/dist/index.cjs.map +1 -0
  7. package/dist/index.d.cts +84 -0
  8. package/dist/index.d.ts +84 -0
  9. package/dist/index.js +132 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/integrations/openapi.cjs +82 -0
  12. package/dist/integrations/openapi.cjs.map +1 -0
  13. package/dist/integrations/openapi.d.cts +62 -0
  14. package/dist/integrations/openapi.d.ts +62 -0
  15. package/dist/integrations/openapi.js +30 -0
  16. package/dist/integrations/openapi.js.map +1 -0
  17. package/dist/integrations/standard-schema.cjs +55 -0
  18. package/dist/integrations/standard-schema.cjs.map +1 -0
  19. package/dist/integrations/standard-schema.d.cts +16 -0
  20. package/dist/integrations/standard-schema.d.ts +16 -0
  21. package/dist/integrations/standard-schema.js +30 -0
  22. package/dist/integrations/standard-schema.js.map +1 -0
  23. package/dist/integrations/valibot.cjs +53 -0
  24. package/dist/integrations/valibot.cjs.map +1 -0
  25. package/dist/integrations/valibot.d.cts +12 -0
  26. package/dist/integrations/valibot.d.ts +12 -0
  27. package/dist/integrations/valibot.js +28 -0
  28. package/dist/integrations/valibot.js.map +1 -0
  29. package/dist/integrations/zod.cjs +53 -0
  30. package/dist/integrations/zod.cjs.map +1 -0
  31. package/dist/integrations/zod.d.cts +16 -0
  32. package/dist/integrations/zod.d.ts +16 -0
  33. package/dist/integrations/zod.js +28 -0
  34. package/dist/integrations/zod.js.map +1 -0
  35. package/package.json +145 -0
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/integrations/valibot.ts
21
+ var valibot_exports = {};
22
+ __export(valibot_exports, {
23
+ valibotProblemHook: () => valibotProblemHook
24
+ });
25
+ module.exports = __toCommonJS(valibot_exports);
26
+ function formatIssues(issues) {
27
+ return issues.map((issue) => ({
28
+ field: issue.path?.map((p) => p.key).join(".") ?? "",
29
+ message: issue.message,
30
+ code: issue.type
31
+ }));
32
+ }
33
+ function valibotProblemHook(options) {
34
+ return (result, c) => {
35
+ if (result.success) return;
36
+ const body = {
37
+ type: "about:blank",
38
+ status: 422,
39
+ title: options?.title ?? "Validation Error",
40
+ detail: options?.detail ?? "Request validation failed",
41
+ errors: formatIssues(result.issues)
42
+ };
43
+ return new Response(JSON.stringify(body), {
44
+ status: 422,
45
+ headers: { "Content-Type": "application/problem+json" }
46
+ });
47
+ };
48
+ }
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ valibotProblemHook
52
+ });
53
+ //# sourceMappingURL=valibot.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/integrations/valibot.ts"],"sourcesContent":["import type { Context } from \"hono\";\nimport type { BaseIssue, SafeParseResult } from \"valibot\";\n\nexport interface ValibotProblemHookOptions {\n\ttitle?: string;\n\tdetail?: string;\n}\n\ninterface ValidationError {\n\tfield: string;\n\tmessage: string;\n\tcode: string;\n}\n\nfunction formatIssues(issues: BaseIssue<unknown>[]): ValidationError[] {\n\treturn issues.map((issue) => ({\n\t\tfield: issue.path?.map((p) => p.key).join(\".\") ?? \"\",\n\t\tmessage: issue.message,\n\t\tcode: issue.type,\n\t}));\n}\n\nexport function valibotProblemHook(options?: ValibotProblemHookOptions) {\n\treturn (result: SafeParseResult<never> & { target: string }, c: Context) => {\n\t\tif (result.success) return;\n\n\t\tconst body = {\n\t\t\ttype: \"about:blank\",\n\t\t\tstatus: 422,\n\t\t\ttitle: options?.title ?? \"Validation Error\",\n\t\t\tdetail: options?.detail ?? \"Request validation failed\",\n\t\t\terrors: formatIssues(result.issues),\n\t\t};\n\n\t\treturn new Response(JSON.stringify(body), {\n\t\t\tstatus: 422,\n\t\t\theaders: { \"Content-Type\": \"application/problem+json\" },\n\t\t});\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,SAAS,aAAa,QAAiD;AACtE,SAAO,OAAO,IAAI,CAAC,WAAW;AAAA,IAC7B,OAAO,MAAM,MAAM,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK;AAAA,IAClD,SAAS,MAAM;AAAA,IACf,MAAM,MAAM;AAAA,EACb,EAAE;AACH;AAEO,SAAS,mBAAmB,SAAqC;AACvE,SAAO,CAAC,QAAqD,MAAe;AAC3E,QAAI,OAAO,QAAS;AAEpB,UAAM,OAAO;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO,SAAS,SAAS;AAAA,MACzB,QAAQ,SAAS,UAAU;AAAA,MAC3B,QAAQ,aAAa,OAAO,MAAM;AAAA,IACnC;AAEA,WAAO,IAAI,SAAS,KAAK,UAAU,IAAI,GAAG;AAAA,MACzC,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,2BAA2B;AAAA,IACvD,CAAC;AAAA,EACF;AACD;","names":[]}
@@ -0,0 +1,12 @@
1
+ import { Context } from 'hono';
2
+ import { SafeParseResult } from 'valibot';
3
+
4
+ interface ValibotProblemHookOptions {
5
+ title?: string;
6
+ detail?: string;
7
+ }
8
+ declare function valibotProblemHook(options?: ValibotProblemHookOptions): (result: SafeParseResult<never> & {
9
+ target: string;
10
+ }, c: Context) => Response | undefined;
11
+
12
+ export { type ValibotProblemHookOptions, valibotProblemHook };
@@ -0,0 +1,12 @@
1
+ import { Context } from 'hono';
2
+ import { SafeParseResult } from 'valibot';
3
+
4
+ interface ValibotProblemHookOptions {
5
+ title?: string;
6
+ detail?: string;
7
+ }
8
+ declare function valibotProblemHook(options?: ValibotProblemHookOptions): (result: SafeParseResult<never> & {
9
+ target: string;
10
+ }, c: Context) => Response | undefined;
11
+
12
+ export { type ValibotProblemHookOptions, valibotProblemHook };
@@ -0,0 +1,28 @@
1
+ // src/integrations/valibot.ts
2
+ function formatIssues(issues) {
3
+ return issues.map((issue) => ({
4
+ field: issue.path?.map((p) => p.key).join(".") ?? "",
5
+ message: issue.message,
6
+ code: issue.type
7
+ }));
8
+ }
9
+ function valibotProblemHook(options) {
10
+ return (result, c) => {
11
+ if (result.success) return;
12
+ const body = {
13
+ type: "about:blank",
14
+ status: 422,
15
+ title: options?.title ?? "Validation Error",
16
+ detail: options?.detail ?? "Request validation failed",
17
+ errors: formatIssues(result.issues)
18
+ };
19
+ return new Response(JSON.stringify(body), {
20
+ status: 422,
21
+ headers: { "Content-Type": "application/problem+json" }
22
+ });
23
+ };
24
+ }
25
+ export {
26
+ valibotProblemHook
27
+ };
28
+ //# sourceMappingURL=valibot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/integrations/valibot.ts"],"sourcesContent":["import type { Context } from \"hono\";\nimport type { BaseIssue, SafeParseResult } from \"valibot\";\n\nexport interface ValibotProblemHookOptions {\n\ttitle?: string;\n\tdetail?: string;\n}\n\ninterface ValidationError {\n\tfield: string;\n\tmessage: string;\n\tcode: string;\n}\n\nfunction formatIssues(issues: BaseIssue<unknown>[]): ValidationError[] {\n\treturn issues.map((issue) => ({\n\t\tfield: issue.path?.map((p) => p.key).join(\".\") ?? \"\",\n\t\tmessage: issue.message,\n\t\tcode: issue.type,\n\t}));\n}\n\nexport function valibotProblemHook(options?: ValibotProblemHookOptions) {\n\treturn (result: SafeParseResult<never> & { target: string }, c: Context) => {\n\t\tif (result.success) return;\n\n\t\tconst body = {\n\t\t\ttype: \"about:blank\",\n\t\t\tstatus: 422,\n\t\t\ttitle: options?.title ?? \"Validation Error\",\n\t\t\tdetail: options?.detail ?? \"Request validation failed\",\n\t\t\terrors: formatIssues(result.issues),\n\t\t};\n\n\t\treturn new Response(JSON.stringify(body), {\n\t\t\tstatus: 422,\n\t\t\theaders: { \"Content-Type\": \"application/problem+json\" },\n\t\t});\n\t};\n}\n"],"mappings":";AAcA,SAAS,aAAa,QAAiD;AACtE,SAAO,OAAO,IAAI,CAAC,WAAW;AAAA,IAC7B,OAAO,MAAM,MAAM,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK;AAAA,IAClD,SAAS,MAAM;AAAA,IACf,MAAM,MAAM;AAAA,EACb,EAAE;AACH;AAEO,SAAS,mBAAmB,SAAqC;AACvE,SAAO,CAAC,QAAqD,MAAe;AAC3E,QAAI,OAAO,QAAS;AAEpB,UAAM,OAAO;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO,SAAS,SAAS;AAAA,MACzB,QAAQ,SAAS,UAAU;AAAA,MAC3B,QAAQ,aAAa,OAAO,MAAM;AAAA,IACnC;AAEA,WAAO,IAAI,SAAS,KAAK,UAAU,IAAI,GAAG;AAAA,MACzC,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,2BAA2B;AAAA,IACvD,CAAC;AAAA,EACF;AACD;","names":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/integrations/zod.ts
21
+ var zod_exports = {};
22
+ __export(zod_exports, {
23
+ zodProblemHook: () => zodProblemHook
24
+ });
25
+ module.exports = __toCommonJS(zod_exports);
26
+ function formatErrors(zodError) {
27
+ return zodError.issues.map((issue) => ({
28
+ field: issue.path.join("."),
29
+ message: issue.message,
30
+ code: issue.code
31
+ }));
32
+ }
33
+ function zodProblemHook(options) {
34
+ return (result, c) => {
35
+ if (result.success) return;
36
+ const body = {
37
+ type: "about:blank",
38
+ status: 422,
39
+ title: options?.title ?? "Validation Error",
40
+ detail: options?.detail ?? "Request validation failed",
41
+ errors: formatErrors(result.error)
42
+ };
43
+ return new Response(JSON.stringify(body), {
44
+ status: 422,
45
+ headers: { "Content-Type": "application/problem+json" }
46
+ });
47
+ };
48
+ }
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ zodProblemHook
52
+ });
53
+ //# sourceMappingURL=zod.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/integrations/zod.ts"],"sourcesContent":["import type { Context } from \"hono\";\nimport type { ZodError } from \"zod\";\n\nexport interface ZodProblemHookOptions {\n\ttitle?: string;\n\tdetail?: string;\n}\n\ninterface ValidationError {\n\tfield: string;\n\tmessage: string;\n\tcode: string;\n}\n\nfunction formatErrors(zodError: ZodError): ValidationError[] {\n\treturn zodError.issues.map((issue) => ({\n\t\tfield: issue.path.join(\".\"),\n\t\tmessage: issue.message,\n\t\tcode: issue.code,\n\t}));\n}\n\nexport function zodProblemHook(options?: ZodProblemHookOptions) {\n\treturn (\n\t\tresult: { success: true; data: unknown } | { success: false; error: ZodError },\n\t\tc: Context,\n\t) => {\n\t\tif (result.success) return;\n\n\t\tconst body = {\n\t\t\ttype: \"about:blank\",\n\t\t\tstatus: 422,\n\t\t\ttitle: options?.title ?? \"Validation Error\",\n\t\t\tdetail: options?.detail ?? \"Request validation failed\",\n\t\t\terrors: formatErrors(result.error),\n\t\t};\n\n\t\treturn new Response(JSON.stringify(body), {\n\t\t\tstatus: 422,\n\t\t\theaders: { \"Content-Type\": \"application/problem+json\" },\n\t\t});\n\t};\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcA,SAAS,aAAa,UAAuC;AAC5D,SAAO,SAAS,OAAO,IAAI,CAAC,WAAW;AAAA,IACtC,OAAO,MAAM,KAAK,KAAK,GAAG;AAAA,IAC1B,SAAS,MAAM;AAAA,IACf,MAAM,MAAM;AAAA,EACb,EAAE;AACH;AAEO,SAAS,eAAe,SAAiC;AAC/D,SAAO,CACN,QACA,MACI;AACJ,QAAI,OAAO,QAAS;AAEpB,UAAM,OAAO;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO,SAAS,SAAS;AAAA,MACzB,QAAQ,SAAS,UAAU;AAAA,MAC3B,QAAQ,aAAa,OAAO,KAAK;AAAA,IAClC;AAEA,WAAO,IAAI,SAAS,KAAK,UAAU,IAAI,GAAG;AAAA,MACzC,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,2BAA2B;AAAA,IACvD,CAAC;AAAA,EACF;AACD;","names":[]}
@@ -0,0 +1,16 @@
1
+ import { Context } from 'hono';
2
+ import { ZodError } from 'zod';
3
+
4
+ interface ZodProblemHookOptions {
5
+ title?: string;
6
+ detail?: string;
7
+ }
8
+ declare function zodProblemHook(options?: ZodProblemHookOptions): (result: {
9
+ success: true;
10
+ data: unknown;
11
+ } | {
12
+ success: false;
13
+ error: ZodError;
14
+ }, c: Context) => Response | undefined;
15
+
16
+ export { type ZodProblemHookOptions, zodProblemHook };
@@ -0,0 +1,16 @@
1
+ import { Context } from 'hono';
2
+ import { ZodError } from 'zod';
3
+
4
+ interface ZodProblemHookOptions {
5
+ title?: string;
6
+ detail?: string;
7
+ }
8
+ declare function zodProblemHook(options?: ZodProblemHookOptions): (result: {
9
+ success: true;
10
+ data: unknown;
11
+ } | {
12
+ success: false;
13
+ error: ZodError;
14
+ }, c: Context) => Response | undefined;
15
+
16
+ export { type ZodProblemHookOptions, zodProblemHook };
@@ -0,0 +1,28 @@
1
+ // src/integrations/zod.ts
2
+ function formatErrors(zodError) {
3
+ return zodError.issues.map((issue) => ({
4
+ field: issue.path.join("."),
5
+ message: issue.message,
6
+ code: issue.code
7
+ }));
8
+ }
9
+ function zodProblemHook(options) {
10
+ return (result, c) => {
11
+ if (result.success) return;
12
+ const body = {
13
+ type: "about:blank",
14
+ status: 422,
15
+ title: options?.title ?? "Validation Error",
16
+ detail: options?.detail ?? "Request validation failed",
17
+ errors: formatErrors(result.error)
18
+ };
19
+ return new Response(JSON.stringify(body), {
20
+ status: 422,
21
+ headers: { "Content-Type": "application/problem+json" }
22
+ });
23
+ };
24
+ }
25
+ export {
26
+ zodProblemHook
27
+ };
28
+ //# sourceMappingURL=zod.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/integrations/zod.ts"],"sourcesContent":["import type { Context } from \"hono\";\nimport type { ZodError } from \"zod\";\n\nexport interface ZodProblemHookOptions {\n\ttitle?: string;\n\tdetail?: string;\n}\n\ninterface ValidationError {\n\tfield: string;\n\tmessage: string;\n\tcode: string;\n}\n\nfunction formatErrors(zodError: ZodError): ValidationError[] {\n\treturn zodError.issues.map((issue) => ({\n\t\tfield: issue.path.join(\".\"),\n\t\tmessage: issue.message,\n\t\tcode: issue.code,\n\t}));\n}\n\nexport function zodProblemHook(options?: ZodProblemHookOptions) {\n\treturn (\n\t\tresult: { success: true; data: unknown } | { success: false; error: ZodError },\n\t\tc: Context,\n\t) => {\n\t\tif (result.success) return;\n\n\t\tconst body = {\n\t\t\ttype: \"about:blank\",\n\t\t\tstatus: 422,\n\t\t\ttitle: options?.title ?? \"Validation Error\",\n\t\t\tdetail: options?.detail ?? \"Request validation failed\",\n\t\t\terrors: formatErrors(result.error),\n\t\t};\n\n\t\treturn new Response(JSON.stringify(body), {\n\t\t\tstatus: 422,\n\t\t\theaders: { \"Content-Type\": \"application/problem+json\" },\n\t\t});\n\t};\n}\n"],"mappings":";AAcA,SAAS,aAAa,UAAuC;AAC5D,SAAO,SAAS,OAAO,IAAI,CAAC,WAAW;AAAA,IACtC,OAAO,MAAM,KAAK,KAAK,GAAG;AAAA,IAC1B,SAAS,MAAM;AAAA,IACf,MAAM,MAAM;AAAA,EACb,EAAE;AACH;AAEO,SAAS,eAAe,SAAiC;AAC/D,SAAO,CACN,QACA,MACI;AACJ,QAAI,OAAO,QAAS;AAEpB,UAAM,OAAO;AAAA,MACZ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,OAAO,SAAS,SAAS;AAAA,MACzB,QAAQ,SAAS,UAAU;AAAA,MAC3B,QAAQ,aAAa,OAAO,KAAK;AAAA,IAClC;AAEA,WAAO,IAAI,SAAS,KAAK,UAAU,IAAI,GAAG;AAAA,MACzC,QAAQ;AAAA,MACR,SAAS,EAAE,gBAAgB,2BAA2B;AAAA,IACvD,CAAC;AAAA,EACF;AACD;","names":[]}
package/package.json ADDED
@@ -0,0 +1,145 @@
1
+ {
2
+ "name": "hono-problem-details",
3
+ "version": "0.1.0",
4
+ "description": "RFC 9457 Problem Details middleware for Hono",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ },
20
+ "./zod": {
21
+ "import": {
22
+ "types": "./dist/integrations/zod.d.ts",
23
+ "default": "./dist/integrations/zod.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/integrations/zod.d.cts",
27
+ "default": "./dist/integrations/zod.cjs"
28
+ }
29
+ },
30
+ "./valibot": {
31
+ "import": {
32
+ "types": "./dist/integrations/valibot.d.ts",
33
+ "default": "./dist/integrations/valibot.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/integrations/valibot.d.cts",
37
+ "default": "./dist/integrations/valibot.cjs"
38
+ }
39
+ },
40
+ "./openapi": {
41
+ "import": {
42
+ "types": "./dist/integrations/openapi.d.ts",
43
+ "default": "./dist/integrations/openapi.js"
44
+ },
45
+ "require": {
46
+ "types": "./dist/integrations/openapi.d.cts",
47
+ "default": "./dist/integrations/openapi.cjs"
48
+ }
49
+ },
50
+ "./standard-schema": {
51
+ "import": {
52
+ "types": "./dist/integrations/standard-schema.d.ts",
53
+ "default": "./dist/integrations/standard-schema.js"
54
+ },
55
+ "require": {
56
+ "types": "./dist/integrations/standard-schema.d.cts",
57
+ "default": "./dist/integrations/standard-schema.cjs"
58
+ }
59
+ }
60
+ },
61
+ "files": [
62
+ "dist"
63
+ ],
64
+ "sideEffects": false,
65
+ "keywords": [
66
+ "hono",
67
+ "rfc9457",
68
+ "problem-details",
69
+ "error-handling",
70
+ "middleware",
71
+ "api",
72
+ "openapi",
73
+ "zod",
74
+ "valibot"
75
+ ],
76
+ "repository": {
77
+ "type": "git",
78
+ "url": "https://github.com/paveg/hono-problem-details"
79
+ },
80
+ "homepage": "https://github.com/paveg/hono-problem-details#readme",
81
+ "bugs": "https://github.com/paveg/hono-problem-details/issues",
82
+ "license": "MIT",
83
+ "peerDependencies": {
84
+ "hono": ">=4.0.0"
85
+ },
86
+ "peerDependenciesMeta": {
87
+ "@hono/zod-validator": {
88
+ "optional": true
89
+ },
90
+ "zod": {
91
+ "optional": true
92
+ },
93
+ "@hono/valibot-validator": {
94
+ "optional": true
95
+ },
96
+ "valibot": {
97
+ "optional": true
98
+ },
99
+ "@hono/zod-openapi": {
100
+ "optional": true
101
+ },
102
+ "@hono/standard-validator": {
103
+ "optional": true
104
+ },
105
+ "@standard-schema/spec": {
106
+ "optional": true
107
+ }
108
+ },
109
+ "devDependencies": {
110
+ "@biomejs/biome": "^1.9.0",
111
+ "@changesets/changelog-github": "0.5.2",
112
+ "@changesets/cli": "2.29.8",
113
+ "@hono/standard-validator": "0.2.2",
114
+ "@hono/valibot-validator": "^0.5.0",
115
+ "@hono/zod-openapi": "0.19.10",
116
+ "@hono/zod-validator": "^0.5.0",
117
+ "@standard-schema/spec": "1.1.0",
118
+ "@vitest/coverage-v8": "^3.0.0",
119
+ "hono": "^4.7.0",
120
+ "lefthook": "2.1.1",
121
+ "tsup": "^8.0.0",
122
+ "typescript": "^5.7.0",
123
+ "valibot": "^1.0.0",
124
+ "vitest": "^3.0.0",
125
+ "zod": "^3.24.0"
126
+ },
127
+ "engines": {
128
+ "node": ">=20"
129
+ },
130
+ "publishConfig": {
131
+ "access": "public",
132
+ "provenance": true
133
+ },
134
+ "scripts": {
135
+ "build": "tsup",
136
+ "test": "vitest run",
137
+ "test:watch": "vitest",
138
+ "lint": "biome check .",
139
+ "lint:fix": "biome check --write .",
140
+ "format": "biome format --write .",
141
+ "typecheck": "tsc --noEmit",
142
+ "release": "pnpm build && changeset publish",
143
+ "version-packages": "changeset version && pnpm lint:fix"
144
+ }
145
+ }