@loaders.gl/tiles 4.0.0-alpha.19 → 4.0.0-alpha.20
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 +5 -5
- package/package.json +4 -4
package/dist/dist.min.js
CHANGED
|
@@ -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;
|
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.20",
|
|
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.20",
|
|
37
|
+
"@loaders.gl/math": "4.0.0-alpha.20",
|
|
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": "ac122e83102657c38207d59c631a5ce4e7aa46bd"
|
|
51
51
|
}
|