monkey-front-core 0.0.73 → 0.0.74

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.
@@ -2478,25 +2478,36 @@ class MonkeyEcxFeatureToggleService {
2478
2478
  this.flagSubject$.next(true);
2479
2479
  }
2480
2480
  identify(config, environment) {
2481
+ console.log('1');
2482
+ console.log(this);
2481
2483
  if (config) {
2484
+ console.log('2');
2482
2485
  const email = 'monkey@monkey.exchange';
2486
+ console.log('3');
2483
2487
  const user = {
2484
2488
  email,
2485
- key: `${config.program?.token}#${email}`
2489
+ key: `${config.program?.token}#${email}`,
2486
2490
  };
2491
+ console.log('4');
2487
2492
  if (!this.ldClient) {
2493
+ console.log('5');
2488
2494
  this.ldClient = initialize(environment.launchDarklyClientSideID, user, {
2489
2495
  streaming: true,
2490
2496
  disableSyncEventPost: true,
2491
2497
  sendEvents: false,
2492
- diagnosticOptOut: true
2498
+ diagnosticOptOut: true,
2493
2499
  });
2500
+ console.log('6');
2494
2501
  this.ldClient.on('change', this.getAllFlags.bind(this));
2502
+ console.log('7');
2495
2503
  this.ldClient.on('ready', this.getAllFlags.bind(this));
2504
+ console.log('8');
2496
2505
  }
2497
2506
  else {
2507
+ console.log('9');
2498
2508
  this.ldClient.identify(user, undefined, this.getAllFlags);
2499
2509
  }
2510
+ console.log(this);
2500
2511
  }
2501
2512
  }
2502
2513
  apply(configSubject$, environment) {
@@ -2522,7 +2533,7 @@ MonkeyEcxFeatureToggleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion:
2522
2533
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFeatureToggleService, decorators: [{
2523
2534
  type: Injectable,
2524
2535
  args: [{
2525
- providedIn: 'root'
2536
+ providedIn: 'root',
2526
2537
  }]
2527
2538
  }], ctorParameters: function () { return []; } });
2528
2539