json-2-csv
Advanced tools
Comparing version 3.5.2 to 3.5.3
@@ -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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59559
1138