@zeedhi/common 1.127.0 → 1.128.0

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.
@@ -8861,7 +8861,7 @@ class XLSReport extends BaseReport {
8861
8861
  formatRawDataSet(data, columns) {
8862
8862
  const columnNames = columns.map((col) => col.name);
8863
8863
  const result = data.reduce((reduced, row) => {
8864
- const values = columnNames.map((col) => row[col] || '');
8864
+ const values = columnNames.map((col) => (typeof row[col] === 'number' ? row[col] : (row[col] || '')));
8865
8865
  return [...reduced, values];
8866
8866
  }, [columnNames]);
8867
8867
  return result;
@@ -8868,7 +8868,7 @@
8868
8868
  formatRawDataSet(data, columns) {
8869
8869
  const columnNames = columns.map((col) => col.name);
8870
8870
  const result = data.reduce((reduced, row) => {
8871
- const values = columnNames.map((col) => row[col] || '');
8871
+ const values = columnNames.map((col) => (typeof row[col] === 'number' ? row[col] : (row[col] || '')));
8872
8872
  return [...reduced, values];
8873
8873
  }, [columnNames]);
8874
8874
  return result;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.127.0",
3
+ "version": "1.128.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -43,5 +43,5 @@
43
43
  "lodash.times": "4.3.*",
44
44
  "mockdate": "3.0.*"
45
45
  },
46
- "gitHead": "bd46d2e9fad9376fcb6df37ca0fd6836ba8626ff"
46
+ "gitHead": "c7d644e87eae7ca85f2c43fad4b4179e36e8f792"
47
47
  }