@lessonkit/lxpack 1.0.1 → 1.0.2
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/bridge.cjs +1 -1
- package/dist/bridge.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/bridge.cjs
CHANGED
|
@@ -103,7 +103,7 @@ function getBridge(parentWindow) {
|
|
|
103
103
|
if (typeof window === "undefined") return null;
|
|
104
104
|
const parent = parentWindow ?? window.parent;
|
|
105
105
|
if (!parent || parent === window) return null;
|
|
106
|
-
return parent.lxpack ?? null;
|
|
106
|
+
return parent.lxpackBridge?.v1 ?? parent.lxpack ?? null;
|
|
107
107
|
}
|
|
108
108
|
function isDevEnvironment() {
|
|
109
109
|
const g = globalThis;
|
package/dist/bridge.js
CHANGED
|
@@ -41,7 +41,7 @@ function getBridge(parentWindow) {
|
|
|
41
41
|
if (typeof window === "undefined") return null;
|
|
42
42
|
const parent = parentWindow ?? window.parent;
|
|
43
43
|
if (!parent || parent === window) return null;
|
|
44
|
-
return parent.lxpack ?? null;
|
|
44
|
+
return parent.lxpackBridge?.v1 ?? parent.lxpack ?? null;
|
|
45
45
|
}
|
|
46
46
|
function isDevEnvironment() {
|
|
47
47
|
const g = globalThis;
|
package/dist/index.cjs
CHANGED
|
@@ -946,7 +946,7 @@ async function packageLessonkitCourse(options) {
|
|
|
946
946
|
if (!descriptorValidation.ok) {
|
|
947
947
|
return {
|
|
948
948
|
ok: false,
|
|
949
|
-
courseDir: outDir,
|
|
949
|
+
courseDir: (0, import_node_path8.resolve)(writeOpts.outDir),
|
|
950
950
|
target,
|
|
951
951
|
issues: descriptorValidation.issues.map((i) => ({
|
|
952
952
|
path: i.path,
|
package/dist/index.js
CHANGED
|
@@ -890,7 +890,7 @@ async function packageLessonkitCourse(options) {
|
|
|
890
890
|
if (!descriptorValidation.ok) {
|
|
891
891
|
return {
|
|
892
892
|
ok: false,
|
|
893
|
-
courseDir: outDir,
|
|
893
|
+
courseDir: resolve6(writeOpts.outDir),
|
|
894
894
|
target,
|
|
895
895
|
issues: descriptorValidation.issues.map((i) => ({
|
|
896
896
|
path: i.path,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lessonkit/lxpack",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "LXPack export adapter for LessonKit courses (SCORM, standalone, xAPI, cmi5).",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"lint": "echo \"(no lint configured yet)\""
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@lessonkit/core": "1.0.
|
|
59
|
-
"@lessonkit/themes": "1.0.
|
|
58
|
+
"@lessonkit/core": "1.0.2",
|
|
59
|
+
"@lessonkit/themes": "1.0.2",
|
|
60
60
|
"@lxpack/api": "^0.6.2",
|
|
61
61
|
"@lxpack/spa-bridge": "^0.6.2",
|
|
62
62
|
"@lxpack/tracking-schema": "^0.6.2",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@types/node": "^22.13.10",
|
|
67
67
|
"tsup": "^8.5.0",
|
|
68
68
|
"typescript": "^5.8.3",
|
|
69
|
-
"vitest": "^
|
|
69
|
+
"vitest": "^4.1.8"
|
|
70
70
|
}
|
|
71
71
|
}
|