@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/index.js
CHANGED
|
@@ -3309,6 +3309,24 @@ function generateLrsBridgeCode(options) {
|
|
|
3309
3309
|
* because the bridge initializes in <head> before LMSInitialize runs.
|
|
3310
3310
|
*/
|
|
3311
3311
|
LRS.refreshActor = function(callback) {
|
|
3312
|
+
// Always-visible diagnostic: confirm refreshActor is being called and show SCORM data (TEMPORARY)
|
|
3313
|
+
if (window.console && window.console.info) {
|
|
3314
|
+
var scormId = 'n/a', scormName = 'n/a';
|
|
3315
|
+
if (LRS.scormApi) {
|
|
3316
|
+
try {
|
|
3317
|
+
scormId = LRS.scormApiType === '2004'
|
|
3318
|
+
? LRS.scormApi.GetValue('cmi.learner_id')
|
|
3319
|
+
: LRS.scormApi.LMSGetValue('cmi.core.student_id');
|
|
3320
|
+
scormName = LRS.scormApiType === '2004'
|
|
3321
|
+
? LRS.scormApi.GetValue('cmi.learner_name')
|
|
3322
|
+
: LRS.scormApi.LMSGetValue('cmi.core.student_name');
|
|
3323
|
+
} catch(e) { scormId = 'error'; scormName = 'error'; }
|
|
3324
|
+
}
|
|
3325
|
+
console.info('[PA-LRS] refreshActor called. SCORM API=' + (LRS.scormApi ? 'found' : 'MISSING') +
|
|
3326
|
+
', student_id=' + scormId +
|
|
3327
|
+
', student_name=' + scormName +
|
|
3328
|
+
', previous actor=' + (LRS.actor ? LRS.actor.name : 'none'));
|
|
3329
|
+
}
|
|
3312
3330
|
log('refreshActor called - re-extracting from SCORM...');
|
|
3313
3331
|
var previousName = LRS.actor ? LRS.actor.name : 'none';
|
|
3314
3332
|
|
|
@@ -4056,10 +4074,13 @@ function generateLrsBridgeCode(options) {
|
|
|
4056
4074
|
// Always-visible bridge summary (not gated by DEBUG)
|
|
4057
4075
|
// This ensures diagnostics are available even in production builds
|
|
4058
4076
|
if (window.console && window.console.info) {
|
|
4059
|
-
console.info('[PA-LRS] Bridge: mode=' + LRS.mode +
|
|
4077
|
+
console.info('[PA-LRS] Bridge v' + LRS.version + ': mode=' + LRS.mode +
|
|
4060
4078
|
', endpoint=' + (LRS_ENDPOINT ? LRS_ENDPOINT.substring(0, 30) + '...' : 'NONE') +
|
|
4061
4079
|
', proxy=' + (LRS_PROXY_ENDPOINT ? 'yes' : 'no') +
|
|
4062
|
-
',
|
|
4080
|
+
', docGuid=' + (DOCUMENT_GUID || 'NONE') +
|
|
4081
|
+
', verGuid=' + (VERSION_GUID || 'NONE') +
|
|
4082
|
+
', actor=' + (LRS.actor ? (LRS.actor.name || 'anonymous') : 'none') +
|
|
4083
|
+
', hasRefreshActor=' + (typeof LRS.refreshActor === 'function'));
|
|
4063
4084
|
}
|
|
4064
4085
|
|
|
4065
4086
|
// Set up event interceptors
|