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 +10 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/genRouteHandler.ts +10 -10
package/package.json
CHANGED
|
@@ -526,16 +526,16 @@ const genRouteHandler = (
|
|
|
526
526
|
|
|
527
527
|
// Main log info
|
|
528
528
|
const mainLogInfo: LogMainInfo = {
|
|
529
|
-
id: `${launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
|
|
530
|
-
userFirstName: launchInfo.userFirstName,
|
|
531
|
-
userLastName: launchInfo.userLastName,
|
|
532
|
-
userEmail: launchInfo.userEmail,
|
|
533
|
-
userId: launchInfo.userId,
|
|
534
|
-
isLearner: !!launchInfo.isLearner,
|
|
535
|
-
isAdmin: !!launchInfo.isAdmin,
|
|
536
|
-
isTTM: !!launchInfo.isTTM,
|
|
537
|
-
courseId: launchInfo.courseId,
|
|
538
|
-
courseName: launchInfo.contextLabel,
|
|
529
|
+
id: `${launchInfo ? 'unknown' : launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
|
|
530
|
+
userFirstName: (launchInfo ? 'unknown' : launchInfo.userFirstName),
|
|
531
|
+
userLastName: (launchInfo ? 'unknown' : launchInfo.userLastName),
|
|
532
|
+
userEmail: (launchInfo ? 'unknown' : launchInfo.userEmail),
|
|
533
|
+
userId: (launchInfo ? 'unknown' : launchInfo.userId),
|
|
534
|
+
isLearner: (launchInfo && !!launchInfo.isLearner),
|
|
535
|
+
isAdmin: (launchInfo && !!launchInfo.isAdmin),
|
|
536
|
+
isTTM: (launchInfo && !!launchInfo.isTTM),
|
|
537
|
+
courseId: (launchInfo ? 'unknown' : launchInfo.courseId),
|
|
538
|
+
courseName: (launchInfo ? 'unknown' : launchInfo.contextLabel),
|
|
539
539
|
browser,
|
|
540
540
|
device,
|
|
541
541
|
year,
|