@carrot-protocol/http-client 0.2.52-add-wallet-performance-dev-a005859 → 0.2.52-add-wallet-performance-dev-96dfa50

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.ts CHANGED
@@ -98,7 +98,7 @@ export interface PerformanceData {
98
98
  crtAmountUi: number;
99
99
  crtCurrentPrice: number;
100
100
  crtCurrentValue: number;
101
- holderSince: string;
101
+ holderSince: Date;
102
102
  stats: Stat[];
103
103
  portfolioTracker: PortfolioValue[];
104
104
  }
package/dist/index.js CHANGED
@@ -169,7 +169,11 @@ class Client {
169
169
  headers: this.headers,
170
170
  });
171
171
  checkResponse(response);
172
- const body = await response.json();
172
+ let body = await response.json();
173
+ body.holderSince = new Date(body.holderSince);
174
+ body.portfolioTracker.forEach((value) => {
175
+ value.date = new Date(value.date);
176
+ });
173
177
  const getUserPerformanceResponse = {
174
178
  vault,
175
179
  wallets,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.52-add-wallet-performance-dev-a005859",
3
+ "version": "0.2.52-add-wallet-performance-dev-96dfa50",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",