@opencxh/domain 1.300.0 → 1.302.0

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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * A CSV file as rows of cells: quoted cells (with the separator, a quote `""` or a line break
3
+ * inside) and `\r\n` handled. The separator is the one of `;`, `,` or tab that the first line
4
+ * has most of — a Dutch Excel writes `;`, a feed from abroad `,`.
5
+ */
6
+ export declare function parseCsv(text: string, separator?: string): string[][];
7
+ /**
8
+ * A text file's bytes as a string: UTF-8 when they are valid UTF-8 (a BOM dropped), else
9
+ * Windows-1252 — what a Dutch Excel saves "csv" in. By hand: the server runtime has no
10
+ * TextDecoder we can count on.
11
+ */
12
+ export declare function decodeText(bytes: Uint8Array): string;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.300.0",
3
+ "version": "1.302.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",