dce-reactkit 3.2.2-beta.31 → 3.2.2-beta.32
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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/helpers/genCSV.ts +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -2208,12 +2208,12 @@ const roundToNumDecimals = (num, numDecimals) => {
|
|
|
2208
2208
|
* @returns escaped cell text
|
|
2209
2209
|
*/
|
|
2210
2210
|
const escapeCellText = (text) => {
|
|
2211
|
-
if (!text.includes(',')) {
|
|
2211
|
+
if (!String(text).includes(',')) {
|
|
2212
2212
|
// No need to escape
|
|
2213
|
-
return text;
|
|
2213
|
+
return String(text);
|
|
2214
2214
|
}
|
|
2215
2215
|
// Perform escape
|
|
2216
|
-
return `"${text.replace(/"/g, '""')}`;
|
|
2216
|
+
return `"${String(text).replace(/"/g, '""')}`;
|
|
2217
2217
|
};
|
|
2218
2218
|
/**
|
|
2219
2219
|
* Generate a CSV file
|