@loaders.gl/tile-converter 4.3.2 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"deps-installer.d.ts","sourceRoot":"","sources":["../../src/deps-installer/deps-installer.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,qBAAa,aAAa;IACxB;;;;;;OAMG;IAEG,OAAO,CAAC,IAAI,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YAuEjC,cAAc;YAiBd,cAAc;CAS7B"}
1
+ {"version":3,"file":"deps-installer.d.ts","sourceRoot":"","sources":["../../src/deps-installer/deps-installer.ts"],"names":[],"mappings":"AAiBA;;;;;GAKG;AACH,qBAAa,aAAa;IACxB;;;;;;OAMG;IAEG,OAAO,CAAC,IAAI,GAAE,MAAW,GAAG,OAAO,CAAC,IAAI,CAAC;YAuEjC,cAAc;YAmBd,cAAc;CAS7B"}
@@ -9,7 +9,7 @@ import { ChildProcessProxy } from '@loaders.gl/worker-utils';
9
9
  import { DRACO_EXTERNAL_LIBRARIES, DRACO_EXTERNAL_LIBRARY_URLS } from '@loaders.gl/draco';
10
10
  import { BASIS_EXTERNAL_LIBRARIES } from '@loaders.gl/textures';
11
11
  // @ts-ignore TS2304: Cannot find name '__VERSION__'.
12
- const VERSION = typeof "4.3.1" !== 'undefined' ? "4.3.1" : 'latest';
12
+ const VERSION = typeof "4.3.3" !== 'undefined' ? "4.3.3" : 'latest';
13
13
  const PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
14
14
  /**
15
15
  * Install external dependencies for converter:
@@ -72,7 +72,11 @@ export class DepsInstaller {
72
72
  console.log('All dependencies were installed succesfully.'); // eslint-disable-line no-console
73
73
  }
74
74
  async installFromNpm(module, name, extraPath = '') {
75
- const fileResponse = await fetchFile(`https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${extraPath}/${name}`);
75
+ let fileUri = `https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${extraPath}/${name}`;
76
+ if (!extraPath) {
77
+ fileUri = `https://unpkg.com/@loaders.gl/${module}@${VERSION}/dist/${name}`;
78
+ }
79
+ const fileResponse = await fetchFile(fileUri);
76
80
  if (fileResponse.status < 200 || fileResponse.status >= 300) {
77
81
  throw new Error(`Failed to load resource ${name}`);
78
82
  }