@carrot-protocol/http-client 0.2.12-hva-dev-8a6747f → 0.2.12

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -128,9 +128,12 @@ class Client {
128
128
  headers: this.headers,
129
129
  });
130
130
  checkResponse(response);
131
- const body = JSON.parse(JSON.stringify(await response.json()));
132
- body.vault = new anchor.web3.PublicKey(body.vault);
133
- return body;
131
+ const body = await response.json();
132
+ const historicalVaultApyResponse = {
133
+ vault,
134
+ data: body,
135
+ };
136
+ return historicalVaultApyResponse;
134
137
  }
135
138
  async issue(vault, assetMint, amount) {
136
139
  const url = new URL(`${this.baseUrl}/issue`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.12-hva-dev-8a6747f",
3
+ "version": "0.2.12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",