tfose5-xlsx 3.2.1 → 3.2.3

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/README.md CHANGED
@@ -1 +1 @@
1
- # ![Version](https://img.shields.io/badge/version-3.2.1-green.svg)
1
+ # ![Version](https://img.shields.io/badge/version-3.2.3-green.svg)
@@ -89,13 +89,14 @@ function parseSheet(sheet, allOtherSheetRows) {
89
89
  fieldValue = ((_a = allOtherSheetRows[ext]) !== null && _a !== void 0 ? _a : []).filter(sr => {
90
90
  return cr[1] == sr.group;
91
91
  }).map(sr => {
92
- delete sr.group;
93
- delete sr.value;
94
- return sr;
92
+ const copy = structuredClone(sr);
93
+ delete copy.group;
94
+ delete copy.value;
95
+ return copy;
95
96
  });
96
97
  }
97
98
  else if (type == 'array') {
98
- fieldValue = cr[1].split('\r\n').map(sr => {
99
+ fieldValue = cr[1].toString().split('\r\n').map(sr => {
99
100
  return converterFactory.build(ext).convert(sr, ext);
100
101
  });
101
102
  }
package/package.json CHANGED
@@ -24,5 +24,5 @@
24
24
  "test": "mocha -t 30s -r ./node_modules/ts-node/register/index.js --exit",
25
25
  "version": "ts-node script version"
26
26
  },
27
- "version": "3.2.1"
27
+ "version": "3.2.3"
28
28
  }