@patch-adams/core 1.4.22 → 1.4.23
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/cli.cjs +23 -2
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +23 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +23 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +23 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -3640,6 +3640,24 @@ function generateLrsBridgeCode(options) {
|
|
|
3640
3640
|
* because the bridge initializes in <head> before LMSInitialize runs.
|
|
3641
3641
|
*/
|
|
3642
3642
|
LRS.refreshActor = function(callback) {
|
|
3643
|
+
// Always-visible diagnostic: confirm refreshActor is being called and show SCORM data (TEMPORARY)
|
|
3644
|
+
if (window.console && window.console.info) {
|
|
3645
|
+
var scormId = 'n/a', scormName = 'n/a';
|
|
3646
|
+
if (LRS.scormApi) {
|
|
3647
|
+
try {
|
|
3648
|
+
scormId = LRS.scormApiType === '2004'
|
|
3649
|
+
? LRS.scormApi.GetValue('cmi.learner_id')
|
|
3650
|
+
: LRS.scormApi.LMSGetValue('cmi.core.student_id');
|
|
3651
|
+
scormName = LRS.scormApiType === '2004'
|
|
3652
|
+
? LRS.scormApi.GetValue('cmi.learner_name')
|
|
3653
|
+
: LRS.scormApi.LMSGetValue('cmi.core.student_name');
|
|
3654
|
+
} catch(e) { scormId = 'error'; scormName = 'error'; }
|
|
3655
|
+
}
|
|
3656
|
+
console.info('[PA-LRS] refreshActor called. SCORM API=' + (LRS.scormApi ? 'found' : 'MISSING') +
|
|
3657
|
+
', student_id=' + scormId +
|
|
3658
|
+
', student_name=' + scormName +
|
|
3659
|
+
', previous actor=' + (LRS.actor ? LRS.actor.name : 'none'));
|
|
3660
|
+
}
|
|
3643
3661
|
log('refreshActor called - re-extracting from SCORM...');
|
|
3644
3662
|
var previousName = LRS.actor ? LRS.actor.name : 'none';
|
|
3645
3663
|
|
|
@@ -4387,10 +4405,13 @@ function generateLrsBridgeCode(options) {
|
|
|
4387
4405
|
// Always-visible bridge summary (not gated by DEBUG)
|
|
4388
4406
|
// This ensures diagnostics are available even in production builds
|
|
4389
4407
|
if (window.console && window.console.info) {
|
|
4390
|
-
console.info('[PA-LRS] Bridge: mode=' + LRS.mode +
|
|
4408
|
+
console.info('[PA-LRS] Bridge v' + LRS.version + ': mode=' + LRS.mode +
|
|
4391
4409
|
', endpoint=' + (LRS_ENDPOINT ? LRS_ENDPOINT.substring(0, 30) + '...' : 'NONE') +
|
|
4392
4410
|
', proxy=' + (LRS_PROXY_ENDPOINT ? 'yes' : 'no') +
|
|
4393
|
-
',
|
|
4411
|
+
', docGuid=' + (DOCUMENT_GUID || 'NONE') +
|
|
4412
|
+
', verGuid=' + (VERSION_GUID || 'NONE') +
|
|
4413
|
+
', actor=' + (LRS.actor ? (LRS.actor.name || 'anonymous') : 'none') +
|
|
4414
|
+
', hasRefreshActor=' + (typeof LRS.refreshActor === 'function'));
|
|
4394
4415
|
}
|
|
4395
4416
|
|
|
4396
4417
|
// Set up event interceptors
|