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.
- package/dist/{chunk-63332VQA.js → chunk-EL44ATLR.js} +1 -2
- package/dist/{chunk-O5AEI2VV.js → chunk-LW7MK5KY.js} +1 -2
- package/dist/{chunk-JW7PXR25.js → chunk-P4D7EVU3.js} +0 -1
- package/dist/index.cjs +0 -1
- package/dist/index.js +2 -3
- package/dist/integrations/openapi.cjs +0 -1
- package/dist/integrations/openapi.js +1 -2
- package/dist/integrations/standard-schema.cjs +0 -1
- package/dist/integrations/standard-schema.js +3 -4
- package/dist/integrations/valibot.cjs +0 -1
- package/dist/integrations/valibot.js +3 -4
- package/dist/integrations/zod.cjs +0 -1
- package/dist/integrations/zod.js +3 -4
- package/package.json +8 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
statusToPhrase
|
|
3
|
-
} from "./chunk-
|
|
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-
|
|
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
|
package/dist/index.cjs
CHANGED
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-
|
|
5
|
+
} from "./chunk-EL44ATLR.js";
|
|
6
6
|
import {
|
|
7
7
|
statusToPhrase,
|
|
8
8
|
statusToSlug
|
|
9
|
-
} from "./chunk-
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
statusToPhrase
|
|
3
|
-
} from "../chunk-
|
|
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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildValidationResponse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildValidationResponse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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
|
package/dist/integrations/zod.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildValidationResponse
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
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.
|
|
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.
|
|
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": "^
|
|
150
|
-
"hono": "^4.12.
|
|
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": "^
|
|
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",
|