@aklinker1/zeta 1.1.2 → 1.1.3
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 +2 -2
- package/src/internal/utils.ts +8 -1
- package/src/types.ts +2 -2
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aklinker1/zeta",
|
|
3
3
|
"description": "Composable, testable, OpenAPI-first backend framework with validation built-in",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"packageManager": "bun@1.2
|
|
7
|
+
"packageManager": "bun@1.3.2",
|
|
8
8
|
"module": "src/index.ts",
|
|
9
9
|
"types": "src/index.ts",
|
|
10
10
|
"exports": {
|
package/src/internal/utils.ts
CHANGED
|
@@ -71,7 +71,14 @@ export function getRawParams(
|
|
|
71
71
|
rawParams["**"] = rawParams["_"];
|
|
72
72
|
delete rawParams["_"];
|
|
73
73
|
}
|
|
74
|
-
|
|
74
|
+
|
|
75
|
+
// Decode all values automatically
|
|
76
|
+
return Object.fromEntries(
|
|
77
|
+
Object.entries(rawParams).map(([key, value]) => [
|
|
78
|
+
key,
|
|
79
|
+
decodeURIComponent(value),
|
|
80
|
+
]),
|
|
81
|
+
);
|
|
75
82
|
}
|
|
76
83
|
|
|
77
84
|
export function getErrorStack(err: Error): string[] | undefined {
|
package/src/types.ts
CHANGED
|
@@ -458,8 +458,8 @@ export type GetRouteHandlerReturnType<TRouteDef extends RouteDef> =
|
|
|
458
458
|
TRouteDef extends { responses: symbol } // is any check
|
|
459
459
|
? any
|
|
460
460
|
: TRouteDef extends { responses: infer TResponses }
|
|
461
|
-
? TResponses extends StandardSchemaV1
|
|
462
|
-
?
|
|
461
|
+
? TResponses extends StandardSchemaV1
|
|
462
|
+
? StandardSchemaV1.InferInput<TResponses>
|
|
463
463
|
: TRouteDef["responses"] extends Record<number, StandardSchemaV1<any>>
|
|
464
464
|
? StatusResult
|
|
465
465
|
: never
|