coursecode 0.1.16 → 0.1.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coursecode",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Multi-format course authoring framework with CLI tools (SCORM 2004, SCORM 1.2, cmi5, LTI 1.3)",
5
5
  "type": "module",
6
6
  "bin": {
@@ -104,8 +104,9 @@ function validatePackage(format = 'scorm2004') {
104
104
  if (fs.existsSync(ltiPath)) {
105
105
  try {
106
106
  const toolConfig = JSON.parse(fs.readFileSync(ltiPath, 'utf-8'));
107
- if (!toolConfig.title || !toolConfig.target_link_uri) {
108
- errors.push('Generated lti-tool-config.json missing required fields (title, target_link_uri)');
107
+ const ltiSpec = toolConfig['https://purl.imsglobal.org/spec/lti-tool-configuration'];
108
+ if (!toolConfig.client_name || !ltiSpec?.target_link_uri) {
109
+ errors.push('Generated lti-tool-config.json missing required fields (client_name, target_link_uri)');
109
110
  }
110
111
  } catch {
111
112
  errors.push('Generated lti-tool-config.json is not valid JSON');