@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.
- 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
|
@@ -3073,14 +3073,17 @@
|
|
|
3073
3073
|
case 0:
|
|
3074
3074
|
if (!storage$1.getItem('telemetrySessionId')) return [3, 1];
|
|
3075
3075
|
storage$1.removeItem('telemetrySessionId');
|
|
3076
|
-
return [3,
|
|
3076
|
+
return [3, 4];
|
|
3077
3077
|
case 1:
|
|
3078
3078
|
storage$1.removeItem(storageKey$1);
|
|
3079
3079
|
return [4, this.http.get('/apis/reset').toPromise()];
|
|
3080
3080
|
case 2:
|
|
3081
3081
|
_a.sent();
|
|
3082
|
-
|
|
3082
|
+
return [4, this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise()];
|
|
3083
3083
|
case 3:
|
|
3084
|
+
_a.sent();
|
|
3085
|
+
_a.label = 4;
|
|
3086
|
+
case 4:
|
|
3084
3087
|
try {
|
|
3085
3088
|
sessionStorage.clear();
|
|
3086
3089
|
localStorage.clear();
|
|
@@ -3089,7 +3092,10 @@
|
|
|
3089
3092
|
}
|
|
3090
3093
|
storage$1.removeItem(storageKey$1);
|
|
3091
3094
|
return [4, this.http.get('/apis/reset').toPromise()];
|
|
3092
|
-
case
|
|
3095
|
+
case 5:
|
|
3096
|
+
_a.sent();
|
|
3097
|
+
return [4, this.http.get('https://admin-test.ecornell.com/saml/logout.do').toPromise()];
|
|
3098
|
+
case 6:
|
|
3093
3099
|
_a.sent();
|
|
3094
3100
|
return [2];
|
|
3095
3101
|
}
|
|
@@ -4157,9 +4163,12 @@
|
|
|
4157
4163
|
this.environment = environment;
|
|
4158
4164
|
}
|
|
4159
4165
|
PipePublicURL.prototype.transform = function (value) {
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4166
|
+
if (value.includes('karmayogi')) {
|
|
4167
|
+
var mainUrl = value && value.split('/content').pop() || '';
|
|
4168
|
+
var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
|
|
4169
|
+
return value ? finalURL : '';
|
|
4170
|
+
}
|
|
4171
|
+
return value;
|
|
4163
4172
|
};
|
|
4164
4173
|
PipePublicURL.decorators = [
|
|
4165
4174
|
{ type: core.Pipe, args: [{
|