csv-parse
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -204,7 +204,7 @@ // Generated by CoffeeScript 1.10.0 | ||
} | ||
if (!this.options.relax_column_count && line.length !== this.line_length) { | ||
if (line.length !== this.line_length && !this.options.relax_column_count && !(line.length === 1 && line[0] === '')) { | ||
if (this.options.columns != null) { | ||
this.emit('error', Error("Number of columns on line " + this.lines + " does not match header")); | ||
throw Error("Number of columns on line " + this.lines + " does not match header"); | ||
} else { | ||
this.emit('error', Error("Number of columns is inconsistent on line " + this.lines)); | ||
throw Error("Number of columns is inconsistent on line " + this.lines); | ||
} | ||
@@ -211,0 +211,0 @@ } |
{ | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"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
23477