We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d806d9d commit e0a43abCopy full SHA for e0a43ab
packages/event-handler/src/rest/converters.ts
@@ -1,13 +1,13 @@
1
import type { APIGatewayProxyEvent } from 'aws-lambda';
2
3
-function createBody(body: string | null, isBase64Encoded: boolean) {
+const createBody = (body: string | null, isBase64Encoded: boolean) => {
4
if (body === null) return null;
5
6
if (!isBase64Encoded) {
7
return body;
8
}
9
return Buffer.from(body, 'base64').toString('utf8');
10
-}
+};
11
12
export function proxyEventToWebRequest(event: APIGatewayProxyEvent) {
13
const { httpMethod, path, domainName } = event.requestContext;
0 commit comments