ibm-cloud-sdk-core 5.4.6 → 5.4.8

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.
@@ -132,6 +132,9 @@ var TokenManager = /** @class */ (function () {
132
132
  var reject = _a.reject;
133
133
  reject(err);
134
134
  });
135
+ // Reset the queue and the request time if the token acquisition fails.
136
+ _this.pendingRequests = [];
137
+ _this.requestTime = 0;
135
138
  throw err;
136
139
  });
137
140
  };
@@ -122,6 +122,9 @@ export class TokenManager {
122
122
  this.pendingRequests.forEach(({ reject }) => {
123
123
  reject(err);
124
124
  });
125
+ // Reset the queue and the request time if the token acquisition fails.
126
+ this.pendingRequests = [];
127
+ this.requestTime = 0;
125
128
  throw err;
126
129
  });
127
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibm-cloud-sdk-core",
3
- "version": "5.4.6",
3
+ "version": "5.4.8",
4
4
  "description": "Core functionality to support SDKs generated with IBM's OpenAPI SDK Generator.",
5
5
  "main": "./index.js",
6
6
  "typings": "./es/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "@types/debug": "^4.1.12",
38
38
  "@types/node": "^18.19.80",
39
39
  "@types/tough-cookie": "^4.0.0",
40
- "axios": "^1.12.2",
40
+ "axios": "^1.13.5",
41
41
  "camelcase": "^6.3.0",
42
42
  "debug": "^4.3.4",
43
43
  "dotenv": "^16.4.5",