@stackline/xlsx 1.0.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/CHANGELOG.md +390 -0
- package/CONTRIBUTING.md +56 -0
- package/LICENSE +201 -0
- package/README.md +217 -0
- package/SECURITY.md +30 -0
- package/bower.json +22 -0
- package/dist/LICENSE +201 -0
- package/dist/cpexcel.d.ts +39 -0
- package/dist/cpexcel.full.mjs +1502 -0
- package/dist/cpexcel.js +1506 -0
- package/dist/shim.min.js +2 -0
- package/dist/xlsx.core.min.js +18 -0
- package/dist/xlsx.core.min.map +1 -0
- package/dist/xlsx.extendscript.js +28015 -0
- package/dist/xlsx.full.min.js +24 -0
- package/dist/xlsx.full.min.map +1 -0
- package/dist/xlsx.mini.min.js +10 -0
- package/dist/xlsx.mini.min.map +1 -0
- package/dist/xlsx.zahl.js +4 -0
- package/dist/xlsx.zahl.mjs +2 -0
- package/dist/zahl.d.ts +4 -0
- package/package.json +197 -0
- package/types/index.d.ts +1033 -0
- package/types/tsconfig.json +15 -0
- package/xlsx.js +27859 -0
- package/xlsx.mjs +27981 -0
- package/xlsxworker.js +14 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
This log is intended to keep track of backwards-incompatible changes, including
|
|
4
|
+
but not limited to API changes and file location changes. Minor behavioral
|
|
5
|
+
changes may not be included if they are not expected to break existing code.
|
|
6
|
+
|
|
7
|
+
## v1.0.0
|
|
8
|
+
|
|
9
|
+
* Established the public Stackline package line as `@stackline/xlsx@1.0.0`.
|
|
10
|
+
* Made `npm install @stackline/xlsx` the primary documented install path and
|
|
11
|
+
kept `xlsx@npm:@stackline/xlsx` as the migration path for existing imports.
|
|
12
|
+
* Centralized unsafe key handling with shared helpers for dangerous keys:
|
|
13
|
+
`__proto__`, `prototype` and `constructor`.
|
|
14
|
+
* Hardened parser dictionaries with null-prototype maps in workbook, XML,
|
|
15
|
+
relationship, custom property, ODS, XLS, XLML and ZIP parsing paths.
|
|
16
|
+
* Preserved `SheetNames` semantics in ZIP parsing while ignoring dangerous
|
|
17
|
+
worksheet names.
|
|
18
|
+
* Preserved JSON header column positions when dangerous headers are ignored.
|
|
19
|
+
* Added stronger regression coverage for real XLSX, ODS and XLS workbooks,
|
|
20
|
+
relationship IDs, custom properties, JSON headers and malformed HTML input.
|
|
21
|
+
* Added a Verdaccio consumer smoke-test environment with direct and alias usage
|
|
22
|
+
examples.
|
|
23
|
+
* Kept `npm run build`, `make dist` and package dry-run validation in the
|
|
24
|
+
release flow.
|
|
25
|
+
* Removed the deprecated `xlsx` CLI from the Stackline package manifest to keep
|
|
26
|
+
the published library dependency-free at runtime.
|
|
27
|
+
|
|
28
|
+
## v0.20.2-stackline.1
|
|
29
|
+
|
|
30
|
+
* Reworked project documentation in the Stackline package style.
|
|
31
|
+
* Added public `SECURITY.md` and `CONTRIBUTING.md` documents for npm
|
|
32
|
+
publication.
|
|
33
|
+
* Included project documentation files in the package tarball.
|
|
34
|
+
|
|
35
|
+
## v0.20.2-stackline.0
|
|
36
|
+
|
|
37
|
+
* Prepared scoped compatibility package `@stackline/xlsx`.
|
|
38
|
+
* Added fork-level guards for prototype pollution keys (`__proto__`,
|
|
39
|
+
`prototype`, `constructor`) in worksheet names, XML attributes,
|
|
40
|
+
relationships, custom properties and JSON conversion helpers.
|
|
41
|
+
* Added regression tests for GHSA-4r6h-8v6p-xvw6 / CVE-2023-30533.
|
|
42
|
+
* Retained upstream v0.20.2 ReDoS hardening for GHSA-5pgg-2g8v-p4x9 /
|
|
43
|
+
CVE-2024-22363 and added a malformed HTML regression test.
|
|
44
|
+
|
|
45
|
+
## v0.20.2
|
|
46
|
+
|
|
47
|
+
* Reworked parsing methods to avoid slow regexes (CVE-2024-22363)
|
|
48
|
+
* HTML properly encode data-v attribute
|
|
49
|
+
* SYLK read and write error cells
|
|
50
|
+
|
|
51
|
+
## v0.20.1
|
|
52
|
+
|
|
53
|
+
* `init` use packaged test files to work around GitHub breaking changes
|
|
54
|
+
* SSF date code rounding to 15 decimal digits (h/t @davidtamaki)
|
|
55
|
+
* `sheet_to_json` force UTC interpretation for formatted strings (h/t @Blanay)
|
|
56
|
+
* QPW extract result of string formula
|
|
57
|
+
* XLSX parse non-compliant merge cell expressions
|
|
58
|
+
* NUMBERS correctly handle rows omitted from official exports
|
|
59
|
+
* DBF parse empty logical field (h/t @Roman91)
|
|
60
|
+
* `dense` option added to types
|
|
61
|
+
* package.json add mini and core scripts to export map (h/t @stof)
|
|
62
|
+
|
|
63
|
+
## v0.20.0
|
|
64
|
+
|
|
65
|
+
* Use UTC interpretation of Date objects for date cells (potentially breaking)
|
|
66
|
+
* API functions support UTC and local time value interpretations
|
|
67
|
+
* Export `NaN` values to `#NUM!` and infinite values to `#DIV/0!`
|
|
68
|
+
|
|
69
|
+
## v0.19.3
|
|
70
|
+
|
|
71
|
+
* XLSX Ensure comment address is valid (h/t @slonser)
|
|
72
|
+
* Enforce Excel worksheet name restrictions
|
|
73
|
+
* Fixed "Prototype Pollution" vulnerability (CVE-2023-30533)
|
|
74
|
+
|
|
75
|
+
## v0.19.2
|
|
76
|
+
|
|
77
|
+
* XLSX proper decoding of hyperlinks (h/t @tw-yaxu)
|
|
78
|
+
* XLSX ignore unexpected attributes in rich text (h/t @colin4)
|
|
79
|
+
* `sheet_to_json` type fix (h/t @chsdwn)
|
|
80
|
+
|
|
81
|
+
## v0.19.1
|
|
82
|
+
|
|
83
|
+
* Fixed types issue in strict mode (h/t @younes-io)
|
|
84
|
+
* Numbers 12.2 parsing skip ActivityStream.iwa
|
|
85
|
+
|
|
86
|
+
## v0.19.0
|
|
87
|
+
|
|
88
|
+
* XLSX export hyperlinks compatible with google sheets (h/t Evan Bovie)
|
|
89
|
+
* NUMBERS export multiple sheets, full worksheet range
|
|
90
|
+
* formalized `dense` mode
|
|
91
|
+
|
|
92
|
+
## v0.18.12
|
|
93
|
+
|
|
94
|
+
* `package.json` added types in `exports` structure
|
|
95
|
+
* uncapped NUMBERS single-sheet single-table export
|
|
96
|
+
* DBF export records using supported codepages
|
|
97
|
+
|
|
98
|
+
## v0.18.11
|
|
99
|
+
|
|
100
|
+
* Base64 input ignore data URI wrapper
|
|
101
|
+
* Parse ZIP files that use ZIP64 extended information field
|
|
102
|
+
* More precise handling of time-only values
|
|
103
|
+
* Threaded Comment fallback text for older Excel
|
|
104
|
+
|
|
105
|
+
## v0.18.10
|
|
106
|
+
|
|
107
|
+
* `exports` field in package.json to satiate ViteJS and newer tooling
|
|
108
|
+
* JSC (Safari / Bun) perf, see <https://bugs.webkit.org/show_bug.cgi?id=243148>
|
|
109
|
+
* workbook `bookType` property to denote the origin format when parsed from file
|
|
110
|
+
* XLSX force export of stub cells with number formats when `sheetStubs` is set
|
|
111
|
+
|
|
112
|
+
## v0.18.9
|
|
113
|
+
|
|
114
|
+
* XLSX / ODS write defined names
|
|
115
|
+
* sync defined names to AutoFilter setting on export
|
|
116
|
+
* 1904 date system setting properly roundtripped
|
|
117
|
+
* ODS read/write number formats
|
|
118
|
+
|
|
119
|
+
## v0.18.8
|
|
120
|
+
|
|
121
|
+
* Plaintext parsing of dateless meridien time values (`1:23:45 PM`)
|
|
122
|
+
* Legacy format (SYLK / WK# / Multiplan) minutiae
|
|
123
|
+
|
|
124
|
+
## v0.18.7
|
|
125
|
+
|
|
126
|
+
* Normalized handling of `\r` and `\n` newline characters
|
|
127
|
+
|
|
128
|
+
## v0.18.6
|
|
129
|
+
|
|
130
|
+
* Removed all npm dependencies
|
|
131
|
+
* Auto-correct bad Google Sheets format `d.m`
|
|
132
|
+
* NUMBERS write merge cells, cells up to column "ALL"
|
|
133
|
+
|
|
134
|
+
## v0.18.5
|
|
135
|
+
|
|
136
|
+
* Enabled `sideEffects: false` in package.json
|
|
137
|
+
* Basic NUMBERS write support
|
|
138
|
+
|
|
139
|
+
## v0.18.4
|
|
140
|
+
|
|
141
|
+
* CSV output omits trailing record separator
|
|
142
|
+
* Properly terminate NodeJS Streams
|
|
143
|
+
* DBF preserve column types on import and use when applicable on export
|
|
144
|
+
|
|
145
|
+
## v0.18.3
|
|
146
|
+
|
|
147
|
+
* Removed references to `require` and `process` in browser builds
|
|
148
|
+
|
|
149
|
+
## v0.18.2
|
|
150
|
+
|
|
151
|
+
* Hotfix for unicode processing of XLSX exports
|
|
152
|
+
|
|
153
|
+
## v0.18.1
|
|
154
|
+
|
|
155
|
+
* Removed Node ESM build script and folded into standard ESM build
|
|
156
|
+
* Removed undocumented aliases including `make_formulae` and `get_formulae`
|
|
157
|
+
|
|
158
|
+
## v0.18.0
|
|
159
|
+
|
|
160
|
+
* Browser scripts only expose `XLSX` variable
|
|
161
|
+
* Module no longer ships with `dist/jszip.js` browser script
|
|
162
|
+
|
|
163
|
+
## v0.17.4
|
|
164
|
+
|
|
165
|
+
* CLI script moved to `xlsx-cli` package
|
|
166
|
+
|
|
167
|
+
## v0.17.3
|
|
168
|
+
|
|
169
|
+
* `window.XLSX` explicit assignment to satiate LWC
|
|
170
|
+
* CSV Proper formatting of errors
|
|
171
|
+
* HTML emit data-\* attributes
|
|
172
|
+
|
|
173
|
+
## v0.17.2
|
|
174
|
+
|
|
175
|
+
* Browser and Node optional ESM support
|
|
176
|
+
* DSV correct handling of bare quotes (h/t @bgamrat)
|
|
177
|
+
|
|
178
|
+
## v0.17.1
|
|
179
|
+
|
|
180
|
+
* `XLSB` writer uses short cell form when viable
|
|
181
|
+
|
|
182
|
+
## 0.17.0:
|
|
183
|
+
|
|
184
|
+
* mini build includes ODS parse/write support
|
|
185
|
+
* DBF explicitly cap worksheet to 1<<20 rows
|
|
186
|
+
* XLS throw errors on truncated records
|
|
187
|
+
|
|
188
|
+
## v0.16.2
|
|
189
|
+
|
|
190
|
+
* Disabled `PRN` parsing by default (better support for CSV without delimeters)
|
|
191
|
+
|
|
192
|
+
## v0.16.1
|
|
193
|
+
|
|
194
|
+
* skip empty custom property tags if data is absent (fixes DocSecurity issue)
|
|
195
|
+
* HTML output add raw value, type, number format
|
|
196
|
+
* DOM parse look for `v` / `t` / `z` attributes when determining value
|
|
197
|
+
* double quotes in properties escaped using `_x0022_`
|
|
198
|
+
* changed AMD structure for NetSuite and other RequireJS implementations
|
|
199
|
+
- `encode_cell` and `decode_cell` do not rely on `encode_col` / `decode_col`
|
|
200
|
+
|
|
201
|
+
## v0.16.0
|
|
202
|
+
|
|
203
|
+
* Date handling changed
|
|
204
|
+
* XLML certain tag tests are now case insensitive
|
|
205
|
+
* Fixed potentially vulnerable regular expressions
|
|
206
|
+
|
|
207
|
+
## v0.15.6
|
|
208
|
+
|
|
209
|
+
* CFB prevent infinite loop
|
|
210
|
+
* ODS empty cells marked as stub (type "z")
|
|
211
|
+
* `cellStyles` option implies `sheetStubs`
|
|
212
|
+
|
|
213
|
+
## v0.15.5
|
|
214
|
+
|
|
215
|
+
* `sheets` parse option to specify which sheets to parse
|
|
216
|
+
|
|
217
|
+
## v0.15.4
|
|
218
|
+
|
|
219
|
+
* AOA utilities properly preserve number formats
|
|
220
|
+
* Number formats captured in stub cells
|
|
221
|
+
|
|
222
|
+
## v0.15.3
|
|
223
|
+
|
|
224
|
+
* Properties and Custom Properties properly XML-encoded
|
|
225
|
+
|
|
226
|
+
## v0.15.2
|
|
227
|
+
|
|
228
|
+
- `sheet_get_cell` utility function
|
|
229
|
+
- `sheet_to_json` explicitly support `null` as alias for default behavior
|
|
230
|
+
- `encode_col` throw on negative column index
|
|
231
|
+
- HTML properly handle whitespace around tags in a run
|
|
232
|
+
- HTML use `id` option on write
|
|
233
|
+
- Files starting with `0x09` followed by a display character are now TSV files
|
|
234
|
+
- XLS parse references col/row indices mod by the correct number for BIFF ver
|
|
235
|
+
- XLSX comments moved to avoid overlapping cell
|
|
236
|
+
- XLSB outline level
|
|
237
|
+
- AutoFilter update `_FilterDatabase` defined name on write
|
|
238
|
+
- XLML skip CDATA blocks
|
|
239
|
+
|
|
240
|
+
## v0.15.1 (2019-08-14)
|
|
241
|
+
|
|
242
|
+
* XLSX ignore XML artifacts
|
|
243
|
+
* HTML capture and persist merges
|
|
244
|
+
|
|
245
|
+
## v0.15.0
|
|
246
|
+
|
|
247
|
+
* `dist/xlsx.mini.min.js` mini build with XLSX read/write and some utilities
|
|
248
|
+
* Removed legacy conversion utility functions
|
|
249
|
+
|
|
250
|
+
## v0.14.5
|
|
251
|
+
|
|
252
|
+
* XLS PtgNameX lookup
|
|
253
|
+
* XLS always create stub cells for blank cells with comments
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
## v0.14.4
|
|
257
|
+
|
|
258
|
+
* Better treatment of `skipHidden` in CSV output
|
|
259
|
+
* Ignore CLSID in XLS
|
|
260
|
+
* SYLK 7-bit character encoding
|
|
261
|
+
* SYLK and DBF codepage support
|
|
262
|
+
|
|
263
|
+
## v0.14.3
|
|
264
|
+
|
|
265
|
+
* Proper shifting of addresses in Shared Formulae
|
|
266
|
+
|
|
267
|
+
## v0.14.2
|
|
268
|
+
|
|
269
|
+
* Proper XML encoding of comments
|
|
270
|
+
|
|
271
|
+
## v0.14.1
|
|
272
|
+
|
|
273
|
+
* raw cell objects can be passed to `sheet_add_aoa`
|
|
274
|
+
* `_FilterDatabase` fix for AutoFilter-related crashes
|
|
275
|
+
* `stream.to_json` doesn't end up accidentally scanning to max row
|
|
276
|
+
|
|
277
|
+
## 0.14.0 (2018-09-06)
|
|
278
|
+
|
|
279
|
+
* `sheet_to_json` default flipped to `raw: true`
|
|
280
|
+
|
|
281
|
+
## 0.13.5 (2018-08-25)
|
|
282
|
+
|
|
283
|
+
* HTML output generates `<br/>` instead of encoded newline character
|
|
284
|
+
|
|
285
|
+
## 0.13.2 (2018-07-08)
|
|
286
|
+
|
|
287
|
+
* Buffer.from shim replaced, will not be defined in node `<=0.12`
|
|
288
|
+
|
|
289
|
+
## 0.13.0 (2018-06-01)
|
|
290
|
+
|
|
291
|
+
* Library reshaped to support AMD out of the box
|
|
292
|
+
|
|
293
|
+
## 0.12.11 (2018-04-27)
|
|
294
|
+
|
|
295
|
+
* XLS/XLSX/XLSB range truncation (errors in `WTF` mode)
|
|
296
|
+
|
|
297
|
+
## 0.12.4 (2018-03-04)
|
|
298
|
+
|
|
299
|
+
* `JSZip` renamed to `JSZipSync`
|
|
300
|
+
|
|
301
|
+
## 0.12.0 (2018-02-08)
|
|
302
|
+
|
|
303
|
+
* Extendscript target script in NPM package
|
|
304
|
+
|
|
305
|
+
## 0.11.19 (2018-02-03)
|
|
306
|
+
|
|
307
|
+
* Error on empty workbook
|
|
308
|
+
|
|
309
|
+
## 0.11.16 (2017-12-30)
|
|
310
|
+
|
|
311
|
+
* XLS ANSI/CP separation
|
|
312
|
+
* 'array' write type and ArrayBuffer processing
|
|
313
|
+
|
|
314
|
+
## 0.11.6 (2017-10-16)
|
|
315
|
+
|
|
316
|
+
* Semicolon-delimited files are detected
|
|
317
|
+
|
|
318
|
+
## 0.11.5 (2017-09-30)
|
|
319
|
+
|
|
320
|
+
* Bower main script shifted to full version
|
|
321
|
+
* 'binary' / 'string' encoding
|
|
322
|
+
|
|
323
|
+
## 0.11.3 (2017-08-19)
|
|
324
|
+
|
|
325
|
+
* XLS cell ixfe/XF removed
|
|
326
|
+
|
|
327
|
+
## 0.11.0 (2017-07-31)
|
|
328
|
+
|
|
329
|
+
* Strip `require` statements from minified version
|
|
330
|
+
* minifier mangler enabled
|
|
331
|
+
|
|
332
|
+
## 0.10.9 (2017-07-28)
|
|
333
|
+
|
|
334
|
+
* XLML/HTML resolution logic looks further into the data stream to decide type
|
|
335
|
+
* Errors thrown on suspected RTF files
|
|
336
|
+
|
|
337
|
+
## 0.10.5 (2017-06-09)
|
|
338
|
+
|
|
339
|
+
* HTML Table output header/footer should not include `<table>` tag
|
|
340
|
+
|
|
341
|
+
## 0.10.2 (2017-05-16)
|
|
342
|
+
|
|
343
|
+
* Dates are converted to numbers by default (set `cellDates:true` to emit Dates)
|
|
344
|
+
* Module does not export CFB
|
|
345
|
+
|
|
346
|
+
## 0.9.10 (2017-04-08)
|
|
347
|
+
|
|
348
|
+
* `--perf` renamed to `--read-only`
|
|
349
|
+
|
|
350
|
+
## 0.9.9 (2017-04-03)
|
|
351
|
+
|
|
352
|
+
* default output format changed to XLSB
|
|
353
|
+
* comment text line endings are now normalized
|
|
354
|
+
* errors thrown on write when worksheets have invalid names
|
|
355
|
+
|
|
356
|
+
## 0.9.7 (2017-03-28)
|
|
357
|
+
|
|
358
|
+
* XLS legacy `!range` field removed
|
|
359
|
+
* Hyperlink tooltip is stored in the `Tooltip` field
|
|
360
|
+
|
|
361
|
+
## 0.9.6 (2017-03-25)
|
|
362
|
+
|
|
363
|
+
* `sheet_to_json` now passes `null` values when `raw` is set to `true`
|
|
364
|
+
* `sheet_to_json` treats `null` stub cells as values in conjunction with `raw`
|
|
365
|
+
|
|
366
|
+
## 0.9.5 (2017-03-22)
|
|
367
|
+
|
|
368
|
+
* `cellDates` affects parsing in non-XLSX formats
|
|
369
|
+
|
|
370
|
+
## 0.9.3 (2017-03-15)
|
|
371
|
+
|
|
372
|
+
* XLML property names are more closely mapped to the XLSX equivalent
|
|
373
|
+
* Stub cells are now cell type `z`
|
|
374
|
+
|
|
375
|
+
## 0.9.2 (2017-03-13)
|
|
376
|
+
|
|
377
|
+
* Removed stale TypeScript definition files. Flowtype comments are used in the
|
|
378
|
+
`xlsx.flow.js` source and stripped to produce `xlsx.js`.
|
|
379
|
+
* sed usage reworked to support GNU sed in-place form. BSD sed seems to work,
|
|
380
|
+
but the build script has not been tested on other sed variants:
|
|
381
|
+
|
|
382
|
+
```bash
|
|
383
|
+
$ sed -i.ext [...] # GNU
|
|
384
|
+
$ sed -i .ext [...] # bsd
|
|
385
|
+
```
|
|
386
|
+
|
|
387
|
+
## 0.9.0 (2017-03-09)
|
|
388
|
+
|
|
389
|
+
* Removed ods.js source. The xlsx.js source absorbed the ODS logic and exposes
|
|
390
|
+
the ODS variable, so projects should remove references to ods.js
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Thanks for helping improve `@stackline/xlsx`. This project is maintained as a
|
|
4
|
+
SheetJS-compatible fork with security hardening and compatibility guarantees for
|
|
5
|
+
applications that depend on the `xlsx` API.
|
|
6
|
+
|
|
7
|
+
## Development workflow
|
|
8
|
+
|
|
9
|
+
- Create focused changes with tests for the behavior being changed.
|
|
10
|
+
- Preserve the public `xlsx` API unless the change is explicitly documented as
|
|
11
|
+
breaking.
|
|
12
|
+
- Keep security fixes in source files and regenerated bundles in the same
|
|
13
|
+
change.
|
|
14
|
+
- Do not include private customer workbooks, proprietary spreadsheets or
|
|
15
|
+
unlicensed sample files.
|
|
16
|
+
- Prefer small fixtures that demonstrate the issue without exposing real data.
|
|
17
|
+
|
|
18
|
+
## Local checks
|
|
19
|
+
|
|
20
|
+
Run the targeted security regression tests while developing:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
npx mocha -R spec -t 10000 test.js -g "security regressions"
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Run the full suite before opening a pull request:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm test
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Build and verify the package:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
npm run build
|
|
36
|
+
npm pack --dry-run
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Pull requests
|
|
40
|
+
|
|
41
|
+
- Explain the problem and the compatibility impact.
|
|
42
|
+
- Link related advisories, issues or test cases when applicable.
|
|
43
|
+
- Add or update tests for parser, writer and utility behavior.
|
|
44
|
+
- Update `README.md` or `CHANGELOG.md` for user-facing changes.
|
|
45
|
+
- Confirm whether the change affects TypeScript definitions.
|
|
46
|
+
|
|
47
|
+
## Security fixes
|
|
48
|
+
|
|
49
|
+
Security reports should follow `SECURITY.md`. Do not publish exploit details in
|
|
50
|
+
public issues before a fix is available.
|
|
51
|
+
|
|
52
|
+
## License
|
|
53
|
+
|
|
54
|
+
Contributions are accepted under the Apache-2.0 license. By contributing, you
|
|
55
|
+
confirm that you have the right to submit the work and that it does not include
|
|
56
|
+
code or data from incompatible licenses.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright (C) 2012-present SheetJS LLC
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|