hono-problem-details 0.8.0 → 0.8.2

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  statusToPhrase
3
- } from "./chunk-JW7PXR25.js";
3
+ } from "./chunk-P4D7EVU3.js";
4
4
 
5
5
  // src/utils.ts
6
6
  var PROBLEM_JSON_CONTENT_TYPE = "application/problem+json; charset=utf-8";
@@ -56,4 +56,3 @@ export {
56
56
  normalizeProblemDetails,
57
57
  buildProblemResponse
58
58
  };
59
- //# sourceMappingURL=chunk-63332VQA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PROBLEM_JSON_CONTENT_TYPE
3
- } from "./chunk-63332VQA.js";
3
+ } from "./chunk-EL44ATLR.js";
4
4
 
5
5
  // src/integrations/validation.ts
6
6
  var CONTROL_CHAR_RE = /[\x00-\x1f\x7f]/g;
@@ -31,4 +31,3 @@ function buildValidationResponse(errors, options) {
31
31
  export {
32
32
  buildValidationResponse
33
33
  };
34
- //# sourceMappingURL=chunk-O5AEI2VV.js.map
@@ -58,4 +58,3 @@ export {
58
58
  statusToPhrase,
59
59
  statusToSlug
60
60
  };
61
- //# sourceMappingURL=chunk-JW7PXR25.js.map
package/dist/index.cjs CHANGED
@@ -260,4 +260,3 @@ function createProblemTypeRegistry(definitions) {
260
260
  statusToPhrase,
261
261
  statusToSlug
262
262
  });
263
- //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -2,11 +2,11 @@ import {
2
2
  PROBLEM_JSON_CONTENT_TYPE,
3
3
  buildProblemResponse,
4
4
  normalizeProblemDetails
5
- } from "./chunk-63332VQA.js";
5
+ } from "./chunk-EL44ATLR.js";
6
6
  import {
7
7
  statusToPhrase,
8
8
  statusToSlug
9
- } from "./chunk-JW7PXR25.js";
9
+ } from "./chunk-P4D7EVU3.js";
10
10
 
11
11
  // src/error.ts
12
12
  var ProblemDetailsError = class extends Error {
@@ -132,4 +132,3 @@ export {
132
132
  statusToPhrase,
133
133
  statusToSlug
134
134
  };
135
- //# sourceMappingURL=index.js.map
@@ -115,4 +115,3 @@ function problemDetailsResponse(status, description, schema) {
115
115
  getProblemDetailsSchema,
116
116
  problemDetailsResponse
117
117
  });
118
- //# sourceMappingURL=openapi.cjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  statusToPhrase
3
- } from "../chunk-JW7PXR25.js";
3
+ } from "../chunk-P4D7EVU3.js";
4
4
 
5
5
  // src/integrations/openapi.ts
6
6
  import { z } from "@hono/zod-openapi";
@@ -37,4 +37,3 @@ export {
37
37
  getProblemDetailsSchema,
38
38
  problemDetailsResponse
39
39
  };
40
- //# sourceMappingURL=openapi.js.map
@@ -78,4 +78,3 @@ function standardSchemaProblemHook(options) {
78
78
  0 && (module.exports = {
79
79
  standardSchemaProblemHook
80
80
  });
81
- //# sourceMappingURL=standard-schema.cjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  buildValidationResponse
3
- } from "../chunk-O5AEI2VV.js";
4
- import "../chunk-63332VQA.js";
5
- import "../chunk-JW7PXR25.js";
3
+ } from "../chunk-LW7MK5KY.js";
4
+ import "../chunk-EL44ATLR.js";
5
+ import "../chunk-P4D7EVU3.js";
6
6
 
7
7
  // src/integrations/standard-schema.ts
8
8
  function formatPath(path) {
@@ -23,4 +23,3 @@ function standardSchemaProblemHook(options) {
23
23
  export {
24
24
  standardSchemaProblemHook
25
25
  };
26
- //# sourceMappingURL=standard-schema.js.map
@@ -76,4 +76,3 @@ function valibotProblemHook(options) {
76
76
  0 && (module.exports = {
77
77
  valibotProblemHook
78
78
  });
79
- //# sourceMappingURL=valibot.cjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  buildValidationResponse
3
- } from "../chunk-O5AEI2VV.js";
4
- import "../chunk-63332VQA.js";
5
- import "../chunk-JW7PXR25.js";
3
+ } from "../chunk-LW7MK5KY.js";
4
+ import "../chunk-EL44ATLR.js";
5
+ import "../chunk-P4D7EVU3.js";
6
6
 
7
7
  // src/integrations/valibot.ts
8
8
  function formatIssues(issues) {
@@ -21,4 +21,3 @@ function valibotProblemHook(options) {
21
21
  export {
22
22
  valibotProblemHook
23
23
  };
24
- //# sourceMappingURL=valibot.js.map
@@ -76,4 +76,3 @@ function zodProblemHook(options) {
76
76
  0 && (module.exports = {
77
77
  zodProblemHook
78
78
  });
79
- //# sourceMappingURL=zod.cjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  buildValidationResponse
3
- } from "../chunk-O5AEI2VV.js";
4
- import "../chunk-63332VQA.js";
5
- import "../chunk-JW7PXR25.js";
3
+ } from "../chunk-LW7MK5KY.js";
4
+ import "../chunk-EL44ATLR.js";
5
+ import "../chunk-P4D7EVU3.js";
6
6
 
7
7
  // src/integrations/zod.ts
8
8
  function formatErrors(zodError) {
@@ -21,4 +21,3 @@ function zodProblemHook(options) {
21
21
  export {
22
22
  zodProblemHook
23
23
  };
24
- //# sourceMappingURL=zod.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono-problem-details",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "RFC 9457 Problem Details middleware for Hono",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -75,8 +75,7 @@
75
75
  }
76
76
  },
77
77
  "files": [
78
- "dist",
79
- "!dist/**/*.map"
78
+ "dist"
80
79
  ],
81
80
  "sideEffects": false,
82
81
  "keywords": [
@@ -106,7 +105,7 @@
106
105
  "@hono/zod-validator": "^0.7.5",
107
106
  "@opentelemetry/api": "^1.0.0",
108
107
  "@standard-schema/spec": "^1.0.0",
109
- "hono": ">=4.12.14",
108
+ "hono": ">=4.12.27",
110
109
  "valibot": "^1.0.0",
111
110
  "zod": "^3.25.0 || ^4.0.0"
112
111
  },
@@ -146,13 +145,14 @@
146
145
  "@hono/zod-validator": "^0.7.6",
147
146
  "@opentelemetry/api": "^1.0.0",
148
147
  "@standard-schema/spec": "1.1.0",
149
- "@vitest/coverage-v8": "^3.0.0",
150
- "hono": "^4.12.14",
148
+ "@vitest/coverage-v8": "^4.1.8",
149
+ "hono": "^4.12.27",
150
+ "knip": "6.14.2",
151
151
  "lefthook": "2.1.6",
152
152
  "tsup": "^8.0.0",
153
153
  "typescript": "^6.0.3",
154
154
  "valibot": "^1.3.1",
155
- "vitest": "^3.0.0",
155
+ "vitest": "^4.1.8",
156
156
  "zod": "^4.0.0"
157
157
  },
158
158
  "engines": {
@@ -169,6 +169,7 @@
169
169
  "test:watch": "vitest",
170
170
  "lint": "biome check .",
171
171
  "lint:fix": "biome check --write .",
172
+ "knip": "knip",
172
173
  "format": "biome format --write .",
173
174
  "typecheck": "tsc --noEmit",
174
175
  "test:compat": "tsc -p tsconfig.compat.json",