@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 +5 -3
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/package.json +1 -1
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 (!("
|
|
2560
|
-
throw new Error(
|
|
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.
|
|
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
package/dist/index.d.ts
CHANGED
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 (!("
|
|
2480
|
-
throw new Error(
|
|
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.
|
|
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