javascript-excel 2.2.0 → 2.3.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.
- package/README.md +4 -2
- package/dist/{csv-CrWF7JS1.js → csv-Bck8eW_D.js} +29 -7
- package/dist/{csv-DzGOFyHs.cjs → csv-f4P3fGs-.cjs} +34 -6
- package/dist/csv.cjs +1 -1
- package/dist/csv.d.cts +8 -0
- package/dist/csv.d.ts +8 -0
- package/dist/csv.js +1 -1
- package/dist/import.cjs +1 -1
- package/dist/import.d.cts +2 -2
- package/dist/import.d.ts +2 -2
- package/dist/import.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{pipeline-BNhGRJcx.js → pipeline-2dgQM9E9.js} +267 -134
- package/dist/{pipeline-6PmlmH1-.d.ts → pipeline-Bh7FUyzW.d.ts} +40 -6
- package/dist/{pipeline-C63qD7Ym.d.cts → pipeline-D1eAhqJu.d.cts} +40 -6
- package/dist/{pipeline-DLYtAkPU.cjs → pipeline-LCTU0Eg_.cjs} +267 -134
- package/dist/{read-D5Gz4ph8.cjs → read-BYI7EVMo.cjs} +236 -52
- package/dist/{read-CFmZioBG.js → read-BnXzPjGc.js} +225 -53
- package/dist/read.cjs +1 -1
- package/dist/read.d.cts +20 -2
- package/dist/read.d.ts +20 -2
- package/dist/read.js +1 -1
- package/dist/worker.cjs +3 -3
- package/dist/worker.d.cts +1 -1
- package/dist/worker.d.ts +1 -1
- package/dist/worker.js +3 -3
- package/package.json +1 -1
package/dist/read.d.cts
CHANGED
|
@@ -77,8 +77,9 @@ export interface ReadLimits {
|
|
|
77
77
|
/**
|
|
78
78
|
* Characters (UTF-16 code units, as `string.length` counts them) in one XML
|
|
79
79
|
* tag with its attributes, comment, CDATA section or processing instruction.
|
|
80
|
-
* Checked while the token is read, so it is never buffered past this.
|
|
81
|
-
*
|
|
80
|
+
* Checked while the token is read, so it is never buffered past this. It does
|
|
81
|
+
* not limit text between tags: cell values, shared and inline strings and
|
|
82
|
+
* formulas are text, and `maxCellTextLength` limits those. On a `LimitError`,
|
|
82
83
|
* `details.value` is `max + 1` ("more than max"): the token's full length is
|
|
83
84
|
* not read. Default 16 Mi (`DEFAULT_READ_LIMITS`).
|
|
84
85
|
*
|
|
@@ -119,6 +120,23 @@ export interface ReadLimits {
|
|
|
119
120
|
*/
|
|
120
121
|
maxItems?: number;
|
|
121
122
|
maxSharedStrings: number;
|
|
123
|
+
/**
|
|
124
|
+
* Characters (UTF-16 code units) of one cell's text, as the cell will hold
|
|
125
|
+
* it (entities and `_xHHHH_` escapes decoded, rich-text runs together): a
|
|
126
|
+
* shared string, an inline string, the text of a `<v>` and of a formula
|
|
127
|
+
* (added in 2.3). Counted while the text streams in, so a longer one is
|
|
128
|
+
* refused before it is held whole. Default 1,048,576 (1 Mi,
|
|
129
|
+
* `DEFAULT_READ_LIMITS`), 32 times Excel's own limit of 32,767 characters
|
|
130
|
+
* per cell. On a `LimitError`, `details.value` is `max + 1` ("more than
|
|
131
|
+
* max"), `details.part` names the part and, for a sheet cell, `details.ref`
|
|
132
|
+
* the cell. The same limit bounds header and footer text, defined-name
|
|
133
|
+
* formulas and document property values, counted as written;
|
|
134
|
+
* `readSheetNames` applies it to defined names.
|
|
135
|
+
*
|
|
136
|
+
* Optional only so that a complete `ReadLimits` object written for 2.0 to
|
|
137
|
+
* 2.2 still compiles; when it is left out the default applies.
|
|
138
|
+
*/
|
|
139
|
+
maxCellTextLength?: number;
|
|
122
140
|
/**
|
|
123
141
|
* Warnings kept before the cap applies. Past it, informational warnings are dropped and
|
|
124
142
|
* counted in one `WARNINGS_TRUNCATED` (added where the first one is dropped); data-loss
|
package/dist/read.d.ts
CHANGED
|
@@ -77,8 +77,9 @@ export interface ReadLimits {
|
|
|
77
77
|
/**
|
|
78
78
|
* Characters (UTF-16 code units, as `string.length` counts them) in one XML
|
|
79
79
|
* tag with its attributes, comment, CDATA section or processing instruction.
|
|
80
|
-
* Checked while the token is read, so it is never buffered past this.
|
|
81
|
-
*
|
|
80
|
+
* Checked while the token is read, so it is never buffered past this. It does
|
|
81
|
+
* not limit text between tags: cell values, shared and inline strings and
|
|
82
|
+
* formulas are text, and `maxCellTextLength` limits those. On a `LimitError`,
|
|
82
83
|
* `details.value` is `max + 1` ("more than max"): the token's full length is
|
|
83
84
|
* not read. Default 16 Mi (`DEFAULT_READ_LIMITS`).
|
|
84
85
|
*
|
|
@@ -119,6 +120,23 @@ export interface ReadLimits {
|
|
|
119
120
|
*/
|
|
120
121
|
maxItems?: number;
|
|
121
122
|
maxSharedStrings: number;
|
|
123
|
+
/**
|
|
124
|
+
* Characters (UTF-16 code units) of one cell's text, as the cell will hold
|
|
125
|
+
* it (entities and `_xHHHH_` escapes decoded, rich-text runs together): a
|
|
126
|
+
* shared string, an inline string, the text of a `<v>` and of a formula
|
|
127
|
+
* (added in 2.3). Counted while the text streams in, so a longer one is
|
|
128
|
+
* refused before it is held whole. Default 1,048,576 (1 Mi,
|
|
129
|
+
* `DEFAULT_READ_LIMITS`), 32 times Excel's own limit of 32,767 characters
|
|
130
|
+
* per cell. On a `LimitError`, `details.value` is `max + 1` ("more than
|
|
131
|
+
* max"), `details.part` names the part and, for a sheet cell, `details.ref`
|
|
132
|
+
* the cell. The same limit bounds header and footer text, defined-name
|
|
133
|
+
* formulas and document property values, counted as written;
|
|
134
|
+
* `readSheetNames` applies it to defined names.
|
|
135
|
+
*
|
|
136
|
+
* Optional only so that a complete `ReadLimits` object written for 2.0 to
|
|
137
|
+
* 2.2 still compiles; when it is left out the default applies.
|
|
138
|
+
*/
|
|
139
|
+
maxCellTextLength?: number;
|
|
122
140
|
/**
|
|
123
141
|
* Warnings kept before the cap applies. Past it, informational warnings are dropped and
|
|
124
142
|
* counted in one `WARNINGS_TRUNCATED` (added where the first one is dropped); data-loss
|
package/dist/read.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as isDataLossWarning } from "./warnings-BPz1Ia3s.js";
|
|
2
|
-
import { i as readSheetNames, n as detectFormat, r as read, t as DEFAULT_READ_LIMITS } from "./read-
|
|
2
|
+
import { i as readSheetNames, n as detectFormat, r as read, t as DEFAULT_READ_LIMITS } from "./read-BnXzPjGc.js";
|
|
3
3
|
export { DEFAULT_READ_LIMITS, detectFormat, isDataLossWarning, read, readSheetNames };
|
package/dist/worker.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_csv = require("./csv-
|
|
2
|
+
const require_csv = require("./csv-f4P3fGs-.cjs");
|
|
3
3
|
const require_errors = require("./errors-DOPrrGS4.cjs");
|
|
4
|
-
const require_read = require("./read-
|
|
5
|
-
const require_pipeline = require("./pipeline-
|
|
4
|
+
const require_read = require("./read-BYI7EVMo.cjs");
|
|
5
|
+
const require_pipeline = require("./pipeline-LCTU0Eg_.cjs");
|
|
6
6
|
const require_write = require("./write-DKXhuvKR.cjs");
|
|
7
7
|
// src/worker.ts
|
|
8
8
|
/** Marks the library's messages, so an app can use the same worker for its own messages too. */
|
package/dist/worker.d.cts
CHANGED
|
@@ -25,7 +25,7 @@ import { o as BinaryInput } from "./warnings-DhonqJ7A.cjs";
|
|
|
25
25
|
import { CsvParseOptions, CsvParseResult, CsvReadOptions, CsvWriteOptions } from "./csv.cjs";
|
|
26
26
|
import { D as Sheet, j as Workbook, s as CellInput } from "./model-BUNp7B0Z.cjs";
|
|
27
27
|
import { ReadOptions, ReadResult } from "./read.cjs";
|
|
28
|
-
import { n as
|
|
28
|
+
import { n as ImportDatasetOptions, r as ImportDatasetResult } from "./pipeline-D1eAhqJu.cjs";
|
|
29
29
|
import { n as WriteOptions, t as Progress } from "./write-Izl2NG0Y.cjs";
|
|
30
30
|
import { t as AbortSignalLike } from "./signal-Dz0ZYe6d.cjs";
|
|
31
31
|
/** The side of a message channel the library uses: a `Worker`, the worker's `self`, or a `MessagePort`. */
|
package/dist/worker.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ import { o as BinaryInput } from "./warnings-DhonqJ7A.js";
|
|
|
25
25
|
import { CsvParseOptions, CsvParseResult, CsvReadOptions, CsvWriteOptions } from "./csv.js";
|
|
26
26
|
import { D as Sheet, j as Workbook, s as CellInput } from "./model-BUNp7B0Z.js";
|
|
27
27
|
import { ReadOptions, ReadResult } from "./read.js";
|
|
28
|
-
import { n as
|
|
28
|
+
import { n as ImportDatasetOptions, r as ImportDatasetResult } from "./pipeline-Bh7FUyzW.js";
|
|
29
29
|
import { n as WriteOptions, t as Progress } from "./write-BaMv1Z7W.js";
|
|
30
30
|
import { t as AbortSignalLike } from "./signal-Dz0ZYe6d.js";
|
|
31
31
|
/** The side of a message channel the library uses: a `Worker`, the worker's `self`, or a `MessagePort`. */
|
package/dist/worker.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as toCsv, r as readCsv } from "./csv-
|
|
1
|
+
import { i as toCsv, r as readCsv } from "./csv-Bck8eW_D.js";
|
|
2
2
|
import { a as LimitError, i as FormatError, n as EnvironmentError, o as ValidationError, r as ExcelError, s as isExcelError, t as CsvError } from "./errors-CvGlfw0E.js";
|
|
3
|
-
import { r as read } from "./read-
|
|
4
|
-
import { t as importDataset } from "./pipeline-
|
|
3
|
+
import { r as read } from "./read-BnXzPjGc.js";
|
|
4
|
+
import { t as importDataset } from "./pipeline-2dgQM9E9.js";
|
|
5
5
|
import { r as toUint8Array } from "./write-BVXB2_2C.js";
|
|
6
6
|
// src/worker.ts
|
|
7
7
|
/** Marks the library's messages, so an app can use the same worker for its own messages too. */
|
package/package.json
CHANGED