@lat-murmeldjur/weeb_3 0.0.351001 → 0.0.352001
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/package.json +1 -1
- package/service.js +34 -90
- package/snippets/weeb_3-03f860286800ffdb/static/hls_loader.js +20 -1
- package/weeb_3.d.ts +3 -2
- package/weeb_3.js +46 -84
- package/weeb_3_bg.wasm +0 -0
- package/weeb_3_bg.wasm.d.ts +3 -2
package/package.json
CHANGED
package/service.js
CHANGED
|
@@ -88,78 +88,32 @@ function isBzzUploadPath(pathname) {
|
|
|
88
88
|
return NETWORK_ROUTE_PREFIXES.some((prefix) => pathname === `${SCOPE_PATH}${prefix}bzz`);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
function
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const resource = url.pathname.substring(marker.length);
|
|
98
|
-
if (!resource) {
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
const reference = resource.split("/", 1)[0];
|
|
103
|
-
if (!isSwarmReference(reference)) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
try {
|
|
108
|
-
return decodeURIComponent(resource);
|
|
109
|
-
} catch (_) {
|
|
110
|
-
return resource;
|
|
111
|
-
}
|
|
91
|
+
function decodeResource(resource) {
|
|
92
|
+
try {
|
|
93
|
+
return decodeURIComponent(resource);
|
|
94
|
+
} catch (_) {
|
|
95
|
+
return resource;
|
|
112
96
|
}
|
|
97
|
+
}
|
|
113
98
|
|
|
114
|
-
|
|
99
|
+
function canonicalBzzResource(url) {
|
|
100
|
+
const marker = BZZ_ROUTE_MARKERS.find((marker) => url.pathname.startsWith(marker));
|
|
101
|
+
const resource = marker && url.pathname.substring(marker.length);
|
|
102
|
+
return resource && isSwarmReference(resource.split("/", 1)[0])
|
|
103
|
+
? decodeResource(resource) : null;
|
|
115
104
|
}
|
|
116
105
|
|
|
117
106
|
function canonicalRawResource(url) {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const encodedResource = url.pathname.substring(marker.length);
|
|
124
|
-
if (!encodedResource) {
|
|
125
|
-
return null;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
let resource;
|
|
129
|
-
try {
|
|
130
|
-
resource = decodeURIComponent(encodedResource);
|
|
131
|
-
} catch (_) {
|
|
132
|
-
resource = encodedResource;
|
|
133
|
-
}
|
|
134
|
-
if (rawType === "hls-bytes" && !isSwarmReference(resource)) {
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
|
-
return resource;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
return null;
|
|
107
|
+
const route = RAW_ROUTE_MARKERS.find(([marker]) => url.pathname.startsWith(marker));
|
|
108
|
+
if (!route) return null;
|
|
109
|
+
const resource = decodeResource(url.pathname.substring(route[0].length));
|
|
110
|
+
return resource && (route[1] !== "hls-bytes" || isSwarmReference(resource)) ? resource : null;
|
|
141
111
|
}
|
|
142
112
|
|
|
143
113
|
function canonicalFeedResource(url) {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
const resource = url.pathname.substring(marker.length);
|
|
150
|
-
const parts = resource.split("/");
|
|
151
|
-
if (
|
|
152
|
-
parts.length !== 2 ||
|
|
153
|
-
!/^[a-fA-F0-9]{40}$/.test(parts[0]) ||
|
|
154
|
-
!/^[a-fA-F0-9]{64}$/.test(parts[1])
|
|
155
|
-
) {
|
|
156
|
-
return null;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return `${parts[0]}/${parts[1]}`;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
return null;
|
|
114
|
+
const marker = FEED_ROUTE_MARKERS.find((marker) => url.pathname.startsWith(marker));
|
|
115
|
+
const resource = marker && url.pathname.substring(marker.length);
|
|
116
|
+
return resource && /^[a-fA-F0-9]{40}\/[a-fA-F0-9]{64}$/.test(resource) ? resource : null;
|
|
163
117
|
}
|
|
164
118
|
|
|
165
119
|
function isHlsResource(url) {
|
|
@@ -206,41 +160,31 @@ self.addEventListener("activate", (event) => {
|
|
|
206
160
|
});
|
|
207
161
|
|
|
208
162
|
self.addEventListener("message", (event) => {
|
|
163
|
+
const type = event.data?.type;
|
|
209
164
|
if (
|
|
210
|
-
(
|
|
165
|
+
(type !== "WEEB3_CLAIM" && type !== "WEEB3_PING") ||
|
|
211
166
|
event.data?.protocol !== SERVICE_WORKER_PROTOCOL
|
|
212
167
|
) {
|
|
213
168
|
return;
|
|
214
169
|
}
|
|
215
|
-
|
|
216
|
-
|
|
170
|
+
const port = event.ports?.[0];
|
|
171
|
+
const reply = () => {
|
|
172
|
+
port?.postMessage({
|
|
173
|
+
type: type === "WEEB3_CLAIM" ? "WEEB3_CLAIMED" : "WEEB3_PONG",
|
|
174
|
+
protocol: SERVICE_WORKER_PROTOCOL,
|
|
175
|
+
scope: SCOPE_PATH,
|
|
176
|
+
marker: SERVICE_WORKER_MARKER
|
|
177
|
+
});
|
|
178
|
+
closeMessagePort(port);
|
|
179
|
+
};
|
|
180
|
+
if (type === "WEEB3_CLAIM") {
|
|
217
181
|
event.waitUntil((async () => {
|
|
218
182
|
await self.clients.claim();
|
|
219
|
-
|
|
220
|
-
type: "WEEB3_CLAIMED",
|
|
221
|
-
protocol: SERVICE_WORKER_PROTOCOL,
|
|
222
|
-
scope: SCOPE_PATH,
|
|
223
|
-
marker: SERVICE_WORKER_MARKER
|
|
224
|
-
});
|
|
225
|
-
closeMessagePort(port);
|
|
183
|
+
reply();
|
|
226
184
|
})());
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
if (event.data?.type !== "WEEB3_PING") {
|
|
231
|
-
return;
|
|
232
|
-
}
|
|
233
|
-
const port = event.ports?.[0];
|
|
234
|
-
if (!port) {
|
|
235
|
-
return;
|
|
185
|
+
} else if (port) {
|
|
186
|
+
reply();
|
|
236
187
|
}
|
|
237
|
-
port.postMessage({
|
|
238
|
-
type: "WEEB3_PONG",
|
|
239
|
-
protocol: SERVICE_WORKER_PROTOCOL,
|
|
240
|
-
scope: SCOPE_PATH,
|
|
241
|
-
marker: SERVICE_WORKER_MARKER
|
|
242
|
-
});
|
|
243
|
-
closeMessagePort(port);
|
|
244
188
|
});
|
|
245
189
|
|
|
246
190
|
self.addEventListener("fetch", (event) => {
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
export async function loadHls() {
|
|
2
2
|
const module = await import("hls.js");
|
|
3
|
-
|
|
3
|
+
const Hls = module.default ?? module.Hls;
|
|
4
|
+
class BufferController extends Hls.DefaultConfig.bufferController {
|
|
5
|
+
constructor(hls, tracker) {
|
|
6
|
+
super(hls, tracker);
|
|
7
|
+
hls.on(Hls.Events.LEVEL_LOADED, (_, { details, levelInfo }) => {
|
|
8
|
+
const previous = levelInfo?.details ?? (details.live && hls.latestLevelDetails);
|
|
9
|
+
const offset = hls.config.timelineOffset;
|
|
10
|
+
if (offset > 0 && previous && previous !== details &&
|
|
11
|
+
(previous.live || details.live) && previous.appliedTimelineOffset === offset) {
|
|
12
|
+
// Merging inherits the origin.
|
|
13
|
+
details.appliedTimelineOffset = offset;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
return class extends Hls {
|
|
19
|
+
constructor(config) {
|
|
20
|
+
super({ ...config, bufferController: BufferController });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
4
23
|
}
|
package/weeb_3.d.ts
CHANGED
|
@@ -102,13 +102,14 @@ export interface InitOutput {
|
|
|
102
102
|
readonly __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
103
103
|
readonly requestarguments_method: (a: number) => [number, number];
|
|
104
104
|
readonly requestarguments_params: (a: number) => any;
|
|
105
|
-
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
106
105
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______: (a: number, b: number) => void;
|
|
107
106
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______: (a: number, b: number) => void;
|
|
107
|
+
readonly wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
108
108
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any, d: number, e: number) => [number, number];
|
|
109
109
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
110
|
-
readonly
|
|
110
|
+
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any) => [number, number];
|
|
111
111
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue______1_: (a: number, b: number, c: any, d: any) => void;
|
|
112
|
+
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____: (a: number, b: number, c: any) => void;
|
|
112
113
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any) => void;
|
|
113
114
|
readonly wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
114
115
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
package/weeb_3.js
CHANGED
|
@@ -412,10 +412,6 @@ function __wbg_get_imports() {
|
|
|
412
412
|
const ret = arg0.WorkerGlobalScope;
|
|
413
413
|
return ret;
|
|
414
414
|
},
|
|
415
|
-
__wbg_WorkerGlobalScope_f6889a7bbe9f0d2d: function(arg0) {
|
|
416
|
-
const ret = arg0.WorkerGlobalScope;
|
|
417
|
-
return ret;
|
|
418
|
-
},
|
|
419
415
|
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
|
|
420
416
|
const v = arg1;
|
|
421
417
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
@@ -584,12 +580,6 @@ function __wbg_get_imports() {
|
|
|
584
580
|
const ret = arg0.childElementCount;
|
|
585
581
|
return ret;
|
|
586
582
|
},
|
|
587
|
-
__wbg_clearInterval_905868a11bace7cc: function(arg0, arg1) {
|
|
588
|
-
arg0.clearInterval(arg1);
|
|
589
|
-
},
|
|
590
|
-
__wbg_clearInterval_c75df0651e74fbb8: function(arg0, arg1) {
|
|
591
|
-
arg0.clearInterval(arg1);
|
|
592
|
-
},
|
|
593
583
|
__wbg_clearTimeout_5a54f8841c30079a: function(arg0) {
|
|
594
584
|
const ret = clearTimeout(arg0);
|
|
595
585
|
return ret;
|
|
@@ -598,9 +588,15 @@ function __wbg_get_imports() {
|
|
|
598
588
|
const ret = clearTimeout(arg0);
|
|
599
589
|
return ret;
|
|
600
590
|
},
|
|
591
|
+
__wbg_clearTimeout_d1399c741c86c6a3: function(arg0) {
|
|
592
|
+
clearTimeout(arg0);
|
|
593
|
+
},
|
|
601
594
|
__wbg_click_0e9c20848b655ed3: function(arg0) {
|
|
602
595
|
arg0.click();
|
|
603
596
|
},
|
|
597
|
+
__wbg_close_1d08eaf57ed325c0: function() { return handleError(function (arg0) {
|
|
598
|
+
arg0.close();
|
|
599
|
+
}, arguments); },
|
|
604
600
|
__wbg_close_eef7356f70a62f3c: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
605
601
|
arg0.close(arg1, getStringFromWasm0(arg2, arg3));
|
|
606
602
|
}, arguments); },
|
|
@@ -645,10 +641,6 @@ function __wbg_get_imports() {
|
|
|
645
641
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
646
642
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
647
643
|
}, arguments); },
|
|
648
|
-
__wbg_crypto_86f2631e91b51511: function(arg0) {
|
|
649
|
-
const ret = arg0.crypto;
|
|
650
|
-
return ret;
|
|
651
|
-
},
|
|
652
644
|
__wbg_currentTime_3550761b514bd17a: function(arg0) {
|
|
653
645
|
const ret = arg0.currentTime;
|
|
654
646
|
return ret;
|
|
@@ -739,13 +731,14 @@ function __wbg_get_imports() {
|
|
|
739
731
|
__wbg_getRandomValues_a8ddca022803a145: function() { return handleError(function (arg0, arg1) {
|
|
740
732
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
741
733
|
}, arguments); },
|
|
742
|
-
__wbg_getRandomValues_b3f15fcbfabb0f8b: function() { return handleError(function (arg0, arg1) {
|
|
743
|
-
arg0.getRandomValues(arg1);
|
|
744
|
-
}, arguments); },
|
|
745
734
|
__wbg_getRegistration_b0de80b77170d9ce: function(arg0) {
|
|
746
735
|
const ret = arg0.getRegistration();
|
|
747
736
|
return ret;
|
|
748
737
|
},
|
|
738
|
+
__wbg_getTime_1e3cd1391c5c3995: function(arg0) {
|
|
739
|
+
const ret = arg0.getTime();
|
|
740
|
+
return ret;
|
|
741
|
+
},
|
|
749
742
|
__wbg_get_5e856edb32ac1289: function() { return handleError(function (arg0, arg1) {
|
|
750
743
|
const ret = arg0.get(arg1);
|
|
751
744
|
return ret;
|
|
@@ -844,6 +837,16 @@ function __wbg_get_imports() {
|
|
|
844
837
|
const ret = result;
|
|
845
838
|
return ret;
|
|
846
839
|
},
|
|
840
|
+
__wbg_instanceof_Date_1b9f15b87f10aa4c: function(arg0) {
|
|
841
|
+
let result;
|
|
842
|
+
try {
|
|
843
|
+
result = arg0 instanceof Date;
|
|
844
|
+
} catch (_) {
|
|
845
|
+
result = false;
|
|
846
|
+
}
|
|
847
|
+
const ret = result;
|
|
848
|
+
return ret;
|
|
849
|
+
},
|
|
847
850
|
__wbg_instanceof_DomException_99c177193e554b75: function(arg0) {
|
|
848
851
|
let result;
|
|
849
852
|
try {
|
|
@@ -1116,10 +1119,6 @@ function __wbg_get_imports() {
|
|
|
1116
1119
|
const ret = arg0.message;
|
|
1117
1120
|
return ret;
|
|
1118
1121
|
},
|
|
1119
|
-
__wbg_msCrypto_d562bbe83e0d4b91: function(arg0) {
|
|
1120
|
-
const ret = arg0.msCrypto;
|
|
1121
|
-
return ret;
|
|
1122
|
-
},
|
|
1123
1122
|
__wbg_name_171cddfde96a29c8: function(arg0, arg1) {
|
|
1124
1123
|
const ret = arg1.name;
|
|
1125
1124
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1217,10 +1216,6 @@ function __wbg_get_imports() {
|
|
|
1217
1216
|
const ret = new URL(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1218
1217
|
return ret;
|
|
1219
1218
|
}, arguments); },
|
|
1220
|
-
__wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
|
|
1221
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1222
|
-
return ret;
|
|
1223
|
-
},
|
|
1224
1219
|
__wbg_new_with_u8_array_sequence_and_options_bacb98f8fd0b9307: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1225
1220
|
const ret = new File(arg0, getStringFromWasm0(arg1, arg2), arg3);
|
|
1226
1221
|
return ret;
|
|
@@ -1245,10 +1240,6 @@ function __wbg_get_imports() {
|
|
|
1245
1240
|
const ret = arg0.next;
|
|
1246
1241
|
return ret;
|
|
1247
1242
|
},
|
|
1248
|
-
__wbg_node_e1f24f89a7336c2e: function(arg0) {
|
|
1249
|
-
const ret = arg0.node;
|
|
1250
|
-
return ret;
|
|
1251
|
-
},
|
|
1252
1243
|
__wbg_now_2c95c9de01293173: function(arg0) {
|
|
1253
1244
|
const ret = arg0.now();
|
|
1254
1245
|
return ret;
|
|
@@ -1373,10 +1364,6 @@ function __wbg_get_imports() {
|
|
|
1373
1364
|
__wbg_prepend_12ed960547d9dfe1: function() { return handleError(function (arg0, arg1) {
|
|
1374
1365
|
arg0.prepend(arg1);
|
|
1375
1366
|
}, arguments); },
|
|
1376
|
-
__wbg_process_3975fd6c72f520aa: function(arg0) {
|
|
1377
|
-
const ret = arg0.process;
|
|
1378
|
-
return ret;
|
|
1379
|
-
},
|
|
1380
1367
|
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
1381
1368
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1382
1369
|
},
|
|
@@ -1399,9 +1386,6 @@ function __wbg_get_imports() {
|
|
|
1399
1386
|
__wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
|
|
1400
1387
|
queueMicrotask(arg0);
|
|
1401
1388
|
},
|
|
1402
|
-
__wbg_randomFillSync_f8c153b79f285817: function() { return handleError(function (arg0, arg1) {
|
|
1403
|
-
arg0.randomFillSync(arg1);
|
|
1404
|
-
}, arguments); },
|
|
1405
1389
|
__wbg_readyState_16b23bf0e7fa2af3: function(arg0) {
|
|
1406
1390
|
const ret = arg0.readyState;
|
|
1407
1391
|
return (__wbindgen_enum_IdbRequestReadyState.indexOf(ret) + 1 || 3) - 1;
|
|
@@ -1450,10 +1434,6 @@ function __wbg_get_imports() {
|
|
|
1450
1434
|
const ret = arg0.request(RequestArguments.__wrap(arg1));
|
|
1451
1435
|
return ret;
|
|
1452
1436
|
}, arguments); },
|
|
1453
|
-
__wbg_require_b74f47fc2d022fd6: function() { return handleError(function () {
|
|
1454
|
-
const ret = module.require;
|
|
1455
|
-
return ret;
|
|
1456
|
-
}, arguments); },
|
|
1457
1437
|
__wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
|
|
1458
1438
|
const ret = Promise.resolve(arg0);
|
|
1459
1439
|
return ret;
|
|
@@ -1504,12 +1484,8 @@ function __wbg_get_imports() {
|
|
|
1504
1484
|
__wbg_setAttribute_cc8e4c8a2a008508: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1505
1485
|
arg0.setAttribute(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1506
1486
|
}, arguments); },
|
|
1507
|
-
|
|
1508
|
-
const ret = arg0
|
|
1509
|
-
return ret;
|
|
1510
|
-
}, arguments); },
|
|
1511
|
-
__wbg_setInterval_b471c2130618eef6: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1512
|
-
const ret = arg0.setInterval(arg1, arg2, ...arg3);
|
|
1487
|
+
__wbg_setTimeout_0a2454fa756db90d: function() { return handleError(function (arg0, arg1) {
|
|
1488
|
+
const ret = setTimeout(arg0, arg1);
|
|
1513
1489
|
return ret;
|
|
1514
1490
|
}, arguments); },
|
|
1515
1491
|
__wbg_setTimeout_db2dbaeefb6f39c7: function() { return handleError(function (arg0, arg1) {
|
|
@@ -1705,10 +1681,6 @@ function __wbg_get_imports() {
|
|
|
1705
1681
|
__wbg_stopLoad_0087851ff3940d57: function() { return handleError(function (arg0) {
|
|
1706
1682
|
arg0.stopLoad();
|
|
1707
1683
|
}, arguments); },
|
|
1708
|
-
__wbg_subarray_a96e1fef17ed23cb: function(arg0, arg1, arg2) {
|
|
1709
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1710
|
-
return ret;
|
|
1711
|
-
},
|
|
1712
1684
|
__wbg_target_521be630ab05b11e: function(arg0) {
|
|
1713
1685
|
const ret = arg0.target;
|
|
1714
1686
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1777,10 +1749,6 @@ function __wbg_get_imports() {
|
|
|
1777
1749
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1778
1750
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1779
1751
|
},
|
|
1780
|
-
__wbg_versions_4e31226f5e8dc909: function(arg0) {
|
|
1781
|
-
const ret = arg0.versions;
|
|
1782
|
-
return ret;
|
|
1783
|
-
},
|
|
1784
1752
|
__wbg_waiting_6c1a093c2fa2102b: function(arg0) {
|
|
1785
1753
|
const ret = arg0.waiting;
|
|
1786
1754
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1789,71 +1757,61 @@ function __wbg_get_imports() {
|
|
|
1789
1757
|
console.warn(arg0);
|
|
1790
1758
|
},
|
|
1791
1759
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1792
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1793
|
-
const ret =
|
|
1760
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref, Externref], shim_idx: 4, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
1761
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____);
|
|
1794
1762
|
return ret;
|
|
1795
1763
|
},
|
|
1796
1764
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1797
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1798
|
-
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______,
|
|
1765
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [Externref, String], shim_idx: 34, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: false }) -> Externref`.
|
|
1766
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__);
|
|
1799
1767
|
return ret;
|
|
1800
1768
|
},
|
|
1801
1769
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
1802
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1803
|
-
const ret =
|
|
1770
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 38, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1771
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__);
|
|
1804
1772
|
return ret;
|
|
1805
1773
|
},
|
|
1806
1774
|
__wbindgen_cast_0000000000000004: function(arg0, arg1) {
|
|
1807
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1808
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______,
|
|
1775
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 3, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 36, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1776
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____);
|
|
1809
1777
|
return ret;
|
|
1810
1778
|
},
|
|
1811
1779
|
__wbindgen_cast_0000000000000005: function(arg0, arg1) {
|
|
1812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1780
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6, function: Function { arguments: [Externref], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
1781
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____);
|
|
1814
1782
|
return ret;
|
|
1815
1783
|
},
|
|
1816
1784
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1817
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1785
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6, function: Function { arguments: [NamedExternref("Event")], shim_idx: 7, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1818
1786
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____);
|
|
1819
1787
|
return ret;
|
|
1820
1788
|
},
|
|
1821
1789
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1822
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1823
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______,
|
|
1790
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 6, function: Function { arguments: [], shim_idx: 97, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1791
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______);
|
|
1824
1792
|
return ret;
|
|
1825
1793
|
},
|
|
1826
1794
|
__wbindgen_cast_0000000000000008: function(arg0, arg1) {
|
|
1827
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1828
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1829
|
-
return ret;
|
|
1830
|
-
},
|
|
1831
|
-
__wbindgen_cast_0000000000000009: function(arg0, arg1) {
|
|
1832
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 5, function: Function { arguments: [], shim_idx: 102, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1833
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______);
|
|
1795
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 96, function: Function { arguments: [], shim_idx: 97, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1796
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______, wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______);
|
|
1834
1797
|
return ret;
|
|
1835
1798
|
},
|
|
1836
|
-
|
|
1799
|
+
__wbindgen_cast_0000000000000009: function(arg0) {
|
|
1837
1800
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1838
1801
|
const ret = arg0;
|
|
1839
1802
|
return ret;
|
|
1840
1803
|
},
|
|
1841
|
-
|
|
1804
|
+
__wbindgen_cast_000000000000000a: function(arg0) {
|
|
1842
1805
|
// Cast intrinsic for `I64 -> Externref`.
|
|
1843
1806
|
const ret = arg0;
|
|
1844
1807
|
return ret;
|
|
1845
1808
|
},
|
|
1846
|
-
|
|
1847
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1848
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1849
|
-
return ret;
|
|
1850
|
-
},
|
|
1851
|
-
__wbindgen_cast_000000000000000d: function(arg0, arg1) {
|
|
1809
|
+
__wbindgen_cast_000000000000000b: function(arg0, arg1) {
|
|
1852
1810
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1853
1811
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1854
1812
|
return ret;
|
|
1855
1813
|
},
|
|
1856
|
-
|
|
1814
|
+
__wbindgen_cast_000000000000000c: function(arg0) {
|
|
1857
1815
|
// Cast intrinsic for `U64 -> Externref`.
|
|
1858
1816
|
const ret = BigInt.asUintN(64, arg0);
|
|
1859
1817
|
return ret;
|
|
@@ -1883,12 +1841,16 @@ function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______(arg0
|
|
|
1883
1841
|
wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______(arg0, arg1);
|
|
1884
1842
|
}
|
|
1885
1843
|
|
|
1844
|
+
function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2) {
|
|
1845
|
+
wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____(arg0, arg1, arg2);
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1886
1848
|
function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____(arg0, arg1, arg2) {
|
|
1887
1849
|
wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____(arg0, arg1, arg2);
|
|
1888
1850
|
}
|
|
1889
1851
|
|
|
1890
|
-
function
|
|
1891
|
-
const ret = wasm.
|
|
1852
|
+
function wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__(arg0, arg1, arg2) {
|
|
1853
|
+
const ret = wasm.wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__(arg0, arg1, arg2);
|
|
1892
1854
|
if (ret[1]) {
|
|
1893
1855
|
throw takeFromExternrefTable0(ret[0]);
|
|
1894
1856
|
}
|
package/weeb_3_bg.wasm
CHANGED
|
Binary file
|
package/weeb_3_bg.wasm.d.ts
CHANGED
|
@@ -35,13 +35,14 @@ export const weeb3workerruntime_start: (a: number, b: any) => any;
|
|
|
35
35
|
export const __wbg_requestarguments_free: (a: number, b: number) => void;
|
|
36
36
|
export const requestarguments_method: (a: number) => [number, number];
|
|
37
37
|
export const requestarguments_params: (a: number) => any;
|
|
38
|
-
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
39
38
|
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__Fn__wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue___Output_______: (a: number, b: number) => void;
|
|
40
39
|
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut__wasm_bindgen_2fc1ddd1063c2c6b___JsValue____Output_______: (a: number, b: number) => void;
|
|
40
|
+
export const wasm_bindgen_2fc1ddd1063c2c6b___closure__destroy___dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output_______: (a: number, b: number) => void;
|
|
41
41
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__alloc_508e33bd5656020b___string__String__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any, d: number, e: number) => [number, number];
|
|
42
42
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any, d: any) => void;
|
|
43
|
-
export const
|
|
43
|
+
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent__core_ed718c3d60ebd546___result__Result_____wasm_bindgen_2fc1ddd1063c2c6b___JsValue__: (a: number, b: number, c: any) => [number, number];
|
|
44
44
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue__wasm_bindgen_2fc1ddd1063c2c6b___JsValue______1_: (a: number, b: number, c: any, d: any) => void;
|
|
45
|
+
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___web_sys_672975c58fd3dbc7___features__gen_MessageEvent__MessageEvent_____: (a: number, b: number, c: any) => void;
|
|
45
46
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke___wasm_bindgen_2fc1ddd1063c2c6b___JsValue_____: (a: number, b: number, c: any) => void;
|
|
46
47
|
export const wasm_bindgen_2fc1ddd1063c2c6b___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
47
48
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|