Skip to content

Commit

Permalink
Merge pull request #348 from mikeyaa/master
Browse files Browse the repository at this point in the history
Make instance property and makeObservable() method protected
  • Loading branch information
kamilmysliwiec authored Mar 7, 2022
2 parents 5725a38 + eda3440 commit 7a41689
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { AXIOS_INSTANCE_TOKEN } from './http.constants';
export class HttpService {
constructor(
@Inject(AXIOS_INSTANCE_TOKEN)
private readonly instance: AxiosInstance = Axios,
protected readonly instance: AxiosInstance = Axios,
) {}

request<T = any>(config: AxiosRequestConfig): Observable<AxiosResponse<T>> {
Expand Down Expand Up @@ -68,7 +68,7 @@ export class HttpService {
return this.instance;
}

private makeObservable<T>(
protected makeObservable<T>(
axios: (...args: any[]) => AxiosPromise<T>,
...args: any[]
) {
Expand Down

0 comments on commit 7a41689

Please sign in to comment.