@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.cjs +8 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -2877,12 +2877,19 @@ function generateLrsBridgeCode(options) {
|
|
|
2877
2877
|
warn('Missing version GUID - statement may fail Bravais aggregation (document_version_id will be null)');
|
|
2878
2878
|
}
|
|
2879
2879
|
|
|
2880
|
+
// Use packageName (Bravais document name) as the object name when available,
|
|
2881
|
+
// so statements match the searchable document name in Bravais Analytics.
|
|
2882
|
+
// Strip .zip extension to match Bravais convention. Fall back to Rise course title.
|
|
2883
|
+
var objectName = LRS.courseInfo.packageName
|
|
2884
|
+
? LRS.courseInfo.packageName.replace(/.zip$/i, '')
|
|
2885
|
+
: decodeEntities(LRS.courseInfo.title);
|
|
2886
|
+
|
|
2880
2887
|
var obj = {
|
|
2881
2888
|
objectType: 'Activity',
|
|
2882
2889
|
id: LRS.courseInfo.id,
|
|
2883
2890
|
definition: {
|
|
2884
2891
|
type: 'http://xyleme.com/bravais/activities/document',
|
|
2885
|
-
name: { 'en-US':
|
|
2892
|
+
name: { 'en-US': objectName }
|
|
2886
2893
|
}
|
|
2887
2894
|
};
|
|
2888
2895
|
|