ochre-sdk 1.0.50 → 1.0.51

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.
@@ -314,14 +314,13 @@ function parseWebElementProperties(componentProperty, elementResource, options,
314
314
  break;
315
315
  }
316
316
  case "bibliography": {
317
- const itemLinks = websiteLinks.filter((link) => link.category === "bibliography");
318
317
  const bibliographies = parseBibliographyList(elementResource.bibliographies, options);
319
- if (itemLinks.length === 0 && bibliographies.length === 0) throw new Error(formatComponentError("No links found", componentName, elementResource), { cause: componentProperty });
318
+ if (websiteLinks.length === 0 && bibliographies.length === 0) throw new Error(formatComponentError("No links found", componentName, elementResource), { cause: componentProperty });
320
319
  const layout = componentReader.valueOr("layout", "long");
321
320
  const isSourceDocumentDisplayed = componentReader.valueOr("source-document-displayed", true);
322
321
  properties = {
323
322
  component: "bibliography",
324
- linkUuids: itemLinks.map((link) => link.uuid),
323
+ linkUuids: websiteLinks.map((link) => link.uuid),
325
324
  bibliographies,
326
325
  layout,
327
326
  isSourceDocumentDisplayed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.50",
3
+ "version": "1.0.51",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",
@@ -54,7 +54,7 @@
54
54
  "@antfu/eslint-config": "^9.0.0",
55
55
  "@types/node": "^24.13.2",
56
56
  "bumpp": "^11.1.0",
57
- "eslint": "^10.4.1",
57
+ "eslint": "^10.5.0",
58
58
  "knip": "^6.16.1",
59
59
  "oxfmt": "^0.54.0",
60
60
  "tsdown": "^0.22.2",