Bump csv-parse from 5.6.0 to 6.0.0 (#364)

* Bump csv-parse from 5.6.0 to 6.0.0

Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 5.6.0 to 6.0.0.
- [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md)
- [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@6.0.0/packages/csv-parse)

---
updated-dependencies:
- dependency-name: csv-parse
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Help Dependabot: push `npm run build-dist`'s results

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
This commit is contained in:
dependabot[bot]
2025-07-15 01:43:16 +01:00
committed by GitHub
parent 1df7f7a827
commit db4f13ce18
3 changed files with 21 additions and 14 deletions
+16 -9
View File
@@ -27526,7 +27526,7 @@ const normalize_options = function (opts) {
);
}
// Normalize option `columns`
options.cast_first_line_to_header = null;
options.cast_first_line_to_header = undefined;
if (options.columns === true) {
// Fields in the first line are converted as-is to columns
options.cast_first_line_to_header = undefined;
@@ -28954,10 +28954,14 @@ const transform = function (original_options = {}) {
if (skip_records_with_error) {
this.state.recordHasError = true;
if (this.options.on_skip !== undefined) {
this.options.on_skip(
err,
raw ? this.state.rawBuffer.toString(encoding) : undefined,
);
try {
this.options.on_skip(
err,
raw ? this.state.rawBuffer.toString(encoding) : undefined,
);
} catch (err) {
return err;
}
}
// this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
return undefined;
@@ -29011,10 +29015,13 @@ const parse = function (data, opts = {}) {
}
};
const close = () => {};
const err1 = parser.parse(data, false, push, close);
if (err1 !== undefined) throw err1;
const err2 = parser.parse(undefined, true, push, close);
if (err2 !== undefined) throw err2;
const error = parser.parse(data, true, push, close);
if (error !== undefined) throw error;
// 250606: `parser.parse` was implemented as 2 calls:
// const err1 = parser.parse(data, false, push, close);
// if (err1 !== undefined) throw err1;
// const err2 = parser.parse(undefined, true, push, close);
// if (err2 !== undefined) throw err2;
return records;
};