@sunbird-cb/utils-v2 0.0.6 → 0.0.7

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.
@@ -2864,14 +2864,17 @@ var AuthKeycloakService = (function () {
2864
2864
  case 0:
2865
2865
  if (!storage$1.getItem('telemetrySessionId')) return [3, 1];
2866
2866
  storage$1.removeItem('telemetrySessionId');
2867
- return [3, 3];
2867
+ return [3, 4];
2868
2868
  case 1:
2869
2869
  storage$1.removeItem(storageKey$1);
2870
2870
  return [4, this.http.get('/apis/reset').toPromise()];
2871
2871
  case 2:
2872
2872
  _a.sent();
2873
- _a.label = 3;
2873
+ return [4, this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise()];
2874
2874
  case 3:
2875
+ _a.sent();
2876
+ _a.label = 4;
2877
+ case 4:
2875
2878
  try {
2876
2879
  sessionStorage.clear();
2877
2880
  localStorage.clear();
@@ -2880,7 +2883,10 @@ var AuthKeycloakService = (function () {
2880
2883
  }
2881
2884
  storage$1.removeItem(storageKey$1);
2882
2885
  return [4, this.http.get('/apis/reset').toPromise()];
2883
- case 4:
2886
+ case 5:
2887
+ _a.sent();
2888
+ return [4, this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise()];
2889
+ case 6:
2884
2890
  _a.sent();
2885
2891
  return [2];
2886
2892
  }
@@ -3948,9 +3954,12 @@ var PipePublicURL = (function () {
3948
3954
  this.environment = environment;
3949
3955
  }
3950
3956
  PipePublicURL.prototype.transform = function (value) {
3951
- var mainUrl = value && value.split('/content').pop() || '';
3952
- var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
3953
- return value ? finalURL : '';
3957
+ if (value.includes('karmayogi')) {
3958
+ var mainUrl = value && value.split('/content').pop() || '';
3959
+ var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
3960
+ return value ? finalURL : '';
3961
+ }
3962
+ return value;
3954
3963
  };
3955
3964
  PipePublicURL.decorators = [
3956
3965
  { type: Pipe, args: [{