two-stroke 5.0.1 → 5.0.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/package.json +1 -1
- package/src/index.ts +2 -1
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -120,7 +120,8 @@ export function twoStroke<T extends Env>(title: string, release: string) {
|
|
|
120
120
|
return new Response(
|
|
121
121
|
JSON.stringify({
|
|
122
122
|
error: "Request body schema invalid",
|
|
123
|
-
|
|
123
|
+
issues: JSON.parse(body.error?.message ?? "{}") as unknown,
|
|
124
|
+
name: body.error?.name
|
|
124
125
|
}),
|
|
125
126
|
{
|
|
126
127
|
status: 400,
|