@digitalculture/ochre-sdk 0.2.11 → 0.2.12

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
@@ -899,7 +899,7 @@ function parseProperties(properties, language = "eng") {
899
899
  const valuesToParse = "value" in property && property.value ? Array.isArray(property.value) ? property.value : [property.value] : [];
900
900
  const values = valuesToParse.map(
901
901
  (value) => !["string", "number", "boolean"].includes(typeof value) && typeof value === "object" ? {
902
- content: parseStringContent(value),
902
+ content: value.slug ? parseFakeString(value.slug) : parseStringContent(value),
903
903
  type: value.type,
904
904
  category: value.category !== "value" ? value.category ?? null : null,
905
905
  uuid: value.uuid ?? null,
package/dist/index.d.cts CHANGED
@@ -919,6 +919,7 @@ type OchrePropertyValue = OchreStringContent & {
919
919
  publicationDateTime?: string; // YYYY-MM-DDThh:mm:ssZ
920
920
  type: string;
921
921
  category?: string;
922
+ slug?: FakeString;
922
923
  };
923
924
 
924
925
  /**
package/dist/index.d.ts CHANGED
@@ -919,6 +919,7 @@ type OchrePropertyValue = OchreStringContent & {
919
919
  publicationDateTime?: string; // YYYY-MM-DDThh:mm:ssZ
920
920
  type: string;
921
921
  category?: string;
922
+ slug?: FakeString;
922
923
  };
923
924
 
924
925
  /**
package/dist/index.js CHANGED
@@ -821,7 +821,7 @@ function parseProperties(properties, language = "eng") {
821
821
  const valuesToParse = "value" in property && property.value ? Array.isArray(property.value) ? property.value : [property.value] : [];
822
822
  const values = valuesToParse.map(
823
823
  (value) => !["string", "number", "boolean"].includes(typeof value) && typeof value === "object" ? {
824
- content: parseStringContent(value),
824
+ content: value.slug ? parseFakeString(value.slug) : parseStringContent(value),
825
825
  type: value.type,
826
826
  category: value.category !== "value" ? value.category ?? null : null,
827
827
  uuid: value.uuid ?? null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
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",