mirror of
https://github.com/docker/build-push-action.git
synced 2024-11-23 11:29:02 +00:00
Update generated content
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
6b88c3e647
commit
35ab0dd217
9
dist/index.js
generated
vendored
9
dist/index.js
generated
vendored
@ -12406,7 +12406,6 @@ class Parser extends Transform {
|
|||||||
}
|
}
|
||||||
if(recordLength !== this.state.expectedRecordLength){
|
if(recordLength !== this.state.expectedRecordLength){
|
||||||
const err = columns === false ?
|
const err = columns === false ?
|
||||||
this.__error(
|
|
||||||
// Todo: rename CSV_INCONSISTENT_RECORD_LENGTH to
|
// Todo: rename CSV_INCONSISTENT_RECORD_LENGTH to
|
||||||
// CSV_RECORD_INCONSISTENT_FIELDS_LENGTH
|
// CSV_RECORD_INCONSISTENT_FIELDS_LENGTH
|
||||||
new CsvError('CSV_INCONSISTENT_RECORD_LENGTH', [
|
new CsvError('CSV_INCONSISTENT_RECORD_LENGTH', [
|
||||||
@ -12416,9 +12415,7 @@ class Parser extends Transform {
|
|||||||
], this.options, this.__context(), {
|
], this.options, this.__context(), {
|
||||||
record: record,
|
record: record,
|
||||||
})
|
})
|
||||||
)
|
|
||||||
:
|
:
|
||||||
this.__error(
|
|
||||||
// Todo: rename CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH to
|
// Todo: rename CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH to
|
||||||
// CSV_RECORD_INCONSISTENT_COLUMNS
|
// CSV_RECORD_INCONSISTENT_COLUMNS
|
||||||
new CsvError('CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH', [
|
new CsvError('CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH', [
|
||||||
@ -12428,15 +12425,15 @@ class Parser extends Transform {
|
|||||||
], this.options, this.__context(), {
|
], this.options, this.__context(), {
|
||||||
record: record,
|
record: record,
|
||||||
})
|
})
|
||||||
)
|
|
||||||
if(relax_column_count === true ||
|
if(relax_column_count === true ||
|
||||||
(relax_column_count_less === true && recordLength < this.state.expectedRecordLength) ||
|
(relax_column_count_less === true && recordLength < this.state.expectedRecordLength) ||
|
||||||
(relax_column_count_more === true && recordLength > this.state.expectedRecordLength) ){
|
(relax_column_count_more === true && recordLength > this.state.expectedRecordLength) ){
|
||||||
this.info.invalid_field_length++
|
this.info.invalid_field_length++
|
||||||
this.state.error = err
|
this.state.error = err
|
||||||
// Error is undefined with skip_lines_with_error
|
// Error is undefined with skip_lines_with_error
|
||||||
}else if(err !== undefined){
|
}else{
|
||||||
return err
|
const finalErr = this.__error(err)
|
||||||
|
if(finalErr) return finalErr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(skip_lines_with_empty_values === true){
|
if(skip_lines_with_empty_values === true){
|
||||||
|
Loading…
Reference in New Issue
Block a user