diff --git a/src/lib/services/generic.service.ts b/src/lib/services/generic.service.ts index a3ca738..95014bf 100644 --- a/src/lib/services/generic.service.ts +++ b/src/lib/services/generic.service.ts @@ -23,7 +23,7 @@ export interface QueryParam { */ export abstract class GenericService { protected readonly _http = this._injector.get(HttpClient); - private readonly _lastCheckedForChanges = new Map([[ROOT_CHANGES_KEY, '0']]); + protected readonly _lastCheckedForChanges = new Map([[ROOT_CHANGES_KEY, '0']]); protected constructor(protected readonly _injector: Injector, protected readonly _defaultModelPath: string) {} diff --git a/src/lib/services/stats.service.ts b/src/lib/services/stats.service.ts index 3be767c..c260d67 100644 --- a/src/lib/services/stats.service.ts +++ b/src/lib/services/stats.service.ts @@ -4,6 +4,7 @@ import { HttpClient } from '@angular/common/http'; import { tap } from 'rxjs/operators'; import { HeadersConfiguration, mapEach, RequiredParam, Validate } from '../utils'; +/* WIP, not used */ @Injectable() export abstract class StatsService { private readonly _http = this._injector.get(HttpClient); diff --git a/src/lib/utils/functions.ts b/src/lib/utils/functions.ts index 4321cf6..302c4d7 100644 --- a/src/lib/utils/functions.ts +++ b/src/lib/utils/functions.ts @@ -1,6 +1,7 @@ import { tap } from 'rxjs/operators'; import { ITrackable } from '../listing/models/trackable'; import { MonoTypeOperatorFunction } from 'rxjs'; +import moment from 'moment'; export function capitalize(value: string): string { if (!value) { @@ -19,7 +20,7 @@ export function humanize(value: string, lowercase = true): string { } export function log(): MonoTypeOperatorFunction { - return tap(res => console.log(res)); + return tap(res => console.log(`%c[${moment().format('HH:mm:ss.SSS')}]`, 'color: yellow;', res)); } export function toNumber(str: string): number {