@webitel/ui-sdk 25.8.66 → 25.8.67
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "25.8.
|
|
3
|
+
"version": "25.8.67",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
|
|
@@ -22,9 +22,13 @@ export default class XLSExport {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
// NOTE: if the value is an object with a name property, extract the name to display it in the EXEL file
|
|
25
|
+
// If no name property exists, stringify the object to show full structure
|
|
25
26
|
extractNameFromObject(value) {
|
|
26
|
-
if (value && typeof value === 'object'
|
|
27
|
-
|
|
27
|
+
if (value && typeof value === 'object') {
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
return value.map((item) => this.extractNameFromObject(item)).join(' | ');
|
|
30
|
+
}
|
|
31
|
+
return value.name || JSON.stringify(value);
|
|
28
32
|
}
|
|
29
33
|
return value;
|
|
30
34
|
}
|