@digitalculture/ochre-sdk 0.14.1 → 0.14.2
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.mts +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -398,6 +398,8 @@ type Bibliography = {
|
|
|
398
398
|
sourceResources: Array<Pick<Resource, "uuid" | "category" | "publicationDateTime" | "type" | "identification" | "href">>;
|
|
399
399
|
periods: Array<Period>;
|
|
400
400
|
authors: Array<Person>;
|
|
401
|
+
links: Array<Link>;
|
|
402
|
+
reverseLinks: Array<Link>;
|
|
401
403
|
properties: Array<Property>;
|
|
402
404
|
};
|
|
403
405
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1386,6 +1386,8 @@ function parseBibliography(bibliography, metadata) {
|
|
|
1386
1386
|
sourceResources,
|
|
1387
1387
|
periods: bibliography.periods ? parsePeriods(Array.isArray(bibliography.periods.period) ? bibliography.periods.period : [bibliography.periods.period]) : [],
|
|
1388
1388
|
authors: bibliography.authors ? parsePersons(Array.isArray(bibliography.authors.person) ? bibliography.authors.person : [bibliography.authors.person]) : [],
|
|
1389
|
+
links: bibliography.links ? parseLinks(Array.isArray(bibliography.links) ? bibliography.links : [bibliography.links]) : [],
|
|
1390
|
+
reverseLinks: bibliography.reverseLinks ? parseLinks(Array.isArray(bibliography.reverseLinks) ? bibliography.reverseLinks : [bibliography.reverseLinks]) : [],
|
|
1389
1391
|
properties: bibliography.properties ? parseProperties(Array.isArray(bibliography.properties.property) ? bibliography.properties.property : [bibliography.properties.property]) : []
|
|
1390
1392
|
};
|
|
1391
1393
|
}
|
package/package.json
CHANGED