@digitalculture/ochre-sdk 0.11.21 → 0.11.22

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.d.ts CHANGED
@@ -96,6 +96,7 @@ type Person = {
96
96
  coordinates: Coordinates;
97
97
  content: string | null;
98
98
  notes: Array<Note>;
99
+ links: Array<Link>;
99
100
  events: Array<Event>;
100
101
  properties: Array<Property>;
101
102
  bibliographies: Array<Bibliography>;
package/dist/index.js CHANGED
@@ -872,6 +872,7 @@ function parsePerson(person) {
872
872
  coordinates: parseCoordinates(person.coordinates),
873
873
  content: person.content != null ? parseFakeString(person.content) : null,
874
874
  notes: person.notes ? parseNotes(Array.isArray(person.notes.note) ? person.notes.note : [person.notes.note]) : [],
875
+ links: person.links ? parseLinks(Array.isArray(person.links.link) ? person.links.link : [person.links.link]) : [],
875
876
  events: person.events ? parseEvents(Array.isArray(person.events.event) ? person.events.event : [person.events.event]) : [],
876
877
  properties: person.properties ? parseProperties(Array.isArray(person.properties.property) ? person.properties.property : [person.properties.property]) : [],
877
878
  bibliographies: person.bibliographies ? parseBibliographies(Array.isArray(person.bibliographies.bibliography) ? person.bibliographies.bibliography : [person.bibliographies.bibliography]) : []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.11.21",
3
+ "version": "0.11.22",
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",
@@ -49,9 +49,9 @@
49
49
  "eslint": "^9.38.0",
50
50
  "prettier": "^3.6.2",
51
51
  "terser": "^5.44.0",
52
- "tsdown": "^0.15.11",
52
+ "tsdown": "^0.15.12",
53
53
  "typescript": "^5.9.3",
54
- "vitest": "^4.0.4"
54
+ "vitest": "^4.0.5"
55
55
  },
56
56
  "scripts": {
57
57
  "dev": "tsdown src/index.ts --watch",