mirror of
https://github.com/docker/build-push-action.git
synced 2025-04-23 07:06:37 +02:00
Merge pull request #345 from docker/dependabot/npm_and_yarn/csv-parse-4.15.4
Bump csv-parse from 4.15.3 to 4.15.4
This commit is contained in:
commit
c0c3e27be3
3 changed files with 7 additions and 7 deletions
4
dist/index.js
generated
vendored
4
dist/index.js
generated
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue