csv-parse
Advanced tools
Comparing version 1.1.3 to 1.1.4
@@ -161,3 +161,3 @@ // Generated by CoffeeScript 1.10.0 | ||
Parser.prototype._transform = function(chunk, encoding, callback) { | ||
var err; | ||
var err, error; | ||
if (chunk instanceof Buffer) { | ||
@@ -176,3 +176,3 @@ chunk = this.decoder.write(chunk); | ||
Parser.prototype._flush = function(callback) { | ||
var err; | ||
var err, error; | ||
try { | ||
@@ -294,3 +294,7 @@ this.__write(this.decoder.end(), true); | ||
char = this.nextChar ? this.nextChar : chars.charAt(i); | ||
this.nextChar = chars.charAt(i + 1); | ||
if (l > i + 1) { | ||
this.nextChar = chars.charAt(i + 1); | ||
} else { | ||
this.nextChar = ""; | ||
} | ||
if (this.options.rowDelimiter == null) { | ||
@@ -297,0 +301,0 @@ if ((!this.quoting) && (char === '\n' || char === '\r')) { |
{ | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"name": "csv-parse", | ||
@@ -37,8 +37,8 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API", | ||
"devDependencies": { | ||
"each": "0.5.2", | ||
"each": "0.6.1", | ||
"coffee-script": "1.10.0", | ||
"csv-generate": "1.0.0", | ||
"csv-spectrum": "0.3.0", | ||
"mocha": "2.3.3", | ||
"should": "7.1.0" | ||
"csv-spectrum": "1.0.0", | ||
"mocha": "2.5.3", | ||
"should": "9.0.2" | ||
}, | ||
@@ -45,0 +45,0 @@ "optionalDependencies": {}, |
23559
579