@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.
@@ -4163,7 +4163,7 @@
4163
4163
  this.environment = environment;
4164
4164
  }
4165
4165
  PipePublicURL.prototype.transform = function (value) {
4166
- if (value.includes('karmayogi')) {
4166
+ if (value && value.includes('karmayogi')) {
4167
4167
  var mainUrl = value && value.split('/content').pop() || '';
4168
4168
  var finalURL = this.environment.contentHost + "/" + this.environment.contentBucket + "/content" + mainUrl;
4169
4169
  return value ? finalURL : '';