Socket
Socket
Sign inDemoInstall

json-2-csv

Package Overview
Dependencies
Maintainers
1
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-2-csv - npm Package Compare versions

Comparing version 3.5.2 to 3.5.3

2

package.json

@@ -8,3 +8,3 @@ {

"description": "A JSON to CSV and CSV to JSON converter that natively supports sub-documents and auto-generates the CSV heading.",
"version": "3.5.2",
"version": "3.5.3",
"repository": {

@@ -11,0 +11,0 @@ "type": "git",

@@ -128,3 +128,6 @@ 'use strict';

stateVariables.insideWrapDelimiter = charAfter === options.delimiter.wrap;
} else if (nextNChar === options.delimiter.eol && !stateVariables.insideWrapDelimiter || index === lastCharacterIndex) {
} else if (index === lastCharacterIndex || nextNChar === options.delimiter.eol &&
// if we aren't inside wrap delimiters or if we are but the character before was a wrap delimiter and we didn't just see two
(!stateVariables.insideWrapDelimiter ||
stateVariables.insideWrapDelimiter && charBefore === options.delimiter.wrap && !stateVariables.justParsedDoubleQuote)) {
// Otherwise if we reached the end of the line or csv (and current character is not a field delimiter)

@@ -165,2 +168,3 @@

!stateVariables.insideWrapDelimiter && !stateVariables.parsingValue) {
// If we reached a wrap delimiter after a comma and we aren't inside a wrap delimiter

@@ -167,0 +171,0 @@ stateVariables.startIndex = index;

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