ibm-cloud-sdk-core
Advanced tools
Comparing version 1.0.0-rc to 1.0.0-rc1
@@ -66,3 +66,3 @@ "use strict"; | ||
try { | ||
_this.saveTokenInfo(tokenResponse); | ||
_this.saveTokenInfo(tokenResponse.result); | ||
} | ||
@@ -69,0 +69,0 @@ catch (e) { |
@@ -200,3 +200,14 @@ "use strict"; | ||
this.axiosInstance(requestParams) | ||
// placing `catch` block first because it is for catching request errors | ||
// if it is after the `then` block, it will also catch errors if they occur | ||
// inside of the `then` block | ||
.catch(function (error) { | ||
_callback(_this.formatError(error)); | ||
}) | ||
.then(function (res) { | ||
// sometimes error responses will still trigger the `then` block - escape that behavior here | ||
if (!res) { | ||
return; | ||
} | ||
; | ||
// these objects contain circular json structures and are not always relevant to the user | ||
@@ -210,5 +221,2 @@ // if the user wants them, they can be accessed through the debug properties | ||
_callback(null, res); | ||
}) | ||
.catch(function (error) { | ||
_callback(_this.formatError(error)); | ||
}); | ||
@@ -215,0 +223,0 @@ }; |
{ | ||
"name": "ibm-cloud-sdk-core", | ||
"version": "1.0.0-rc", | ||
"version": "1.0.0-rc1", | ||
"description": "Core functionality to support SDKs generated with IBM's OpenAPI 3 SDK Generator.", | ||
@@ -5,0 +5,0 @@ "main": "./index", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
182188
2958
1