@digitalculture/ochre-sdk 0.4.9 → 0.4.10

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.cjs CHANGED
@@ -1372,7 +1372,9 @@ async function parseWebElementProperties(componentProperty, elementResource) {
1372
1372
  const links = elementResource.links ? parseLinks(
1373
1373
  Array.isArray(elementResource.links) ? elementResource.links : [elementResource.links]
1374
1374
  ) : [];
1375
- const imageLinks = links.filter((link) => link.type === "image");
1375
+ const imageLinks = links.filter(
1376
+ (link) => link.type === "image" || link.type === "IIIF"
1377
+ );
1376
1378
  let document = elementResource.document ? parseDocument(elementResource.document.content) : null;
1377
1379
  if (document === null) {
1378
1380
  const documentLink = links.find((link) => link.type === "internalDocument");
package/dist/index.js CHANGED
@@ -1295,7 +1295,9 @@ async function parseWebElementProperties(componentProperty, elementResource) {
1295
1295
  const links = elementResource.links ? parseLinks(
1296
1296
  Array.isArray(elementResource.links) ? elementResource.links : [elementResource.links]
1297
1297
  ) : [];
1298
- const imageLinks = links.filter((link) => link.type === "image");
1298
+ const imageLinks = links.filter(
1299
+ (link) => link.type === "image" || link.type === "IIIF"
1300
+ );
1299
1301
  let document = elementResource.document ? parseDocument(elementResource.document.content) : null;
1300
1302
  if (document === null) {
1301
1303
  const documentLink = links.find((link) => link.type === "internalDocument");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
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",