@lessonkit/lxpack 0.9.2 → 0.9.3
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/index.cjs +5 -1
- package/dist/index.js +5 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -432,7 +432,11 @@ async function resolveSpaDirs(options) {
|
|
|
432
432
|
if (!src) {
|
|
433
433
|
throw new Error(`lessonSpaDirs missing build output for lesson "${lesson.id}"`);
|
|
434
434
|
}
|
|
435
|
-
|
|
435
|
+
const resolved = projectRoot ? (0, import_node_path3.resolve)(projectRoot, src) : (0, import_node_path3.resolve)(src);
|
|
436
|
+
if (projectRoot) {
|
|
437
|
+
assertResolvedPathUnderRoot((0, import_node_path3.resolve)(projectRoot), resolved);
|
|
438
|
+
}
|
|
439
|
+
dirs[lesson.id] = resolved;
|
|
436
440
|
}
|
|
437
441
|
return dirs;
|
|
438
442
|
}
|
package/dist/index.js
CHANGED
|
@@ -381,7 +381,11 @@ async function resolveSpaDirs(options) {
|
|
|
381
381
|
if (!src) {
|
|
382
382
|
throw new Error(`lessonSpaDirs missing build output for lesson "${lesson.id}"`);
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
const resolved = projectRoot ? resolve3(projectRoot, src) : resolve3(src);
|
|
385
|
+
if (projectRoot) {
|
|
386
|
+
assertResolvedPathUnderRoot(resolve3(projectRoot), resolved);
|
|
387
|
+
}
|
|
388
|
+
dirs[lesson.id] = resolved;
|
|
385
389
|
}
|
|
386
390
|
return dirs;
|
|
387
391
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessonkit/lxpack",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LXPack export adapter for LessonKit courses (SCORM, standalone, xAPI, cmi5).",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"lint": "echo \"(no lint configured yet)\""
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@lessonkit/core": "0.9.
|
|
57
|
-
"@lessonkit/themes": "0.9.
|
|
56
|
+
"@lessonkit/core": "0.9.3",
|
|
57
|
+
"@lessonkit/themes": "0.9.3",
|
|
58
58
|
"@lxpack/api": "^0.6.0",
|
|
59
59
|
"@lxpack/spa-bridge": "^0.6.0",
|
|
60
60
|
"@lxpack/tracking-schema": "^0.6.0",
|