@d-i-t-a/reader 3.0.0-alpha.5 → 3.0.0-alpha.6

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/esm/index.js CHANGED
@@ -87513,6 +87513,10 @@ init_HTMLUtilities();
87513
87513
  // src/model/Link.ts
87514
87514
  init_polyfills();
87515
87515
  function convertAndCamel(o) {
87516
+ if (o == null) return o;
87517
+ if (o.items && Array.isArray(o.items)) {
87518
+ return convertAndCamel(o.items);
87519
+ }
87516
87520
  let newO, origKey, newKey, value;
87517
87521
  if (o instanceof Array) {
87518
87522
  return o.map(function(value2) {
@@ -87527,7 +87531,9 @@ function convertAndCamel(o) {
87527
87531
  if (o.hasOwnProperty(origKey)) {
87528
87532
  newKey = (origKey.charAt(0).toLowerCase() + origKey.slice(1) || origKey).toString();
87529
87533
  value = o[origKey];
87530
- if (value instanceof Array || value !== null && value !== void 0 && value.constructor === Object) {
87534
+ if (value && value.items && Array.isArray(value.items)) {
87535
+ value = convertAndCamel(value.items);
87536
+ } else if (value instanceof Array || value !== null && value !== void 0 && value.constructor === Object) {
87531
87537
  value = convertAndCamel(value);
87532
87538
  }
87533
87539
  if (newKey === "href1") {