@cosmotech/core 1.5.0-dev → 1.5.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -646,7 +646,11 @@ __export(CSV);
646
646
  // Copyright (c) Cosmo Tech.
647
647
 
648
648
  var read = function read(dataStr) {
649
- return dist.parse(dataStr);
649
+ return dist.parse(dataStr).map(function (row) {
650
+ return row.map(function (cell) {
651
+ return cell.trim();
652
+ });
653
+ });
650
654
  };
651
655
 
652
656
  var write = function write(dataArray) {
package/dist/index.esm.js CHANGED
@@ -638,7 +638,11 @@ __export(CSV);
638
638
  // Copyright (c) Cosmo Tech.
639
639
 
640
640
  var read = function read(dataStr) {
641
- return dist.parse(dataStr);
641
+ return dist.parse(dataStr).map(function (row) {
642
+ return row.map(function (cell) {
643
+ return cell.trim();
644
+ });
645
+ });
642
646
  };
643
647
 
644
648
  var write = function write(dataArray) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cosmotech/core",
3
3
  "private": false,
4
- "version": "1.5.0-dev",
4
+ "version": "1.5.0-dev.1",
5
5
  "description": "",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.esm.js",