Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fast-csv

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-csv - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

24

lib/parser/parser_stream.js

@@ -168,16 +168,20 @@ var extended = require("../extended"),

_parse: function _parseLine(data, hasMoreData, cb) {
var row, count, ret, rows, self = this;
var rows, self = this;
try {
data = this.parser(data, hasMoreData);
rows = data.rows;
if (!this._parsedHeaders) {
this.__processHeaders(rows, function (err) {
if (err) {
cb(err);
} else {
self.__processRows(rows, data, cb);
}
});
if (rows.length) {
if (!this._parsedHeaders) {
this.__processHeaders(rows, function (err) {
if (err) {
cb(err);
} else {
self.__processRows(rows, data, cb);
}
});
} else {
this.__processRows(rows, data, cb);
}
} else {
this.__processRows(rows, data, cb);
cb(null, data.line);
}

@@ -184,0 +188,0 @@ } catch (e) {

{
"name": "fast-csv",
"version": "0.5.0",
"version": "0.5.1",
"description": "CSV parser and writer",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc