rainbow-swap-sdk
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -14,2 +14,2 @@ import { AppStatus } from '../types/app-status.type'; | ||
export declare const getAssetsList: (params: AssetsListParams) => Promise<Asset[]>; | ||
export declare const getBestRoute: (params: BestRouteParams) => Promise<BestRouteResponse>; | ||
export declare const getBestRoute: (params: BestRouteParams, authTokens?: string) => Promise<BestRouteResponse>; |
@@ -28,3 +28,3 @@ "use strict"; | ||
exports.getAssetsList = getAssetsList; | ||
const getBestRoute = (params) => { | ||
const getBestRoute = (params, authTokens) => { | ||
if (abortControllers.bestRoute) { | ||
@@ -36,5 +36,8 @@ abortControllers.bestRoute.abort(); | ||
params, | ||
signal: abortControllers.bestRoute.signal | ||
signal: abortControllers.bestRoute.signal, | ||
headers: { | ||
Authorization: authTokens | ||
} | ||
}).then(response => response.data); | ||
}; | ||
exports.getBestRoute = getBestRoute; |
{ | ||
"name": "rainbow-swap-sdk", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "SDK for building applications on top of Rainbow.ag - Swap Aggregator on TON 💎.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git", |
31493
395