aws-architect 6.6.35 → 6.6.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/server.js +5 -0
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -208,6 +208,11 @@ function Server(contentDirectory, lambdaApi, logger) {
208
208
  this.logger(`StatusCode: ${response.statusCode}`);
209
209
  this.logger(`Headers: ${stringify(responseHeaders, null, 2)}`);
210
210
 
211
+ if (response.isBase64Encoded) {
212
+ this.logger('Body: <Binary>');
213
+ return res.status(response.statusCode).send(Buffer.from(response.body, 'base64'));
214
+ }
215
+
211
216
  try {
212
217
  response.body = response.body && response.body.replace(/"https?:\/\/(localhost:\d{2,5})\/([^"]*)"/g, '"http://$1/api/$2"');
213
218
  let json = JSON.parse(response.body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-architect",
3
- "version": "6.6.35",
3
+ "version": "6.6.36",
4
4
  "description": "AWS Architect is a node based tool to configure and deploy AWS-based microservices.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",