Comparing version 4.3.3 to 4.3.4
@@ -5,2 +5,12 @@ # Change Log | ||
<a name="4.3.4"></a> | ||
## [4.3.4](https://github.com/zemirco/json2csv/compare/v4.3.3...v4.3.4) (2019-02-11) | ||
### Bug Fixes | ||
* issue with fields.value function not receiving correct fields ([#353](https://github.com/zemirco/json2csv/issues/353)) ([851c02f](https://github.com/zemirco/json2csv/commit/851c02f)) | ||
<a name="4.3.3"></a> | ||
@@ -7,0 +17,0 @@ ## [4.3.3](https://github.com/zemirco/json2csv/compare/v4.3.2...v4.3.3) (2019-01-11) |
@@ -70,6 +70,7 @@ 'use strict'; | ||
if (typeof fieldInfo.value === 'function') { | ||
const label = fieldInfo.label || fieldInfo.value; | ||
const field = { label, default: defaultValue }; | ||
return { | ||
label: fieldInfo.label || fieldInfo.value, | ||
value: row => { | ||
const field = { label: this.label, default: defaultValue }; | ||
label, | ||
value(row) { | ||
const value = fieldInfo.value(row, field); | ||
@@ -76,0 +77,0 @@ return (value === null || value === undefined) |
{ | ||
"name": "json2csv", | ||
"version": "4.3.3", | ||
"version": "4.3.4", | ||
"description": "Convert JSON to CSV", | ||
@@ -51,3 +51,3 @@ "keywords": [ | ||
"coveralls": "^3.0.1", | ||
"docpress": "^0.7.4", | ||
"docpress": "~0.7.5", | ||
"eslint": "^5.0.1", | ||
@@ -54,0 +54,0 @@ "gh-pages": "^2.0.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
561406
13436