@sunbird-cb/utils-v2 0.0.14 → 0.0.16

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.
@@ -5835,10 +5835,8 @@ var TelemetryService = (function () {
5835
5835
  pageContext.pageId
5836
5836
  : '',
5837
5837
  duration: 1,
5838
- }, {
5839
- context: __assign({ pdata: __assign({}, this.pData, { id: this.pData.id }) }, (pageContext && pageContext.module ? { env: pageContext.module } : null)),
5840
- object: __assign({}, (data) && data),
5841
- });
5838
+ }, __assign({ context: __assign({ pdata: __assign({}, this.pData, { id: this.pData.id }) }, (pageContext && pageContext.module ? { env: pageContext.module } : null)), object: __assign({}, (data) && data) }, (this.configSvc.userProfile && this.configSvc.userProfile.userId ?
5839
+ null : { actor: { id: '', type: 'AnonymousUser' } })));
5842
5840
  }
5843
5841
  else {
5844
5842
  this.logger.error('Error Initializing Telemetry. Config missing.');