Socket
Socket
Sign inDemoInstall

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 4.6.2 to 4.6.3

4

CHANGELOG.md

@@ -11,2 +11,6 @@

## Version 4.6.3
* lint: integrate eslint
## Version 4.6.2

@@ -13,0 +17,0 @@

13

lib/es5/index.js

@@ -472,3 +472,2 @@ "use strict";

escape = _this$options.escape,
from = _this$options.from,
from_line = _this$options.from_line,

@@ -490,4 +489,3 @@ info = _this$options.info,

rawBuffer = _this$state.rawBuffer,
escapeIsQuote = _this$state.escapeIsQuote,
trimChars = _this$state.trimChars;
escapeIsQuote = _this$state.escapeIsQuote;
var buf;

@@ -922,4 +920,2 @@

value: function __resetRow() {
var info = this.options.info;
if (this.options.raw === true) {

@@ -1042,4 +1038,3 @@ this.state.rawBuffer.reset();

comment = _this$options5.comment,
delimiter = _this$options5.delimiter,
escape = _this$options5.escape;
delimiter = _this$options5.delimiter;
var _this$state4 = this.state,

@@ -1181,3 +1176,3 @@ quoting = _this$state4.quoting,

while (record = this.read()) {
while ((record = this.read()) !== null) {
if (options === undefined || options.objname === undefined) {

@@ -1245,3 +1240,3 @@ records.push(record);

var underscore = function underscore(str) {
return str.replace(/([A-Z])/g, function (_, match, index) {
return str.replace(/([A-Z])/g, function (_, match) {
return '_' + match.toLowerCase();

@@ -1248,0 +1243,0 @@ });

@@ -357,5 +357,5 @@

__parse(nextBuf, end){
const {bom, comment, escape, from, from_line, info, ltrim, max_record_size, quote, raw, relax, rtrim, skip_empty_lines, to, to_line} = this.options
const {bom, comment, escape, from_line, info, ltrim, max_record_size, quote, raw, relax, rtrim, skip_empty_lines, to, to_line} = this.options
let {record_delimiter} = this.options
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote, trimChars} = this.state
const {bomSkipped, previousBuf, rawBuffer, escapeIsQuote} = this.state
let buf

@@ -734,3 +734,2 @@ if(previousBuf === undefined){

__resetRow(){
const {info} = this.options
if(this.options.raw === true){

@@ -815,3 +814,3 @@ this.state.rawBuffer.reset()

}
const {comment, delimiter, escape} = this.options
const {comment, delimiter} = this.options
const {quoting, recordDelimiterMaxLength} = this.state

@@ -933,3 +932,3 @@ const numOfCharLeft = bufLen - i - 1

let record
while(record = this.read()){
while((record = this.read()) !== null){
if(options === undefined || options.objname === undefined){

@@ -978,3 +977,3 @@ records.push(record)

const underscore = function(str){
return str.replace(/([A-Z])/g, function(_, match, index){
return str.replace(/([A-Z])/g, function(_, match){
return '_' + match.toLowerCase()

@@ -981,0 +980,0 @@ })

{
"version": "4.6.2",
"version": "4.6.3",
"name": "csv-parse",

@@ -60,2 +60,3 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API",

"each": "^1.2.1",
"eslint": "^6.5.1",
"mocha": "^6.2.0",

@@ -80,3 +81,4 @@ "should": "^13.2.3",

"pretest": "cd lib && babel *.js -d es5 && cd ..",
"test": "TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\":true}' mocha test/**/*.{coffee,ts}"
"lint": "eslint lib/*.js",
"test": "npm run lint && TS_NODE_COMPILER_OPTIONS='{\"strictNullChecks\":true}' mocha test/**/*.{coffee,ts}"
},

@@ -83,0 +85,0 @@ "types": [

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