aws-architect 6.7.99 → 6.7.102

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 +2 -2
  2. package/package.json +1 -1
package/lib/server.js CHANGED
@@ -212,11 +212,11 @@ function Server(contentDirectory, lambdaApi, logger) {
212
212
 
213
213
  const responseHeaders = cloneDeep(response.headers || {});
214
214
  Object.keys(responseHeaders).filter(h => h.match(/location/i)).forEach(header => {
215
- responseHeaders[header] = responseHeaders[header].replace(/^https?:\/\/(localhost:\d{2,5})\/(.*)$/g, 'http://$1/api/$2');
215
+ responseHeaders[header] = `${responseHeaders[header]}`.replace(/^https?:\/\/(localhost:\d{2,5})\/(.*)$/g, 'http://$1/api/$2');
216
216
  });
217
217
  const multiValueHeaders = cloneDeep(response.multiValueHeaders || {});
218
218
  Object.keys(multiValueHeaders).filter(h => multiValueHeaders[h]).forEach(h => {
219
- responseHeaders[h] = multiValueHeaders[h].filter(v => v).map(v => v.replace(/^https?:\/\/(localhost:\d{2,5})\/(.*)$/g, 'http://$1/api/$2'));
219
+ responseHeaders[h] = multiValueHeaders[h].filter(v => v).map(v => `${v}`.replace(/^https?:\/\/(localhost:\d{2,5})\/(.*)$/g, 'http://$1/api/$2'));
220
220
  });
221
221
 
222
222
  if (Array.isArray(responseHeaders['Content-Type'])) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aws-architect",
3
- "version": "6.7.99",
3
+ "version": "6.7.102",
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",