@sunbird-cb/utils-v2 0.0.7 → 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 +1 -1
- 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 +2 -2
- package/esm5/lib/pipes/pipe-public-URL/pipe-public-URL.pipe.js +2 -2
- package/fesm2015/sunbird-cb-utils-v2.js +1 -1
- package/fesm2015/sunbird-cb-utils-v2.js.map +1 -1
- package/fesm5/sunbird-cb-utils-v2.js +1 -1
- package/fesm5/sunbird-cb-utils-v2.js.map +1 -1
- package/package.json +1 -1
|
@@ -3954,7 +3954,7 @@ var PipePublicURL = (function () {
|
|
|
3954
3954
|
this.environment = environment;
|
|
3955
3955
|
}
|
|
3956
3956
|
PipePublicURL.prototype.transform = function (value) {
|
|
3957
|
-
if (value.includes('karmayogi')) {
|
|
3957
|
+
if (value && value.includes('karmayogi')) {
|
|
3958
3958
|
var mainUrl = value && value.split('/content').pop() || '';
|
|
3959
3959
|
var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
|
|
3960
3960
|
return value ? finalURL : '';
|