ochre-sdk 1.0.32 → 1.0.33

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.
@@ -337,7 +337,7 @@ function parseWebElementProperties(componentProperty, elementResource, options,
337
337
  href = parseWebsiteLinkTarget(componentReader.valueNode("link-to"), context);
338
338
  if (href === null) throw new Error(formatComponentError("Properties “navigate-to” or “link-to” not found", componentName, elementResource), { cause: componentProperty });
339
339
  else {
340
- isExternal = true;
340
+ isExternal = href.startsWith("http");
341
341
  isRelative = !href.startsWith("/");
342
342
  }
343
343
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
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",