@digitalculture/ochre-sdk 0.2.7 → 0.2.8
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.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -898,7 +898,7 @@ function parseProperties(properties, language = "eng") {
|
|
|
898
898
|
for (const property of properties) {
|
|
899
899
|
const valuesToParse = "value" in property && property.value ? Array.isArray(property.value) ? property.value : [property.value] : [];
|
|
900
900
|
const values = valuesToParse.map(
|
|
901
|
-
(value) => !["string", "number", "boolean"].includes(typeof value) && typeof value === "object"
|
|
901
|
+
(value) => !["string", "number", "boolean"].includes(typeof value) && typeof value === "object" ? {
|
|
902
902
|
content: parseStringContent(value),
|
|
903
903
|
type: value.type,
|
|
904
904
|
category: value.category !== "value" ? value.category ?? null : null,
|
package/dist/index.js
CHANGED
|
@@ -820,7 +820,7 @@ function parseProperties(properties, language = "eng") {
|
|
|
820
820
|
for (const property of properties) {
|
|
821
821
|
const valuesToParse = "value" in property && property.value ? Array.isArray(property.value) ? property.value : [property.value] : [];
|
|
822
822
|
const values = valuesToParse.map(
|
|
823
|
-
(value) => !["string", "number", "boolean"].includes(typeof value) && typeof value === "object"
|
|
823
|
+
(value) => !["string", "number", "boolean"].includes(typeof value) && typeof value === "object" ? {
|
|
824
824
|
content: parseStringContent(value),
|
|
825
825
|
type: value.type,
|
|
826
826
|
category: value.category !== "value" ? value.category ?? null : null,
|
package/package.json
CHANGED