convert-csv-to-json 3.6.0 → 3.8.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.
@@ -14,7 +14,7 @@ jobs:
14
14
  steps:
15
15
  - uses: actions/checkout@v5
16
16
  - name: Use Node.js ${{ matrix.node-version }}
17
- uses: actions/setup-node@v4
17
+ uses: actions/setup-node@v5
18
18
  with:
19
19
  node-version: ${{ matrix.node-version }}
20
20
  - name: npm install, build, and test
@@ -39,7 +39,7 @@ jobs:
39
39
  - uses: fregante/setup-git-user@v2
40
40
  - run: git config --global user.name "dependabot"
41
41
  - name: Use Node.js 22.x
42
- uses: actions/setup-node@v4
42
+ uses: actions/setup-node@v5
43
43
  with:
44
44
  node-version: 22.x
45
45
  registry-url: 'https://registry.npmjs.org'
package/index.d.ts CHANGED
@@ -6,9 +6,17 @@ declare module 'convert-csv-to-json' {
6
6
  formatValueByType(active: boolean): this;
7
7
 
8
8
  /**
9
- *
9
+ * Removes any whitespaces in the header field
10
+ * @defaultValue `false`
11
+ */
12
+ trimHeaderFieldWhiteSpace(active: boolean): this;
13
+
14
+ /**
15
+ * Makes parser aware of quoted fields
16
+ * @defaultValue `false`
10
17
  */
11
18
  supportQuotedField(active: boolean): this;
19
+
12
20
  /**
13
21
  * Defines the field delimiter which will be used to split the fields
14
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "convert-csv-to-json",
3
- "version": "3.6.0",
3
+ "version": "3.8.0",
4
4
  "description": "Convert CSV to JSON",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",