@loaders.gl/tiles 4.0.0-alpha.19 → 4.0.0-alpha.21
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.min.js +15 -15
- package/package.json +4 -4
package/dist/dist.min.js
CHANGED
|
@@ -5729,7 +5729,7 @@
|
|
|
5729
5729
|
isFunction = (x) => typeof x === "function";
|
|
5730
5730
|
isObject = (x) => x !== null && typeof x === "object";
|
|
5731
5731
|
isPureObject = (x) => isObject(x) && x.constructor === {}.constructor;
|
|
5732
|
-
isIterable = (x) => x && typeof x[Symbol.iterator] === "function";
|
|
5732
|
+
isIterable = (x) => Boolean(x) && typeof x[Symbol.iterator] === "function";
|
|
5733
5733
|
isAsyncIterable = (x) => x && typeof x[Symbol.asyncIterator] === "function";
|
|
5734
5734
|
isResponse = (x) => typeof Response !== "undefined" && x instanceof Response || x && x.arrayBuffer && x.text && x.json;
|
|
5735
5735
|
isBlob = (x) => typeof Blob !== "undefined" && x instanceof Blob;
|
|
@@ -7194,12 +7194,12 @@
|
|
|
7194
7194
|
// ../core/src/lib/loader-utils/get-fetch-function.ts
|
|
7195
7195
|
function getFetchFunction(options, context) {
|
|
7196
7196
|
const globalOptions = getGlobalLoaderOptions();
|
|
7197
|
-
const
|
|
7198
|
-
if (typeof
|
|
7199
|
-
return
|
|
7197
|
+
const loaderOptions = options || globalOptions;
|
|
7198
|
+
if (typeof loaderOptions.fetch === "function") {
|
|
7199
|
+
return loaderOptions.fetch;
|
|
7200
7200
|
}
|
|
7201
|
-
if (isObject(
|
|
7202
|
-
return (url) => fetchFile(url,
|
|
7201
|
+
if (isObject(loaderOptions.fetch)) {
|
|
7202
|
+
return (url) => fetchFile(url, loaderOptions.fetch);
|
|
7203
7203
|
}
|
|
7204
7204
|
if (context?.fetch) {
|
|
7205
7205
|
return context?.fetch;
|
|
@@ -7287,26 +7287,26 @@
|
|
|
7287
7287
|
context.response = { headers, ok, redirected, status, statusText, type, url };
|
|
7288
7288
|
}
|
|
7289
7289
|
data = await getArrayBufferOrStringFromData(data, loader, options);
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
return
|
|
7290
|
+
const loaderWithParser = loader;
|
|
7291
|
+
if (loaderWithParser.parseTextSync && typeof data === "string") {
|
|
7292
|
+
return loaderWithParser.parseTextSync(data, options, context);
|
|
7293
7293
|
}
|
|
7294
7294
|
if (canParseWithWorker(loader, options)) {
|
|
7295
7295
|
return await parseWithWorker(loader, data, options, context, parse);
|
|
7296
7296
|
}
|
|
7297
|
-
if (
|
|
7298
|
-
return await
|
|
7297
|
+
if (loaderWithParser.parseText && typeof data === "string") {
|
|
7298
|
+
return await loaderWithParser.parseText(data, options, context);
|
|
7299
7299
|
}
|
|
7300
|
-
if (
|
|
7301
|
-
return await
|
|
7300
|
+
if (loaderWithParser.parse) {
|
|
7301
|
+
return await loaderWithParser.parse(data, options, context);
|
|
7302
7302
|
}
|
|
7303
|
-
assert3(!
|
|
7303
|
+
assert3(!loaderWithParser.parseSync);
|
|
7304
7304
|
throw new Error(`${loader.id} loader - no parser found and worker is disabled`);
|
|
7305
7305
|
}
|
|
7306
7306
|
var init_parse = __esm({
|
|
7307
7307
|
"../core/src/lib/api/parse.ts"() {
|
|
7308
|
-
init_src();
|
|
7309
7308
|
init_src2();
|
|
7309
|
+
init_src();
|
|
7310
7310
|
init_normalize_loader();
|
|
7311
7311
|
init_is_type();
|
|
7312
7312
|
init_option_utils();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tiles",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.21",
|
|
4
4
|
"description": "Common components for different tiles loaders.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"build-bundle": "esbuild src/bundle.ts --bundle --outfile=dist/dist.min.js"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@loaders.gl/loader-utils": "4.0.0-alpha.
|
|
37
|
-
"@loaders.gl/math": "4.0.0-alpha.
|
|
36
|
+
"@loaders.gl/loader-utils": "4.0.0-alpha.21",
|
|
37
|
+
"@loaders.gl/math": "4.0.0-alpha.21",
|
|
38
38
|
"@math.gl/core": "^3.5.1",
|
|
39
39
|
"@math.gl/culling": "^3.5.1",
|
|
40
40
|
"@math.gl/geospatial": "^3.5.1",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@deck.gl/core": "^8.9.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "df5d670b136192b26941396e944f9c46be788e83"
|
|
51
51
|
}
|