neiam /action-setup-beam
action-setup-beam
public · Issues · Pulls · Labels · Forks · Compare · Actions queued
⭐
Log in to mark this repository.
Bump csv-parse from 5.6.0 to 6.0.0 (#364)
db4f13c · dependabot[bot] · 2025-07-15 00:43
Message
{commit_body(@commit)}
Files changed
modified
dist/index.js
+16
−9
@@ -27526,7 +27526,7 @@ const normalize_options = function (opts) {
| 27526 | 27526 | ); |
| 27527 | 27527 | } |
| 27528 | 27528 | // Normalize option `columns` |
| 27529 | − options.cast_first_line_to_header = null; | |
| 27529 | + options.cast_first_line_to_header = undefined; | |
| 27530 | 27530 | if (options.columns === true) { |
| 27531 | 27531 | // Fields in the first line are converted as-is to columns |
| 27532 | 27532 | options.cast_first_line_to_header = undefined; |
@@ -28954,10 +28954,14 @@ const transform = function (original_options = {}) {
| 28954 | 28954 | if (skip_records_with_error) { |
| 28955 | 28955 | this.state.recordHasError = true; |
| 28956 | 28956 | if (this.options.on_skip !== undefined) { |
| 28957 | − this.options.on_skip( | |
| 28958 | − err, | |
| 28959 | − raw ? this.state.rawBuffer.toString(encoding) : undefined, | |
| 28960 | − ); | |
| 28957 | + try { | |
| 28958 | + this.options.on_skip( | |
| 28959 | + err, | |
| 28960 | + raw ? this.state.rawBuffer.toString(encoding) : undefined, | |
| 28961 | + ); | |
| 28962 | + } catch (err) { | |
| 28963 | + return err; | |
| 28964 | + } | |
| 28961 | 28965 | } |
| 28962 | 28966 | // this.emit('skip', err, raw ? this.state.rawBuffer.toString(encoding) : undefined); |
| 28963 | 28967 | return undefined; |
@@ -29011,10 +29015,13 @@ const parse = function (data, opts = {}) {
| 29011 | 29015 | } |
| 29012 | 29016 | }; |
| 29013 | 29017 | const close = () => {}; |
| 29014 | − const err1 = parser.parse(data, false, push, close); | |
| 29015 | − if (err1 !== undefined) throw err1; | |
| 29016 | − const err2 = parser.parse(undefined, true, push, close); | |
| 29017 | − if (err2 !== undefined) throw err2; | |
| 29018 | + const error = parser.parse(data, true, push, close); | |
| 29019 | + if (error !== undefined) throw error; | |
| 29020 | + // 250606: `parser.parse` was implemented as 2 calls: | |
| 29021 | + // const err1 = parser.parse(data, false, push, close); | |
| 29022 | + // if (err1 !== undefined) throw err1; | |
| 29023 | + // const err2 = parser.parse(undefined, true, push, close); | |
| 29024 | + // if (err2 !== undefined) throw err2; | |
| 29018 | 29025 | return records; |
| 29019 | 29026 | }; |
| 29020 | 29027 |
modified
package-lock.json
+4
−4
@@ -10,7 +10,7 @@
| 10 | 10 | "@actions/core": "1.11.1", |
| 11 | 11 | "@actions/exec": "1.1.1", |
| 12 | 12 | "@actions/tool-cache": "2.0.2", |
| 13 | − "csv-parse": "5.6.0", | |
| 13 | + "csv-parse": "6.0.0", | |
| 14 | 14 | "lodash": "4.17.21", |
| 15 | 15 | "semver": "7.7.2" |
| 16 | 16 | }, |
@@ -686,9 +686,9 @@
| 686 | 686 | } |
| 687 | 687 | }, |
| 688 | 688 | "node_modules/csv-parse": { |
| 689 | − "version": "5.6.0", | |
| 690 | − "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-5.6.0.tgz", | |
| 691 | − "integrity": "sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==", | |
| 689 | + "version": "6.0.0", | |
| 690 | + "resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-6.0.0.tgz", | |
| 691 | + "integrity": "sha512-6aB9WrymEruVDwQOwa5AuYk4/Gb+HaJgLHGKOA9BXTqgsIFvbdHzQzZOuqNCOooTGciPDaHzTlGkU5P6kYVUYw==", | |
| 692 | 692 | "license": "MIT" |
| 693 | 693 | }, |
| 694 | 694 | "node_modules/debug": { |
modified
package.json
+1
−1
@@ -19,7 +19,7 @@
| 19 | 19 | "@actions/core": "1.11.1", |
| 20 | 20 | "@actions/exec": "1.1.1", |
| 21 | 21 | "@actions/tool-cache": "2.0.2", |
| 22 | − "csv-parse": "5.6.0", | |
| 22 | + "csv-parse": "6.0.0", | |
| 23 | 23 | "semver": "7.7.2", |
| 24 | 24 | "lodash": "4.17.21" |
| 25 | 25 | }, |
Parents: 1df7f7a