csv-parse
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -79,3 +79,3 @@ // Generated by CoffeeScript 1.10.0 | ||
Parser = function(options) { | ||
var base, base1, base10, base11, base12, base13, base14, base15, base2, base3, base4, base5, base6, base7, base8, base9, k, v; | ||
var base, base1, base10, base11, base12, base13, base14, base15, base16, base2, base3, base4, base5, base6, base7, base8, base9, k, v; | ||
if (options == null) { | ||
@@ -139,2 +139,5 @@ options = {}; | ||
} | ||
if ((base16 = this.options).skip_lines_with_empty_values == null) { | ||
base16.skip_lines_with_empty_values = false; | ||
} | ||
this.lines = 0; | ||
@@ -199,2 +202,5 @@ this.count = 0; | ||
var field, i, j, len, lineAsColumns, rawBuf, row; | ||
if (this.options.skip_lines_with_empty_values && line.join('').trim() === '') { | ||
return; | ||
} | ||
row = null; | ||
@@ -230,2 +236,5 @@ if (this.options.columns === true) { | ||
field = line[i]; | ||
if (this.options.columns[i] === false) { | ||
continue; | ||
} | ||
lineAsColumns[this.options.columns[i]] = field; | ||
@@ -232,0 +241,0 @@ } |
{ | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"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
24289
605