typeshi 2.0.1 → 2.0.2

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.
@@ -151,7 +151,7 @@ function writeListsToCsvSync(listData, outputPath, delimiter = types_1.Delimiter
151
151
  function writeArrayToFileSync(arr, outputPath, separator = '\n', options = { encoding: 'utf-8', flag: 'w' }) {
152
152
  const source = (0, logging_1.getSourceString)(__filename, writeArrayToFileSync.name);
153
153
  try {
154
- const content = arr.map(el => JSON.stringify(el)).join(separator);
154
+ const content = arr.map(el => typeof el === 'string' ? el : JSON.stringify(el)).join(separator);
155
155
  fs.writeFileSync(outputPath, content, options);
156
156
  }
157
157
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typeshi",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "TypeScript utility modules",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",