monkey-front-core 0.0.75 → 0.0.79
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 +9 -4
- package/fesm2015/monkey-front-core.mjs +8 -3
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +8 -3
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/config/monkeyecx-feature-toggle.service.d.ts +1 -0
- package/monkey-front-core-0.0.79.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.75.tgz +0 -0
|
@@ -2471,10 +2471,15 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2471
2471
|
this.flagSubject$ = new BehaviorSubject(null);
|
|
2472
2472
|
this.flags = undefined;
|
|
2473
2473
|
this.ldClient = undefined;
|
|
2474
|
+
this.self = this;
|
|
2474
2475
|
// not to do
|
|
2475
2476
|
}
|
|
2476
|
-
getAllFlags() {
|
|
2477
|
+
getAllFlags(self) {
|
|
2477
2478
|
console.log('10');
|
|
2479
|
+
console.log('!!!!!');
|
|
2480
|
+
console.log(this);
|
|
2481
|
+
console.log(self);
|
|
2482
|
+
console.log('!!!!!');
|
|
2478
2483
|
this.flags = this.ldClient?.allFlags();
|
|
2479
2484
|
console.log('11');
|
|
2480
2485
|
this.flagSubject$.next(true);
|
|
@@ -2501,9 +2506,9 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2501
2506
|
diagnosticOptOut: true,
|
|
2502
2507
|
});
|
|
2503
2508
|
console.log('6');
|
|
2504
|
-
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
2509
|
+
this.ldClient.on('change', this.getAllFlags.bind(this, 'change'));
|
|
2505
2510
|
console.log('7');
|
|
2506
|
-
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
2511
|
+
this.ldClient.on('ready', this.getAllFlags.bind(this, 'ready'));
|
|
2507
2512
|
console.log('8');
|
|
2508
2513
|
}
|
|
2509
2514
|
else {
|