csv-parse
Advanced tools
Comparing version 1.2.2 to 1.2.3
# Changelog | ||
## v1.2.3 | ||
* sync: catch err on write | ||
## v1.2.2 | ||
@@ -5,0 +9,0 @@ |
@@ -9,3 +9,3 @@ // Generated by CoffeeScript 1.12.7 | ||
module.exports = function(data, options) { | ||
var decoder, parser, records; | ||
var decoder, err, parser, records; | ||
if (options == null) { | ||
@@ -27,5 +27,11 @@ options = {}; | ||
}; | ||
parser.__write(data, false); | ||
err = parser.__write(data, false); | ||
if (err) { | ||
throw err; | ||
} | ||
if (data instanceof Buffer) { | ||
parser.__write(data.end(), true); | ||
err = parser.__write(data.end(), true); | ||
if (err) { | ||
throw err; | ||
} | ||
} | ||
@@ -32,0 +38,0 @@ parser._flush((function() {})); |
{ | ||
"version": "1.2.2", | ||
"version": "1.2.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
33099
762