From d80599eef2d9549461ff0ab27ded1104a5058bf4 Mon Sep 17 00:00:00 2001 From: Mikhail Gladchenko Date: Tue, 14 May 2024 09:51:58 +0100 Subject: [PATCH] feat: switched to URL constructor --- package.json | 2 +- src/services/Frontage/index.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2c3528e..b157f60 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@orionprotocol/sdk", - "version": "0.20.79-rc22", + "version": "0.20.79-rc23", "description": "Orion Protocol SDK", "main": "./lib/index.cjs", "module": "./lib/index.js", diff --git a/src/services/Frontage/index.ts b/src/services/Frontage/index.ts index a0835e5..1d597c8 100644 --- a/src/services/Frontage/index.ts +++ b/src/services/Frontage/index.ts @@ -29,7 +29,7 @@ export class Frontage { if (offset !== undefined) params.set('offset', offset.toString()); if (limit !== undefined) params.set('limit', limit.toString()); - url.pathname += 'api/v1/tickers/search'; + url.pathname += '/api/v1/tickers/search'; url.search = params.toString(); return fetchWithValidation( @@ -61,9 +61,9 @@ export class Frontage { if (limit !== undefined) params.set('limit', limit.toString()); if (category === 'FAVORITES' && tickers !== undefined) { - url.pathname += 'api/v1/tickers/get/favourites'; + url.pathname += '/api/v1/tickers/get/favourites'; } else { - url.pathname += 'api/v1/tickers/get/category'; + url.pathname += '/api/v1/tickers/get/category'; } url.search = params.toString();