@sunbird-cb/utils-v2 0.0.6 → 0.0.8
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/bundles/sunbird-cb-utils-v2.umd.js +15 -6
- package/bundles/sunbird-cb-utils-v2.umd.js.map +1 -1
- package/bundles/sunbird-cb-utils-v2.umd.min.js +1 -1
- package/bundles/sunbird-cb-utils-v2.umd.min.js.map +1 -1
- package/esm2015/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +7 -4
- package/esm2015/lib/services/auth-keycloak.service.js +3 -1
- package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +7 -4
- package/esm5/lib/services/auth-keycloak.service.js +10 -4
- package/fesm2015/sunbird-cb-utils-v2.js +8 -3
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -1
- package/fesm5/sunbird-cb-utils-v2.js +15 -6
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3957
|
+
if (value && 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: [{
|