rainbow-swap-sdk 1.5.2 → 1.5.3
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.
|
@@ -11,4 +11,4 @@ export declare const getAppStatus: () => Promise<AppStatus>;
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const getAssetsRecord: () => Promise<AssetsRecord>;
|
|
13
13
|
export declare const getAssetsList: (params: AssetsListParams) => Promise<Asset[]>;
|
|
14
|
-
export declare const getBestRoute: (params: BestRouteParams) => Promise<BestRouteResponse>;
|
|
14
|
+
export declare const getBestRoute: (params: BestRouteParams, authTokens?: string) => Promise<BestRouteResponse>;
|
package/dist/utils/api.utils.js
CHANGED
|
@@ -25,14 +25,17 @@ const getAssetsList = (params) => {
|
|
|
25
25
|
}).then(response => response.data);
|
|
26
26
|
};
|
|
27
27
|
exports.getAssetsList = getAssetsList;
|
|
28
|
-
const getBestRoute = (params) => {
|
|
28
|
+
const getBestRoute = (params, authTokens) => {
|
|
29
29
|
if (abortControllers.bestRoute) {
|
|
30
30
|
abortControllers.bestRoute.abort();
|
|
31
31
|
}
|
|
32
32
|
abortControllers.bestRoute = new AbortController();
|
|
33
33
|
return globals_1.API.get('/best-route', {
|
|
34
34
|
params,
|
|
35
|
-
signal: abortControllers.bestRoute.signal
|
|
35
|
+
signal: abortControllers.bestRoute.signal,
|
|
36
|
+
headers: {
|
|
37
|
+
Authorization: authTokens
|
|
38
|
+
}
|
|
36
39
|
}).then(response => response.data);
|
|
37
40
|
};
|
|
38
41
|
exports.getBestRoute = getBestRoute;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rainbow-swap-sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "SDK for building applications on top of Rainbow.ag - Swap Aggregator on TON 💎.",
|
|
5
5
|
"repository": "https://github.com/0xblackbot/rainbow-swap-sdk.git",
|
|
6
6
|
"license": "Apache-2.0",
|