@loaders.gl/gltf 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 +2 -2
- package/package.json +6 -6
package/dist/dist.dev.js
CHANGED
|
@@ -204,14 +204,14 @@ var __exports__ = (() => {
|
|
|
204
204
|
return null;
|
|
205
205
|
}
|
|
206
206
|
async function loadAsArrayBuffer(url) {
|
|
207
|
-
if (!void 0 || url.startsWith("http")) {
|
|
207
|
+
if (isBrowser2 || !void 0 || url.startsWith("http")) {
|
|
208
208
|
const response = await fetch(url);
|
|
209
209
|
return await response.arrayBuffer();
|
|
210
210
|
}
|
|
211
211
|
return await (void 0)(url);
|
|
212
212
|
}
|
|
213
213
|
async function loadAsText(url) {
|
|
214
|
-
if (!void 0 || url.startsWith("http")) {
|
|
214
|
+
if (isBrowser2 || !void 0 || url.startsWith("http")) {
|
|
215
215
|
const response = await fetch(url);
|
|
216
216
|
return await response.text();
|
|
217
217
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loaders.gl/gltf",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Framework-independent loader for the glTF format",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"build-bundle": "ocular-bundle ./src/index.ts"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@loaders.gl/draco": "4.0.
|
|
46
|
-
"@loaders.gl/images": "4.0.
|
|
47
|
-
"@loaders.gl/loader-utils": "4.0.
|
|
48
|
-
"@loaders.gl/textures": "4.0.
|
|
45
|
+
"@loaders.gl/draco": "4.0.1",
|
|
46
|
+
"@loaders.gl/images": "4.0.1",
|
|
47
|
+
"@loaders.gl/loader-utils": "4.0.1",
|
|
48
|
+
"@loaders.gl/textures": "4.0.1",
|
|
49
49
|
"@math.gl/core": "^4.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "765e5a26a6bf3f2cc02cabffc4a1e3665ec92a53"
|
|
52
52
|
}
|