aviary-discovery
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "aviary-discovery", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./src/discover.js", |
@@ -12,6 +12,7 @@ 'use strict'; | ||
AWS_SECRET_ACCESS_KEY = process.env.AWS_SECRET_ACCESS_KEY, | ||
S3_ENDPOINT = process.env.S3_ENDPOINT; | ||
S3_ENDPOINT = process.env.S3_ENDPOINT, | ||
config; | ||
if (S3_ENDPOINT) { | ||
var config = { | ||
config = { | ||
region: 'us-east-1', | ||
@@ -25,4 +26,7 @@ apiVersions: { | ||
}; | ||
AWS_ACCESS_KEY_ID = 'foo'; | ||
AWS_SECRET_ACCESS_KEY = 'bar'; | ||
} else { | ||
var config = { | ||
config = { | ||
region: 'us-east-1', | ||
@@ -35,2 +39,10 @@ apiVersions: { | ||
if (AWS_ACCESS_KEY_ID) { | ||
config.credentials = new AWS.Credentials( | ||
AWS_ACCESS_KEY_ID, | ||
AWS_SECRET_ACCESS_KEY, | ||
null | ||
); | ||
} | ||
AWS.config.update(config); | ||
@@ -37,0 +49,0 @@ |
6606
277