@covalenthq/client-sdk 2.2.0 → 2.2.1
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/LICENSE +0 -0
- package/README.md +342 -342
- package/dist/cjs/index.d.ts +0 -0
- package/dist/cjs/index.js +23 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/src/GoldRushClient.d.ts +0 -0
- package/dist/cjs/src/services/AllChainsService.d.ts +0 -0
- package/dist/cjs/src/services/BalanceService.d.ts +0 -0
- package/dist/cjs/src/services/BaseService.d.ts +4 -4
- package/dist/cjs/src/services/NftService.d.ts +0 -0
- package/dist/cjs/src/services/PricingService.d.ts +0 -0
- package/dist/cjs/src/services/SecurityService.d.ts +0 -0
- package/dist/cjs/src/services/TransactionService.d.ts +0 -0
- package/dist/cjs/src/utils/functions/bigIntParser.d.ts +0 -0
- package/dist/cjs/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
- package/dist/cjs/src/utils/functions/debugOutput.d.ts +0 -0
- package/dist/cjs/src/utils/functions/endpointGenerator.d.ts +0 -0
- package/dist/cjs/src/utils/functions/execution.d.ts +0 -0
- package/dist/cjs/src/utils/functions/isValidApiKey.d.ts +0 -0
- package/dist/cjs/src/utils/functions/paginateEndpoint.d.ts +0 -0
- package/dist/cjs/src/utils/functions/prettifyCurrency.d.ts +0 -0
- package/dist/cjs/src/utils/functions/timestamp-parser.d.ts +0 -0
- package/dist/cjs/src/utils/types/AllChainService.types.d.ts +8 -2
- package/dist/cjs/src/utils/types/BalanceService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/BaseService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/Generic.types.d.ts +20 -16
- package/dist/cjs/src/utils/types/NftService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/PricingService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/SecurityService.types.d.ts +0 -0
- package/dist/cjs/src/utils/types/TransactionService.types.d.ts +0 -0
- package/dist/esm/index.d.ts +0 -0
- package/dist/esm/index.js +23 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/GoldRushClient.d.ts +0 -0
- package/dist/esm/src/services/AllChainsService.d.ts +0 -0
- package/dist/esm/src/services/BalanceService.d.ts +0 -0
- package/dist/esm/src/services/BaseService.d.ts +4 -4
- package/dist/esm/src/services/NftService.d.ts +0 -0
- package/dist/esm/src/services/PricingService.d.ts +0 -0
- package/dist/esm/src/services/SecurityService.d.ts +0 -0
- package/dist/esm/src/services/TransactionService.d.ts +0 -0
- package/dist/esm/src/utils/functions/bigIntParser.d.ts +0 -0
- package/dist/esm/src/utils/functions/calculatePrettyBalance.d.ts +0 -0
- package/dist/esm/src/utils/functions/debugOutput.d.ts +0 -0
- package/dist/esm/src/utils/functions/endpointGenerator.d.ts +0 -0
- package/dist/esm/src/utils/functions/execution.d.ts +0 -0
- package/dist/esm/src/utils/functions/isValidApiKey.d.ts +0 -0
- package/dist/esm/src/utils/functions/paginateEndpoint.d.ts +0 -0
- package/dist/esm/src/utils/functions/prettifyCurrency.d.ts +0 -0
- package/dist/esm/src/utils/functions/timestamp-parser.d.ts +0 -0
- package/dist/esm/src/utils/types/AllChainService.types.d.ts +8 -2
- package/dist/esm/src/utils/types/BalanceService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/BaseService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/Generic.types.d.ts +20 -16
- package/dist/esm/src/utils/types/NftService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/PricingService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/SecurityService.types.d.ts +0 -0
- package/dist/esm/src/utils/types/TransactionService.types.d.ts +0 -0
- package/package.json +73 -73
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -32,26 +32,26 @@ export declare class BaseService {
|
|
|
32
32
|
*
|
|
33
33
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
34
34
|
* @param {string} startDate - The start date in YYYY-MM-DD format.
|
|
35
|
-
* @param {string} endDate - The end date in YYYY-MM-DD format.
|
|
35
|
+
* @param {string | "latest"} endDate - The end date in YYYY-MM-DD format. Also accepts "latest" for the latest block height
|
|
36
36
|
* @param {GetBlockHeightsQueryParamOpts} queryParamOpts
|
|
37
37
|
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
38
38
|
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
39
39
|
*
|
|
40
40
|
*/
|
|
41
|
-
getBlockHeights(chainName: Chain, startDate: string, endDate: string, queryParamOpts?: GetBlockHeightsQueryParamOpts): AsyncIterable<GoldRushResponse<BlockHeightsResponse>>;
|
|
41
|
+
getBlockHeights(chainName: Chain, startDate: string, endDate: string | "latest", queryParamOpts?: GetBlockHeightsQueryParamOpts): AsyncIterable<GoldRushResponse<BlockHeightsResponse>>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* Commonly used to get all the block heights within a particular date range. Useful for rendering a display where you sort blocks by day.
|
|
45
45
|
*
|
|
46
46
|
* @param {Chain} chainName - The chain name eg: `eth-mainnet` or 1.
|
|
47
47
|
* @param {string} startDate - The start date in YYYY-MM-DD format.
|
|
48
|
-
* @param {string} endDate - The end date in YYYY-MM-DD format.
|
|
48
|
+
* @param {string | "latest"} endDate - The end date in YYYY-MM-DD format. Also accepts "latest" for the latest block height
|
|
49
49
|
* @param {GetBlockHeightsQueryParamOpts} queryParamOpts
|
|
50
50
|
* - `pageSize`: Number of items per page. Omitting this parameter defaults to 100.
|
|
51
51
|
* - `pageNumber`: 0-indexed page number to begin pagination.
|
|
52
52
|
*
|
|
53
53
|
*/
|
|
54
|
-
getBlockHeightsByPage(chainName: Chain, startDate: string, endDate: string, queryParamOpts?: GetBlockHeightsQueryParamOpts): Promise<GoldRushResponse<BlockHeightsResponse>>;
|
|
54
|
+
getBlockHeightsByPage(chainName: Chain, startDate: string, endDate: string | "latest", queryParamOpts?: GetBlockHeightsQueryParamOpts): Promise<GoldRushResponse<BlockHeightsResponse>>;
|
|
55
55
|
/**
|
|
56
56
|
*
|
|
57
57
|
* Commonly used to get all the event logs of the latest block, or for a range of blocks. Includes sender contract metadata as well as decoded logs.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
-
import { type Chain, type Nullable, type Quote } from "./Generic.types";
|
|
1
|
+
import { type Chain, type ChainID, type ChainName, type Nullable, type Quote } from "./Generic.types";
|
|
2
2
|
import { type Transaction } from "./TransactionService.types";
|
|
3
|
+
export type MultiChainTransaction = Transaction & {
|
|
4
|
+
/** * The requested chain ID eg: `1`. */
|
|
5
|
+
chain_id: ChainID;
|
|
6
|
+
/** * The requested chain name eg: `eth-mainnet`. */
|
|
7
|
+
chain_name: ChainName;
|
|
8
|
+
};
|
|
3
9
|
export type MultiChainMultiAddressTransactionsResponse = Nullable<{
|
|
4
10
|
/** * The timestamp when the response was generated. Useful to show data staleness to users. */
|
|
5
11
|
updated_at: Date;
|
|
@@ -10,7 +16,7 @@ export type MultiChainMultiAddressTransactionsResponse = Nullable<{
|
|
|
10
16
|
/** * The requested quote currency eg: `USD`. */
|
|
11
17
|
quote_currency: Quote | "ETH" | "BTC";
|
|
12
18
|
/** * List of response items. */
|
|
13
|
-
items:
|
|
19
|
+
items: MultiChainTransaction[];
|
|
14
20
|
}>;
|
|
15
21
|
export type GetMultiChainAndMultiAddressTransactionsParamOtps = Nullable<{
|
|
16
22
|
/** * An array of the chain names or IDs to retrieve transactions from. Defaults to all foundational chains. */
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare enum ChainName {
|
|
2
2
|
ETH_MAINNET = "eth-mainnet",
|
|
3
|
-
ETH_GOERLI = "eth-goerli",
|
|
4
3
|
ETH_SEPOLIA = "eth-sepolia",
|
|
4
|
+
ETH_GOERLI = "eth-goerli",
|
|
5
5
|
ETH_HOLESKY = "eth-holesky",
|
|
6
6
|
MATIC_MAINNET = "matic-mainnet",
|
|
7
7
|
MATIC_MUMBAI = "matic-mumbai",
|
|
@@ -33,6 +33,7 @@ export declare enum ChainName {
|
|
|
33
33
|
CRONOS_MAINNET = "cronos-mainnet",
|
|
34
34
|
CRONOS_TESTNET = "cronos-testnet",
|
|
35
35
|
CRONOS_ZKEVM_TESTNET = "cronos-zkevm-testnet",
|
|
36
|
+
CRONOS_ZKEVM_MAINNET = "cronos-zkevm-mainnet",
|
|
36
37
|
AURORA_MAINNET = "aurora-mainnet",
|
|
37
38
|
AURORA_TESTNET = "aurora-testnet",
|
|
38
39
|
EMERALD_PARATIME_MAINNET = "emerald-paratime-mainnet",
|
|
@@ -90,15 +91,15 @@ export declare enum ChainName {
|
|
|
90
91
|
FLARENETWORKS_CANARY_TESTNET = "flarenetworks-canary-testnet",
|
|
91
92
|
KCC_MAINNET = "kcc-mainnet",
|
|
92
93
|
KCC_TESTNET = "kcc-testnet",
|
|
93
|
-
LINEA_MAINNET = "linea-mainnet",
|
|
94
94
|
POLYGON_ZKEVM_MAINNET = "polygon-zkevm-mainnet",
|
|
95
|
-
|
|
95
|
+
LINEA_MAINNET = "linea-mainnet",
|
|
96
96
|
LINEA_GOERLI_TESTNET = "linea-goerli-testnet",
|
|
97
|
+
LINEA_SEPOLIA_TESTNET = "linea-sepolia-testnet",
|
|
97
98
|
POLYGON_ZKEVM_TESTNET = "polygon-zkevm-testnet",
|
|
98
99
|
POLYGON_AMOY_TESTNET = "polygon-amoy-testnet",
|
|
99
100
|
MANTLE_MAINNET = "mantle-mainnet",
|
|
100
|
-
MANTLE_SEPOLIA_TESTNET = "mantle-sepolia-testnet",
|
|
101
101
|
POLYGON_ZKEVM_CARDONA_TESTNET = "polygon-zkevm-cardona-testnet",
|
|
102
|
+
MANTLE_SEPOLIA_TESTNET = "mantle-sepolia-testnet",
|
|
102
103
|
BASE_MAINNET = "base-mainnet",
|
|
103
104
|
BASE_TESTNET = "base-testnet",
|
|
104
105
|
BASE_SEPOLIA_TESTNET = "base-sepolia-testnet",
|
|
@@ -109,8 +110,8 @@ export declare enum ChainName {
|
|
|
109
110
|
LUMOZ_STARK_SPORT = "lumoz-stark-sport",
|
|
110
111
|
OASIS_SAPPHIRE_MAINNET = "oasis-sapphire-mainnet",
|
|
111
112
|
OASIS_SAPPHIRE_TESTNET = "oasis-sapphire-testnet",
|
|
112
|
-
SYNDR_TESTNET = "syndr-testnet",
|
|
113
113
|
XAI_MAINNET = "xai-mainnet",
|
|
114
|
+
SYNDR_TESTNET = "syndr-testnet",
|
|
114
115
|
CELO_MAINNET = "celo-mainnet",
|
|
115
116
|
X1_MAINNET = "x1-mainnet",
|
|
116
117
|
CROSSFI_EVM_TESTNET = "crossfi-evm-testnet",
|
|
@@ -119,6 +120,7 @@ export declare enum ChainName {
|
|
|
119
120
|
FRAXTAL_MAINNET = "fraxtal-mainnet",
|
|
120
121
|
APECHAIN_TESTNET = "apechain-testnet",
|
|
121
122
|
LISK_MAINNET = "lisk-mainnet",
|
|
123
|
+
BERACHAIN_TESTNET = "berachain-testnet",
|
|
122
124
|
REDSTONE_MAINNET = "redstone-mainnet",
|
|
123
125
|
SEI_MAINNET = "sei-mainnet",
|
|
124
126
|
AVALANCHE_MELD_TESTNET = "avalanche-meld-testnet",
|
|
@@ -153,10 +155,10 @@ export declare enum ChainName {
|
|
|
153
155
|
GNOSIS_TESTNET = "gnosis-testnet",
|
|
154
156
|
TELOS_MAINNET = "telos-mainnet",
|
|
155
157
|
TELOS_TESTNET = "telos-testnet",
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
TAIKO_MAINNET = "taiko-mainnet",
|
|
158
|
+
VICTION_MAINNET = "viction-mainnet",
|
|
159
|
+
VICTION_TESTNET = "viction-testnet",
|
|
159
160
|
TAIKO_HEKLA_TESTNET = "taiko-hekla-testnet",
|
|
161
|
+
TAIKO_MAINNET = "taiko-mainnet",
|
|
160
162
|
MERLIN_MAINNET = "merlin-mainnet",
|
|
161
163
|
MERLIN_TESTNET = "merlin-testnet",
|
|
162
164
|
BLAST_MAINNET = "blast-mainnet",
|
|
@@ -166,8 +168,8 @@ export declare enum ChainName {
|
|
|
166
168
|
}
|
|
167
169
|
export declare enum ChainID {
|
|
168
170
|
ETH_MAINNET = 1,
|
|
169
|
-
ETH_GOERLI = 5,
|
|
170
171
|
ETH_SEPOLIA = 11155111,
|
|
172
|
+
ETH_GOERLI = 5,
|
|
171
173
|
ETH_HOLESKY = 17000,
|
|
172
174
|
MATIC_MAINNET = 137,
|
|
173
175
|
MATIC_MUMBAI = 80001,
|
|
@@ -199,6 +201,7 @@ export declare enum ChainID {
|
|
|
199
201
|
CRONOS_MAINNET = 25,
|
|
200
202
|
CRONOS_TESTNET = 338,
|
|
201
203
|
CRONOS_ZKEVM_TESTNET = 282,
|
|
204
|
+
CRONOS_ZKEVM_MAINNET = 388,
|
|
202
205
|
AURORA_MAINNET = 1313161554,
|
|
203
206
|
AURORA_TESTNET = 1313161555,
|
|
204
207
|
EMERALD_PARATIME_MAINNET = 42262,
|
|
@@ -256,15 +259,15 @@ export declare enum ChainID {
|
|
|
256
259
|
FLARENETWORKS_CANARY_TESTNET = 16,
|
|
257
260
|
KCC_MAINNET = 321,
|
|
258
261
|
KCC_TESTNET = 322,
|
|
259
|
-
LINEA_MAINNET = 59144,
|
|
260
262
|
POLYGON_ZKEVM_MAINNET = 1101,
|
|
261
|
-
|
|
263
|
+
LINEA_MAINNET = 59144,
|
|
262
264
|
LINEA_GOERLI_TESTNET = 59140,
|
|
265
|
+
LINEA_SEPOLIA_TESTNET = 59141,
|
|
263
266
|
POLYGON_ZKEVM_TESTNET = 1422,
|
|
264
267
|
POLYGON_AMOY_TESTNET = 80002,
|
|
265
268
|
MANTLE_MAINNET = 5000,
|
|
266
|
-
MANTLE_SEPOLIA_TESTNET = 5003,
|
|
267
269
|
POLYGON_ZKEVM_CARDONA_TESTNET = 2442,
|
|
270
|
+
MANTLE_SEPOLIA_TESTNET = 5003,
|
|
268
271
|
BASE_MAINNET = 8453,
|
|
269
272
|
BASE_TESTNET = 84531,
|
|
270
273
|
BASE_SEPOLIA_TESTNET = 84532,
|
|
@@ -275,8 +278,8 @@ export declare enum ChainID {
|
|
|
275
278
|
LUMOZ_STARK_SPORT = 12029,
|
|
276
279
|
OASIS_SAPPHIRE_MAINNET = 23294,
|
|
277
280
|
OASIS_SAPPHIRE_TESTNET = 23295,
|
|
278
|
-
SYNDR_TESTNET = 412346,
|
|
279
281
|
XAI_MAINNET = 660279,
|
|
282
|
+
SYNDR_TESTNET = 412346,
|
|
280
283
|
CELO_MAINNET = 42220,
|
|
281
284
|
X1_MAINNET = 196,
|
|
282
285
|
CROSSFI_EVM_TESTNET = 8545,
|
|
@@ -284,6 +287,7 @@ export declare enum ChainID {
|
|
|
284
287
|
HORIZEN_GOBI_TESTNET = 1663,
|
|
285
288
|
FRAXTAL_MAINNET = 252,
|
|
286
289
|
APECHAIN_TESTNET = 1798,
|
|
290
|
+
BERACHAIN_TESTNET = 80084,
|
|
287
291
|
LISK_MAINNET = 1135,
|
|
288
292
|
REDSTONE_MAINNET = 690,
|
|
289
293
|
SEI_MAINNET = 1329,
|
|
@@ -317,12 +321,12 @@ export declare enum ChainID {
|
|
|
317
321
|
ROLLUX_TESTNET = 57000,
|
|
318
322
|
GNOSIS_MAINNET = 100,
|
|
319
323
|
GNOSIS_TESTNET = 10200,
|
|
324
|
+
VICTION_MAINNET = 88,
|
|
325
|
+
VICTION_TESTNET = 89,
|
|
320
326
|
TELOS_MAINNET = 40,
|
|
321
327
|
TELOS_TESTNET = 41,
|
|
322
|
-
TOMOCHAIN_MAINNET = 88,
|
|
323
|
-
TOMOCHAIN_TESTNET = 89,
|
|
324
|
-
TAIKO_MAINNET = 167000,
|
|
325
328
|
TAIKO_HEKLA_TESTNET = 167009,
|
|
329
|
+
TAIKO_MAINNET = 167000,
|
|
326
330
|
MERLIN_MAINNET = 4200,
|
|
327
331
|
MERLIN_TESTNET = 686868,
|
|
328
332
|
BLAST_MAINNET = 81457,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@covalenthq/client-sdk",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"license": "Apache-2.0",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/covalenthq/covalent-api-sdk-ts.git"
|
|
8
|
-
},
|
|
9
|
-
"author": {
|
|
10
|
-
"name": "covalenthq",
|
|
11
|
-
"url": "https://covalenthq.com"
|
|
12
|
-
},
|
|
13
|
-
"bugs": {
|
|
14
|
-
"url": "https://github.com/covalenthq/covalent-api-sdk-ts/issues"
|
|
15
|
-
},
|
|
16
|
-
"homepage": "https://github.com/covalenthq/covalent-api-sdk-ts#readme",
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"big.js": "^6.2.1"
|
|
19
|
-
},
|
|
20
|
-
"devDependencies": {
|
|
21
|
-
"@rollup/plugin-commonjs": "^25.0.4",
|
|
22
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
23
|
-
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
24
|
-
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
25
|
-
"@types/big.js": "^6.2.2",
|
|
26
|
-
"@types/jest": "^29.5.5",
|
|
27
|
-
"@types/node": "^20",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
29
|
-
"@typescript-eslint/parser": "^7.7.1",
|
|
30
|
-
"dotenv": "^16.4.5",
|
|
31
|
-
"eslint": "^8",
|
|
32
|
-
"eslint-config-prettier": "^9.1.0",
|
|
33
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
34
|
-
"jest": "^29.6.1",
|
|
35
|
-
"p-limit": "^3.1.0",
|
|
36
|
-
"prettier": "^3.3.2",
|
|
37
|
-
"rollup": "^3.29.1",
|
|
38
|
-
"rollup-plugin-typescript2": "^0.35.0",
|
|
39
|
-
"ts-jest": "^29.1.1",
|
|
40
|
-
"ts-node": "^10.9.2",
|
|
41
|
-
"typescript": "^5"
|
|
42
|
-
},
|
|
43
|
-
"scripts": {
|
|
44
|
-
"test": "jest",
|
|
45
|
-
"build": "rollup -c rollup.config.js",
|
|
46
|
-
"clean": "([ ! -d dist ] || rm -r dist)",
|
|
47
|
-
"start": "rollup -c",
|
|
48
|
-
"lint": "eslint .",
|
|
49
|
-
"pretty": "prettier . --write",
|
|
50
|
-
"prepublishOnly": "npm run
|
|
51
|
-
},
|
|
52
|
-
"publishConfig": {
|
|
53
|
-
"access": "public"
|
|
54
|
-
},
|
|
55
|
-
"files": [
|
|
56
|
-
"/dist"
|
|
57
|
-
],
|
|
58
|
-
"main": "dist/cjs/index.js",
|
|
59
|
-
"module": "dist/esm/index.js",
|
|
60
|
-
"exports": {
|
|
61
|
-
".": {
|
|
62
|
-
"import": "./dist/esm/index.js",
|
|
63
|
-
"require": "./dist/cjs/index.js",
|
|
64
|
-
"default": "./dist/esm/index.js"
|
|
65
|
-
},
|
|
66
|
-
"./cjs": "./cjs/index.js",
|
|
67
|
-
"./esm": "./esm/index.js",
|
|
68
|
-
"./types/cjs": "./types/cjs/index.d.ts",
|
|
69
|
-
"./types/esm": "./types/esm/index.d.ts",
|
|
70
|
-
"./package.json": "./package.json"
|
|
71
|
-
},
|
|
72
|
-
"types": "./dist/esm/index.d.ts"
|
|
73
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@covalenthq/client-sdk",
|
|
3
|
+
"version": "2.2.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/covalenthq/covalent-api-sdk-ts.git"
|
|
8
|
+
},
|
|
9
|
+
"author": {
|
|
10
|
+
"name": "covalenthq",
|
|
11
|
+
"url": "https://covalenthq.com"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/covalenthq/covalent-api-sdk-ts/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/covalenthq/covalent-api-sdk-ts#readme",
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"big.js": "^6.2.1"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
22
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
23
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
24
|
+
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
25
|
+
"@types/big.js": "^6.2.2",
|
|
26
|
+
"@types/jest": "^29.5.5",
|
|
27
|
+
"@types/node": "^20",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
29
|
+
"@typescript-eslint/parser": "^7.7.1",
|
|
30
|
+
"dotenv": "^16.4.5",
|
|
31
|
+
"eslint": "^8",
|
|
32
|
+
"eslint-config-prettier": "^9.1.0",
|
|
33
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
34
|
+
"jest": "^29.6.1",
|
|
35
|
+
"p-limit": "^3.1.0",
|
|
36
|
+
"prettier": "^3.3.2",
|
|
37
|
+
"rollup": "^3.29.1",
|
|
38
|
+
"rollup-plugin-typescript2": "^0.35.0",
|
|
39
|
+
"ts-jest": "^29.1.1",
|
|
40
|
+
"ts-node": "^10.9.2",
|
|
41
|
+
"typescript": "^5"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"test": "jest",
|
|
45
|
+
"build": "rollup -c rollup.config.js",
|
|
46
|
+
"clean": "([ ! -d dist ] || rm -r dist)",
|
|
47
|
+
"start": "rollup -c",
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"pretty": "prettier . --write",
|
|
50
|
+
"prepublishOnly": "npm run build"
|
|
51
|
+
},
|
|
52
|
+
"publishConfig": {
|
|
53
|
+
"access": "public"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"/dist"
|
|
57
|
+
],
|
|
58
|
+
"main": "dist/cjs/index.js",
|
|
59
|
+
"module": "dist/esm/index.js",
|
|
60
|
+
"exports": {
|
|
61
|
+
".": {
|
|
62
|
+
"import": "./dist/esm/index.js",
|
|
63
|
+
"require": "./dist/cjs/index.js",
|
|
64
|
+
"default": "./dist/esm/index.js"
|
|
65
|
+
},
|
|
66
|
+
"./cjs": "./cjs/index.js",
|
|
67
|
+
"./esm": "./esm/index.js",
|
|
68
|
+
"./types/cjs": "./types/cjs/index.d.ts",
|
|
69
|
+
"./types/esm": "./types/esm/index.d.ts",
|
|
70
|
+
"./package.json": "./package.json"
|
|
71
|
+
},
|
|
72
|
+
"types": "./dist/esm/index.d.ts"
|
|
73
|
+
}
|