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

csv-parse

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-parse - npm Package Compare versions

Comparing version 2.2.0 to 2.3.0

6

CHANGELOG.md
# Changelog
## Version 2.3.0
cast: pass the header property
auto_parse: deprecated message on tests
cast: inject lines property
## Version 2.2.0

@@ -5,0 +11,0 @@

15

lib/es5/index.js

@@ -9,3 +9,3 @@ 'use strict';

// Generated by CoffeeScript 2.2.3
// Generated by CoffeeScript 2.2.4
// # CSV Parser

@@ -424,2 +424,5 @@

}
if (context.lines == null) {
context.lines = _this2.lines;
}
if (context.count == null) {

@@ -431,2 +434,6 @@ context.count = _this2.count;

}
// context.header ?= if @options.column and @lines is 1 and @count is 0 then true else false
if (context.header == null) {
context.header = _this2.options.columns === true;
}
if (context.column == null) {

@@ -660,2 +667,5 @@ context.column = Array.isArray(_this2.options.columns) ? _this2.options.columns[context.index] : context.index;

if (end) {
if (l === 0) {
this.lines++;
}
if (this._.field != null) {

@@ -673,5 +683,2 @@ if (rtrim) {

}
if (l === 0) {
this.lines++;
}
if (this._.line.length > this.options.max_limit_on_data_read) {

@@ -678,0 +685,0 @@ return Error('Row delimiter not found in the file ' + JSON.stringify(this.options.rowDelimiter));

'use strict';
// Generated by CoffeeScript 2.2.3
// Generated by CoffeeScript 2.2.4
// # CSV Parse Sync

@@ -5,0 +5,0 @@

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 2.2.3
// Generated by CoffeeScript 2.2.4
// # CSV Parser

@@ -400,2 +400,5 @@

}
if (context.lines == null) {
context.lines = this.lines;
}
if (context.count == null) {

@@ -407,2 +410,6 @@ context.count = this.count;

}
// context.header ?= if @options.column and @lines is 1 and @count is 0 then true else false
if (context.header == null) {
context.header = this.options.columns === true;
}
if (context.column == null) {

@@ -634,2 +641,5 @@ context.column = Array.isArray(this.options.columns) ? this.options.columns[context.index] : context.index;

if (end) {
if (l === 0) {
this.lines++;
}
if (this._.field != null) {

@@ -647,5 +657,2 @@ if (rtrim) {

}
if (l === 0) {
this.lines++;
}
if (this._.line.length > this.options.max_limit_on_data_read) {

@@ -652,0 +659,0 @@ return Error(`Row delimiter not found in the file ${JSON.stringify(this.options.rowDelimiter)}`);

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 2.2.3
// Generated by CoffeeScript 2.2.4
// # CSV Parse Sync

@@ -3,0 +3,0 @@

{
"version": "2.2.0",
"version": "2.3.0",
"name": "csv-parse",

@@ -37,7 +37,7 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API",

"babel-preset-es2015": "^6.24.1",
"coffeescript": "~2.2.3",
"coffeescript": "~2.3.0",
"csv-generate": "~2.0.2",
"csv-spectrum": "~1.0.0",
"each": "~1.0.0",
"mocha": "~5.0.5",
"each": "~1.2.0",
"mocha": "~5.1.1",
"should": "~13.2.1"

@@ -44,0 +44,0 @@ },

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