Socket
Socket
Sign inDemoInstall

ibm-cloud-sdk-core

Package Overview
Dependencies
Maintainers
3
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 4.2.2 to 4.2.3

9

auth/token-managers/token-manager.js

@@ -59,2 +59,11 @@ "use strict";

_this.saveTokenInfo(tokenResponse);
}, function (err) {
// If the refresh request failed: catch the error, log a message, and return the stored token.
// The attempt to get a new token will be retried upon the next request.
var message = 'Attempted token refresh failed. The refresh will be retried with the next request.';
if (err && err.message) {
message += " ".concat(err.message);
}
logger_1.default.error(message);
logger_1.default.debug(err);
});

@@ -61,0 +70,0 @@ }

@@ -0,1 +1,8 @@

## [4.2.3](https://github.com/IBM/node-sdk-core/compare/v4.2.2...v4.2.3) (2024-02-01)
### Bug Fixes
* **token-manager:** handle request errors when refreshing tokens ([#267](https://github.com/IBM/node-sdk-core/issues/267)) ([2909804](https://github.com/IBM/node-sdk-core/commit/290980474d8e567612d36d6160315ee7e433b07b))
## [4.2.2](https://github.com/IBM/node-sdk-core/compare/v4.2.1...v4.2.2) (2024-01-04)

@@ -2,0 +9,0 @@

@@ -52,2 +52,11 @@ /* eslint-disable @typescript-eslint/no-unused-vars, class-methods-use-this */

this.saveTokenInfo(tokenResponse);
}, (err) => {
// If the refresh request failed: catch the error, log a message, and return the stored token.
// The attempt to get a new token will be retried upon the next request.
let message = 'Attempted token refresh failed. The refresh will be retried with the next request.';
if (err && err.message) {
message += ` ${err.message}`;
}
logger.error(message);
logger.debug(err);
});

@@ -54,0 +63,0 @@ }

2

package.json
{
"name": "ibm-cloud-sdk-core",
"version": "4.2.2",
"version": "4.2.3",
"description": "Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.",

@@ -5,0 +5,0 @@ "main": "index.js",

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