@loaders.gl/tile-converter 4.3.3 → 4.3.4
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/converter.min.cjs +66 -66
- package/dist/deps-installer/deps-installer.d.ts.map +1 -1
- package/dist/deps-installer/deps-installer.js +6 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/pgm-loader.js +1 -1
- package/package.json +16 -16
- package/src/deps-installer/deps-installer.ts +5 -3
package/dist/pgm-loader.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Geoid, parsePGM } from '@math.gl/geoid';
|
|
2
2
|
// __VERSION__ is injected by babel-plugin-version-inline
|
|
3
3
|
// @ts-ignore TS2304: Cannot find name '__VERSION__'.
|
|
4
|
-
const VERSION = typeof "4.3.
|
|
4
|
+
const VERSION = typeof "4.3.3" !== 'undefined' ? "4.3.3" : 'latest';
|
|
5
5
|
export { Geoid };
|
|
6
6
|
/**
|
|
7
7
|
* Loader for PGM - Netpbm grayscale image format
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/tile-converter",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
4
4
|
"description": "Converter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -51,20 +51,20 @@
|
|
|
51
51
|
"copy-certificates": "cp -R src/i3s-server/certs dist/i3s-server"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@loaders.gl/3d-tiles": "4.3.
|
|
55
|
-
"@loaders.gl/compression": "4.3.
|
|
56
|
-
"@loaders.gl/crypto": "4.3.
|
|
57
|
-
"@loaders.gl/draco": "4.3.
|
|
58
|
-
"@loaders.gl/gltf": "4.3.
|
|
59
|
-
"@loaders.gl/i3s": "4.3.
|
|
60
|
-
"@loaders.gl/images": "4.3.
|
|
61
|
-
"@loaders.gl/loader-utils": "4.3.
|
|
62
|
-
"@loaders.gl/math": "4.3.
|
|
63
|
-
"@loaders.gl/polyfills": "4.3.
|
|
64
|
-
"@loaders.gl/textures": "4.3.
|
|
65
|
-
"@loaders.gl/tiles": "4.3.
|
|
66
|
-
"@loaders.gl/worker-utils": "4.3.
|
|
67
|
-
"@loaders.gl/zip": "4.3.
|
|
54
|
+
"@loaders.gl/3d-tiles": "4.3.4",
|
|
55
|
+
"@loaders.gl/compression": "4.3.4",
|
|
56
|
+
"@loaders.gl/crypto": "4.3.4",
|
|
57
|
+
"@loaders.gl/draco": "4.3.4",
|
|
58
|
+
"@loaders.gl/gltf": "4.3.4",
|
|
59
|
+
"@loaders.gl/i3s": "4.3.4",
|
|
60
|
+
"@loaders.gl/images": "4.3.4",
|
|
61
|
+
"@loaders.gl/loader-utils": "4.3.4",
|
|
62
|
+
"@loaders.gl/math": "4.3.4",
|
|
63
|
+
"@loaders.gl/polyfills": "4.3.4",
|
|
64
|
+
"@loaders.gl/textures": "4.3.4",
|
|
65
|
+
"@loaders.gl/tiles": "4.3.4",
|
|
66
|
+
"@loaders.gl/worker-utils": "4.3.4",
|
|
67
|
+
"@loaders.gl/zip": "4.3.4",
|
|
68
68
|
"@math.gl/core": "^4.1.0",
|
|
69
69
|
"@math.gl/culling": "^4.1.0",
|
|
70
70
|
"@math.gl/geoid": "^4.1.0",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"peerDependencies": {
|
|
94
94
|
"@loaders.gl/core": "^4.3.0"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "d18246f4ef6382f787a6ae2e9e21d8a7f40e5917"
|
|
97
97
|
}
|
|
@@ -102,9 +102,11 @@ export class DepsInstaller {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
private async installFromNpm(module: string, name: string, extraPath: string = '') {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
let fileUri = `https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${extraPath}/${name}`;
|
|
106
|
+
if (!extraPath) {
|
|
107
|
+
fileUri = `https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${name}`;
|
|
108
|
+
}
|
|
109
|
+
const fileResponse = await fetchFile(fileUri);
|
|
108
110
|
|
|
109
111
|
if (fileResponse.status < 200 || fileResponse.status >= 300) {
|
|
110
112
|
throw new Error(`Failed to load resource ${name}`);
|