@loaders.gl/excel 4.3.1 → 4.4.0-alpha.1

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/dist/dist.dev.js CHANGED
@@ -48,35 +48,24 @@ var __exports__ = (() => {
48
48
  // bundle.ts
49
49
  var bundle_exports = {};
50
50
  __export(bundle_exports, {
51
- ExcelLoader: () => ExcelLoader2,
52
- ExcelWorkerLoader: () => ExcelLoader
51
+ ExcelFormat: () => ExcelFormat,
52
+ ExcelLoader: () => ExcelLoader,
53
+ ExcelWorkerLoader: () => ExcelWorkerLoader
53
54
  });
54
55
  __reExport(bundle_exports, __toESM(require_core(), 1));
55
56
 
56
- // src/excel-loader.ts
57
- var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
58
- var ExcelLoader = {
59
- dataType: null,
60
- batchType: null,
57
+ // src/excel-format.ts
58
+ var ExcelFormat = {
61
59
  name: "Excel",
62
60
  id: "excel",
63
61
  module: "excel",
64
- version: VERSION,
65
- worker: true,
66
62
  extensions: ["xls", "xlsb", "xlsm", "xlsx"],
67
63
  mimeTypes: [
68
64
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
69
65
  "application/vnd.ms-excel"
70
66
  ],
71
67
  category: "table",
72
- binary: true,
73
- options: {
74
- excel: {
75
- shape: "object-row-table",
76
- sheet: void 0
77
- // Load default Sheet
78
- }
79
- }
68
+ binary: true
80
69
  };
81
70
 
82
71
  // ../../node_modules/xlsx/xlsx.mjs
@@ -28258,9 +28247,24 @@ var __exports__ = (() => {
28258
28247
  return dataRows;
28259
28248
  }
28260
28249
 
28261
- // src/index.ts
28262
- var ExcelLoader2 = {
28263
- ...ExcelLoader,
28250
+ // src/excel-loader.ts
28251
+ var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
28252
+ var ExcelWorkerLoader = {
28253
+ ...ExcelFormat,
28254
+ dataType: null,
28255
+ batchType: null,
28256
+ version: VERSION,
28257
+ worker: true,
28258
+ options: {
28259
+ excel: {
28260
+ shape: "object-row-table",
28261
+ sheet: void 0
28262
+ // Load default Sheet
28263
+ }
28264
+ }
28265
+ };
28266
+ var ExcelLoader = {
28267
+ ...ExcelWorkerLoader,
28264
28268
  async parse(arrayBuffer, options) {
28265
28269
  const data = parseExcel(arrayBuffer, options);
28266
28270
  return { shape: "object-row-table", data };