@carrot-protocol/http-client 0.2.55 → 0.2.56-fix-common-dev-a9c8bd9

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
@@ -1,5 +1,6 @@
1
1
  import * as anchor from "@coral-xyz/anchor";
2
2
  import { Vault, VaultPerformance } from "@carrot-protocol/common";
3
+ export * as Common from "@carrot-protocol/common";
3
4
  export declare class Client {
4
5
  readonly baseUrl: string;
5
6
  readonly provider: anchor.AnchorProvider | undefined;
@@ -113,4 +114,3 @@ export interface PortfolioValue {
113
114
  runningTotalDepositsUsd: number;
114
115
  portfolioValueUsd: number;
115
116
  }
116
- export {};
package/dist/index.js CHANGED
@@ -36,13 +36,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.Client = void 0;
39
+ exports.Client = exports.Common = void 0;
40
40
  exports.isWalletAllowed = isWalletAllowed;
41
41
  exports.isValidVaultHistoricalInterval = isValidVaultHistoricalInterval;
42
42
  exports.prepareUnsignedTx = prepareUnsignedTx;
43
43
  const cross_fetch_1 = __importDefault(require("cross-fetch"));
44
44
  const anchor = __importStar(require("@coral-xyz/anchor"));
45
45
  const bs58_1 = require("bs58");
46
+ // when pulling in http-client you will have access to Common as intended
47
+ exports.Common = __importStar(require("@carrot-protocol/common"));
46
48
  class Client {
47
49
  constructor(baseUrl, provider) {
48
50
  this.headers = { "Content-Type": "application/json" };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carrot-protocol/http-client",
3
- "version": "0.2.55",
4
- "description": "",
3
+ "version": "0.2.56-fix-common-dev-a9c8bd9",
4
+ "description": "interact with carrot api",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {
@@ -18,11 +18,15 @@
18
18
  "package.json"
19
19
  ],
20
20
  "dependencies": {
21
- "@coral-xyz/anchor": "^0.29.0",
22
- "@carrot-protocol/common": "file:../common",
21
+ "@coral-xyz/anchor": "0.29.0",
22
+ "@carrot-protocol/common": "0.2.55",
23
23
  "bs58": "^5.0.0",
24
24
  "cross-fetch": "^4.0.0"
25
25
  },
26
+ "peerDependencies": {
27
+ "@coral-xyz/anchor": "^0.30.0",
28
+ "@carrot-protocol/common": "^0.2.0"
29
+ },
26
30
  "devDependencies": {
27
31
  "prettier": "^3.2.5"
28
32
  }