csv-parse
Advanced tools
Comparing version 4.6.1 to 4.6.2
@@ -11,2 +11,6 @@ | ||
## Version 4.6.2 | ||
* context: null column when columns number inferieur to record length | ||
## Version 4.6.1 | ||
@@ -13,0 +17,0 @@ |
@@ -1136,3 +1136,3 @@ "use strict"; | ||
return { | ||
column: isColumns === true ? columns[this.state.record.length].name : this.state.record.length, | ||
column: isColumns === true ? columns.length >= this.state.record.length ? columns[this.state.record.length].name : null : this.state.record.length, | ||
empty_lines: this.info.empty_lines, | ||
@@ -1139,0 +1139,0 @@ header: columns === true, |
@@ -894,3 +894,6 @@ | ||
column: isColumns === true ? | ||
columns[this.state.record.length].name : | ||
( columns.length >= this.state.record.length ? | ||
columns[this.state.record.length].name : | ||
null | ||
) : | ||
this.state.record.length, | ||
@@ -897,0 +900,0 @@ empty_lines: this.info.empty_lines, |
{ | ||
"version": "4.6.1", | ||
"version": "4.6.2", | ||
"name": "csv-parse", | ||
@@ -4,0 +4,0 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
121920
2532