Skip to content

Commit 9b1ec75

Browse files
authored
Merge pull request #63 from adlnet/dep-test
Upgrading libxmljs from 0.19.10 to 1.0.11
2 parents 1dc8488 + e889579 commit 9b1ec75

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

player/service/package-lock.json

Lines changed: 26 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

player/service/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"joi": "^17.12.1",
4242
"knex": "^3.1.0",
4343
"knex-stringcase": "^1.4.5",
44-
"libxmljs": "^0.19.8",
44+
"libxmljs": "^1.0.11",
4545
"make-dir": "^4.0.0",
4646
"mysql": "^2.18.1",
4747
"node-stream-zip": "^1.13.6",
@@ -55,5 +55,10 @@
5555
"chai": "^4",
5656
"dotenv": "^16.4.5",
5757
"mocha": "^11.7.5"
58+
},
59+
"overrides": {
60+
"z-schema": {
61+
"validator": "^13.9.0"
62+
}
5863
}
5964
}

player/service/plugins/routes/v1/courses.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,10 @@ const validateAndReduceStructure = (document, lmsId) => {
215215
blocks: {}
216216
};
217217

218-
result.course.id = course.attr("id").value();
218+
// result.course.id = course.attr("id").value();
219+
const attr = course.attr("id");
220+
result.course.id = attr && attr.value; // .value is now a property
221+
219222

220223
validateIRI(result.course.id);
221224

0 commit comments

Comments
 (0)