diff --git a/dist/index.js b/dist/index.js index ebc143a..c5ff160 100644 --- a/dist/index.js +++ b/dist/index.js @@ -12464,7 +12464,7 @@ class Parser extends Transform { ], this.options, this.__context(), { record: record, }) - if(relax_column_count === true || + if(relax_column_count === true || (relax_column_count_less === true && recordLength < this.state.expectedRecordLength) || (relax_column_count_more === true && recordLength > this.state.expectedRecordLength) ){ this.info.invalid_field_length++ @@ -12494,7 +12494,7 @@ class Parser extends Transform { for(let i = 0, l = record.length; i < l; i++){ if(columns[i] === undefined || columns[i].disabled) continue // Turn duplicate columns into an array - if (columns_duplicates_to_array === true && obj[columns[i].name]) { + if (columns_duplicates_to_array === true && obj[columns[i].name] !== undefined) { if (Array.isArray(obj[columns[i].name])) { obj[columns[i].name] = obj[columns[i].name].concat(record[i]) } else { diff --git a/package.json b/package.json index 5b3a437..497b960 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@actions/core": "^1.2.7", "@actions/exec": "^1.0.4", "@actions/github": "^4.0.0", - "csv-parse": "^4.15.3", + "csv-parse": "^4.15.4", "semver": "^7.3.5", "tmp": "^0.2.1" }, diff --git a/yarn.lock b/yarn.lock index 279ff41..21f9f35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1236,10 +1236,10 @@ cssstyle@^2.2.0: dependencies: cssom "~0.3.6" -csv-parse@*, csv-parse@^4.15.3: - version "4.15.3" - resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-4.15.3.tgz#8a62759617a920c328cb31c351b05053b8f92b10" - integrity sha512-jlTqDvLdHnYMSr08ynNfk4IAUSJgJjTKy2U5CQBSu4cN9vQOJonLVZP4Qo4gKKrIgIQ5dr07UwOJdi+lRqT12w== +csv-parse@*, csv-parse@^4.15.4: + version "4.15.4" + resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-4.15.4.tgz#ad1ec62aaf71a642982dfcb81f1848184d691db5" + integrity sha512-OdBbFc0yZhOm17lSxqkirrHlFFVpKRT0wp4DAGoJelsP3LbGzV9LNr7XmM/lrr0uGkCtaqac9UhP8PDHXOAbMg== dashdash@^1.12.0: version "1.14.1"