@codegenie/serverless-express
Advanced tools
Comparing version 4.14.0 to 4.14.1
{ | ||
"name": "@codegenie/serverless-express", | ||
"version": "4.14.0", | ||
"version": "4.14.1", | ||
"description": "This library enables you to utilize AWS Lambda and Amazon API Gateway to respond to web and API requests using your existing Node.js application framework.", | ||
@@ -50,3 +50,4 @@ "keywords": [ | ||
"examples/nestjs", | ||
"examples/basic-starter-api-gateway-v2-typescript" | ||
"examples/basic-starter-api-gateway-v2-typescript", | ||
"examples/lambda-function-url" | ||
] | ||
@@ -53,0 +54,0 @@ }, |
@@ -13,3 +13,7 @@ const getRequestValuesFromSqs = ({ event }) => { | ||
const getResponseToSqs = ({ body }) => JSON.parse(body) | ||
const getResponseToSqs = ({ body }) => { | ||
try { | ||
return JSON.parse(body) | ||
} catch (error) {} | ||
} | ||
@@ -16,0 +20,0 @@ module.exports = { |
@@ -94,2 +94,3 @@ const url = require('url') | ||
if (event.requestContext) { | ||
// NOTE: Lambda Function URL follows the same format as AWS_API_GATEWAY_V2 | ||
return event.version === '2.0' ? 'AWS_API_GATEWAY_V2' : 'AWS_API_GATEWAY_V1' | ||
@@ -96,0 +97,0 @@ } |
70926
1369