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