@sunbird-cb/utils-v2 0.0.14 → 0.0.15

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.
@@ -6044,10 +6044,8 @@
6044
6044
  pageContext.pageId
6045
6045
  : '',
6046
6046
  duration: 1,
6047
- }, {
6048
- context: __assign({ pdata: __assign({}, this.pData, { id: this.pData.id }) }, (pageContext && pageContext.module ? { env: pageContext.module } : null)),
6049
- object: __assign({}, (data) && data),
6050
- });
6047
+ }, __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 ?
6048
+ null : { actor: { id: 'non-loggedin', type: 'Anonymous User' } })));
6051
6049
  }
6052
6050
  else {
6053
6051
  this.logger.error('Error Initializing Telemetry. Config missing.');