dce-reactkit 3.7.33 → 3.7.34

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/dist/cjs/index.js CHANGED
@@ -14636,16 +14636,16 @@ const genRouteHandler = (opts) => {
14636
14636
  const { timestamp, year, month, day, hour, minute, } = getTimeInfoInET();
14637
14637
  // Main log info
14638
14638
  const mainLogInfo = {
14639
- id: `${launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
14640
- userFirstName: launchInfo.userFirstName,
14641
- userLastName: launchInfo.userLastName,
14642
- userEmail: launchInfo.userEmail,
14643
- userId: launchInfo.userId,
14644
- isLearner: !!launchInfo.isLearner,
14645
- isAdmin: !!launchInfo.isAdmin,
14646
- isTTM: !!launchInfo.isTTM,
14647
- courseId: launchInfo.courseId,
14648
- courseName: launchInfo.contextLabel,
14639
+ id: `${launchInfo ? 'unknown' : launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
14640
+ userFirstName: (launchInfo ? 'unknown' : launchInfo.userFirstName),
14641
+ userLastName: (launchInfo ? 'unknown' : launchInfo.userLastName),
14642
+ userEmail: (launchInfo ? 'unknown' : launchInfo.userEmail),
14643
+ userId: (launchInfo ? 'unknown' : launchInfo.userId),
14644
+ isLearner: (launchInfo && !!launchInfo.isLearner),
14645
+ isAdmin: (launchInfo && !!launchInfo.isAdmin),
14646
+ isTTM: (launchInfo && !!launchInfo.isTTM),
14647
+ courseId: (launchInfo ? 'unknown' : launchInfo.courseId),
14648
+ courseName: (launchInfo ? 'unknown' : launchInfo.contextLabel),
14649
14649
  browser,
14650
14650
  device,
14651
14651
  year,