Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
parser: remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Nov 13, 2018
1 parent 8c8132a commit 8a1fd16
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Expand Up @@ -6,7 +6,6 @@
This is a complete rewrite based with a Buffer implementation. There are no major breaking changes but it introduces multiple minor breaking changes:

* options `rowDelimiter` is now `record_delimiter`
* count is now info.records
* drop the record event
* normalise error message as `{error type}: {error description}`
* state values are now isolated into the `info` object
Expand All @@ -17,7 +16,7 @@ This is a complete rewrite based with a Buffer implementation. There are no majo
* `context.count` is cast function is now `context.records`
* drop support for deprecated options `auto_parse` and `auto_parse_date`
* drop emission of the `record` event
* in raw option, the `raw` property is renamed `record`
* in `raw` option, the `row` property is renamed `record`
* option `max_limit_on_data_read` is now `max_record_size`
* default value of `max_record_size` is now `0` (unlimited)
* remove the `record` event, use the `readable` event and `this.read()` instead
Expand Down
1 change: 0 additions & 1 deletion lib/index.js
Expand Up @@ -228,7 +228,6 @@ class Parser extends Transform {
}
if(this.state.wasRowDelimiter === true){
this.info.lines++
console.log(this.info.records, this.state.info.records)
if(info === true && this.state.record.length === 0 && this.state.field.length === 0 && this.state.wasQuoting === false){
this.state.info = Object.assign({}, this.info)
}
Expand Down
1 change: 1 addition & 0 deletions test/api.types.ts
@@ -1,4 +1,5 @@

import 'should'
import * as parse from '../lib/index'
import {CastingContext, Info, Options, Parser} from '../lib/index'

Expand Down

0 comments on commit 8a1fd16

Please sign in to comment.