@digitalculture/ochre-sdk 0.11.22 → 0.11.23
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.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -872,7 +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
|
|
875
|
+
links: person.links ? parseLinks(Array.isArray(person.links) ? person.links : [person.links]) : [],
|
|
876
876
|
events: person.events ? parseEvents(Array.isArray(person.events.event) ? person.events.event : [person.events.event]) : [],
|
|
877
877
|
properties: person.properties ? parseProperties(Array.isArray(person.properties.property) ? person.properties.property : [person.properties.property]) : [],
|
|
878
878
|
bibliographies: person.bibliographies ? parseBibliographies(Array.isArray(person.bibliographies.bibliography) ? person.bibliographies.bibliography : [person.bibliographies.bibliography]) : []
|
package/package.json
CHANGED