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.0.0 to 2.0.2

23

CHANGELOG.md
# Changelog
## Version 2.0.2
package: only remove js files in lib
source: remove unreferenced variables #179
package: start running tests in preversion
package: new release workflow
## 2.0.0
This major version use CoffeeScript 2 which produces a modern JavaScript syntax
(ES6, or ES2015 and later) and break the compatibility with versions of Node.js
lower than 7.6 as well as the browsers. It is however stable in term of API.
* package: use CoffeeScript 2
## v1.3.3
* package: revert to CoffeeScript 1
## v1.3.2
Irrelevant release, forgot to generate the coffee files.
## v1.3.1

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

1

lib/index.d.ts

@@ -13,2 +13,3 @@ // Type definitions for csv-parse 1.1

declare function parse(input: string, options?: parse.Options, callback?: parse.Callback): any;
declare function parse(input: string, callback?: parse.Callback): any;
declare function parse(options?: parse.Options, callback?: parse.Callback): any;

@@ -15,0 +16,0 @@ declare function parse(callback?: parse.Callback): any;

7

lib/index.js

@@ -279,3 +279,3 @@ // Generated by CoffeeScript 2.0.1

Parser.prototype.__push = function(line) {
var call_column_udf, columns, err, field, i, j, len, lineAsColumns, rawBuf, row;
var call_column_udf, columns, err, field, i, j, len, lineAsColumns, row;
if (this.options.skip_lines_with_empty_values && line.join('').trim() === '') {

@@ -287,3 +287,2 @@ return;

this.options.columns = line;
rawBuf = '';
return;

@@ -306,3 +305,2 @@ } else if (typeof this.options.columns === 'function') {

this.options.columns = columns;
rawBuf = '';
return;

@@ -440,5 +438,2 @@ }

nextCharPos += 2;
if (this.raw) {
rawBuf += this._.nextChar;
}
}

@@ -445,0 +440,0 @@ if (rowDelimiter) {

{
"version": "2.0.0",
"version": "2.0.2",
"name": "csv-parse",

@@ -46,6 +46,12 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API",

"scripts": {
"preversion": "rm -rf lib/*.js && npm test && grep '## Trunk' CHANGELOG.md",
"version": "version=`grep '^ \"version\": ' package.json | sed 's/.*\"\\([0-9\\.]*\\)\".*/\\1/'` && sed -i \"s/## Trunk/## Version $version/\" CHANGELOG.md && git add CHANGELOG.md",
"postversion": "git push && git push --tags && npm publish",
"patch": "npm version patch -m 'Bump to version %s'",
"minor": "npm version minor -m 'Bump to version %s'",
"major": "npm version major -m 'Bump to version %s'",
"coffee": "./node_modules/.bin/coffee -b -o lib src",
"pretest": "./node_modules/.bin/coffee -b -o lib src",
"test": "NODE_ENV=test ./node_modules/.bin/mocha test/**/*.coffee"
"test": "./node_modules/.bin/mocha test/**/*.coffee"
}
}
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