@splinetool/viewer 2.0.37 → 2.0.38
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/build/boolean.js +6 -2
- package/build/boolean.wasm +0 -0
- package/build/spline-viewer.cjs +136 -136
- package/build/spline-viewer.js +136 -136
- package/build/spline-viewer.webgl.js +130 -130
- package/build/spline-viewer.webgpu.js +64 -64
- package/package.json +1 -1
package/build/boolean.js
CHANGED
|
@@ -227,7 +227,7 @@ export function mesh_topological_data(mesh) {
|
|
|
227
227
|
function __wbg_get_imports() {
|
|
228
228
|
const import0 = {
|
|
229
229
|
__proto__: null,
|
|
230
|
-
|
|
230
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
231
231
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
232
232
|
},
|
|
233
233
|
__wbindgen_init_externref_table: function() {
|
|
@@ -348,11 +348,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
348
348
|
|
|
349
349
|
async function __wbg_load(module, imports) {
|
|
350
350
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
351
|
+
if (!module.ok) {
|
|
352
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
353
|
+
}
|
|
354
|
+
|
|
351
355
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
352
356
|
try {
|
|
353
357
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
354
358
|
} catch (e) {
|
|
355
|
-
const validResponse =
|
|
359
|
+
const validResponse = expectedResponseType(module.type);
|
|
356
360
|
|
|
357
361
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
358
362
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/build/boolean.wasm
CHANGED
|
Binary file
|