@vizabi/core
Advanced tools
Comparing version 1.26.0 to 1.26.1
@@ -1,2 +0,2 @@ | ||
// http://vizabi.org v1.26.0 Copyright 2022 Jasper Heeffer and others at Gapminder Foundation | ||
// http://vizabi.org v1.26.1 Copyright 2022 Jasper Heeffer and others at Gapminder Foundation | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('mobx')) : |
{ | ||
"name": "@vizabi/core", | ||
"version": "1.26.0", | ||
"version": "1.26.1", | ||
"description": "Vizabi core (data layer)", | ||
@@ -5,0 +5,0 @@ "main": "dist/Vizabi.js", |
@@ -52,2 +52,3 @@ import { inlineReader } from "./../inline/inline"; | ||
.then(parseTextToTable) | ||
.then(removeEmptyRows) | ||
.then(transformNameColumn) | ||
@@ -87,2 +88,9 @@ .then(transformTimeInColumns) | ||
//removes empty rows like these | ||
//'', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\n', '', '', '' | ||
function removeEmptyRows({rows, columns}){ | ||
rows = rows.filter(r => !Object.values(r).every(e => !e || e === "\n") ); | ||
return {rows, columns}; | ||
} | ||
function transformNameColumn({rows, columns}){ | ||
@@ -157,3 +165,3 @@ // move column "name" so it goes after "time" | ||
return jsonReader() | ||
return jsonReader(path) | ||
.catch(error => { | ||
@@ -160,0 +168,0 @@ error.name = ERRORS.FILE_NOT_FOUND; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1296388
13461