@digitalculture/ochre-sdk 0.5.13 → 0.5.14

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
@@ -2556,10 +2556,12 @@ async function fetchPropertyValue(uuid) {
2556
2556
  if (error !== null) {
2557
2557
  throw new Error(error);
2558
2558
  }
2559
- if (!("value" in dataRaw.ochre)) {
2560
- throw new Error("Invalid OCHRE data: API response missing 'value' key");
2559
+ if (!("propertyValue" in dataRaw.ochre)) {
2560
+ throw new Error(
2561
+ "Invalid OCHRE data: API response missing 'propertyValue' key"
2562
+ );
2561
2563
  }
2562
- const propertyValueItem = parsePropertyValue(dataRaw.ochre.value);
2564
+ const propertyValueItem = parsePropertyValue(dataRaw.ochre.propertyValue);
2563
2565
  const data = {
2564
2566
  uuid: parseFakeString(dataRaw.ochre.uuid),
2565
2567
  publicationDateTime: new Date(dataRaw.ochre.publicationDateTime),
package/dist/index.d.cts CHANGED
@@ -814,7 +814,7 @@ type OchreData = {
814
814
  | { period: OchrePeriod }
815
815
  | { bibliography: OchreBibliography }
816
816
  | { person: OchrePerson }
817
- | { value: OchrePropertyValue }
817
+ | { propertyValue: OchrePropertyValue }
818
818
  );
819
819
  };
820
820
 
package/dist/index.d.ts CHANGED
@@ -814,7 +814,7 @@ type OchreData = {
814
814
  | { period: OchrePeriod }
815
815
  | { bibliography: OchreBibliography }
816
816
  | { person: OchrePerson }
817
- | { value: OchrePropertyValue }
817
+ | { propertyValue: OchrePropertyValue }
818
818
  );
819
819
  };
820
820
 
package/dist/index.js CHANGED
@@ -2476,10 +2476,12 @@ async function fetchPropertyValue(uuid) {
2476
2476
  if (error !== null) {
2477
2477
  throw new Error(error);
2478
2478
  }
2479
- if (!("value" in dataRaw.ochre)) {
2480
- throw new Error("Invalid OCHRE data: API response missing 'value' key");
2479
+ if (!("propertyValue" in dataRaw.ochre)) {
2480
+ throw new Error(
2481
+ "Invalid OCHRE data: API response missing 'propertyValue' key"
2482
+ );
2481
2483
  }
2482
- const propertyValueItem = parsePropertyValue(dataRaw.ochre.value);
2484
+ const propertyValueItem = parsePropertyValue(dataRaw.ochre.propertyValue);
2483
2485
  const data = {
2484
2486
  uuid: parseFakeString(dataRaw.ochre.uuid),
2485
2487
  publicationDateTime: new Date(dataRaw.ochre.publicationDateTime),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digitalculture/ochre-sdk",
3
- "version": "0.5.13",
3
+ "version": "0.5.14",
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",