javascript-excel 2.0.0 → 2.2.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.
Files changed (51) hide show
  1. package/README.md +9 -1
  2. package/dist/{auto-width-DRHsPKNk.d.cts → auto-width-DZvQSucm.d.cts} +1 -1
  3. package/dist/{csv-pXfaputs.js → csv-CrWF7JS1.js} +57 -13
  4. package/dist/{csv-DyVH9y7S.cjs → csv-DzGOFyHs.cjs} +57 -13
  5. package/dist/csv.cjs +3 -1
  6. package/dist/csv.d.cts +23 -5
  7. package/dist/csv.d.ts +23 -5
  8. package/dist/csv.js +3 -1
  9. package/dist/dom.cjs +2 -0
  10. package/dist/dom.d.cts +4 -4
  11. package/dist/dom.d.ts +3 -3
  12. package/dist/dom.js +2 -1
  13. package/dist/format.d.cts +1 -1
  14. package/dist/format.d.ts +1 -1
  15. package/dist/import.cjs +3 -1
  16. package/dist/import.d.cts +3 -3
  17. package/dist/import.d.ts +3 -3
  18. package/dist/import.js +3 -1
  19. package/dist/index.cjs +3 -1
  20. package/dist/index.d.cts +6 -6
  21. package/dist/index.d.ts +5 -5
  22. package/dist/index.js +3 -2
  23. package/dist/{infer-D9EC9vJ-.cjs → infer-BniOucP6.cjs} +65 -0
  24. package/dist/{infer-BR-J9BZa.js → infer-DcUyZ1T-.js} +54 -1
  25. package/dist/{model-0JikLfuM.d.cts → model-BUNp7B0Z.d.cts} +6 -0
  26. package/dist/{model-0JikLfuM.d.ts → model-BUNp7B0Z.d.ts} +6 -0
  27. package/dist/{pipeline-BuG_nn_S.d.ts → pipeline-6PmlmH1-.d.ts} +5 -2
  28. package/dist/{pipeline-2dw9aehe.js → pipeline-BNhGRJcx.js} +6 -3
  29. package/dist/{pipeline-DM7n0aRI.d.cts → pipeline-C63qD7Ym.d.cts} +5 -2
  30. package/dist/{pipeline-DMskqxiU.cjs → pipeline-DLYtAkPU.cjs} +6 -3
  31. package/dist/{read-ClszMDAE.js → read-CFmZioBG.js} +547 -119
  32. package/dist/{read-ByceXfiL.cjs → read-D5Gz4ph8.cjs} +547 -119
  33. package/dist/read.cjs +3 -1
  34. package/dist/read.d.cts +69 -7
  35. package/dist/read.d.ts +69 -7
  36. package/dist/read.js +3 -1
  37. package/dist/render.d.cts +1 -1
  38. package/dist/render.d.ts +1 -1
  39. package/dist/warnings-BPz1Ia3s.js +42 -0
  40. package/dist/warnings-CJPiDqei.cjs +47 -0
  41. package/dist/warnings-DhonqJ7A.d.cts +79 -0
  42. package/dist/warnings-DhonqJ7A.d.ts +79 -0
  43. package/dist/worker.cjs +3 -3
  44. package/dist/worker.d.cts +4 -4
  45. package/dist/worker.d.ts +4 -4
  46. package/dist/worker.js +3 -3
  47. package/dist/{write-DM6ieuQY.d.ts → write-BaMv1Z7W.d.ts} +2 -2
  48. package/dist/{write-DtjfdIFm.d.cts → write-Izl2NG0Y.d.cts} +2 -2
  49. package/package.json +1 -1
  50. package/dist/warnings-B1v58nCZ.d.cts +0 -41
  51. package/dist/warnings-B1v58nCZ.d.ts +0 -41
@@ -1,41 +0,0 @@
1
- /**
2
- * Binary input and Blob types shared by the reader and the CSV entry.
3
- *
4
- * The package compiles without DOM types, so `Blob` cannot be named directly
5
- * in a published signature. `BlobType` resolves to the platform's own `Blob`
6
- * whenever the consumer's TypeScript setup declares one (lib "dom", or
7
- * @types/node), and to the structural `BlobLike` otherwise.
8
- */
9
- /** The members of `Blob` the library uses. */
10
- interface BlobLike {
11
- readonly size: number;
12
- readonly type: string;
13
- arrayBuffer(): Promise<ArrayBuffer>;
14
- }
15
- /** The platform `Blob` type when the consumer has one, else `BlobLike`. */
16
- type BlobType = typeof globalThis extends {
17
- Blob: {
18
- prototype: infer B;
19
- };
20
- } ? B : BlobLike;
21
- /** Bytes the library can read. A Node `Buffer` is a `Uint8Array`. */
22
- type BinaryInput = Uint8Array | ArrayBuffer | BlobType;
23
- /**
24
- * Warnings (docs/api.md §7.3).
25
- *
26
- * The reader and the CSV parser collect warnings for damage they can recover
27
- * from, instead of throwing. Each warning is plain data.
28
- */
29
- /** Every warning code the library reports. */
30
- type ExcelWarningCode = "UNSUPPORTED_PART" | "INVALID_STYLE_INDEX" | "INVALID_SHARED_STRING" | "CELL_OUT_OF_BOUNDS" | "INVALID_CELL_REF" | "DUPLICATE_CELL" | "INVALID_DATE_SERIAL" | "SHARED_FORMULA_UNRESOLVED" | "MISSING_PART" | "BROKEN_OPTIONAL_PART" | "HYPERLINK_RANGE_REDUCED" | "SPLIT_PANE_IGNORED" | "ROWS_TRUNCATED" | "COERCION_FAILED" | "NON_FINITE_NUMBER" | "HYPERLINK_DROPPED" | "CSV_UNTERMINATED_QUOTE" | "CSV_STRAY_QUOTE" | "CSV_FIELD_COUNT" | "CSV_INVALID_ENCODING" | "CSV_ROWS_TRUNCATED" | "WARNINGS_TRUNCATED";
31
- /** A recoverable problem found while reading or building. */
32
- interface ExcelWarning {
33
- code: ExcelWarningCode;
34
- message: string;
35
- /** Zip part, e.g. `'xl/worksheets/sheet2.xml'`. */
36
- part?: string | undefined;
37
- sheet?: string | undefined;
38
- /** Cell or range, e.g. `'B3'`. For CSV, the cell the record and field map to. */
39
- ref?: string | undefined;
40
- }
41
- export { BlobType as a, BlobLike as i, ExcelWarningCode as n, BinaryInput as r, ExcelWarning as t };
@@ -1,41 +0,0 @@
1
- /**
2
- * Binary input and Blob types shared by the reader and the CSV entry.
3
- *
4
- * The package compiles without DOM types, so `Blob` cannot be named directly
5
- * in a published signature. `BlobType` resolves to the platform's own `Blob`
6
- * whenever the consumer's TypeScript setup declares one (lib "dom", or
7
- * @types/node), and to the structural `BlobLike` otherwise.
8
- */
9
- /** The members of `Blob` the library uses. */
10
- interface BlobLike {
11
- readonly size: number;
12
- readonly type: string;
13
- arrayBuffer(): Promise<ArrayBuffer>;
14
- }
15
- /** The platform `Blob` type when the consumer has one, else `BlobLike`. */
16
- type BlobType = typeof globalThis extends {
17
- Blob: {
18
- prototype: infer B;
19
- };
20
- } ? B : BlobLike;
21
- /** Bytes the library can read. A Node `Buffer` is a `Uint8Array`. */
22
- type BinaryInput = Uint8Array | ArrayBuffer | BlobType;
23
- /**
24
- * Warnings (docs/api.md §7.3).
25
- *
26
- * The reader and the CSV parser collect warnings for damage they can recover
27
- * from, instead of throwing. Each warning is plain data.
28
- */
29
- /** Every warning code the library reports. */
30
- type ExcelWarningCode = "UNSUPPORTED_PART" | "INVALID_STYLE_INDEX" | "INVALID_SHARED_STRING" | "CELL_OUT_OF_BOUNDS" | "INVALID_CELL_REF" | "DUPLICATE_CELL" | "INVALID_DATE_SERIAL" | "SHARED_FORMULA_UNRESOLVED" | "MISSING_PART" | "BROKEN_OPTIONAL_PART" | "HYPERLINK_RANGE_REDUCED" | "SPLIT_PANE_IGNORED" | "ROWS_TRUNCATED" | "COERCION_FAILED" | "NON_FINITE_NUMBER" | "HYPERLINK_DROPPED" | "CSV_UNTERMINATED_QUOTE" | "CSV_STRAY_QUOTE" | "CSV_FIELD_COUNT" | "CSV_INVALID_ENCODING" | "CSV_ROWS_TRUNCATED" | "WARNINGS_TRUNCATED";
31
- /** A recoverable problem found while reading or building. */
32
- interface ExcelWarning {
33
- code: ExcelWarningCode;
34
- message: string;
35
- /** Zip part, e.g. `'xl/worksheets/sheet2.xml'`. */
36
- part?: string | undefined;
37
- sheet?: string | undefined;
38
- /** Cell or range, e.g. `'B3'`. For CSV, the cell the record and field map to. */
39
- ref?: string | undefined;
40
- }
41
- export { BlobType as a, BlobLike as i, ExcelWarningCode as n, BinaryInput as r, ExcelWarning as t };