@thisisagile/easy
Advanced tools
Comparing version 1.21.3 to 1.21.4
import { Id, Json, JsonValue } from '../types'; | ||
export declare type Req = { | ||
path?: Json; | ||
path?: any; | ||
id?: Id; | ||
query?: Json; | ||
query?: any; | ||
q?: JsonValue; | ||
@@ -7,0 +7,0 @@ body?: Json; |
{ | ||
"name": "@thisisagile/easy", | ||
"version": "1.21.3", | ||
"version": "1.21.4", | ||
"description": "Straightforward library for building domain-driven microservice architectures", | ||
@@ -5,0 +5,0 @@ "author": "Sander Hoogendoorn", |
import { Id, Json, JsonValue } from '../types'; | ||
export type Req = { path?: Json; id?: Id; query?: Json; q?: JsonValue; body?: Json }; | ||
export type Req = { path?: any; id?: Id; query?: any; q?: JsonValue; body?: Json }; | ||
export const toReq = (req: { params?: { id?: unknown }; query?: { q?: unknown }; body?: unknown }): Req => ({ | ||
path: req.params as Json, | ||
path: req.params, | ||
id: req.params?.id as Id, | ||
query: req.query as Json, | ||
query: req.query, | ||
q: req.query?.q as Json, | ||
body: req.body as Json, | ||
}); |
Sorry, the diff of this file is not supported yet
183212