From ae1d78342841af35714106582e6010e6e78bf45b Mon Sep 17 00:00:00 2001 From: Guillaume Deconinck <113656593+GuillaumeDecMeetsMore@users.noreply.github.com> Date: Tue, 10 Dec 2024 18:53:02 +0900 Subject: [PATCH] feat: js lib expose axios client (#164) --- clients/javascript/lib/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/clients/javascript/lib/index.ts b/clients/javascript/lib/index.ts index afb10d10..412eb50b 100644 --- a/clients/javascript/lib/index.ts +++ b/clients/javascript/lib/index.ts @@ -82,6 +82,10 @@ export const NitteiUserClient = ( service: new NitteiServiceUserClient(axiosClient), schedule: new NitteiScheduleUserClient(axiosClient), user: new NitteiUserUserClient(axiosClient), + // Axios client exposed so that the user can use it + // - For adding interceptors + // - For making custom requests + axiosClient, }) } @@ -110,6 +114,10 @@ export const NitteiClient = async ( service: new NitteiServiceClient(axiosClient), schedule: new NitteiScheduleClient(axiosClient), health: new NitteiHealthClient(axiosClient), + // Axios client exposed so that the user can use it + // - For adding interceptors + // - For making custom requests + axiosClient, }) }