read-excel-file 5.2.10 → 5.2.11

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 CHANGED
@@ -5,6 +5,11 @@
5
5
  * Added [TypeScript](https://github.com/catamphetamine/read-excel-file/issues/71) definitions.
6
6
  -->
7
7
 
8
+ 5.2.11 / 08.10.2021
9
+ ==================
10
+
11
+ * Added TypeScript "typings".
12
+
8
13
  5.2.0 / 17.06.2021
9
14
  ==================
10
15
 
package/README.md CHANGED
@@ -333,6 +333,10 @@ One can use any npm CDN service, e.g. [unpkg.com](https://unpkg.com) or [jsdeliv
333
333
  </script>
334
334
  ```
335
335
 
336
+ ## TypeScript
337
+
338
+ This library comes with TypeScript "typings". If you happen to find any bugs in those, create an issue.
339
+
336
340
  ## References
337
341
 
338
342
  Uses [`xmldom`](https://github.com/jindw/xmldom) for parsing XML.
@@ -1,6 +1,3 @@
1
- // See the discussion:
2
- // https://github.com/catamphetamine/read-excel-file/issues/71
3
-
4
1
  import {
5
2
  ParseWithSchemaOptions,
6
3
  ParseWithMapOptions,
@@ -11,7 +8,7 @@ import {
11
8
 
12
9
  export function parseExcelDate(excelSerialDate: number) : typeof Date;
13
10
 
14
- export type Input = File
11
+ type Input = File;
15
12
 
16
13
  function readXlsxFile(input: Input, options: ParseWithSchemaOptions) : Promise<ParsedObjectsResult>;
17
14
  function readXlsxFile(input: Input, options: ParseWithMapOptions) : Promise<ParsedObjectsResult>;
@@ -14,7 +14,7 @@ import {
14
14
 
15
15
  export function parseExcelDate(excelSerialDate: number) : typeof Date;
16
16
 
17
- export type Input = Stream | PathLike;
17
+ type Input = Stream | PathLike;
18
18
 
19
19
  function readXlsxFile(input: Input, options: ParseWithSchemaOptions) : Promise<ParsedObjectsResult>;
20
20
  function readXlsxFile(input: Input, options: ParseWithMapOptions) : Promise<ParsedObjectsResult>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "read-excel-file",
3
- "version": "5.2.10",
3
+ "version": "5.2.11",
4
4
  "description": "Read small to medium `*.xlsx` files in a browser or Node.js. Parse to JSON with a strict schema.",
5
5
  "module": "index.js",
6
6
  "sideEffects": false,
File without changes
package/types.d.ts CHANGED
@@ -1,6 +1,3 @@
1
- // See the discussion:
2
- // https://github.com/catamphetamine/read-excel-file/issues/71
3
-
4
1
  export function Integer(): void;
5
2
  export function URL(): void;
6
3
  export function Email(): void;
@@ -12,7 +9,7 @@ type BasicType =
12
9
  | typeof Date
13
10
  | Integer
14
11
  | URL
15
- | Email
12
+ | Email;
16
13
 
17
14
  export type Type = <T>(value: Cell) => T?;
18
15