ibm-cloud-sdk-core 2.12.1 → 2.12.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [2.12.2](https://github.com/IBM/node-sdk-core/compare/v2.12.1...v2.12.2) (2021-08-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * support 'AUTHTYPE' as alias for 'AUTH_TYPE' config property ([#153](https://github.com/IBM/node-sdk-core/issues/153)) ([fccf209](https://github.com/IBM/node-sdk-core/commit/fccf2093874835d9c77c08843809b79e57fb0e78))
7
+
1
8
  ## [2.12.1](https://github.com/IBM/node-sdk-core/compare/v2.12.0...v2.12.1) (2021-08-11)
2
9
 
3
10
 
@@ -53,6 +53,10 @@ function getAuthenticatorFromEnvironment(serviceName) {
53
53
  // if an apikey is provided, default to IAM
54
54
  // if not, default to container auth
55
55
  var authType = credentials.authType;
56
+ if (!authType) {
57
+ // Support the alternate "AUTHTYPE" config property.
58
+ authType = credentials.authtype;
59
+ }
56
60
  if (!authType || typeof authType !== 'string') {
57
61
  authType = credentials.apikey ? 'iam' : 'container';
58
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibm-cloud-sdk-core",
3
- "version": "2.12.1",
3
+ "version": "2.12.2",
4
4
  "description": "Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.",
5
5
  "main": "index",
6
6
  "repository": {