@loaders.gl/draco 4.0.0-beta.8 → 4.0.1

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.dev.js CHANGED
@@ -663,14 +663,14 @@ var __exports__ = (() => {
663
663
  return null;
664
664
  }
665
665
  async function loadAsArrayBuffer(url) {
666
- if (!void 0 || url.startsWith("http")) {
666
+ if (isBrowser || !void 0 || url.startsWith("http")) {
667
667
  const response = await fetch(url);
668
668
  return await response.arrayBuffer();
669
669
  }
670
670
  return await (void 0)(url);
671
671
  }
672
672
  async function loadAsText(url) {
673
- if (!void 0 || url.startsWith("http")) {
673
+ if (isBrowser || !void 0 || url.startsWith("http")) {
674
674
  const response = await fetch(url);
675
675
  return await response.text();
676
676
  }