convert-csv-to-json 4.11.0 → 4.13.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.
@@ -19,12 +19,14 @@ jobs:
19
19
  uses: actions/setup-node@v6
20
20
  with:
21
21
  node-version: ${{ matrix.node-version }}
22
- - name: npm install, lint, build, test, and docs
23
- run: |
24
- npm ci
25
- npm run lint
26
- npm test
27
- npm run docs:api
22
+ - name: Install dependencies
23
+ run: npm ci
24
+ - name: Lint source code
25
+ run: npm run lint
26
+ - name: Run tests
27
+ run: npm test
28
+ - name: Generate API docs
29
+ run: npm run docs:api
28
30
  env:
29
31
  CI: true
30
32
 
@@ -46,7 +48,39 @@ jobs:
46
48
  with:
47
49
  node-version: 24.x
48
50
  registry-url: 'https://registry.npmjs.org'
49
- - name: npm-semver-publish
50
- run: |
51
- npm ci
52
- npm run release
51
+ - name: Install dependencies
52
+ run: npm ci
53
+ - name: Run release script
54
+ run: npm run release
55
+
56
+ pages:
57
+ needs: release
58
+ if: github.ref == 'refs/heads/master'
59
+ name: deploy docs to GitHub Pages
60
+ environment:
61
+ name: github-pages
62
+ url: ${{ steps.deployment.outputs.page_url }}
63
+ runs-on: ubuntu-latest
64
+ permissions:
65
+ pages: write
66
+ id-token: write
67
+ contents: read
68
+ steps:
69
+ - uses: actions/checkout@v6
70
+ - name: Use Node.js 24.x
71
+ uses: actions/setup-node@v6
72
+ with:
73
+ node-version: 24.x
74
+ - name: Install dependencies
75
+ run: npm ci
76
+ - name: Generate API docs
77
+ run: npm run docs:api
78
+ - name: Configure GitHub Pages
79
+ uses: actions/configure-pages@v4
80
+ - name: Upload pages artifact
81
+ uses: actions/upload-pages-artifact@v3
82
+ with:
83
+ path: docs/api
84
+ - name: Deploy to GitHub Pages
85
+ uses: actions/deploy-pages@v4
86
+
@@ -2426,7 +2426,7 @@ console.log(rows);</code></pre>
2426
2426
  <br class="clear">
2427
2427
 
2428
2428
  <footer>
2429
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
2429
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
2430
2430
  </footer>
2431
2431
 
2432
2432
  <script> prettyPrint(); </script>
@@ -513,7 +513,7 @@ Occurs when file read or CSV parse fails</p>
513
513
  <br class="clear">
514
514
 
515
515
  <footer>
516
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
516
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
517
517
  </footer>
518
518
 
519
519
  <script> prettyPrint(); </script>
@@ -585,7 +585,7 @@ Occurs when quote character is used as delimiter while quoted fields are enabled
585
585
  <br class="clear">
586
586
 
587
587
  <footer>
588
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
588
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
589
589
  </footer>
590
590
 
591
591
  <script> prettyPrint(); </script>
@@ -521,7 +521,7 @@ Occurs when no valid header row is found in CSV</p>
521
521
  <br class="clear">
522
522
 
523
523
  <footer>
524
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
524
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
525
525
  </footer>
526
526
 
527
527
  <script> prettyPrint(); </script>
@@ -375,7 +375,7 @@ Provides consistent error formatting and context</p></div>
375
375
  <br class="clear">
376
376
 
377
377
  <footer>
378
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
378
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
379
379
  </footer>
380
380
 
381
381
  <script> prettyPrint(); </script>
@@ -3127,7 +3127,7 @@ When enabled, fields wrapped in double quotes can contain delimiters and newline
3127
3127
  <br class="clear">
3128
3128
 
3129
3129
  <footer>
3130
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
3130
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
3131
3131
  </footer>
3132
3132
 
3133
3133
  <script> prettyPrint(); </script>
@@ -2663,7 +2663,7 @@ console.log(data);</code></pre>
2663
2663
  <br class="clear">
2664
2664
 
2665
2665
  <footer>
2666
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
2666
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
2667
2667
  </footer>
2668
2668
 
2669
2669
  <script> prettyPrint(); </script>
@@ -261,7 +261,7 @@ Thrown when file read or write operations fail</p></div>
261
261
  <br class="clear">
262
262
 
263
263
  <footer>
264
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
264
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
265
265
  </footer>
266
266
 
267
267
  <script> prettyPrint(); </script>
@@ -1003,7 +1003,7 @@ Uses fs.promises when available, falls back to callback-based API</p>
1003
1003
  <br class="clear">
1004
1004
 
1005
1005
  <footer>
1006
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
1006
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
1007
1007
  </footer>
1008
1008
 
1009
1009
  <script> prettyPrint(); </script>
@@ -284,7 +284,7 @@ Thrown when function parameters don't meet expected type or value requirements</
284
284
  <br class="clear">
285
285
 
286
286
  <footer>
287
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
287
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
288
288
  </footer>
289
289
 
290
290
  <script> prettyPrint(); </script>
@@ -331,7 +331,7 @@
331
331
  <br class="clear">
332
332
 
333
333
  <footer>
334
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
334
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
335
335
  </footer>
336
336
 
337
337
  <script> prettyPrint(); </script>
@@ -238,7 +238,7 @@ Thrown when parsed CSV data cannot be converted to valid JSON</p></div>
238
238
  <br class="clear">
239
239
 
240
240
  <footer>
241
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
241
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
242
242
  </footer>
243
243
 
244
244
  <script> prettyPrint(); </script>
@@ -3306,7 +3306,7 @@ When inactive, only trims leading and trailing whitespace</p>
3306
3306
  <br class="clear">
3307
3307
 
3308
3308
  <footer>
3309
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
3309
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
3310
3310
  </footer>
3311
3311
 
3312
3312
  <script> prettyPrint(); </script>
@@ -317,7 +317,7 @@ async function processCSV() {
317
317
  <br class="clear">
318
318
 
319
319
  <footer>
320
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
320
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
321
321
  </footer>
322
322
 
323
323
  <script> prettyPrint(); </script>
@@ -332,7 +332,7 @@ exports.browser = require('./src/browserApi');
332
332
  <br class="clear">
333
333
 
334
334
  <footer>
335
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
335
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
336
336
  </footer>
337
337
 
338
338
  <script> prettyPrint(); </script>
@@ -262,7 +262,7 @@ module.exports = new BrowserApi();
262
262
  <br class="clear">
263
263
 
264
264
  <footer>
265
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
265
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
266
266
  </footer>
267
267
 
268
268
  <script> prettyPrint(); </script>
@@ -596,7 +596,7 @@ module.exports = new CsvToJson();
596
596
  <br class="clear">
597
597
 
598
598
  <footer>
599
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
599
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
600
600
  </footer>
601
601
 
602
602
  <script> prettyPrint(); </script>
@@ -235,7 +235,7 @@ module.exports = new CsvToJsonAsync();</code></pre>
235
235
  <br class="clear">
236
236
 
237
237
  <footer>
238
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
238
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
239
239
  </footer>
240
240
 
241
241
  <script> prettyPrint(); </script>
@@ -365,7 +365,7 @@ module.exports = {
365
365
  <br class="clear">
366
366
 
367
367
  <footer>
368
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
368
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
369
369
  </footer>
370
370
 
371
371
  <script> prettyPrint(); </script>
@@ -138,7 +138,7 @@ module.exports = new FileUtils();
138
138
  <br class="clear">
139
139
 
140
140
  <footer>
141
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
141
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
142
142
  </footer>
143
143
 
144
144
  <script> prettyPrint(); </script>
@@ -66,7 +66,7 @@ module.exports = new JsonUtil();</code></pre>
66
66
  <br class="clear">
67
67
 
68
68
  <footer>
69
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
69
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
70
70
  </footer>
71
71
 
72
72
  <script> prettyPrint(); </script>
@@ -203,7 +203,7 @@ module.exports = new StringUtils();
203
203
  <br class="clear">
204
204
 
205
205
  <footer>
206
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 15:59:19 GMT+0000 (Coordinated Universal Time)
206
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.5</a> on Fri Mar 20 2026 16:08:52 GMT+0000 (Coordinated Universal Time)
207
207
  </footer>
208
208
 
209
209
  <script> prettyPrint(); </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "convert-csv-to-json",
3
- "version": "4.11.0",
3
+ "version": "4.13.0",
4
4
  "description": "Convert CSV to JSON",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -1,39 +0,0 @@
1
- name: Node CI
2
-
3
- on: [push]
4
-
5
- jobs:
6
- pages:
7
- needs: release
8
- if: github.ref == 'refs/heads/master'
9
- name: deploy docs to GitHub Pages
10
- environment:
11
- name: github-pages
12
- url: ${{ steps.deployment.outputs.page_url }}
13
- runs-on: ubuntu-latest
14
- permissions:
15
- pages: write
16
- id-token: write
17
- contents: read
18
- steps:
19
- - uses: actions/checkout@v6
20
- - name: Use Node.js 24.x
21
- uses: actions/setup-node@v6
22
- with:
23
- node-version: 24.x
24
- - name: Install dependencies
25
- run: npm ci
26
- - name: Generate API docs
27
- run: npm run docs:api
28
- - name: Configure GitHub Pages
29
- uses: actions/configure-pages@v4
30
- - name: Upload pages artifact
31
- uses: actions/upload-pages-artifact@v3
32
- with:
33
- path: docs/api
34
- - name: Deploy to GitHub Pages
35
- uses: actions/deploy-pages@v4
36
- with:
37
- artifact_name: github-pages
38
-
39
-