From 94641ff1bb3ca05cf9453545fdf8f25cb7a44147 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Apr 2021 10:49:42 +0200 Subject: [PATCH] Bump csv-parse from 4.15.3 to 4.15.4 (#65) * Bump csv-parse from 4.15.3 to 4.15.4 Bumps [csv-parse](https://github.com/wdavidw/node-csv-parse) from 4.15.3 to 4.15.4. - [Release notes](https://github.com/wdavidw/node-csv-parse/releases) - [Changelog](https://github.com/adaltas/node-csv-parse/blob/master/CHANGELOG.md) - [Commits](https://github.com/wdavidw/node-csv-parse/compare/v4.15.3...v4.15.4) Signed-off-by: dependabot[bot] * Update generated content Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CrazyMax Co-authored-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- dist/index.js | 4 ++-- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/index.js b/dist/index.js index 35a6d52..0ff34cf 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 948f5f5..d323023 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 5a40109..63dd243 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"