monkey-front-core 0.0.77 → 0.0.78
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 +6 -4
- package/fesm2015/monkey-front-core.mjs +5 -3
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +5 -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.78.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.77.tgz +0 -0
|
@@ -2471,12 +2471,14 @@ 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');
|
|
2478
2479
|
console.log('!!!!!');
|
|
2479
2480
|
console.log(this);
|
|
2481
|
+
console.log(self);
|
|
2480
2482
|
console.log('!!!!!');
|
|
2481
2483
|
this.flags = this.ldClient?.allFlags();
|
|
2482
2484
|
console.log('11');
|
|
@@ -2504,9 +2506,9 @@ class MonkeyEcxFeatureToggleService {
|
|
|
2504
2506
|
diagnosticOptOut: true,
|
|
2505
2507
|
});
|
|
2506
2508
|
console.log('6');
|
|
2507
|
-
this.ldClient.on('change', this.getAllFlags.bind(this));
|
|
2509
|
+
this.ldClient.on('change', this.getAllFlags.bind(this, this));
|
|
2508
2510
|
console.log('7');
|
|
2509
|
-
this.ldClient.on('ready', this.getAllFlags.bind(this));
|
|
2511
|
+
this.ldClient.on('ready', this.getAllFlags.bind(this, this));
|
|
2510
2512
|
console.log('8');
|
|
2511
2513
|
}
|
|
2512
2514
|
else {
|