@loaders.gl/excel 4.0.0-alpha.20 → 4.0.0-alpha.22
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/es5/excel-loader.js +2 -4
- package/dist/es5/excel-loader.js.map +1 -1
- package/dist/esm/excel-loader.js +1 -2
- package/dist/esm/excel-loader.js.map +1 -1
- package/dist/excel-loader.d.ts +0 -1
- package/dist/excel-loader.d.ts.map +1 -1
- package/dist/excel-loader.js +1 -2
- package/dist/excel-worker.js +9 -4
- package/package.json +4 -4
- package/src/excel-loader.ts +0 -2
package/dist/es5/excel-loader.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var VERSION = typeof "4.0.0-alpha.
|
|
6
|
+
exports.ExcelLoader = void 0;
|
|
7
|
+
var VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest';
|
|
8
8
|
var DEFAULT_EXCEL_LOADER_OPTIONS = {
|
|
9
9
|
excel: {
|
|
10
10
|
shape: 'object-row-table',
|
|
@@ -24,6 +24,4 @@ var ExcelLoader = {
|
|
|
24
24
|
options: DEFAULT_EXCEL_LOADER_OPTIONS
|
|
25
25
|
};
|
|
26
26
|
exports.ExcelLoader = ExcelLoader;
|
|
27
|
-
var _typecheckLoader = ExcelLoader;
|
|
28
|
-
exports._typecheckLoader = _typecheckLoader;
|
|
29
27
|
//# sourceMappingURL=excel-loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-loader.js","names":["VERSION","DEFAULT_EXCEL_LOADER_OPTIONS","excel","shape","sheet","undefined","ExcelLoader","name","id","module","version","worker","extensions","mimeTypes","category","binary","options","exports"
|
|
1
|
+
{"version":3,"file":"excel-loader.js","names":["VERSION","DEFAULT_EXCEL_LOADER_OPTIONS","excel","shape","sheet","undefined","ExcelLoader","name","id","module","version","worker","extensions","mimeTypes","category","binary","options","exports"],"sources":["../../src/excel-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {Loader, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {ObjectRowTable} from '@loaders.gl/schema';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type ExcelLoaderOptions = LoaderOptions & {\n excel?: {\n shape: /* 'array-row-table' | */ 'object-row-table';\n sheet?: string; // Load default Sheet\n };\n};\n\nconst DEFAULT_EXCEL_LOADER_OPTIONS: ExcelLoaderOptions = {\n excel: {\n shape: 'object-row-table',\n sheet: undefined // Load default Sheet\n }\n};\n\n/**\n * Worker Loader for Excel files\n */\nexport const ExcelLoader: Loader<ObjectRowTable, never, ExcelLoaderOptions> = {\n name: 'Excel',\n id: 'excel',\n module: 'excel',\n version: VERSION,\n worker: true,\n extensions: ['xls', 'xlsb', 'xlsm', 'xlsx'],\n mimeTypes: [\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.ms-excel'\n ],\n category: 'table',\n binary: true,\n options: DEFAULT_EXCEL_LOADER_OPTIONS\n};\n"],"mappings":";;;;;;AAOA,IAAMA,OAAO,GAAG,uBAAkB,KAAK,WAAW,sBAAiB,QAAQ;AAS3E,IAAMC,4BAAgD,GAAG;EACvDC,KAAK,EAAE;IACLC,KAAK,EAAE,kBAAkB;IACzBC,KAAK,EAAEC;EACT;AACF,CAAC;AAKM,IAAMC,WAA8D,GAAG;EAC5EC,IAAI,EAAE,OAAO;EACbC,EAAE,EAAE,OAAO;EACXC,MAAM,EAAE,OAAO;EACfC,OAAO,EAAEV,OAAO;EAChBW,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;EAC3CC,SAAS,EAAE,CACT,mEAAmE,EACnE,0BAA0B,CAC3B;EACDC,QAAQ,EAAE,OAAO;EACjBC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAEf;AACX,CAAC;AAACgB,OAAA,CAAAX,WAAA,GAAAA,WAAA"}
|
package/dist/esm/excel-loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const VERSION = typeof "4.0.0-alpha.
|
|
1
|
+
const VERSION = typeof "4.0.0-alpha.22" !== 'undefined' ? "4.0.0-alpha.22" : 'latest';
|
|
2
2
|
const DEFAULT_EXCEL_LOADER_OPTIONS = {
|
|
3
3
|
excel: {
|
|
4
4
|
shape: 'object-row-table',
|
|
@@ -17,5 +17,4 @@ export const ExcelLoader = {
|
|
|
17
17
|
binary: true,
|
|
18
18
|
options: DEFAULT_EXCEL_LOADER_OPTIONS
|
|
19
19
|
};
|
|
20
|
-
export const _typecheckLoader = ExcelLoader;
|
|
21
20
|
//# sourceMappingURL=excel-loader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-loader.js","names":["VERSION","DEFAULT_EXCEL_LOADER_OPTIONS","excel","shape","sheet","undefined","ExcelLoader","name","id","module","version","worker","extensions","mimeTypes","category","binary","options"
|
|
1
|
+
{"version":3,"file":"excel-loader.js","names":["VERSION","DEFAULT_EXCEL_LOADER_OPTIONS","excel","shape","sheet","undefined","ExcelLoader","name","id","module","version","worker","extensions","mimeTypes","category","binary","options"],"sources":["../../src/excel-loader.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport type {Loader, LoaderOptions} from '@loaders.gl/loader-utils';\nimport type {ObjectRowTable} from '@loaders.gl/schema';\n\n// __VERSION__ is injected by babel-plugin-version-inline\n// @ts-ignore TS2304: Cannot find name '__VERSION__'.\nconst VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';\n\nexport type ExcelLoaderOptions = LoaderOptions & {\n excel?: {\n shape: /* 'array-row-table' | */ 'object-row-table';\n sheet?: string; // Load default Sheet\n };\n};\n\nconst DEFAULT_EXCEL_LOADER_OPTIONS: ExcelLoaderOptions = {\n excel: {\n shape: 'object-row-table',\n sheet: undefined // Load default Sheet\n }\n};\n\n/**\n * Worker Loader for Excel files\n */\nexport const ExcelLoader: Loader<ObjectRowTable, never, ExcelLoaderOptions> = {\n name: 'Excel',\n id: 'excel',\n module: 'excel',\n version: VERSION,\n worker: true,\n extensions: ['xls', 'xlsb', 'xlsm', 'xlsx'],\n mimeTypes: [\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',\n 'application/vnd.ms-excel'\n ],\n category: 'table',\n binary: true,\n options: DEFAULT_EXCEL_LOADER_OPTIONS\n};\n"],"mappings":"AAOA,MAAMA,OAAO,GAAG,uBAAkB,KAAK,WAAW,sBAAiB,QAAQ;AAS3E,MAAMC,4BAAgD,GAAG;EACvDC,KAAK,EAAE;IACLC,KAAK,EAAE,kBAAkB;IACzBC,KAAK,EAAEC;EACT;AACF,CAAC;AAKD,OAAO,MAAMC,WAA8D,GAAG;EAC5EC,IAAI,EAAE,OAAO;EACbC,EAAE,EAAE,OAAO;EACXC,MAAM,EAAE,OAAO;EACfC,OAAO,EAAEV,OAAO;EAChBW,MAAM,EAAE,IAAI;EACZC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC;EAC3CC,SAAS,EAAE,CACT,mEAAmE,EACnE,0BAA0B,CAC3B;EACDC,QAAQ,EAAE,OAAO;EACjBC,MAAM,EAAE,IAAI;EACZC,OAAO,EAAEf;AACX,CAAC"}
|
package/dist/excel-loader.d.ts
CHANGED
|
@@ -10,5 +10,4 @@ export type ExcelLoaderOptions = LoaderOptions & {
|
|
|
10
10
|
* Worker Loader for Excel files
|
|
11
11
|
*/
|
|
12
12
|
export declare const ExcelLoader: Loader<ObjectRowTable, never, ExcelLoaderOptions>;
|
|
13
|
-
export declare const _typecheckLoader: Loader;
|
|
14
13
|
//# sourceMappingURL=excel-loader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excel-loader.d.ts","sourceRoot":"","sources":["../src/excel-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAMvD,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,KAAK,CAAC,EAAE;QACN,KAAK,EAA4B,kBAAkB,CAAC;QACpD,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,KAAK,EAAE,kBAAkB,CAczE,CAAC
|
|
1
|
+
{"version":3,"file":"excel-loader.d.ts","sourceRoot":"","sources":["../src/excel-loader.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAMvD,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG;IAC/C,KAAK,CAAC,EAAE;QACN,KAAK,EAA4B,kBAAkB,CAAC;QACpD,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AASF;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,cAAc,EAAE,KAAK,EAAE,kBAAkB,CAczE,CAAC"}
|
package/dist/excel-loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// loaders.gl, MIT license
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.ExcelLoader = void 0;
|
|
5
5
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
6
6
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
7
7
|
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'latest';
|
|
@@ -29,4 +29,3 @@ exports.ExcelLoader = {
|
|
|
29
29
|
binary: true,
|
|
30
30
|
options: DEFAULT_EXCEL_LOADER_OPTIONS
|
|
31
31
|
};
|
|
32
|
-
exports._typecheckLoader = exports.ExcelLoader;
|
package/dist/excel-worker.js
CHANGED
|
@@ -35895,7 +35895,7 @@
|
|
|
35895
35895
|
options,
|
|
35896
35896
|
context: {
|
|
35897
35897
|
...context,
|
|
35898
|
-
|
|
35898
|
+
_parse: parseOnMainThread
|
|
35899
35899
|
}
|
|
35900
35900
|
});
|
|
35901
35901
|
WorkerBody.postMessage("done", { result });
|
|
@@ -35908,7 +35908,7 @@
|
|
|
35908
35908
|
}
|
|
35909
35909
|
};
|
|
35910
35910
|
}
|
|
35911
|
-
function parseOnMainThread(arrayBuffer, options) {
|
|
35911
|
+
function parseOnMainThread(arrayBuffer, loader, options, context) {
|
|
35912
35912
|
return new Promise((resolve, reject) => {
|
|
35913
35913
|
const id = requestId++;
|
|
35914
35914
|
const onMessage = (type, payload2) => {
|
|
@@ -35932,7 +35932,12 @@
|
|
|
35932
35932
|
WorkerBody.postMessage("process", payload);
|
|
35933
35933
|
});
|
|
35934
35934
|
}
|
|
35935
|
-
async function parseData({
|
|
35935
|
+
async function parseData({
|
|
35936
|
+
loader,
|
|
35937
|
+
arrayBuffer,
|
|
35938
|
+
options,
|
|
35939
|
+
context
|
|
35940
|
+
}) {
|
|
35936
35941
|
let data;
|
|
35937
35942
|
let parser;
|
|
35938
35943
|
if (loader.parseSync || loader.parse) {
|
|
@@ -35954,7 +35959,7 @@
|
|
|
35954
35959
|
}
|
|
35955
35960
|
|
|
35956
35961
|
// src/excel-loader.ts
|
|
35957
|
-
var VERSION = true ? "4.0.0-alpha.
|
|
35962
|
+
var VERSION = true ? "4.0.0-alpha.22" : "latest";
|
|
35958
35963
|
var DEFAULT_EXCEL_LOADER_OPTIONS = {
|
|
35959
35964
|
excel: {
|
|
35960
35965
|
shape: "object-row-table",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/excel",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.22",
|
|
4
4
|
"description": "Framework-independent loader for Excel files",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"build-worker": "esbuild src/workers/excel-worker.ts --bundle --outfile=dist/excel-worker.js --define:__VERSION__=\\\"$npm_package_version\\\""
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@loaders.gl/loader-utils": "4.0.0-alpha.
|
|
39
|
-
"@loaders.gl/schema": "4.0.0-alpha.
|
|
38
|
+
"@loaders.gl/loader-utils": "4.0.0-alpha.22",
|
|
39
|
+
"@loaders.gl/schema": "4.0.0-alpha.22",
|
|
40
40
|
"xlsx": "^0.17.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "0da838c506d1275383f2fd3d244d9c72b25397d2"
|
|
43
43
|
}
|