Skip to content

Commit

Permalink
fix(dfx-helper): typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafnik committed Jul 11, 2023
1 parent 95b801e commit 3dd2816
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion libs/dfx-helper/src/lib/interceptor/abstract-ignoreable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {HttpContextToken, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest}
import {Observable} from 'rxjs';
import {shouldIntercept} from './interceptor';

export abstract class AbstractIgnoreableInterceptor implements HttpInterceptor {
export abstract class AbstractIgnorableInterceptor implements HttpInterceptor {
protected constructor(protected BY_PASS?: HttpContextToken<boolean>, protected ignorePaths?: string[]) {}

abstract intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
Expand Down
4 changes: 2 additions & 2 deletions libs/dfx-helper/src/lib/interceptor/base-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import {Observable} from 'rxjs';
import {loggerOf} from 'dfts-helper';

import {HELPER_BASE_URL, HELPER_BASE_URL_INTERCEPTOR_IGNORE_PATHS} from '../config';
import {AbstractIgnoreableInterceptor} from './abstract-ignoreable';
import {AbstractIgnorableInterceptor} from './abstract-ignoreable';
import {BASE_URL_INTERCEPTOR} from './http-context-token';

@Injectable()
export class BaseUrlInterceptor extends AbstractIgnoreableInterceptor {
export class BaseUrlInterceptor extends AbstractIgnorableInterceptor {
private lumber = loggerOf('httpClient');
baseUrl = inject(HELPER_BASE_URL);

Expand Down
4 changes: 2 additions & 2 deletions libs/dfx-helper/src/lib/interceptor/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import {HttpErrorResponse, HttpEvent, HttpHandler, HttpRequest, HttpResponse} fr
import {catchError, Observable, tap, throwError} from 'rxjs';
import {loggerOf} from 'dfts-helper';

import {AbstractIgnoreableInterceptor} from './abstract-ignoreable';
import {AbstractIgnorableInterceptor} from './abstract-ignoreable';
import {HELPER_LOGGING_INTERCEPTOR_IGNORE_PATHS} from '../config';
import {LOGGING_INTERCEPTOR} from './http-context-token';

@Injectable()
export class LoggingInterceptor extends AbstractIgnoreableInterceptor {
export class LoggingInterceptor extends AbstractIgnorableInterceptor {
private lumber = loggerOf('httpClient');

constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import {HttpEvent, HttpHandler, HttpRequest} from '@angular/common/http';
import {Observable} from 'rxjs';

import {HELPER_POST_PUT_JSON_CONTENT_TYPE_INTERCEPTOR_IGNORE_PATHS} from '../config';
import {AbstractIgnoreableInterceptor} from './abstract-ignoreable';
import {AbstractIgnorableInterceptor} from './abstract-ignoreable';
import {POST_PUT_JSON_CONTENT_TYPE_INTERCEPTOR} from './http-context-token';

@Injectable()
export class PostPutJsonContentTypeInterceptor extends AbstractIgnoreableInterceptor {
export class PostPutJsonContentTypeInterceptor extends AbstractIgnorableInterceptor {
constructor() {
super(POST_PUT_JSON_CONTENT_TYPE_INTERCEPTOR, inject(HELPER_POST_PUT_JSON_CONTENT_TYPE_INTERCEPTOR_IGNORE_PATHS));
}
Expand Down

0 comments on commit 3dd2816

Please sign in to comment.