Skip to content
Snippets Groups Projects
Commit c1a2f718 authored by OZGCloud's avatar OZGCloud
Browse files

use lodash-es instead of lodash

parent 619315aa
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ import { CommandOrder, CommandResource, CommandService, CreateCommand, isDone }
import { createEmptyStateResource, createStateResource, doIfLoadingRequired, NavigationService, StateResource } from '@goofy-client/tech-shared';
import { VorgangResource, VorgangService } from '@goofy-client/vorgang-shared';
import { hasLink, Resource } from '@ngxp/rest';
import { isNil } from 'lodash';
import { isNil } from 'lodash-es';
import { BehaviorSubject, Observable, of, Subscription } from 'rxjs';
import { startWith, tap } from 'rxjs/operators';
import { KommentarLinkRel, KommentarListLinkRel } from './kommentar.linkrel';
......
......@@ -23,7 +23,7 @@
*/
import { faker } from '@faker-js/faker';
import { toResource } from 'libs/tech-shared/test/resource';
import { times } from 'lodash';
import { times } from 'lodash-es';
import { KommentarListLinkRel } from '../src/lib/kommentar.linkrel';
import { Kommentar, KommentarListResource, KommentarResource } from '../src/lib/kommentar.model';
......
......@@ -23,7 +23,7 @@
*/
import { HttpErrorResponse } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { isNil } from 'lodash';
import { isNil } from 'lodash-es';
import { BehaviorSubject } from 'rxjs';
@Injectable({ providedIn: 'root' })
......@@ -33,7 +33,7 @@ export class HttpErrorHandler {
private readonly retryOnConnectionTimeout: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(true);
private postErrorActionByName: { [key: string]: any } = {};
public registerCustomHandling(name: string, doAfterErrorReceived: any) {
public registerCustomHandling(name: string, doAfterErrorReceived: any): void {
if (isNil(this.postErrorActionByName[name])) {
this.postErrorActionByName[name] = doAfterErrorReceived;
} else {
......@@ -41,7 +41,7 @@ export class HttpErrorHandler {
}
}
public doAfterErrorReceived(name: string, errorResponse: HttpErrorResponse) {
public doAfterErrorReceived(name: string, errorResponse: HttpErrorResponse): void {
if (!isNil(this.postErrorActionByName[name])) {
this.postErrorActionByName[name](errorResponse);
} else {
......@@ -57,7 +57,7 @@ export class HttpErrorHandler {
return this.defaultHandling.value;
}
public disableDefaultHandling() {
public disableDefaultHandling(): void {
this.defaultHandling.next(false);
}
......@@ -69,7 +69,7 @@ export class HttpErrorHandler {
return this.retryOnConnectionTimeout.value;
}
public disableRetry() {
public disableRetry(): void {
this.retryOnConnectionTimeout.next(false);
}
}
\ No newline at end of file
......@@ -24,7 +24,7 @@
import { Component, Input, SimpleChanges } from '@angular/core';
import { createEmptyStateResource, hasError, MessageCode, StateResource } from '@goofy-client/tech-shared';
import { getUserName, getUserNameInitials, userProfileMessage, UserProfileResource } from '@goofy-client/user-profile-shared';
import { isUndefined } from 'lodash';
import { isUndefined } from 'lodash-es';
@Component({
selector: 'goofy-client-user-icon',
......
......@@ -26,8 +26,7 @@ import { createEmptyStateResource, createStateResource, StateResource } from '@g
import { VorgangResource } from '@goofy-client/vorgang-shared';
import { WiedervorlageLinkRel, WiedervorlageListLinkRel, WiedervorlageResource, WiedervorlageService } from '@goofy-client/wiedervorlage-shared';
import { getEmbeddedResource, hasLink } from '@ngxp/rest';
import { isNil } from 'lodash';
import { isNull } from 'lodash-es';
import { isNil, isNull } from 'lodash-es';
import { Observable } from 'rxjs';
import { filter, map, startWith } from 'rxjs/operators';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment