Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axios Instance of Beccaccino exported on beccaccino singleton. #4

Merged
merged 1 commit into from
Nov 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
The axiosinstsnce of beccaccino is now exported on Beccaccino singleton
  • Loading branch information
CDimonaco committed Nov 28, 2018
commit 65e07ad402cc1588f5525f2ad783c917a4a92a80
4 changes: 2 additions & 2 deletions src/Beccaccino.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ export type EndpointMap = {

export const defaultSession: string = uuid();

class ReduxHttpClient {
private readonly axiosInstance: AxiosInstance;
export class ReduxHttpClient {
public readonly axiosInstance: AxiosInstance;
private readonly axiosConfiguration: AxiosRequestConfig;
private readonly endpoints: Array<EndpointConfig>;
public readonly bindedEndpoints: EndpointMap = {};
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ import { beccaccino } from './Beccaccino';

export const Beccaccino = {
configure: beccaccino.configure,
getClientInstance: beccaccino.getClientInstance,
getClient: beccaccino.getClient,
};