@mcma/aws-api-gateway
Advanced tools
Comparing version 0.13.14 to 0.13.15
@@ -33,6 +33,9 @@ "use strict"; | ||
await this.mcmaApiController.handleRequest(requestContext); | ||
const isBase64Encoded = Buffer.isBuffer(requestContext.response.body); | ||
const body = isBase64Encoded ? requestContext.response.body.toString("base64") : requestContext.response.body; | ||
return { | ||
statusCode: requestContext.response.statusCode, | ||
headers: requestContext.response.headers, | ||
body: requestContext.response.body | ||
body, | ||
isBase64Encoded | ||
}; | ||
@@ -39,0 +42,0 @@ } |
{ | ||
"name": "@mcma/aws-api-gateway", | ||
"version": "0.13.14", | ||
"version": "0.13.15", | ||
"description": "Node module with code for using AWS's API Gateway as an entry point to an MCMA API handler.", | ||
@@ -37,15 +37,15 @@ "engines": { | ||
"peerDependencies": { | ||
"@mcma/client": "0.13.14", | ||
"@mcma/core": "0.13.14", | ||
"@mcma/data": "0.13.14", | ||
"@mcma/api": "0.13.14", | ||
"@mcma/worker-invoker": "0.13.14", | ||
"@mcma/client": "0.13.15", | ||
"@mcma/core": "0.13.15", | ||
"@mcma/data": "0.13.15", | ||
"@mcma/api": "0.13.15", | ||
"@mcma/worker-invoker": "0.13.15", | ||
"@types/aws-lambda": "^8.10.63" | ||
}, | ||
"devDependencies": { | ||
"@mcma/api": "0.13.14", | ||
"@mcma/client": "0.13.14", | ||
"@mcma/core": "0.13.14", | ||
"@mcma/data": "0.13.14", | ||
"@mcma/worker-invoker": "0.13.14", | ||
"@mcma/api": "0.13.15", | ||
"@mcma/client": "0.13.15", | ||
"@mcma/core": "0.13.15", | ||
"@mcma/data": "0.13.15", | ||
"@mcma/worker-invoker": "0.13.15", | ||
"@types/aws-lambda": "^8.10.63", | ||
@@ -52,0 +52,0 @@ "@types/node": "^13.7.6", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5328
82