@fenelabs/fene-sdk 0.7.2 → 0.7.4

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/dist/index.d.mts CHANGED
@@ -56,6 +56,7 @@ interface ValidatorSummary {
56
56
  commission_rate: number;
57
57
  status: ValidatorStatus;
58
58
  delegator_count: number;
59
+ created_at: number;
59
60
  }
60
61
  declare enum DelegatorStatus {
61
62
  NOT_EXIST = 0,
package/dist/index.d.ts CHANGED
@@ -56,6 +56,7 @@ interface ValidatorSummary {
56
56
  commission_rate: number;
57
57
  status: ValidatorStatus;
58
58
  delegator_count: number;
59
+ created_at: number;
59
60
  }
60
61
  declare enum DelegatorStatus {
61
62
  NOT_EXIST = 0,
package/dist/index.js CHANGED
@@ -258,9 +258,9 @@ var ResonanceClient = class {
258
258
  const duration = Date.now() - startTime;
259
259
  if (response.status === 401 && !this.isRefreshing) {
260
260
  this.isRefreshing = true;
261
- const refreshed = await this.refresh();
261
+ const refreshResult = await this.refresh();
262
262
  this.isRefreshing = false;
263
- if (refreshed) {
263
+ if (refreshResult.success) {
264
264
  return this.executeRequest(path, options, attemptNumber);
265
265
  }
266
266
  eventBus.emit("api:unauthorized", {
package/dist/index.mjs CHANGED
@@ -222,9 +222,9 @@ var ResonanceClient = class {
222
222
  const duration = Date.now() - startTime;
223
223
  if (response.status === 401 && !this.isRefreshing) {
224
224
  this.isRefreshing = true;
225
- const refreshed = await this.refresh();
225
+ const refreshResult = await this.refresh();
226
226
  this.isRefreshing = false;
227
- if (refreshed) {
227
+ if (refreshResult.success) {
228
228
  return this.executeRequest(path, options, attemptNumber);
229
229
  }
230
230
  eventBus.emit("api:unauthorized", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fenelabs/fene-sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.4",
4
4
  "description": "TypeScript SDK for Fene API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",