@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 +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
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
package/dist/index.d.ts
CHANGED
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