monkey-front-core 0.0.80 → 0.0.84

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.
@@ -1927,19 +1927,16 @@ class MonkeyEcxCommonsService {
1927
1927
  this.flagValidator = false;
1928
1928
  }
1929
1929
  resolve(route, state, otherArgs) {
1930
- //this.__data = null;
1931
- //this.__page = null;
1932
- //this.__requestPaged = null;
1930
+ if (JSON.stringify(route?.queryParams) === '{}') {
1931
+ this.__data = null;
1932
+ this.__page = null;
1933
+ }
1934
+ this.__requestPaged = null;
1933
1935
  this.flagValidator = true;
1934
1936
  if (this.tokenStorage) {
1935
1937
  this.__tokenCredentials = this.tokenStorage.getToken();
1936
1938
  }
1937
1939
  if (this.allowedSecurityAccess(otherArgs?.security)) {
1938
- //Object.entries(this).forEach(([key, value]) => {
1939
- // if (value instanceof BehaviorSubject) {
1940
- // Object.defineProperty(this, key, new BehaviorSubject(null));
1941
- // }
1942
- //});
1943
1940
  if (this.__schedule) {
1944
1941
  this.otherArgs?.schedule?.service?.removeSchedule(this.__schedule);
1945
1942
  this.__schedule = null;
@@ -2493,8 +2490,8 @@ class MonkeyEcxFeatureToggleService {
2493
2490
  sendEvents: false,
2494
2491
  diagnosticOptOut: true,
2495
2492
  });
2496
- this.ldClient.on('change', this.getAllFlags.bind(this, 'change'));
2497
- this.ldClient.on('ready', this.getAllFlags.bind(this, 'ready'));
2493
+ this.ldClient.on('change', this.getAllFlags.bind(this));
2494
+ this.ldClient.on('ready', this.getAllFlags.bind(this));
2498
2495
  }
2499
2496
  else {
2500
2497
  this.ldClient.identify(user, undefined, this.getAllFlags);
@@ -2661,7 +2658,7 @@ class MonkeyEcxTokenStorageService {
2661
2658
  Object.entries(token || {}).forEach(([key, value]) => {
2662
2659
  handledToken[key] = localStorage.getItem(key);
2663
2660
  });
2664
- if (config?.program) {
2661
+ if (!handledToken?.program && config?.program) {
2665
2662
  handledToken.program = config?.program?.token;
2666
2663
  }
2667
2664
  return handledToken;