Comparing version 4.5.3 to 4.5.4
@@ -5,3 +5,3 @@ # Change Log | ||
## [4.5.3](https://github.com/zemirco/json2csv/compare/v4.5.2...v4.5.3) (2019-09-09) | ||
## [4.5.4](https://github.com/zemirco/json2csv/compare/v4.5.3...v4.5.4) (2019-10-09) | ||
@@ -11,3 +11,3 @@ | ||
* Always error asynchronously from parseAsync method ([#417](https://github.com/zemirco/json2csv/issues/417)) ([32c43a2](https://github.com/zemirco/json2csv/commit/32c43a2)) | ||
* Ensure defaultValue is always applied in the case of nulls ([#427](https://github.com/zemirco/json2csv/issues/427)) ([0a01470](https://github.com/zemirco/json2csv/commit/0a01470)) | ||
@@ -14,0 +14,0 @@ |
'use strict'; | ||
function getProp(obj, path, defaultValue) { | ||
return obj[path] === undefined ? defaultValue : obj[path]; | ||
return (obj[path] === undefined || obj[path] === null) ? defaultValue : obj[path]; | ||
} | ||
@@ -6,0 +6,0 @@ |
{ | ||
"name": "json2csv", | ||
"version": "4.5.3", | ||
"version": "4.5.4", | ||
"description": "Convert JSON to CSV", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
436051