mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
Bump csv-parse from 6.1.0 to 6.2.1 (#440)
* Bump csv-parse from 6.1.0 to 6.2.1 Bumps [csv-parse](https://github.com/adaltas/node-csv/tree/HEAD/packages/csv-parse) from 6.1.0 to 6.2.1. - [Changelog](https://github.com/adaltas/node-csv/blob/master/packages/csv-parse/CHANGELOG.md) - [Commits](https://github.com/adaltas/node-csv/commits/csv-parse@6.2.1/packages/csv-parse) --- updated-dependencies: - dependency-name: csv-parse dependency-version: 6.2.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Help Dependabot out: npm run build-dist --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Paulo F. Oliveira <paulo.ferraz.oliveira@gmail.com>
This commit is contained in:
Vendored
+9
-3
@@ -55811,8 +55811,8 @@ const normalize_columns_array = function (columns) {
|
|||||||
const column = columns[i];
|
const column = columns[i];
|
||||||
if (column === undefined || column === null || column === false) {
|
if (column === undefined || column === null || column === false) {
|
||||||
normalizedColumns[i] = { disabled: true };
|
normalizedColumns[i] = { disabled: true };
|
||||||
} else if (typeof column === "string") {
|
} else if (typeof column === "string" || typeof column === "number") {
|
||||||
normalizedColumns[i] = { name: column };
|
normalizedColumns[i] = { name: `${column}` };
|
||||||
} else if (is_object(column)) {
|
} else if (is_object(column)) {
|
||||||
if (typeof column.name !== "string") {
|
if (typeof column.name !== "string") {
|
||||||
throw new CsvError("CSV_OPTION_COLUMNS_MISSING_NAME", [
|
throw new CsvError("CSV_OPTION_COLUMNS_MISSING_NAME", [
|
||||||
@@ -56703,6 +56703,7 @@ const boms = {
|
|||||||
const transform = function (original_options = {}) {
|
const transform = function (original_options = {}) {
|
||||||
const info = {
|
const info = {
|
||||||
bytes: 0,
|
bytes: 0,
|
||||||
|
bytes_records: 0,
|
||||||
comment_lines: 0,
|
comment_lines: 0,
|
||||||
empty_lines: 0,
|
empty_lines: 0,
|
||||||
invalid_field_length: 0,
|
invalid_field_length: 0,
|
||||||
@@ -56980,7 +56981,7 @@ const transform = function (original_options = {}) {
|
|||||||
this.info.comment_lines++;
|
this.info.comment_lines++;
|
||||||
// Skip full comment line
|
// Skip full comment line
|
||||||
} else {
|
} else {
|
||||||
// Activate records emition if above from_line
|
// Activate records emission if above from_line
|
||||||
if (
|
if (
|
||||||
this.state.enabled === false &&
|
this.state.enabled === false &&
|
||||||
this.info.lines +
|
this.info.lines +
|
||||||
@@ -57378,6 +57379,7 @@ const transform = function (original_options = {}) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.info.bytes_records += this.info.bytes;
|
||||||
push(record);
|
push(record);
|
||||||
},
|
},
|
||||||
// Return a tuple with the error and the casted value
|
// Return a tuple with the error and the casted value
|
||||||
@@ -57565,6 +57567,7 @@ const transform = function (original_options = {}) {
|
|||||||
const { columns, raw, encoding } = this.options;
|
const { columns, raw, encoding } = this.options;
|
||||||
return {
|
return {
|
||||||
...this.__infoDataSet(),
|
...this.__infoDataSet(),
|
||||||
|
bytes_records: this.info.bytes,
|
||||||
error: this.state.error,
|
error: this.state.error,
|
||||||
header: columns === true,
|
header: columns === true,
|
||||||
index: this.state.record.length,
|
index: this.state.record.length,
|
||||||
@@ -57574,8 +57577,11 @@ const transform = function (original_options = {}) {
|
|||||||
__infoField: function () {
|
__infoField: function () {
|
||||||
const { columns } = this.options;
|
const { columns } = this.options;
|
||||||
const isColumns = Array.isArray(columns);
|
const isColumns = Array.isArray(columns);
|
||||||
|
// Bytes records are only incremented when all records'fields are parsed
|
||||||
|
const bytes_records = this.info.bytes_records;
|
||||||
return {
|
return {
|
||||||
...this.__infoRecord(),
|
...this.__infoRecord(),
|
||||||
|
bytes_records: bytes_records,
|
||||||
column:
|
column:
|
||||||
isColumns === true
|
isColumns === true
|
||||||
? columns.length > this.state.record.length
|
? columns.length > this.state.record.length
|
||||||
|
|||||||
Generated
+4
-4
@@ -10,7 +10,7 @@
|
|||||||
"@actions/core": "3.0.0",
|
"@actions/core": "3.0.0",
|
||||||
"@actions/exec": "3.0.0",
|
"@actions/exec": "3.0.0",
|
||||||
"@actions/tool-cache": "4.0.0",
|
"@actions/tool-cache": "4.0.0",
|
||||||
"csv-parse": "6.1.0",
|
"csv-parse": "6.2.1",
|
||||||
"lodash": "4.17.23",
|
"lodash": "4.17.23",
|
||||||
"semver": "7.7.4",
|
"semver": "7.7.4",
|
||||||
"toml": "3.0.0"
|
"toml": "3.0.0"
|
||||||
@@ -839,9 +839,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/csv-parse": {
|
"node_modules/csv-parse": {
|
||||||
"version": "6.1.0",
|
"version": "6.2.1",
|
||||||
"resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-6.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/csv-parse/-/csv-parse-6.2.1.tgz",
|
||||||
"integrity": "sha512-CEE+jwpgLn+MmtCpVcPtiCZpVtB6Z2OKPTr34pycYYoL7sxdOkXDdQ4lRiw6ioC0q6BLqhc6cKweCVvral8yhw==",
|
"integrity": "sha512-LRLMV+UCyfMokp8Wb411duBf1gaBKJfOfBWU9eHMJ+b+cJYZsNu3AFmjJf3+yPGd59Exz1TsMjaSFyxnYB9+IQ==",
|
||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/debug": {
|
"node_modules/debug": {
|
||||||
|
|||||||
+1
-1
@@ -20,7 +20,7 @@
|
|||||||
"@actions/core": "3.0.0",
|
"@actions/core": "3.0.0",
|
||||||
"@actions/exec": "3.0.0",
|
"@actions/exec": "3.0.0",
|
||||||
"@actions/tool-cache": "4.0.0",
|
"@actions/tool-cache": "4.0.0",
|
||||||
"csv-parse": "6.1.0",
|
"csv-parse": "6.2.1",
|
||||||
"lodash": "4.17.23",
|
"lodash": "4.17.23",
|
||||||
"semver": "7.7.4",
|
"semver": "7.7.4",
|
||||||
"toml": "3.0.0"
|
"toml": "3.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user