monkey-front-core 0.0.74 → 0.0.75
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/esm2020/lib/core/services/config/monkeyecx-feature-toggle.service.mjs +11 -1
- package/fesm2015/monkey-front-core.mjs +10 -0
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +10 -0
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.75.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.74.tgz +0 -0
|
@@ -2474,8 +2474,11 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2474
2474
|
// not to do
|
|
2475
2475
|
}
|
|
2476
2476
|
getAllFlags() {
|
|
2477
|
+
console.log('10');
|
|
2477
2478
|
this.flags = this.ldClient?.allFlags();
|
|
2479
|
+
console.log('11');
|
|
2478
2480
|
this.flagSubject$.next(true);
|
|
2481
|
+
console.log('12');
|
|
2479
2482
|
}
|
|
2480
2483
|
identify(config, environment) {
|
|
2481
2484
|
console.log('1');
|
|
@@ -2511,20 +2514,27 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2511
2514
|
}
|
|
2512
2515
|
}
|
|
2513
2516
|
apply(configSubject$, environment) {
|
|
2517
|
+
console.log('13');
|
|
2514
2518
|
if (environment.launchDarklyClientSideID) {
|
|
2519
|
+
console.log('14');
|
|
2515
2520
|
configSubject$.subscribe((config) => {
|
|
2521
|
+
console.log('15');
|
|
2516
2522
|
this.identify(config, environment);
|
|
2517
2523
|
});
|
|
2518
2524
|
}
|
|
2519
2525
|
else {
|
|
2526
|
+
console.log('16');
|
|
2520
2527
|
this.flagSubject$.next(true);
|
|
2521
2528
|
}
|
|
2522
2529
|
}
|
|
2523
2530
|
get onFlags() {
|
|
2531
|
+
console.log('17');
|
|
2524
2532
|
return this.flagSubject$.asObservable();
|
|
2525
2533
|
}
|
|
2526
2534
|
getFlag(flag) {
|
|
2535
|
+
console.log('18');
|
|
2527
2536
|
const flagValue = this.flags?.[flag];
|
|
2537
|
+
console.log('19');
|
|
2528
2538
|
return MonkeyUtils.persistNullEmptyUndefined(flagValue) ? flagValue : null;
|
|
2529
2539
|
}
|
|
2530
2540
|
}
|