@keen.io/data-export
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.2.3](https://github.com/keen/keen/compare/@keen.io/data-export@1.2.2...@keen.io/data-export@1.2.3) (2021-10-07) | ||
### Bug Fixes | ||
* 🐛 support null values in csv export ([b494890](https://github.com/keen/keen/commit/b494890768b8c3d0c43cc34e3a9a6503f178d81e)) | ||
## [1.2.2](https://github.com/keen/keen/compare/@keen.io/data-export@1.2.1...@keen.io/data-export@1.2.2) (2021-10-05) | ||
@@ -8,0 +19,0 @@ |
@@ -7,5 +7,10 @@ export var exportToCSV = function (data, columnDelimiter, lineDelimiter) { | ||
data.forEach(function (row) { | ||
result += row.join(columnDelimiter) + lineDelimiter; | ||
var transformedRow = row.map(function (item) { | ||
if (item === null) | ||
return 'null'; | ||
return item; | ||
}); | ||
result += transformedRow.join(columnDelimiter) + lineDelimiter; | ||
}); | ||
return result; | ||
}; |
{ | ||
"name": "@keen.io/data-export", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "Keen data export utilities", | ||
@@ -27,8 +27,8 @@ "author": "Keen.IO <team@keen.io> (https://keen.io/)", | ||
"@keen.io/charts-utils": "^1.13.0", | ||
"@keen.io/parser": "^2.8.99", | ||
"@keen.io/parser": "^2.8.100", | ||
"@keen.io/query": "^1.2.0" | ||
}, | ||
"devDependencies": { | ||
"@keen.io/charts": "^2.33.2", | ||
"@keen.io/widgets": "^2.16.10" | ||
"@keen.io/charts": "^2.33.3", | ||
"@keen.io/widgets": "^2.16.11" | ||
}, | ||
@@ -41,3 +41,3 @@ "bugs": { | ||
}, | ||
"gitHead": "db00f4363ce136a357593ea865c38f06c31745f2" | ||
"gitHead": "858dbaa6e6a92f1dc427f89b03e6008691c9957b" | ||
} |
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
34251
620
Updated@keen.io/parser@^2.8.100