@patch-adams/core 1.5.14 → 1.5.15

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.js CHANGED
@@ -2867,12 +2867,19 @@ function generateLrsBridgeCode(options) {
2867
2867
  warn('Missing version GUID - statement may fail Bravais aggregation (document_version_id will be null)');
2868
2868
  }
2869
2869
 
2870
+ // Use packageName (Bravais document name) as the object name when available,
2871
+ // so statements match the searchable document name in Bravais Analytics.
2872
+ // Strip .zip extension to match Bravais convention. Fall back to Rise course title.
2873
+ var objectName = LRS.courseInfo.packageName
2874
+ ? LRS.courseInfo.packageName.replace(/.zip$/i, '')
2875
+ : decodeEntities(LRS.courseInfo.title);
2876
+
2870
2877
  var obj = {
2871
2878
  objectType: 'Activity',
2872
2879
  id: LRS.courseInfo.id,
2873
2880
  definition: {
2874
2881
  type: 'http://xyleme.com/bravais/activities/document',
2875
- name: { 'en-US': decodeEntities(LRS.courseInfo.title) }
2882
+ name: { 'en-US': objectName }
2876
2883
  }
2877
2884
  };
2878
2885