diff --git a/dist/index.js b/dist/index.js index 35a6d52cb..0ff34cf9f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5490,7 +5490,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++ @@ -5520,7 +5520,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 948f5f594..d32302342 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "dependencies": { "@actions/core": "^1.2.7", "@actions/github": "^4.0.0", - "csv-parse": "^4.15.3", + "csv-parse": "^4.15.4", "handlebars": "^4.7.7", "moment": "^2.29.1", "semver": "^7.3.5" diff --git a/yarn.lock b/yarn.lock index 5a40109c8..63dd24353 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1176,10 +1176,10 @@ cssstyle@^2.2.0: dependencies: cssom "~0.3.6" -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@^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"