@websolutespa/bom-core 1.8.21 → 1.8.22
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/CHANGELOG.md +6 -0
- package/dist/index.js +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1392,7 +1392,11 @@ function getValue(item, key) {
|
|
|
1392
1392
|
const keys = key.split(".");
|
|
1393
1393
|
const value = keys.reduce((p, c) => {
|
|
1394
1394
|
if (isObject(p)) {
|
|
1395
|
-
|
|
1395
|
+
const v = p[c];
|
|
1396
|
+
if (isUnresolvedRelation(v)) {
|
|
1397
|
+
return v.value;
|
|
1398
|
+
}
|
|
1399
|
+
return v;
|
|
1396
1400
|
} else {
|
|
1397
1401
|
return void 0;
|
|
1398
1402
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1223,7 +1223,11 @@ function getValue(item, key) {
|
|
|
1223
1223
|
const keys = key.split(".");
|
|
1224
1224
|
const value = keys.reduce((p, c) => {
|
|
1225
1225
|
if (isObject(p)) {
|
|
1226
|
-
|
|
1226
|
+
const v = p[c];
|
|
1227
|
+
if (isUnresolvedRelation(v)) {
|
|
1228
|
+
return v.value;
|
|
1229
|
+
}
|
|
1230
|
+
return v;
|
|
1227
1231
|
} else {
|
|
1228
1232
|
return void 0;
|
|
1229
1233
|
}
|