@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.
@@ -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 : '';