dce-reactkit 3.9.1 → 3.9.2
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 +25 -25
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +25 -25
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/genRouteHandler.ts +10 -10
package/package.json
CHANGED
|
@@ -354,22 +354,22 @@ const genRouteHandler = (
|
|
|
354
354
|
output.userId = (
|
|
355
355
|
launchInfo
|
|
356
356
|
? launchInfo.userId
|
|
357
|
-
: undefined
|
|
357
|
+
: (output.userId ?? undefined)
|
|
358
358
|
);
|
|
359
359
|
output.userFirstName = (
|
|
360
360
|
launchInfo
|
|
361
361
|
? launchInfo.userFirstName
|
|
362
|
-
: undefined
|
|
362
|
+
: (output.userFirstName ?? undefined)
|
|
363
363
|
);
|
|
364
364
|
output.userLastName = (
|
|
365
365
|
launchInfo
|
|
366
366
|
? launchInfo.userLastName
|
|
367
|
-
: undefined
|
|
367
|
+
: (output.userLastName ?? undefined)
|
|
368
368
|
);
|
|
369
369
|
output.userEmail = (
|
|
370
370
|
launchInfo
|
|
371
371
|
? launchInfo.userEmail
|
|
372
|
-
: undefined
|
|
372
|
+
: (output.userEmail ?? undefined)
|
|
373
373
|
);
|
|
374
374
|
output.userAvatarURL = (
|
|
375
375
|
launchInfo
|
|
@@ -377,32 +377,32 @@ const genRouteHandler = (
|
|
|
377
377
|
launchInfo.userImage
|
|
378
378
|
?? 'http://www.gravatar.com/avatar/?d=identicon'
|
|
379
379
|
)
|
|
380
|
-
: undefined
|
|
380
|
+
: (output.userAvatarURL ?? undefined)
|
|
381
381
|
);
|
|
382
382
|
output.isLearner = (
|
|
383
383
|
launchInfo
|
|
384
384
|
? !!launchInfo.isLearner
|
|
385
|
-
: undefined
|
|
385
|
+
: (output.isLearner ?? undefined)
|
|
386
386
|
);
|
|
387
387
|
output.isTTM = (
|
|
388
388
|
launchInfo
|
|
389
389
|
? !!launchInfo.isTTM
|
|
390
|
-
: undefined
|
|
390
|
+
: (output.isTTM ?? undefined)
|
|
391
391
|
);
|
|
392
392
|
output.isAdmin = (
|
|
393
393
|
launchInfo
|
|
394
394
|
? !!launchInfo.isAdmin
|
|
395
|
-
: undefined
|
|
395
|
+
: (output.isAdmin ?? undefined)
|
|
396
396
|
);
|
|
397
397
|
output.courseId = (
|
|
398
398
|
launchInfo
|
|
399
399
|
? (output.courseId ?? launchInfo.courseId)
|
|
400
|
-
: undefined
|
|
400
|
+
: (output.courseId ?? undefined)
|
|
401
401
|
);
|
|
402
402
|
output.courseName = (
|
|
403
403
|
launchInfo
|
|
404
404
|
? launchInfo.contextLabel
|
|
405
|
-
: undefined
|
|
405
|
+
: (output.courseName ?? undefined)
|
|
406
406
|
);
|
|
407
407
|
|
|
408
408
|
// Add other session variables
|