Socket
Socket
Sign inDemoInstall

@fast-csv/parse

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fast-csv/parse - npm Package Compare versions

Comparing version 4.3.3 to 4.3.6

3

build/src/parser/Parser.js

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

const Token_1 = require("./Token");
const EMPTY_ROW_REGEXP = /^\s*(?:''|"")?\s*(?:,\s*(?:''|"")?\s*)*$/;
class Parser {

@@ -70,3 +69,3 @@ constructor(parserOptions) {

}
if (this.parserOptions.ignoreEmpty && EMPTY_ROW_REGEXP.test(row.join(''))) {
if (this.parserOptions.ignoreEmpty && RowParser_1.RowParser.isEmptyRow(row)) {
return true;

@@ -73,0 +72,0 @@ }

@@ -5,2 +5,3 @@ import { Scanner } from './Scanner';

export declare class RowParser {
static isEmptyRow(row: RowArray): boolean;
private readonly parserOptions;

@@ -7,0 +8,0 @@ private readonly columnParser;

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

const Token_1 = require("./Token");
const EMPTY_STRING = '';
class RowParser {

@@ -12,2 +13,5 @@ constructor(parserOptions) {

}
static isEmptyRow(row) {
return row.join(EMPTY_STRING).replace(/\s+/g, EMPTY_STRING) === EMPTY_STRING;
}
parse(scanner) {

@@ -14,0 +18,0 @@ const { parserOptions } = this;

@@ -6,2 +6,13 @@ # Change Log

## [4.3.6](https://github.com/C2FO/fast-csv/compare/v4.3.5...v4.3.6) (2020-12-04)
### Bug Fixes
* Simplify empty row check by removing complex regex ([4bbd39f](https://github.com/C2FO/fast-csv/commit/4bbd39f26a8cd7382151ab4f5fb102234b2f829e))
## [4.3.3](https://github.com/C2FO/fast-csv/compare/v4.3.2...v4.3.3) (2020-10-30)

@@ -8,0 +19,0 @@

{
"name": "@fast-csv/parse",
"version": "4.3.3",
"version": "4.3.6",
"description": "fast-csv parsing package",

@@ -57,7 +57,7 @@ "keywords": [

"@types/lodash.uniq": "4.5.6",
"@types/sinon": "9.0.8",
"@types/sinon": "9.0.9",
"lodash.partition": "4.6.0",
"sinon": "9.2.1"
},
"gitHead": "096bb873b487f97f5289b6f6268910a956240b00"
"gitHead": "3dc859edb19924b315051e4c87d6273808a0de73"
}

Sorry, the diff of this file is not supported yet

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