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
+12 -5
View File
@@ -27526,7 +27526,7 @@ const normalize_options = function (opts) {
); );
} }
// Normalize option `columns` // Normalize option `columns`
options.cast_first_line_to_header = null; options.cast_first_line_to_header = undefined;
if (options.columns === true) { if (options.columns === true) {
// Fields in the first line are converted as-is to columns // Fields in the first line are converted as-is to columns
options.cast_first_line_to_header = undefined; options.cast_first_line_to_header = undefined;
@@ -28954,10 +28954,14 @@ const transform = function (original_options = {}) {
if (skip_records_with_error) { if (skip_records_with_error) {
this.state.recordHasError = true; this.state.recordHasError = true;
if (this.options.on_skip !== undefined) { if (this.options.on_skip !== undefined) {
try {
this.options.on_skip( this.options.on_skip(
err, err,
raw ? this.state.rawBuffer.toString(encoding) : undefined, raw ? this.state.rawBuffer.toString(encoding) : undefined,
); );
} catch (err) {
return err;
}
} }
// this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined); // this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined);
return undefined; return undefined;
@@ -29011,10 +29015,13 @@ const parse = function (data, opts = {}) {
} }
}; };
const close = () => {}; const close = () => {};
const err1 = parser.parse(data, false, push, close); const error = parser.parse(data, true, push, close);
if (err1 !== undefined) throw err1; if (error !== undefined) throw error;
const err2 = parser.parse(undefined, true, push, close); // 250606: `parser.parse` was implemented as 2 calls:
if (err2 !== undefined) throw err2; // 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; return records;
}; };
+4 -4
View File
@@ -10,7 +10,7 @@
"@actions/core": "1.11.1", "@actions/core": "1.11.1",
"@actions/exec": "1.1.1", "@actions/exec": "1.1.1",
"@actions/tool-cache": "2.0.2", "@actions/tool-cache": "2.0.2",
"csv-parse": "5.6.0", "csv-parse": "6.0.0",
"lodash": "4.17.21", "lodash": "4.17.21",
"semver": "7.7.2" "semver": "7.7.2"
}, },
@@ -686,9 +686,9 @@
} }
}, },
"node_modules/csv-parse": { "node_modules/csv-parse": {
"version": "5.6.0", "version": "6.0.0",
"resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.6.0.tgz", "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-6.0.0.tgz",
"integrity": "sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==", "integrity": "sha512-6aB9WrymEruVDwQOwa5AuYk4/Gb+HaJgLHGKOA9BXTqgsIFvbdHzQzZOuqNCOooTGciPDaHzTlGkU5P6kYVUYw==",
"license": "MIT" "license": "MIT"
}, },
"node_modules/debug": { "node_modules/debug": {
+1 -1
View File
@@ -19,7 +19,7 @@
"@actions/core": "1.11.1", "@actions/core": "1.11.1",
"@actions/exec": "1.1.1", "@actions/exec": "1.1.1",
"@actions/tool-cache": "2.0.2", "@actions/tool-cache": "2.0.2",
"csv-parse": "5.6.0", "csv-parse": "6.0.0",
"semver": "7.7.2", "semver": "7.7.2",
"lodash": "4.17.21" "lodash": "4.17.21"
}, },