@tryghost/mg-fs-utils 0.15.7 → 0.16.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.
Files changed (2) hide show
  1. package/lib/csv.js +2 -2
  2. package/package.json +2 -2
package/lib/csv.js CHANGED
@@ -10,7 +10,7 @@ import errors from '@tryghost/errors';
10
10
  * @param {String} filePath - name of file to write
11
11
  * @param {Object} options - optional options to pass to `csv-parse`
12
12
  */
13
- const parseCSV = (filePath, options = {skip_lines_with_error: true, columns: true, skip_empty_lines: true}) => {
13
+ const parseCSV = (filePath, options = {skip_lines_with_error: true, columns: true, skip_empty_lines: true, trim: true}) => {
14
14
  const parser = parse(options);
15
15
  const data = [];
16
16
  return new Promise((resolve, reject) => {
@@ -32,7 +32,7 @@ const parseCSV = (filePath, options = {skip_lines_with_error: true, columns: tru
32
32
  * @param {String} csvString - CSV as a string
33
33
  * @param {Object} options - optional options to pass to `csv-parse`
34
34
  */
35
- const parseString = (csvString, options = {skip_lines_with_error: true, columns: true, skip_empty_lines: true}) => {
35
+ const parseString = (csvString, options = {skip_lines_with_error: true, columns: true, skip_empty_lines: true, trim: true}) => {
36
36
  const data = parseSync(csvString, options);
37
37
 
38
38
  return data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/mg-fs-utils",
3
- "version": "0.15.7",
3
+ "version": "0.16.0",
4
4
  "repository": "https://github.com/TryGhost/migrate/tree/main/packages/mg-fs-utils",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -37,5 +37,5 @@
37
37
  "sharp": "0.34.3",
38
38
  "transliteration": "2.3.5"
39
39
  },
40
- "gitHead": "89e6e38587face966cdfadfbbc74aef95c594c7c"
40
+ "gitHead": "b13503b8e28d0605bf8ed5a815a4f8a07a7caa99"
41
41
  }