@cmssy/core 16.7.0 → 16.7.1
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 +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/locale.cjs +1 -1
- package/dist/internal/locale.js +1 -1
- package/dist/internal.cjs +6 -1
- package/dist/internal.js +6 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -74,7 +74,7 @@ Set the listed environment variables (e.g. in .env.local) and restart the dev se
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
// src/version.ts
|
|
77
|
-
var CMSSY_CORE_VERSION = "16.7.
|
|
77
|
+
var CMSSY_CORE_VERSION = "16.7.1" ;
|
|
78
78
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
79
79
|
|
|
80
80
|
// src/data/http.ts
|
package/dist/index.js
CHANGED
|
@@ -73,7 +73,7 @@ Set the listed environment variables (e.g. in .env.local) and restart the dev se
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// src/version.ts
|
|
76
|
-
var CMSSY_CORE_VERSION = "16.7.
|
|
76
|
+
var CMSSY_CORE_VERSION = "16.7.1" ;
|
|
77
77
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
78
78
|
|
|
79
79
|
// src/data/http.ts
|
package/dist/internal/locale.cjs
CHANGED
package/dist/internal/locale.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var types = require('@cmssy/types');
|
|
4
4
|
|
|
5
5
|
// src/version.ts
|
|
6
|
-
var CMSSY_CORE_VERSION = "16.7.
|
|
6
|
+
var CMSSY_CORE_VERSION = "16.7.1" ;
|
|
7
7
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
8
8
|
|
|
9
9
|
// src/data/http.ts
|
|
@@ -905,6 +905,9 @@ async function resolveRelationContent(config, entries, schemas, locale, requestO
|
|
|
905
905
|
});
|
|
906
906
|
} else {
|
|
907
907
|
for (const id of storedIds(ref.content[ref.key])) pickedIds.add(id);
|
|
908
|
+
const value = ref.content[ref.key];
|
|
909
|
+
if (isRecord(value) && typeof value.id === "string")
|
|
910
|
+
pickedIds.add(value.id);
|
|
908
911
|
}
|
|
909
912
|
}
|
|
910
913
|
let recordsById;
|
|
@@ -939,6 +942,8 @@ async function resolveRelationContent(config, entries, schemas, locale, requestO
|
|
|
939
942
|
const record = recordsById.get(value);
|
|
940
943
|
if (record) ref.content[ref.key] = record;
|
|
941
944
|
else delete ref.content[ref.key];
|
|
945
|
+
} else if (isRecord(value) && typeof value.id === "string") {
|
|
946
|
+
ref.content[ref.key] = recordsById.get(value.id) ?? value;
|
|
942
947
|
} else {
|
|
943
948
|
delete ref.content[ref.key];
|
|
944
949
|
}
|
package/dist/internal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DEFAULT_LAYOUT_REGIONS } from '@cmssy/types';
|
|
2
2
|
|
|
3
3
|
// src/version.ts
|
|
4
|
-
var CMSSY_CORE_VERSION = "16.7.
|
|
4
|
+
var CMSSY_CORE_VERSION = "16.7.1" ;
|
|
5
5
|
var CMSSY_USER_AGENT = `@cmssy/core/${CMSSY_CORE_VERSION}`;
|
|
6
6
|
|
|
7
7
|
// src/data/http.ts
|
|
@@ -903,6 +903,9 @@ async function resolveRelationContent(config, entries, schemas, locale, requestO
|
|
|
903
903
|
});
|
|
904
904
|
} else {
|
|
905
905
|
for (const id of storedIds(ref.content[ref.key])) pickedIds.add(id);
|
|
906
|
+
const value = ref.content[ref.key];
|
|
907
|
+
if (isRecord(value) && typeof value.id === "string")
|
|
908
|
+
pickedIds.add(value.id);
|
|
906
909
|
}
|
|
907
910
|
}
|
|
908
911
|
let recordsById;
|
|
@@ -937,6 +940,8 @@ async function resolveRelationContent(config, entries, schemas, locale, requestO
|
|
|
937
940
|
const record = recordsById.get(value);
|
|
938
941
|
if (record) ref.content[ref.key] = record;
|
|
939
942
|
else delete ref.content[ref.key];
|
|
943
|
+
} else if (isRecord(value) && typeof value.id === "string") {
|
|
944
|
+
ref.content[ref.key] = recordsById.get(value.id) ?? value;
|
|
940
945
|
} else {
|
|
941
946
|
delete ref.content[ref.key];
|
|
942
947
|
}
|