From 0f3de13f52c6bdc395f302714a169f0d039ac582 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 13 Mar 2024 18:12:44 -0400 Subject: [PATCH] refactor: don't use default exports --- src/account.ts | 2 +- src/sdk.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/account.ts b/src/account.ts index b463032..d5c07a4 100644 --- a/src/account.ts +++ b/src/account.ts @@ -26,7 +26,7 @@ import { import { AxiosResponse } from "axios"; import * as URL from 'url'; -export default class AccountApi { +export class AccountApi { private apiUrl: string; private jwtToken?: string; diff --git a/src/sdk.ts b/src/sdk.ts index 18be100..3a63f06 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -1,4 +1,4 @@ -import AccountApi from "./account.js"; +import {AccountApi} from "./account.js"; export class Sdk { private apiUrl: string; @@ -16,6 +16,6 @@ export class Sdk { if (!this.accountApi) { this.accountApi = AccountApi.create(this.apiUrl); } - return this.accountApi; + return this.accountApi!; } }