aws-sdk 2.774.0 → 2.778.0

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.
package/lib/core.js CHANGED
@@ -20,7 +20,7 @@ AWS.util.update(AWS, {
20
20
  /**
21
21
  * @constant
22
22
  */
23
- VERSION: '2.774.0',
23
+ VERSION: '2.778.0',
24
24
 
25
25
  /**
26
26
  * @api private
package/lib/util.js CHANGED
@@ -966,10 +966,16 @@ var util = {
966
966
  filename: process.env[util.sharedConfigFileEnv]
967
967
  });
968
968
  }
969
- var profilesFromCreds = iniLoader.loadFrom({
970
- filename: filename ||
971
- (process.env[util.configOptInEnv] && process.env[util.sharedCredentialsFileEnv])
972
- });
969
+ var profilesFromCreds= {};
970
+ try {
971
+ var profilesFromCreds = iniLoader.loadFrom({
972
+ filename: filename ||
973
+ (process.env[util.configOptInEnv] && process.env[util.sharedCredentialsFileEnv])
974
+ });
975
+ } catch (error) {
976
+ // if using config, assume it is fully descriptive without a credentials file:
977
+ if (!process.env[util.configOptInEnv]) throw error;
978
+ }
973
979
  for (var i = 0, profileNames = Object.keys(profilesFromConfig); i < profileNames.length; i++) {
974
980
  profiles[profileNames[i]] = objectAssign(profiles[profileNames[i]] || {}, profilesFromConfig[profileNames[i]]);
975
981
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aws-sdk",
3
3
  "description": "AWS SDK for JavaScript",
4
- "version": "2.774.0",
4
+ "version": "2.778.0",
5
5
  "author": {
6
6
  "name": "Amazon Web Services",
7
7
  "email": "",