@loaders.gl/i3s 4.3.0-alpha.2 → 4.3.0-alpha.3

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,7 +1,7 @@
1
1
  import { parseWebscene } from "./lib/parsers/parse-arcgis-webscene.js";
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.0-alpha.1" !== 'undefined' ? "4.3.0-alpha.1" : 'latest';
4
+ const VERSION = typeof "4.3.0-alpha.2" !== 'undefined' ? "4.3.0-alpha.2" : 'latest';
5
5
  /**
6
6
  * Loader for ArcGIS WebScene
7
7
  * Spec - https://developers.arcgis.com/web-scene-specification/objects/webscene/
package/dist/dist.dev.js CHANGED
@@ -4645,7 +4645,7 @@ var __exports__ = (() => {
4645
4645
  }
4646
4646
  };
4647
4647
 
4648
- // ../loader-utils/src/lib/file-provider/file-provider.ts
4648
+ // ../loader-utils/src/lib/file-provider/file-provider-interface.ts
4649
4649
  var isFileProvider = (fileProvider) => {
4650
4650
  return fileProvider?.getUint8 && fileProvider?.slice && fileProvider?.length;
4651
4651
  };
@@ -11470,7 +11470,11 @@ var __exports__ = (() => {
11470
11470
  try {
11471
11471
  const urlObj = new URL(url);
11472
11472
  urlWithoutParams = `${urlObj.origin}${urlObj.pathname}`;
11473
+ if (urlWithoutParams.startsWith("null")) {
11474
+ urlWithoutParams = null;
11475
+ }
11473
11476
  } catch (e2) {
11477
+ urlWithoutParams = null;
11474
11478
  }
11475
11479
  return urlWithoutParams || url;
11476
11480
  }