File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
smithy-typescript-ssdk-libs/server-apigateway/src Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ export function convertResponse(response: HttpResponse) : APIGatewayProxyResultV
42
42
}
43
43
}
44
44
45
+ // TODO: this can be rewritten with arrow functions / Object.fromEntries / filter
46
+ // but first we need to split up generated client and servers so we can have different
47
+ // language version targets.
45
48
function convertHeaders ( headers : APIGatewayProxyEventHeaders ) : HeaderBag {
46
49
const retVal : { [ key : string ] : string } = { } ;
47
50
@@ -55,6 +58,7 @@ function convertHeaders(headers: APIGatewayProxyEventHeaders): HeaderBag {
55
58
return retVal ;
56
59
}
57
60
61
+ // TODO: this can be rewritten with arrow functions / Object.fromEntries / filter
58
62
function convertQuery ( params : APIGatewayProxyEventQueryStringParameters | undefined ) : QueryParameterBag | undefined {
59
63
if ( params === undefined ) {
60
64
return undefined ;
You can’t perform that action at this time.
0 commit comments