Socket
Socket
Sign inDemoInstall

ibm-cloud-sdk-core

Package Overview
Dependencies
Maintainers
1
Versions
143
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ibm-cloud-sdk-core - npm Package Compare versions

Comparing version 1.0.0-rc to 1.0.0-rc1

2

auth/token-managers/jwt-token-manager.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc