@dcl-regenesislabs/bevy-explorer-web 0.1.0-18292640458.commit-5e17143 → 0.1.0-18312335384.commit-6a81936
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/.env +1 -1
- package/index.html +3 -2
- package/main.js +5 -2
- package/package.json +3 -3
- package/pkg/webgpu_build.d.ts +9 -7
- package/pkg/webgpu_build.js +65 -49
- package/pkg/webgpu_build_bg.wasm +0 -0
- package/pkg/webgpu_build_bg.wasm.d.ts +8 -7
- package/sandbox_worker.js +11 -11
- package/scripts/prebuild.js +7 -0
package/.env
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
1
|
+
PUBLIC_URL="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18312335384.commit-6a81936"
|
package/index.html
CHANGED
|
@@ -101,7 +101,8 @@
|
|
|
101
101
|
}
|
|
102
102
|
</style>
|
|
103
103
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
|
|
104
|
-
|
|
104
|
+
<script>window.PUBLIC_URL = "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18312335384.commit-6a81936";</script>
|
|
105
|
+
</head>
|
|
105
106
|
<body>
|
|
106
107
|
<div id="header" class="container">
|
|
107
108
|
<h1>Bevy Explorer</h1>
|
|
@@ -129,6 +130,6 @@
|
|
|
129
130
|
</div>
|
|
130
131
|
<script src="https://cdn.jsdelivr.net/npm/livekit-client/dist/livekit-client.umd.min.js"></script>
|
|
131
132
|
<script src="https://cdn.jsdelivr.net/npm/hls.js@1"></script>
|
|
132
|
-
<script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
133
|
+
<script type="module" src="https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18312335384.commit-6a81936/main.js"></script>
|
|
133
134
|
</body>
|
|
134
135
|
</html>
|
package/main.js
CHANGED
|
@@ -53,8 +53,10 @@ function hideHeader() {
|
|
|
53
53
|
|
|
54
54
|
if ("serviceWorker" in navigator) {
|
|
55
55
|
window.addEventListener("load", () => {
|
|
56
|
+
const publicUrl = window.PUBLIC_URL || ".";
|
|
57
|
+
const serviceWorkerPath = `${publicUrl}/service_worker.js`
|
|
56
58
|
navigator.serviceWorker
|
|
57
|
-
.register(
|
|
59
|
+
.register(serviceWorkerPath)
|
|
58
60
|
.then((registration) => {
|
|
59
61
|
console.log(
|
|
60
62
|
"Page: Service Worker registered successfully with scope: ",
|
|
@@ -112,7 +114,8 @@ async function initEngine() {
|
|
|
112
114
|
}
|
|
113
115
|
}
|
|
114
116
|
|
|
115
|
-
const
|
|
117
|
+
const publicUrl = window.PUBLIC_URL || ".";
|
|
118
|
+
const wasmUrl = `${publicUrl}/pkg/webgpu_build_bg.wasm`;
|
|
116
119
|
|
|
117
120
|
try {
|
|
118
121
|
const compiledModule = await WebAssembly.compileStreaming(fetch(wasmUrl));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl-regenesislabs/bevy-explorer-web",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-18312335384.commit-6a81936",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"postinstall": "node ./scripts/prebuild.js"
|
|
6
6
|
},
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/decentraland/bevy-explorer.git"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-
|
|
12
|
-
"commit": "
|
|
11
|
+
"homepage": "https://cdn.decentraland.org/@dcl-regenesislabs/bevy-explorer-web/0.1.0-18312335384.commit-6a81936",
|
|
12
|
+
"commit": "6a81936a73d142947504fa694fb77a73375be2a1"
|
|
13
13
|
}
|
package/pkg/webgpu_build.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export function op_send_async(state: WorkerContext, method: string, params: stri
|
|
|
24
24
|
export function op_subscribe(state: WorkerContext, id: string): void;
|
|
25
25
|
export function op_unsubscribe(state: WorkerContext, id: string): void;
|
|
26
26
|
export function op_send_batch(state: WorkerContext): Array<any>;
|
|
27
|
+
export function op_signed_fetch_headers(state: WorkerContext, uri: string, method?: string | null): Promise<any>;
|
|
27
28
|
export function op_get_connected_players(state: WorkerContext): Promise<string[]>;
|
|
28
29
|
export function op_get_players_in_scene(state: WorkerContext): Promise<string[]>;
|
|
29
30
|
export function op_portable_spawn(state: WorkerContext, pid?: string | null, ens?: string | null): Promise<any>;
|
|
@@ -118,6 +119,7 @@ export interface InitOutput {
|
|
|
118
119
|
readonly op_subscribe: (a: number, b: number, c: number) => void;
|
|
119
120
|
readonly op_unsubscribe: (a: number, b: number, c: number) => void;
|
|
120
121
|
readonly op_send_batch: (a: number) => any;
|
|
122
|
+
readonly op_signed_fetch_headers: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
121
123
|
readonly op_get_connected_players: (a: number) => any;
|
|
122
124
|
readonly op_get_players_in_scene: (a: number) => any;
|
|
123
125
|
readonly op_portable_spawn: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -195,18 +197,18 @@ export interface InitOutput {
|
|
|
195
197
|
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
196
198
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
197
199
|
readonly closure15202_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
198
|
-
readonly
|
|
200
|
+
readonly closure47507_externref_shim: (a: number, b: number, c: any) => void;
|
|
199
201
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf6d1d6eca19ebd1: (a: number, b: number) => void;
|
|
200
202
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88ef16e697def3fb: (a: number, b: number) => void;
|
|
201
|
-
readonly
|
|
203
|
+
readonly closure51410_externref_shim: (a: number, b: number, c: any) => void;
|
|
202
204
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heedd0a6395901798: (a: number, b: number) => void;
|
|
203
205
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9bfa50ac2770910f: (a: number, b: number) => void;
|
|
204
|
-
readonly
|
|
205
|
-
readonly
|
|
206
|
+
readonly closure56371_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
207
|
+
readonly closure56375_externref_shim: (a: number, b: number, c: any) => void;
|
|
206
208
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h704fbbb35af0f5c1: (a: number, b: number) => void;
|
|
207
|
-
readonly
|
|
208
|
-
readonly
|
|
209
|
-
readonly
|
|
209
|
+
readonly closure116419_externref_shim: (a: number, b: number, c: any) => void;
|
|
210
|
+
readonly closure131351_externref_shim: (a: number, b: number, c: any) => void;
|
|
211
|
+
readonly closure134255_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
210
212
|
readonly __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
211
213
|
readonly __wbindgen_start: (a: number) => void;
|
|
212
214
|
}
|
package/pkg/webgpu_build.js
CHANGED
|
@@ -484,6 +484,22 @@ export function op_send_batch(state) {
|
|
|
484
484
|
return ret;
|
|
485
485
|
}
|
|
486
486
|
|
|
487
|
+
/**
|
|
488
|
+
* @param {WorkerContext} state
|
|
489
|
+
* @param {string} uri
|
|
490
|
+
* @param {string | null} [method]
|
|
491
|
+
* @returns {Promise<any>}
|
|
492
|
+
*/
|
|
493
|
+
export function op_signed_fetch_headers(state, uri, method) {
|
|
494
|
+
_assertClass(state, WorkerContext);
|
|
495
|
+
const ptr0 = passStringToWasm0(uri, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
496
|
+
const len0 = WASM_VECTOR_LEN;
|
|
497
|
+
var ptr1 = isLikeNone(method) ? 0 : passStringToWasm0(method, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
498
|
+
var len1 = WASM_VECTOR_LEN;
|
|
499
|
+
const ret = wasm.op_signed_fetch_headers(state.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
500
|
+
return ret;
|
|
501
|
+
}
|
|
502
|
+
|
|
487
503
|
/**
|
|
488
504
|
* @param {WorkerContext} state
|
|
489
505
|
* @returns {Promise<string[]>}
|
|
@@ -1260,7 +1276,7 @@ function __wbg_adapter_62(arg0, arg1, arg2, arg3) {
|
|
|
1260
1276
|
}
|
|
1261
1277
|
|
|
1262
1278
|
function __wbg_adapter_65(arg0, arg1, arg2) {
|
|
1263
|
-
wasm.
|
|
1279
|
+
wasm.closure47507_externref_shim(arg0, arg1, arg2);
|
|
1264
1280
|
}
|
|
1265
1281
|
|
|
1266
1282
|
function __wbg_adapter_68(arg0, arg1) {
|
|
@@ -1272,7 +1288,7 @@ function __wbg_adapter_71(arg0, arg1) {
|
|
|
1272
1288
|
}
|
|
1273
1289
|
|
|
1274
1290
|
function __wbg_adapter_74(arg0, arg1, arg2) {
|
|
1275
|
-
wasm.
|
|
1291
|
+
wasm.closure51410_externref_shim(arg0, arg1, arg2);
|
|
1276
1292
|
}
|
|
1277
1293
|
|
|
1278
1294
|
function __wbg_adapter_81(arg0, arg1) {
|
|
@@ -1284,11 +1300,11 @@ function __wbg_adapter_84(arg0, arg1) {
|
|
|
1284
1300
|
}
|
|
1285
1301
|
|
|
1286
1302
|
function __wbg_adapter_87(arg0, arg1, arg2, arg3) {
|
|
1287
|
-
wasm.
|
|
1303
|
+
wasm.closure56371_externref_shim(arg0, arg1, arg2, arg3);
|
|
1288
1304
|
}
|
|
1289
1305
|
|
|
1290
1306
|
function __wbg_adapter_90(arg0, arg1, arg2) {
|
|
1291
|
-
wasm.
|
|
1307
|
+
wasm.closure56375_externref_shim(arg0, arg1, arg2);
|
|
1292
1308
|
}
|
|
1293
1309
|
|
|
1294
1310
|
function __wbg_adapter_97(arg0, arg1) {
|
|
@@ -1296,15 +1312,15 @@ function __wbg_adapter_97(arg0, arg1) {
|
|
|
1296
1312
|
}
|
|
1297
1313
|
|
|
1298
1314
|
function __wbg_adapter_108(arg0, arg1, arg2) {
|
|
1299
|
-
wasm.
|
|
1315
|
+
wasm.closure116419_externref_shim(arg0, arg1, arg2);
|
|
1300
1316
|
}
|
|
1301
1317
|
|
|
1302
1318
|
function __wbg_adapter_111(arg0, arg1, arg2) {
|
|
1303
|
-
wasm.
|
|
1319
|
+
wasm.closure131351_externref_shim(arg0, arg1, arg2);
|
|
1304
1320
|
}
|
|
1305
1321
|
|
|
1306
|
-
function
|
|
1307
|
-
wasm.
|
|
1322
|
+
function __wbg_adapter_1511(arg0, arg1, arg2, arg3) {
|
|
1323
|
+
wasm.closure134255_externref_shim(arg0, arg1, arg2, arg3);
|
|
1308
1324
|
}
|
|
1309
1325
|
|
|
1310
1326
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
@@ -2598,7 +2614,7 @@ function __wbg_get_imports() {
|
|
|
2598
2614
|
const a = state0.a;
|
|
2599
2615
|
state0.a = 0;
|
|
2600
2616
|
try {
|
|
2601
|
-
return
|
|
2617
|
+
return __wbg_adapter_1511(a, state0.b, arg0, arg1);
|
|
2602
2618
|
} finally {
|
|
2603
2619
|
state0.a = a;
|
|
2604
2620
|
}
|
|
@@ -4085,88 +4101,88 @@ function __wbg_get_imports() {
|
|
|
4085
4101
|
const ret = false;
|
|
4086
4102
|
return ret;
|
|
4087
4103
|
};
|
|
4088
|
-
imports.wbg.
|
|
4089
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4104
|
+
imports.wbg.__wbindgen_closure_wrapper149105 = function(arg0, arg1, arg2) {
|
|
4105
|
+
const ret = makeMutClosure(arg0, arg1, 116420, __wbg_adapter_108);
|
|
4090
4106
|
return ret;
|
|
4091
4107
|
};
|
|
4092
|
-
imports.wbg.
|
|
4093
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4108
|
+
imports.wbg.__wbindgen_closure_wrapper169437 = function(arg0, arg1, arg2) {
|
|
4109
|
+
const ret = makeMutClosure(arg0, arg1, 131352, __wbg_adapter_111);
|
|
4094
4110
|
return ret;
|
|
4095
4111
|
};
|
|
4096
|
-
imports.wbg.
|
|
4097
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4112
|
+
imports.wbg.__wbindgen_closure_wrapper169439 = function(arg0, arg1, arg2) {
|
|
4113
|
+
const ret = makeMutClosure(arg0, arg1, 131352, __wbg_adapter_111);
|
|
4098
4114
|
return ret;
|
|
4099
4115
|
};
|
|
4100
4116
|
imports.wbg.__wbindgen_closure_wrapper20071 = function(arg0, arg1, arg2) {
|
|
4101
4117
|
const ret = makeMutClosure(arg0, arg1, 15203, __wbg_adapter_62);
|
|
4102
4118
|
return ret;
|
|
4103
4119
|
};
|
|
4104
|
-
imports.wbg.
|
|
4105
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4120
|
+
imports.wbg.__wbindgen_closure_wrapper63814 = function(arg0, arg1, arg2) {
|
|
4121
|
+
const ret = makeMutClosure(arg0, arg1, 47508, __wbg_adapter_65);
|
|
4106
4122
|
return ret;
|
|
4107
4123
|
};
|
|
4108
|
-
imports.wbg.
|
|
4109
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4124
|
+
imports.wbg.__wbindgen_closure_wrapper64002 = function(arg0, arg1, arg2) {
|
|
4125
|
+
const ret = makeMutClosure(arg0, arg1, 47613, __wbg_adapter_68);
|
|
4110
4126
|
return ret;
|
|
4111
4127
|
};
|
|
4112
|
-
imports.wbg.
|
|
4113
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4128
|
+
imports.wbg.__wbindgen_closure_wrapper68195 = function(arg0, arg1, arg2) {
|
|
4129
|
+
const ret = makeMutClosure(arg0, arg1, 50764, __wbg_adapter_71);
|
|
4114
4130
|
return ret;
|
|
4115
4131
|
};
|
|
4116
|
-
imports.wbg.
|
|
4117
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4132
|
+
imports.wbg.__wbindgen_closure_wrapper70233 = function(arg0, arg1, arg2) {
|
|
4133
|
+
const ret = makeMutClosure(arg0, arg1, 51411, __wbg_adapter_74);
|
|
4118
4134
|
return ret;
|
|
4119
4135
|
};
|
|
4120
|
-
imports.wbg.
|
|
4121
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4136
|
+
imports.wbg.__wbindgen_closure_wrapper70235 = function(arg0, arg1, arg2) {
|
|
4137
|
+
const ret = makeMutClosure(arg0, arg1, 51411, __wbg_adapter_74);
|
|
4122
4138
|
return ret;
|
|
4123
4139
|
};
|
|
4124
|
-
imports.wbg.
|
|
4125
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4140
|
+
imports.wbg.__wbindgen_closure_wrapper70237 = function(arg0, arg1, arg2) {
|
|
4141
|
+
const ret = makeMutClosure(arg0, arg1, 51411, __wbg_adapter_74);
|
|
4126
4142
|
return ret;
|
|
4127
4143
|
};
|
|
4128
|
-
imports.wbg.
|
|
4129
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4144
|
+
imports.wbg.__wbindgen_closure_wrapper72992 = function(arg0, arg1, arg2) {
|
|
4145
|
+
const ret = makeMutClosure(arg0, arg1, 53761, __wbg_adapter_81);
|
|
4130
4146
|
return ret;
|
|
4131
4147
|
};
|
|
4132
|
-
imports.wbg.
|
|
4133
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4148
|
+
imports.wbg.__wbindgen_closure_wrapper74327 = function(arg0, arg1, arg2) {
|
|
4149
|
+
const ret = makeMutClosure(arg0, arg1, 54719, __wbg_adapter_84);
|
|
4134
4150
|
return ret;
|
|
4135
4151
|
};
|
|
4136
|
-
imports.wbg.
|
|
4137
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4152
|
+
imports.wbg.__wbindgen_closure_wrapper76969 = function(arg0, arg1, arg2) {
|
|
4153
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_87);
|
|
4138
4154
|
return ret;
|
|
4139
4155
|
};
|
|
4140
|
-
imports.wbg.
|
|
4141
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4156
|
+
imports.wbg.__wbindgen_closure_wrapper76971 = function(arg0, arg1, arg2) {
|
|
4157
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4142
4158
|
return ret;
|
|
4143
4159
|
};
|
|
4144
|
-
imports.wbg.
|
|
4145
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4160
|
+
imports.wbg.__wbindgen_closure_wrapper76973 = function(arg0, arg1, arg2) {
|
|
4161
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4146
4162
|
return ret;
|
|
4147
4163
|
};
|
|
4148
|
-
imports.wbg.
|
|
4149
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4164
|
+
imports.wbg.__wbindgen_closure_wrapper76975 = function(arg0, arg1, arg2) {
|
|
4165
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4150
4166
|
return ret;
|
|
4151
4167
|
};
|
|
4152
|
-
imports.wbg.
|
|
4153
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4168
|
+
imports.wbg.__wbindgen_closure_wrapper76977 = function(arg0, arg1, arg2) {
|
|
4169
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_97);
|
|
4154
4170
|
return ret;
|
|
4155
4171
|
};
|
|
4156
|
-
imports.wbg.
|
|
4157
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4172
|
+
imports.wbg.__wbindgen_closure_wrapper76979 = function(arg0, arg1, arg2) {
|
|
4173
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4158
4174
|
return ret;
|
|
4159
4175
|
};
|
|
4160
|
-
imports.wbg.
|
|
4161
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4176
|
+
imports.wbg.__wbindgen_closure_wrapper76981 = function(arg0, arg1, arg2) {
|
|
4177
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4162
4178
|
return ret;
|
|
4163
4179
|
};
|
|
4164
|
-
imports.wbg.
|
|
4165
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4180
|
+
imports.wbg.__wbindgen_closure_wrapper76983 = function(arg0, arg1, arg2) {
|
|
4181
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4166
4182
|
return ret;
|
|
4167
4183
|
};
|
|
4168
|
-
imports.wbg.
|
|
4169
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4184
|
+
imports.wbg.__wbindgen_closure_wrapper76985 = function(arg0, arg1, arg2) {
|
|
4185
|
+
const ret = makeMutClosure(arg0, arg1, 56372, __wbg_adapter_90);
|
|
4170
4186
|
return ret;
|
|
4171
4187
|
};
|
|
4172
4188
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/pkg/webgpu_build_bg.wasm
CHANGED
|
Binary file
|
|
@@ -21,6 +21,7 @@ export const op_send_async: (a: number, b: number, c: number, d: number, e: numb
|
|
|
21
21
|
export const op_subscribe: (a: number, b: number, c: number) => void;
|
|
22
22
|
export const op_unsubscribe: (a: number, b: number, c: number) => void;
|
|
23
23
|
export const op_send_batch: (a: number) => any;
|
|
24
|
+
export const op_signed_fetch_headers: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
24
25
|
export const op_get_connected_players: (a: number) => any;
|
|
25
26
|
export const op_get_players_in_scene: (a: number) => any;
|
|
26
27
|
export const op_portable_spawn: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -98,17 +99,17 @@ export const __wbindgen_export_7: WebAssembly.Table;
|
|
|
98
99
|
export const __externref_drop_slice: (a: number, b: number) => void;
|
|
99
100
|
export const __externref_table_dealloc: (a: number) => void;
|
|
100
101
|
export const closure15202_externref_shim: (a: number, b: number, c: number, d: any) => void;
|
|
101
|
-
export const
|
|
102
|
+
export const closure47507_externref_shim: (a: number, b: number, c: any) => void;
|
|
102
103
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haf6d1d6eca19ebd1: (a: number, b: number) => void;
|
|
103
104
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h88ef16e697def3fb: (a: number, b: number) => void;
|
|
104
|
-
export const
|
|
105
|
+
export const closure51410_externref_shim: (a: number, b: number, c: any) => void;
|
|
105
106
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heedd0a6395901798: (a: number, b: number) => void;
|
|
106
107
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9bfa50ac2770910f: (a: number, b: number) => void;
|
|
107
|
-
export const
|
|
108
|
-
export const
|
|
108
|
+
export const closure56371_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
109
|
+
export const closure56375_externref_shim: (a: number, b: number, c: any) => void;
|
|
109
110
|
export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h704fbbb35af0f5c1: (a: number, b: number) => void;
|
|
110
|
-
export const
|
|
111
|
-
export const
|
|
112
|
-
export const
|
|
111
|
+
export const closure116419_externref_shim: (a: number, b: number, c: any) => void;
|
|
112
|
+
export const closure131351_externref_shim: (a: number, b: number, c: any) => void;
|
|
113
|
+
export const closure134255_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
113
114
|
export const __wbindgen_thread_destroy: (a?: number, b?: number, c?: number) => void;
|
|
114
115
|
export const __wbindgen_start: (a: number) => void;
|
package/sandbox_worker.js
CHANGED
|
@@ -255,24 +255,24 @@ self.onmessage = async (event) => {
|
|
|
255
255
|
|
|
256
256
|
// add listener to clean up on unhandled rejections
|
|
257
257
|
self.addEventListener("unhandledrejection", (event) => {
|
|
258
|
-
// Prevent the default browser action
|
|
258
|
+
// Prevent the default browser action
|
|
259
259
|
event.preventDefault();
|
|
260
260
|
|
|
261
261
|
console.error(
|
|
262
|
-
"[Sandbox worker]
|
|
262
|
+
"[Sandbox worker] Unhandled Promise Rejection in Worker:",
|
|
263
263
|
event.reason
|
|
264
264
|
);
|
|
265
265
|
|
|
266
|
-
try {
|
|
267
|
-
|
|
268
|
-
} catch (cleanupError) {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
266
|
+
// try {
|
|
267
|
+
// wasm_init.__wbindgen_thread_destroy();
|
|
268
|
+
// } catch (cleanupError) {
|
|
269
|
+
// console.error(
|
|
270
|
+
// "[Sandbox worker] Error during WASM cleanup:",
|
|
271
|
+
// cleanupError
|
|
272
|
+
// );
|
|
273
|
+
// }
|
|
274
274
|
|
|
275
|
-
self.close();
|
|
275
|
+
// self.close();
|
|
276
276
|
});
|
|
277
277
|
|
|
278
278
|
var wasmContext;
|
package/scripts/prebuild.js
CHANGED
|
@@ -34,6 +34,13 @@ if (fs.existsSync(htmlPath)) {
|
|
|
34
34
|
const publicUrl = ENV_CONTENT["PUBLIC_URL"];
|
|
35
35
|
const scriptPath = publicUrl ? `${publicUrl}/main.js` : "main.js";
|
|
36
36
|
|
|
37
|
+
// Inject PUBLIC_URL as a global variable
|
|
38
|
+
const publicUrlScript = `<script>window.PUBLIC_URL = ${JSON.stringify(publicUrl)};</script>`;
|
|
39
|
+
htmlContent = htmlContent.replace(
|
|
40
|
+
/<\/head>/,
|
|
41
|
+
` ${publicUrlScript}\n </head>`
|
|
42
|
+
);
|
|
43
|
+
|
|
37
44
|
// Replace the main.js script src
|
|
38
45
|
htmlContent = htmlContent.replace(
|
|
39
46
|
/<script type="module" src="main\.js"><\/script>/,
|