read-excel-file 5.2.26 → 5.2.29

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 (40) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/README.md +3 -3
  3. package/bundle/read-excel-file.min.js +1 -1
  4. package/bundle/read-excel-file.min.js.map +1 -1
  5. package/commonjs/read/getData.js +6 -3
  6. package/commonjs/read/getData.js.map +1 -1
  7. package/commonjs/read/parseDate.js +39 -8
  8. package/commonjs/read/parseDate.js.map +1 -1
  9. package/commonjs/read/parseDimensions.js +7 -2
  10. package/commonjs/read/parseDimensions.js.map +1 -1
  11. package/commonjs/read/readSheetNamesBrowser.js +26 -0
  12. package/commonjs/read/readSheetNamesBrowser.js.map +1 -0
  13. package/commonjs/read/readSheetNamesNode.js +26 -0
  14. package/commonjs/read/readSheetNamesNode.js.map +1 -0
  15. package/commonjs/read/readSheetNamesNode.test.js.map +1 -0
  16. package/commonjs/read/readSheetNamesWebWorker.js +26 -0
  17. package/commonjs/read/readSheetNamesWebWorker.js.map +1 -0
  18. package/index.commonjs.js +1 -0
  19. package/index.d.ts +7 -0
  20. package/index.js +1 -0
  21. package/modules/read/getData.js +6 -3
  22. package/modules/read/getData.js.map +1 -1
  23. package/modules/read/parseDate.js +39 -8
  24. package/modules/read/parseDate.js.map +1 -1
  25. package/modules/read/parseDimensions.js +7 -2
  26. package/modules/read/parseDimensions.js.map +1 -1
  27. package/modules/read/readSheetNamesBrowser.js +17 -0
  28. package/modules/read/readSheetNamesBrowser.js.map +1 -0
  29. package/modules/read/readSheetNamesNode.js +17 -0
  30. package/modules/read/readSheetNamesNode.js.map +1 -0
  31. package/modules/read/readSheetNamesNode.test.js.map +1 -0
  32. package/modules/read/readSheetNamesWebWorker.js +17 -0
  33. package/modules/read/readSheetNamesWebWorker.js.map +1 -0
  34. package/node/index.commonjs.js +1 -0
  35. package/node/index.d.ts +7 -0
  36. package/node/index.js +1 -0
  37. package/package.json +2 -2
  38. package/web-worker/index.commonjs.js +1 -0
  39. package/web-worker/index.d.ts +7 -0
  40. package/web-worker/index.js +1 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,11 @@
3
3
  ==================
4
4
  -->
5
5
 
6
+ 5.2.27 / 11.02.2022
7
+ ==================
8
+
9
+ * Added `readSheetNames()` function.
10
+
6
11
  5.2.25 / 19.11.2021
7
12
  ==================
8
13
 
package/README.md CHANGED
@@ -320,11 +320,11 @@ readXlsxFile(file, { sheet: 'Sheet1' }).then((data) => {
320
320
 
321
321
  By default, `options.sheet` is `1`.
322
322
 
323
- To get the list of all sheets, pass `getSheets: true` option:
323
+ To get the names of all sheets, use `readSheetNames()` function:
324
324
 
325
325
  ```js
326
- readXlsxFile(file, { getSheets: true }).then((sheets) => {
327
- // sheets === [{ name: 'Sheet1' }, { name: 'Sheet2' }]
326
+ readSheetNames(file).then((sheetNames) => {
327
+ // sheetNames === ['Sheet1', 'Sheet2']
328
328
  })
329
329
  ```
330
330