@loaders.gl/tile-converter 4.0.0-alpha.16 → 4.0.0-alpha.17

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 CHANGED
@@ -48315,16 +48315,12 @@ function arrayBufferToBase64(buffer) {
48315
48315
  }
48316
48316
 
48317
48317
  // ../core/src/lib/fetch/fetch-file.ts
48318
- async function fetchFile(url, options) {
48319
- if (typeof url === "string") {
48320
- url = resolvePath(url);
48321
- let fetchOptions = options;
48322
- if (options?.fetch && typeof options?.fetch !== "function") {
48323
- fetchOptions = options.fetch;
48324
- }
48318
+ async function fetchFile(urlOrData, fetchOptions) {
48319
+ if (typeof urlOrData === "string") {
48320
+ const url = resolvePath(urlOrData);
48325
48321
  return await fetch(url, fetchOptions);
48326
48322
  }
48327
- return await makeResponse(url);
48323
+ return await makeResponse(urlOrData);
48328
48324
  }
48329
48325
 
48330
48326
  // ../core/src/lib/fetch/write-file.ts
@@ -59845,7 +59841,7 @@ async function getIonAssets(accessToken) {
59845
59841
  assert2(accessToken);
59846
59842
  const url = CESIUM_ION_URL;
59847
59843
  const headers = { Authorization: `Bearer ${accessToken}` };
59848
- const response = await fetchFile(url, { fetch: { headers } });
59844
+ const response = await fetchFile(url, { headers });
59849
59845
  if (!response.ok) {
59850
59846
  throw new Error(response.statusText);
59851
59847
  }
@@ -59855,12 +59851,12 @@ async function getIonAssetMetadata(accessToken, assetId) {
59855
59851
  assert2(accessToken, assetId);
59856
59852
  const headers = { Authorization: `Bearer ${accessToken}` };
59857
59853
  const url = `${CESIUM_ION_URL}/${assetId}`;
59858
- let response = await fetchFile(`${url}`, { fetch: { headers } });
59854
+ let response = await fetchFile(`${url}`, { headers });
59859
59855
  if (!response.ok) {
59860
59856
  throw new Error(response.statusText);
59861
59857
  }
59862
59858
  let metadata = await response.json();
59863
- response = await fetchFile(`${url}/endpoint`, { fetch: { headers } });
59859
+ response = await fetchFile(`${url}/endpoint`, { headers });
59864
59860
  if (!response.ok) {
59865
59861
  throw new Error(response.statusText);
59866
59862
  }
@@ -14,7 +14,7 @@ var _zip = require("@loaders.gl/zip");
14
14
  var _fileUtils = require("../lib/utils/file-utils");
15
15
  var _path = require("path");
16
16
  var _workerUtils = require("@loaders.gl/worker-utils");
17
- var VERSION = typeof "4.0.0-alpha.16" !== 'undefined' ? "4.0.0-alpha.16" : 'beta';
17
+ var VERSION = typeof "4.0.0-alpha.17" !== 'undefined' ? "4.0.0-alpha.17" : 'beta';
18
18
  var PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
19
19
  var DepsInstaller = function () {
20
20
  function DepsInstaller() {
@@ -8,7 +8,7 @@ exports.PGMLoader = void 0;
8
8
  var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
9
9
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
10
10
  var _geoid = require("@math.gl/geoid");
11
- var VERSION = typeof "4.0.0-alpha.16" !== 'undefined' ? "4.0.0-alpha.16" : 'latest';
11
+ var VERSION = typeof "4.0.0-alpha.17" !== 'undefined' ? "4.0.0-alpha.17" : 'latest';
12
12
  var PGMLoader = {
13
13
  name: 'PGM - Netpbm grayscale image format',
14
14
  id: 'pgm',
@@ -3,7 +3,7 @@ import { ZipLoader } from '@loaders.gl/zip';
3
3
  import { writeFile } from '../lib/utils/file-utils';
4
4
  import { join } from 'path';
5
5
  import { ChildProcessProxy } from '@loaders.gl/worker-utils';
6
- const VERSION = typeof "4.0.0-alpha.16" !== 'undefined' ? "4.0.0-alpha.16" : 'beta';
6
+ const VERSION = typeof "4.0.0-alpha.17" !== 'undefined' ? "4.0.0-alpha.17" : 'beta';
7
7
  const PGM_LINK = 'https://raw.githubusercontent.com/visgl/deck.gl-data/master/egm/egm2008-5.zip';
8
8
  export class DepsInstaller {
9
9
  async install() {
@@ -1,5 +1,5 @@
1
1
  import { parsePGM } from '@math.gl/geoid';
2
- const VERSION = typeof "4.0.0-alpha.16" !== 'undefined' ? "4.0.0-alpha.16" : 'latest';
2
+ const VERSION = typeof "4.0.0-alpha.17" !== 'undefined' ? "4.0.0-alpha.17" : 'latest';
3
3
  export const PGMLoader = {
4
4
  name: 'PGM - Netpbm grayscale image format',
5
5
  id: 'pgm',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loaders.gl/tile-converter",
3
- "version": "4.0.0-alpha.16",
3
+ "version": "4.0.0-alpha.17",
4
4
  "description": "Converter",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -45,18 +45,18 @@
45
45
  "build-i3s-server-bundle": "esbuild src/i3s-server/bin/www.ts --outfile=dist/esm/i3s-server/bin/i3s-server.min.js --platform=node --target=esnext,node14 --external:join-images --minify --bundle --define:__VERSION__=\\\"$npm_package_version\\\""
46
46
  },
47
47
  "dependencies": {
48
- "@loaders.gl/3d-tiles": "4.0.0-alpha.16",
49
- "@loaders.gl/crypto": "4.0.0-alpha.16",
50
- "@loaders.gl/draco": "4.0.0-alpha.16",
51
- "@loaders.gl/gltf": "4.0.0-alpha.16",
52
- "@loaders.gl/i3s": "4.0.0-alpha.16",
53
- "@loaders.gl/images": "4.0.0-alpha.16",
54
- "@loaders.gl/loader-utils": "4.0.0-alpha.16",
55
- "@loaders.gl/polyfills": "4.0.0-alpha.16",
56
- "@loaders.gl/textures": "4.0.0-alpha.16",
57
- "@loaders.gl/tiles": "4.0.0-alpha.16",
58
- "@loaders.gl/worker-utils": "4.0.0-alpha.16",
59
- "@loaders.gl/zip": "4.0.0-alpha.16",
48
+ "@loaders.gl/3d-tiles": "4.0.0-alpha.17",
49
+ "@loaders.gl/crypto": "4.0.0-alpha.17",
50
+ "@loaders.gl/draco": "4.0.0-alpha.17",
51
+ "@loaders.gl/gltf": "4.0.0-alpha.17",
52
+ "@loaders.gl/i3s": "4.0.0-alpha.17",
53
+ "@loaders.gl/images": "4.0.0-alpha.17",
54
+ "@loaders.gl/loader-utils": "4.0.0-alpha.17",
55
+ "@loaders.gl/polyfills": "4.0.0-alpha.17",
56
+ "@loaders.gl/textures": "4.0.0-alpha.17",
57
+ "@loaders.gl/tiles": "4.0.0-alpha.17",
58
+ "@loaders.gl/worker-utils": "4.0.0-alpha.17",
59
+ "@loaders.gl/zip": "4.0.0-alpha.17",
60
60
  "@math.gl/core": "^3.5.1",
61
61
  "@math.gl/culling": "^3.5.1",
62
62
  "@math.gl/geoid": "^3.5.1",
@@ -79,7 +79,7 @@
79
79
  "join-images": "^1.1.3",
80
80
  "sharp": "^0.31.3"
81
81
  },
82
- "gitHead": "87e9714165c3ce143a04ac45bbd9d922006f1b63",
82
+ "gitHead": "68a743e2460cc89bf89edabfd08b395380d7d10c",
83
83
  "devDependencies": {
84
84
  "@types/express": "^4.17.17",
85
85
  "@types/node": "^20.4.2"