@altangent/lib-anchorage
Advanced tools
Comparing version 0.12.9 to 0.13.0
@@ -9,3 +9,3 @@ import { Asset, Transaction, Vault } from "./Types"; | ||
*/ | ||
getCurrentAssets(): Promise<Asset[]>; | ||
getCurrentAssets(vaultId?: string): Promise<Asset[]>; | ||
/** | ||
@@ -12,0 +12,0 @@ * All transactions in all vaults in the given date range |
@@ -14,4 +14,7 @@ "use strict"; | ||
*/ | ||
async getCurrentAssets() { | ||
const path = "/v1/assets/current"; | ||
async getCurrentAssets(vaultId) { | ||
let path = "/v1/assets/current"; | ||
if (vaultId) { | ||
path += `/${vaultId}`; | ||
} | ||
return this.get(path); | ||
@@ -18,0 +21,0 @@ } |
@@ -12,4 +12,7 @@ /* eslint-disable @typescript-eslint/no-unsafe-call */ | ||
*/ | ||
public async getCurrentAssets(): Promise<Asset[]> { | ||
const path = "/v1/assets/current"; | ||
public async getCurrentAssets(vaultId?: string): Promise<Asset[]> { | ||
let path = "/v1/assets/current"; | ||
if (vaultId) { | ||
path += `/${vaultId}`; | ||
} | ||
return this.get(path); | ||
@@ -16,0 +19,0 @@ } |
{ | ||
"name": "@altangent/lib-anchorage", | ||
"version": "0.12.9", | ||
"version": "0.13.0", | ||
"description": "Anchorage API client", | ||
@@ -32,3 +32,3 @@ "author": "Brian Mancini <bmancini@gmail.com>", | ||
}, | ||
"gitHead": "4c7a6ea0f0d39032d0aee188d2c403a0f92ceaaf" | ||
"gitHead": "132fe9c9726770608c39b96174ecdc5f3e3d8403" | ||
} |
Sorry, the diff of this file is not supported yet
9652
212