@open-rlb/ng-app 3.0.13 → 3.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/open-rlb-ng-app.mjs +9 -5
- package/fesm2022/open-rlb-ng-app.mjs.map +1 -1
- package/index.d.ts +90 -89
- package/package.json +1 -1
|
@@ -157,9 +157,10 @@ const LEVEL_PRIORITIES = {
|
|
|
157
157
|
log: 5,
|
|
158
158
|
};
|
|
159
159
|
class AppLoggerService {
|
|
160
|
-
constructor() {
|
|
161
|
-
this.currentLevel = '
|
|
160
|
+
constructor(environment) {
|
|
161
|
+
this.currentLevel = 'off';
|
|
162
162
|
this.timestamps = true;
|
|
163
|
+
this.currentLevel = environment?.logLevel || 'off';
|
|
163
164
|
}
|
|
164
165
|
setLogLevel(level) {
|
|
165
166
|
if (!(level in LEVEL_PRIORITIES)) {
|
|
@@ -240,13 +241,16 @@ class AppLoggerService {
|
|
|
240
241
|
console.log(`%c${prefix}`, colors.log, ...messageArgs);
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
244
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, deps: [{ token: RLB_CFG_ENV }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
244
245
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, providedIn: 'root' }); }
|
|
245
246
|
}
|
|
246
247
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.15", ngImport: i0, type: AppLoggerService, decorators: [{
|
|
247
248
|
type: Injectable,
|
|
248
249
|
args: [{ providedIn: 'root' }]
|
|
249
|
-
}], ctorParameters: () => [
|
|
250
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
251
|
+
type: Inject,
|
|
252
|
+
args: [RLB_CFG_ENV]
|
|
253
|
+
}] }] });
|
|
250
254
|
|
|
251
255
|
const AppContextActionsInternal = createActionGroup({
|
|
252
256
|
source: 'AppContext/Internal',
|
|
@@ -1390,7 +1394,7 @@ class AuthenticationService {
|
|
|
1390
1394
|
}
|
|
1391
1395
|
get isAuthenticated$() {
|
|
1392
1396
|
return this.oidc.isAuthenticated$.pipe(map((isAuthenticated) => {
|
|
1393
|
-
this.logger.log(`oidc isAuthenticated$ check, response: ${JSON.stringify(isAuthenticated)}; looking for isAuthenticated of ${this.currentProvider?.configId} configId`);
|
|
1397
|
+
// this.logger.log(`oidc isAuthenticated$ check, response: ${JSON.stringify(isAuthenticated)}; looking for isAuthenticated of ${this.currentProvider?.configId} configId`);
|
|
1394
1398
|
return isAuthenticated.allConfigsAuthenticated.find(o => o.configId === this.currentProvider?.configId)?.isAuthenticated || false;
|
|
1395
1399
|
}));
|
|
1396
1400
|
}
|