@unyt/datex 0.0.8 → 0.0.9
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/esm/_dnt.shims.d.ts +1 -27
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/_dnt.shims.js +1 -31
- package/esm/datex-core/datex_core_js.internal.d.ts +47 -38
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.internal.js +151 -133
- package/esm/datex-core/datex_core_js.js +13 -16
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +1 -0
- package/esm/datex-core.d.ts +6 -0
- package/esm/datex-core.d.ts.map +1 -1
- package/esm/datex-core.js +6 -0
- package/esm/default.d.ts +0 -1
- package/esm/default.js +0 -1
- package/esm/deno.json +3 -2
- package/esm/dif/builders.d.ts +5 -0
- package/esm/dif/builders.d.ts.map +1 -1
- package/esm/dif/builders.js +5 -0
- package/esm/dif/core.d.ts +9 -0
- package/esm/dif/core.d.ts.map +1 -1
- package/esm/dif/core.js +6 -0
- package/esm/dif/definitions.d.ts +43 -1
- package/esm/dif/definitions.d.ts.map +1 -1
- package/esm/dif/definitions.js +14 -0
- package/esm/dif/dif-handler.d.ts +17 -0
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +18 -2
- package/esm/dif/display.d.ts +23 -0
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +23 -0
- package/esm/mod.d.ts +10 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +10 -1
- package/esm/network/com-hub.d.ts +30 -0
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +32 -0
- package/esm/network/com-interface.d.ts +18 -0
- package/esm/network/com-interface.d.ts.map +1 -1
- package/esm/network/com-interface.js +13 -0
- package/esm/network/interface-impls/base.d.ts +28 -1
- package/esm/network/interface-impls/base.d.ts.map +1 -1
- package/esm/network/interface-impls/base.js +27 -1
- package/esm/network/interface-impls/websocket-client.d.ts +3 -1
- package/esm/network/interface-impls/websocket-client.d.ts.map +1 -1
- package/esm/network/interface-impls/websocket-client.js +3 -1
- package/esm/network/mod.d.ts +6 -0
- package/esm/network/mod.d.ts.map +1 -1
- package/esm/network/mod.js +6 -0
- package/esm/refs/ref.d.ts +3 -0
- package/esm/refs/ref.d.ts.map +1 -1
- package/esm/refs/ref.js +3 -0
- package/esm/runtime/runtime.d.ts +52 -2
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +49 -3
- package/esm/runtime/special-core-types.d.ts +18 -2
- package/esm/runtime/special-core-types.d.ts.map +1 -1
- package/esm/runtime/special-core-types.js +19 -3
- package/esm/utils/js-runtime-compat/js-runtime-interface.d.ts +10 -0
- package/esm/utils/js-runtime-compat/js-runtime-interface.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/js-runtime-interface.js +1 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts +18 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/js-runtime.js +43 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.js +22 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.js +19 -0
- package/esm/utils/js-runtime-compat/runtimes/node.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/node.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/node.js +21 -0
- package/package.json +1 -22
- package/esm/_dnt.polyfills.d.ts +0 -101
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -127
- package/esm/network/interface-impls/serial.d.ts +0 -6
- package/esm/network/interface-impls/serial.d.ts.map +0 -1
- package/esm/network/interface-impls/serial.js +0 -6
- package/esm/network/interface-impls/webrtc.d.ts +0 -12
- package/esm/network/interface-impls/webrtc.d.ts.map +0 -1
- package/esm/network/interface-impls/webrtc.js +0 -24
- package/esm/network/interface-impls/websocket-server-deno.d.ts +0 -9
- package/esm/network/interface-impls/websocket-server-deno.d.ts.map +0 -1
- package/esm/network/interface-impls/websocket-server-deno.js +0 -45
package/esm/_dnt.shims.d.ts
CHANGED
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { Deno } from "@deno/shim-deno";
|
|
3
|
-
export { crypto, type Crypto, type SubtleCrypto, type AlgorithmIdentifier, type Algorithm, type RsaOaepParams, type BufferSource, type AesCtrParams, type AesCbcParams, type AesGcmParams, type CryptoKey, type KeyAlgorithm, type KeyType, type KeyUsage, type EcdhKeyDeriveParams, type HkdfParams, type HashAlgorithmIdentifier, type Pbkdf2Params, type AesDerivedKeyParams, type HmacImportParams, type JsonWebKey, type RsaOtherPrimesInfo, type KeyFormat, type RsaHashedKeyGenParams, type RsaKeyGenParams, type BigInteger, type EcKeyGenParams, type NamedCurve, type CryptoKeyPair, type AesKeyGenParams, type HmacKeyGenParams, type RsaHashedImportParams, type EcKeyImportParams, type AesKeyAlgorithm, type RsaPssParams, type EcdsaParams } from "@deno/shim-crypto";
|
|
4
|
-
export { alert, confirm, prompt } from "@deno/shim-prompts";
|
|
5
|
-
import { setInterval, setTimeout } from "@deno/shim-timers";
|
|
6
|
-
export { setInterval, setTimeout } from "@deno/shim-timers";
|
|
7
|
-
import { fetch, File, FormData, Headers, Request, Response } from "undici";
|
|
8
|
-
export { fetch, File, FormData, Headers, Request, Response, type BodyInit, type HeadersInit, type ReferrerPolicy, type RequestInit, type RequestCache, type RequestMode, type RequestRedirect, type ResponseInit } from "undici";
|
|
9
|
-
export { WeakRef, type WeakRefConstructor } from "@deno/sham-weakref";
|
|
10
|
-
export { default as WebSocket } from "ws";
|
|
11
|
-
export declare const dntGlobalThis: Omit<typeof globalThis, "WeakRef" | "fetch" | "FormData" | "Headers" | "Request" | "Response" | "WebSocket" | "File" | "crypto" | "setInterval" | "setTimeout" | "Deno" | "alert" | "confirm" | "prompt"> & {
|
|
12
|
-
Deno: typeof Deno;
|
|
13
|
-
crypto: import("@deno/shim-crypto").Crypto;
|
|
14
|
-
alert: (message?: any) => void;
|
|
15
|
-
confirm: (message?: string) => boolean;
|
|
16
|
-
prompt: (message?: string, _default?: string) => string | null;
|
|
17
|
-
setInterval: typeof setInterval;
|
|
18
|
-
setTimeout: typeof setTimeout;
|
|
19
|
-
fetch: typeof fetch;
|
|
20
|
-
File: typeof File;
|
|
21
|
-
FormData: typeof FormData;
|
|
22
|
-
Headers: typeof Headers;
|
|
23
|
-
Request: typeof Request;
|
|
24
|
-
Response: typeof Response;
|
|
25
|
-
WeakRef: import("@deno/sham-weakref").WeakRefConstructor;
|
|
26
|
-
WebSocket: any;
|
|
27
|
-
};
|
|
1
|
+
export declare const dntGlobalThis: Omit<typeof globalThis, never>;
|
|
28
2
|
//# sourceMappingURL=_dnt.shims.d.ts.map
|
package/esm/_dnt.shims.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gCAA2C,CAAC"}
|
package/esm/_dnt.shims.js
CHANGED
|
@@ -1,34 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export { Deno } from "@deno/shim-deno";
|
|
3
|
-
import { crypto } from "@deno/shim-crypto";
|
|
4
|
-
export { crypto } from "@deno/shim-crypto";
|
|
5
|
-
import { alert, confirm, prompt } from "@deno/shim-prompts";
|
|
6
|
-
export { alert, confirm, prompt } from "@deno/shim-prompts";
|
|
7
|
-
import { setInterval, setTimeout } from "@deno/shim-timers";
|
|
8
|
-
export { setInterval, setTimeout } from "@deno/shim-timers";
|
|
9
|
-
import { fetch, File, FormData, Headers, Request, Response } from "undici";
|
|
10
|
-
export { fetch, File, FormData, Headers, Request, Response } from "undici";
|
|
11
|
-
import { WeakRef } from "@deno/sham-weakref";
|
|
12
|
-
export { WeakRef } from "@deno/sham-weakref";
|
|
13
|
-
import { default as WebSocket } from "ws";
|
|
14
|
-
export { default as WebSocket } from "ws";
|
|
15
|
-
const dntGlobals = {
|
|
16
|
-
Deno,
|
|
17
|
-
crypto,
|
|
18
|
-
alert,
|
|
19
|
-
confirm,
|
|
20
|
-
prompt,
|
|
21
|
-
setInterval,
|
|
22
|
-
setTimeout,
|
|
23
|
-
fetch,
|
|
24
|
-
File,
|
|
25
|
-
FormData,
|
|
26
|
-
Headers,
|
|
27
|
-
Request,
|
|
28
|
-
Response,
|
|
29
|
-
WeakRef,
|
|
30
|
-
WebSocket,
|
|
31
|
-
};
|
|
1
|
+
const dntGlobals = {};
|
|
32
2
|
export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
33
3
|
function createMergeProxy(baseObj, extObj) {
|
|
34
4
|
return new Proxy(baseObj, {
|
|
@@ -23,13 +23,14 @@ export function __wbg_Error_90f14b053b2af32f(arg0: any, arg1: any): Error;
|
|
|
23
23
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0: any, arg1: any): void;
|
|
24
24
|
export function __wbg_addIceCandidate_d30d0ef80c221bbc(arg0: any, arg1: any): any;
|
|
25
25
|
export function __wbg_buffer_4306305a9644b7a1(arg0: any): any;
|
|
26
|
+
export function __wbg_call_0ba5f27818746ea4(...args: any[]): any;
|
|
26
27
|
export function __wbg_call_52af042a326d9b3a(...args: any[]): any;
|
|
27
28
|
export function __wbg_call_53657fec28b4db96(...args: any[]): any;
|
|
28
29
|
export function __wbg_call_90bf4b9978d51034(...args: any[]): any;
|
|
29
30
|
export function __wbg_candidate_5fae2324e7403dfa(arg0: any, arg1: any): void;
|
|
30
31
|
export function __wbg_candidate_ead596886b0fedfc(arg0: any): any;
|
|
31
32
|
export function __wbg_channel_61e457f78c31043a(arg0: any): any;
|
|
32
|
-
export function __wbg_clearTimeout_5a54f8841c30079a(arg0: any):
|
|
33
|
+
export function __wbg_clearTimeout_5a54f8841c30079a(arg0: any): any;
|
|
33
34
|
export function __wbg_close_638f149c7d475fe2(...args: any[]): any;
|
|
34
35
|
export function __wbg_close_8549dc01dfea7b11(arg0: any): void;
|
|
35
36
|
export function __wbg_close_d6a549256eca132f(arg0: any): any;
|
|
@@ -172,7 +173,7 @@ export function __wbg_wrapKey_5f8a7476203809ce(...args: any[]): any;
|
|
|
172
173
|
export function __wbg_writable_9cc2382cd543b064(arg0: any): any;
|
|
173
174
|
export function __wbg_write_e7fe7265c2fa5ddb(arg0: any, arg1: any): any;
|
|
174
175
|
export function __wbindgen_cast_2241b6af4c4b2941(arg0: any, arg1: any): any;
|
|
175
|
-
export function
|
|
176
|
+
export function __wbindgen_cast_278f9477a3e01cd9(arg0: any, arg1: any): {
|
|
176
177
|
(...args: any[]): any;
|
|
177
178
|
original: {
|
|
178
179
|
a: any;
|
|
@@ -181,8 +182,7 @@ export function __wbindgen_cast_2450b3daee74c809(arg0: any, arg1: any): {
|
|
|
181
182
|
dtor: any;
|
|
182
183
|
};
|
|
183
184
|
};
|
|
184
|
-
export function
|
|
185
|
-
export function __wbindgen_cast_502aa9718db6ec51(arg0: any, arg1: any): {
|
|
185
|
+
export function __wbindgen_cast_32068b097ee4b6ad(arg0: any, arg1: any): {
|
|
186
186
|
(...args: any[]): any;
|
|
187
187
|
original: {
|
|
188
188
|
a: any;
|
|
@@ -191,7 +191,8 @@ export function __wbindgen_cast_502aa9718db6ec51(arg0: any, arg1: any): {
|
|
|
191
191
|
dtor: any;
|
|
192
192
|
};
|
|
193
193
|
};
|
|
194
|
-
export function
|
|
194
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0: any): bigint;
|
|
195
|
+
export function __wbindgen_cast_52ed74f41af88dc3(arg0: any, arg1: any): {
|
|
195
196
|
(...args: any[]): any;
|
|
196
197
|
original: {
|
|
197
198
|
a: any;
|
|
@@ -200,7 +201,7 @@ export function __wbindgen_cast_53dc79ae1ce87073(arg0: any, arg1: any): {
|
|
|
200
201
|
dtor: any;
|
|
201
202
|
};
|
|
202
203
|
};
|
|
203
|
-
export function
|
|
204
|
+
export function __wbindgen_cast_73f6f4de9ebff2b7(arg0: any, arg1: any): {
|
|
204
205
|
(...args: any[]): any;
|
|
205
206
|
original: {
|
|
206
207
|
a: any;
|
|
@@ -211,7 +212,7 @@ export function __wbindgen_cast_6b52fb20aa53bdcd(arg0: any, arg1: any): {
|
|
|
211
212
|
};
|
|
212
213
|
export function __wbindgen_cast_77bc3e92745e9a35(arg0: any, arg1: any): any;
|
|
213
214
|
export function __wbindgen_cast_9ae0607507abb057(arg0: any): any;
|
|
214
|
-
export function
|
|
215
|
+
export function __wbindgen_cast_b5732421293e3bdd(arg0: any, arg1: any): {
|
|
215
216
|
(...args: any[]): any;
|
|
216
217
|
original: {
|
|
217
218
|
a: any;
|
|
@@ -220,7 +221,8 @@ export function __wbindgen_cast_cde9a7172311f3a3(arg0: any, arg1: any): {
|
|
|
220
221
|
dtor: any;
|
|
221
222
|
};
|
|
222
223
|
};
|
|
223
|
-
export function
|
|
224
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0: any): any;
|
|
225
|
+
export function __wbindgen_cast_f03b9d21f7da0088(arg0: any, arg1: any): {
|
|
224
226
|
(...args: any[]): any;
|
|
225
227
|
original: {
|
|
226
228
|
a: any;
|
|
@@ -229,7 +231,6 @@ export function __wbindgen_cast_d004e0f207094cc3(arg0: any, arg1: any): {
|
|
|
229
231
|
dtor: any;
|
|
230
232
|
};
|
|
231
233
|
};
|
|
232
|
-
export function __wbindgen_cast_d6cd19b81560fd6e(arg0: any): any;
|
|
233
234
|
export function __wbindgen_init_externref_table(): void;
|
|
234
235
|
export class BaseJSInterface {
|
|
235
236
|
__destroy_into_raw(): number | undefined;
|
|
@@ -241,6 +242,35 @@ export class JSComHub {
|
|
|
241
242
|
__destroy_into_raw(): number | undefined;
|
|
242
243
|
__wbg_ptr: number | undefined;
|
|
243
244
|
free(): void;
|
|
245
|
+
/**
|
|
246
|
+
* @param {string} uuid
|
|
247
|
+
* @param {Function} func
|
|
248
|
+
*/
|
|
249
|
+
base_interface_on_send(uuid: string, func: Function): void;
|
|
250
|
+
/**
|
|
251
|
+
* @param {string} uuid
|
|
252
|
+
* @param {string} socket_uuid
|
|
253
|
+
* @param {Uint8Array} data
|
|
254
|
+
*/
|
|
255
|
+
base_interface_receive(uuid: string, socket_uuid: string, data: Uint8Array): void;
|
|
256
|
+
/**
|
|
257
|
+
* @param {string} uuid
|
|
258
|
+
* @param {string} socket_uuid
|
|
259
|
+
*/
|
|
260
|
+
base_interface_destroy_socket(uuid: string, socket_uuid: string): void;
|
|
261
|
+
/**
|
|
262
|
+
* @param {string} uuid
|
|
263
|
+
* @param {string} direction
|
|
264
|
+
* @returns {string}
|
|
265
|
+
*/
|
|
266
|
+
base_interface_register_socket(uuid: string, direction: string): string;
|
|
267
|
+
/**
|
|
268
|
+
* @param {string} uuid
|
|
269
|
+
* @param {string} socket_uuid
|
|
270
|
+
* @param {Uint8Array} data
|
|
271
|
+
* @returns {Promise<boolean>}
|
|
272
|
+
*/
|
|
273
|
+
base_interface_test_send_block(uuid: string, socket_uuid: string, data: Uint8Array): Promise<boolean>;
|
|
244
274
|
/**
|
|
245
275
|
* @param {string} interface_uuid
|
|
246
276
|
* @param {Uint8Array} answer
|
|
@@ -274,35 +304,6 @@ export class JSComHub {
|
|
|
274
304
|
* @param {Function} on_ice_candidate
|
|
275
305
|
*/
|
|
276
306
|
webrtc_interface_set_on_ice_candidate(interface_uuid: string, on_ice_candidate: Function): void;
|
|
277
|
-
/**
|
|
278
|
-
* @param {string} uuid
|
|
279
|
-
* @param {Function} func
|
|
280
|
-
*/
|
|
281
|
-
base_interface_on_send(uuid: string, func: Function): void;
|
|
282
|
-
/**
|
|
283
|
-
* @param {string} uuid
|
|
284
|
-
* @param {string} socket_uuid
|
|
285
|
-
* @param {Uint8Array} data
|
|
286
|
-
*/
|
|
287
|
-
base_interface_receive(uuid: string, socket_uuid: string, data: Uint8Array): void;
|
|
288
|
-
/**
|
|
289
|
-
* @param {string} uuid
|
|
290
|
-
* @param {string} socket_uuid
|
|
291
|
-
*/
|
|
292
|
-
base_interface_destroy_socket(uuid: string, socket_uuid: string): void;
|
|
293
|
-
/**
|
|
294
|
-
* @param {string} uuid
|
|
295
|
-
* @param {string} direction
|
|
296
|
-
* @returns {string}
|
|
297
|
-
*/
|
|
298
|
-
base_interface_register_socket(uuid: string, direction: string): string;
|
|
299
|
-
/**
|
|
300
|
-
* @param {string} uuid
|
|
301
|
-
* @param {string} socket_uuid
|
|
302
|
-
* @param {Uint8Array} data
|
|
303
|
-
* @returns {Promise<boolean>}
|
|
304
|
-
*/
|
|
305
|
-
base_interface_test_send_block(uuid: string, socket_uuid: string, data: Uint8Array): Promise<boolean>;
|
|
306
307
|
/**
|
|
307
308
|
* @param {string} interface_uuid
|
|
308
309
|
* @param {WebSocket} websocket
|
|
@@ -344,6 +345,14 @@ export class JSComHub {
|
|
|
344
345
|
* @returns {Uint8Array[]}
|
|
345
346
|
*/
|
|
346
347
|
_drain_incoming_blocks(): Uint8Array[];
|
|
348
|
+
/**
|
|
349
|
+
* @param {Function} callback
|
|
350
|
+
*/
|
|
351
|
+
register_incoming_block_interceptor(callback: Function): void;
|
|
352
|
+
/**
|
|
353
|
+
* @param {Function} callback
|
|
354
|
+
*/
|
|
355
|
+
register_outgoing_block_interceptor(callback: Function): void;
|
|
347
356
|
register_default_interface_factories(): void;
|
|
348
357
|
/**
|
|
349
358
|
* @returns {Promise<void>}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datex_core_js.internal.d.ts","sourceRoot":"","sources":["../../src/datex-core/datex_core_js.internal.js"],"names":[],"mappings":"AAQA,+CAEC;
|
|
1
|
+
{"version":3,"file":"datex_core_js.internal.d.ts","sourceRoot":"","sources":["../../src/datex-core/datex_core_js.internal.js"],"names":[],"mappings":"AAQA,+CAEC;AA8PD;;;;GAIG;AACH,uCAJW,MAAM,eACN,GAAG,GACD,SAAS,CAWrB;AAED;;;;;GAKG;AACH,sCAJW,MAAM,aACN,OAAO,GACL,MAAM,CAmBlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,OAAO,CAWnB;AAkmCD,0EAGC;AAED,0EAUC;AAED,kFAGC;AAED,8DAGC;AAED,iEAKC;AAED,iEAKC;AAED,iEAKC;AAED,iEAKC;AAED,6EAUC;AAED,iEAGC;AAED,+DAGC;AAED,oEAGC;AAED,kEAIC;AAED,8DAEC;AAED,6DAGC;AAED,oEAGC;AAED,+FAGC;AAED,mEAGC;AAED,mEAKC;AAED,4DAGC;AAED,8DAEC;AAED,oEAKC;AAED,uEAKC;AAED,4DAGC;AAED,oEAKC;AAED,2EAGC;AAED,yEAUC;AAED,8DAEC;AAED,sEAKC;AAED,wEAKC;AAED,4EAKC;AAED,iEAGC;AAED,sEAKC;AAED,sEAGC;AAED,gEAKC;AAED,qEAGC;AAED,oEAGC;AAED,gFAGC;AAED,6EAGC;AAED,sEAWC;AAED,6DAEC;AAED,kFASC;AAED,gFASC;AAED,0EASC;AAED,6EASC;AAED,kGAWC;AAED,iFASC;AAED,6EASC;AAED,yEAGC;AAED,yEAGC;AAED,0DAGC;AAED,yEAUC;AAED,8DAGC;AAED,8DAGC;AAED,4DAEC;AAED,2EAUC;AAED,iEAGC;AAED,qDAGC;AAED,4DAGC;AAED,oDAGC;AAED,gEAKC;AAED,+EAiBC;AAED,uEAGC;AAED,oDAGC;AAED,2FAGC;AAED,iFAGC;AAED,iFAKC;AAED,yFAGC;AAED,4DAGC;AAED,iEAKC;AAED,qDAGC;AAED,uEAGC;AAED,4DAGC;AAED,uEAG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sBALW,GAAG,gBACH,GAAG,cACH,MAAM,GACJ,MAAM,CAyBlB;IACD;;;;;;OAMG;IACH,gCANW,MAAM,WACN,MAAM,mBACN,GAAG,uBAED,MAAM,CAqBlB;IACD;;;OAGG;IACH,2BAHW,MAAM,eACN,MAAM,QAkBhB;IACD;;;;;;OAMG;IACH,iCAHW,MAAM,GACJ,GAAG,CAkBf;IACD;;;;OAIG;IACH,iCAJW,MAAM,eACN,MAAM,mBACN,GAAG,QAmBb;IACD;;;;OAIG;IACH,sCAHW,MAAM,GACJ,GAAG,CAkBf;IACD;;;;OAIG;IACH,cAJW,GAAG,SACH,GAAG,GACD,GAAG,CAQf;IACD;;;;OAIG;IACH,uBAJW,MAAM,WACN,MAAM,UACN,GAAG,QAmBb;CACJ;AASD;IACI,yCAKC;IAHG,8BAAkB;IAKtB,aAGC;IACD;;;OAGG;IACH,sBAHW,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,CAexB;CACJ"}
|
|
@@ -219,41 +219,17 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
219
219
|
CLOSURE_DTORS.register(real, state, state);
|
|
220
220
|
return real;
|
|
221
221
|
}
|
|
222
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
223
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
224
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
225
|
-
WASM_VECTOR_LEN = arg.length;
|
|
226
|
-
return ptr;
|
|
227
|
-
}
|
|
228
222
|
function takeFromExternrefTable0(idx) {
|
|
229
223
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
230
224
|
wasm.__externref_table_dealloc(idx);
|
|
231
225
|
return value;
|
|
232
226
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
239
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
240
|
-
for (let i = 0; i < array.length; i++) {
|
|
241
|
-
const add = addToExternrefTable0(array[i]);
|
|
242
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
243
|
-
}
|
|
244
|
-
WASM_VECTOR_LEN = array.length;
|
|
227
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
228
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
229
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
230
|
+
WASM_VECTOR_LEN = arg.length;
|
|
245
231
|
return ptr;
|
|
246
232
|
}
|
|
247
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
248
|
-
ptr = ptr >>> 0;
|
|
249
|
-
const mem = getDataViewMemory0();
|
|
250
|
-
const result = [];
|
|
251
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
252
|
-
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
253
|
-
}
|
|
254
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
255
|
-
return result;
|
|
256
|
-
}
|
|
257
233
|
/**
|
|
258
234
|
* @param {string} config
|
|
259
235
|
* @param {any} debug_flags
|
|
@@ -298,17 +274,41 @@ export function execute_internal(datex_script) {
|
|
|
298
274
|
const ret = wasm.execute_internal(ptr0, len0);
|
|
299
275
|
return ret !== 0;
|
|
300
276
|
}
|
|
301
|
-
function
|
|
302
|
-
|
|
277
|
+
function _assertClass(instance, klass) {
|
|
278
|
+
if (!(instance instanceof klass)) {
|
|
279
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
283
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
284
|
+
for (let i = 0; i < array.length; i++) {
|
|
285
|
+
const add = addToExternrefTable0(array[i]);
|
|
286
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
287
|
+
}
|
|
288
|
+
WASM_VECTOR_LEN = array.length;
|
|
289
|
+
return ptr;
|
|
290
|
+
}
|
|
291
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
292
|
+
ptr = ptr >>> 0;
|
|
293
|
+
const mem = getDataViewMemory0();
|
|
294
|
+
const result = [];
|
|
295
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
296
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
297
|
+
}
|
|
298
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
299
|
+
return result;
|
|
303
300
|
}
|
|
304
|
-
function
|
|
305
|
-
wasm.
|
|
301
|
+
function __wbg_adapter_10(arg0, arg1, arg2) {
|
|
302
|
+
wasm.closure1523_externref_shim(arg0, arg1, arg2);
|
|
306
303
|
}
|
|
307
|
-
function
|
|
308
|
-
wasm.
|
|
304
|
+
function __wbg_adapter_17(arg0, arg1, arg2) {
|
|
305
|
+
wasm.closure796_externref_shim(arg0, arg1, arg2);
|
|
309
306
|
}
|
|
310
|
-
function
|
|
311
|
-
wasm.
|
|
307
|
+
function __wbg_adapter_28(arg0, arg1) {
|
|
308
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf1f930a523fb34af(arg0, arg1);
|
|
309
|
+
}
|
|
310
|
+
function __wbg_adapter_277(arg0, arg1, arg2, arg3) {
|
|
311
|
+
wasm.closure2442_externref_shim(arg0, arg1, arg2, arg3);
|
|
312
312
|
}
|
|
313
313
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
314
314
|
const __wbindgen_enum_RtcIceConnectionState = [
|
|
@@ -365,77 +365,6 @@ export class JSComHub {
|
|
|
365
365
|
const ptr = this.__destroy_into_raw();
|
|
366
366
|
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
367
367
|
}
|
|
368
|
-
/**
|
|
369
|
-
* @param {string} interface_uuid
|
|
370
|
-
* @param {Uint8Array} answer
|
|
371
|
-
* @returns {Promise<void>}
|
|
372
|
-
*/
|
|
373
|
-
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
374
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
375
|
-
const len0 = WASM_VECTOR_LEN;
|
|
376
|
-
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
377
|
-
const len1 = WASM_VECTOR_LEN;
|
|
378
|
-
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
379
|
-
return ret;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* @param {string} interface_uuid
|
|
383
|
-
* @returns {Promise<Uint8Array>}
|
|
384
|
-
*/
|
|
385
|
-
webrtc_interface_create_offer(interface_uuid) {
|
|
386
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
-
const len0 = WASM_VECTOR_LEN;
|
|
388
|
-
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
389
|
-
return ret;
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* @param {string} interface_uuid
|
|
393
|
-
* @param {Uint8Array} offer
|
|
394
|
-
* @returns {Promise<Uint8Array>}
|
|
395
|
-
*/
|
|
396
|
-
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
397
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
398
|
-
const len0 = WASM_VECTOR_LEN;
|
|
399
|
-
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
400
|
-
const len1 = WASM_VECTOR_LEN;
|
|
401
|
-
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
402
|
-
return ret;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* @param {string} interface_uuid
|
|
406
|
-
* @param {Uint8Array} candidate
|
|
407
|
-
* @returns {Promise<void>}
|
|
408
|
-
*/
|
|
409
|
-
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
410
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
-
const len0 = WASM_VECTOR_LEN;
|
|
412
|
-
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
413
|
-
const len1 = WASM_VECTOR_LEN;
|
|
414
|
-
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
415
|
-
return ret;
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* @param {string} interface_uuid
|
|
419
|
-
* @returns {Promise<void>}
|
|
420
|
-
*/
|
|
421
|
-
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
422
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
423
|
-
const len0 = WASM_VECTOR_LEN;
|
|
424
|
-
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
425
|
-
return ret;
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* @param {string} interface_uuid
|
|
429
|
-
* @param {Function} on_ice_candidate
|
|
430
|
-
*/
|
|
431
|
-
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
432
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
-
const len0 = WASM_VECTOR_LEN;
|
|
434
|
-
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
435
|
-
if (ret[1]) {
|
|
436
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
368
|
/**
|
|
440
369
|
* @param {string} uuid
|
|
441
370
|
* @param {Function} func
|
|
@@ -524,6 +453,77 @@ export class JSComHub {
|
|
|
524
453
|
const ret = wasm.jscomhub_base_interface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
525
454
|
return ret;
|
|
526
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* @param {string} interface_uuid
|
|
458
|
+
* @param {Uint8Array} answer
|
|
459
|
+
* @returns {Promise<void>}
|
|
460
|
+
*/
|
|
461
|
+
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
462
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
463
|
+
const len0 = WASM_VECTOR_LEN;
|
|
464
|
+
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
465
|
+
const len1 = WASM_VECTOR_LEN;
|
|
466
|
+
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
467
|
+
return ret;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* @param {string} interface_uuid
|
|
471
|
+
* @returns {Promise<Uint8Array>}
|
|
472
|
+
*/
|
|
473
|
+
webrtc_interface_create_offer(interface_uuid) {
|
|
474
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
475
|
+
const len0 = WASM_VECTOR_LEN;
|
|
476
|
+
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
477
|
+
return ret;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @param {string} interface_uuid
|
|
481
|
+
* @param {Uint8Array} offer
|
|
482
|
+
* @returns {Promise<Uint8Array>}
|
|
483
|
+
*/
|
|
484
|
+
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
485
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
486
|
+
const len0 = WASM_VECTOR_LEN;
|
|
487
|
+
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
488
|
+
const len1 = WASM_VECTOR_LEN;
|
|
489
|
+
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
490
|
+
return ret;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* @param {string} interface_uuid
|
|
494
|
+
* @param {Uint8Array} candidate
|
|
495
|
+
* @returns {Promise<void>}
|
|
496
|
+
*/
|
|
497
|
+
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
498
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
499
|
+
const len0 = WASM_VECTOR_LEN;
|
|
500
|
+
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
501
|
+
const len1 = WASM_VECTOR_LEN;
|
|
502
|
+
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
503
|
+
return ret;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* @param {string} interface_uuid
|
|
507
|
+
* @returns {Promise<void>}
|
|
508
|
+
*/
|
|
509
|
+
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
510
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
511
|
+
const len0 = WASM_VECTOR_LEN;
|
|
512
|
+
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
513
|
+
return ret;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @param {string} interface_uuid
|
|
517
|
+
* @param {Function} on_ice_candidate
|
|
518
|
+
*/
|
|
519
|
+
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
520
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
521
|
+
const len0 = WASM_VECTOR_LEN;
|
|
522
|
+
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
523
|
+
if (ret[1]) {
|
|
524
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
527
|
/**
|
|
528
528
|
* @param {string} interface_uuid
|
|
529
529
|
* @param {WebSocket} websocket
|
|
@@ -629,6 +629,18 @@ export class JSComHub {
|
|
|
629
629
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
630
630
|
return v1;
|
|
631
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* @param {Function} callback
|
|
634
|
+
*/
|
|
635
|
+
register_incoming_block_interceptor(callback) {
|
|
636
|
+
wasm.jscomhub_register_incoming_block_interceptor(this.__wbg_ptr, callback);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* @param {Function} callback
|
|
640
|
+
*/
|
|
641
|
+
register_outgoing_block_interceptor(callback) {
|
|
642
|
+
wasm.jscomhub_register_outgoing_block_interceptor(this.__wbg_ptr, callback);
|
|
643
|
+
}
|
|
632
644
|
register_default_interface_factories() {
|
|
633
645
|
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
634
646
|
}
|
|
@@ -1064,6 +1076,12 @@ export function __wbg_buffer_4306305a9644b7a1(arg0) {
|
|
|
1064
1076
|
const ret = arg0.buffer;
|
|
1065
1077
|
return ret;
|
|
1066
1078
|
}
|
|
1079
|
+
export function __wbg_call_0ba5f27818746ea4() {
|
|
1080
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1081
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
1082
|
+
return ret;
|
|
1083
|
+
}, arguments);
|
|
1084
|
+
}
|
|
1067
1085
|
export function __wbg_call_52af042a326d9b3a() {
|
|
1068
1086
|
return handleError(function (arg0, arg1, arg2) {
|
|
1069
1087
|
const ret = arg0.call(arg1, arg2);
|
|
@@ -1256,7 +1274,7 @@ export function __wbg_instanceof_ArrayBuffer_625e762023eb35cf(arg0) {
|
|
|
1256
1274
|
export function __wbg_instanceof_CryptoKey_d94aaf75de500efb(arg0) {
|
|
1257
1275
|
let result;
|
|
1258
1276
|
try {
|
|
1259
|
-
result = arg0 instanceof
|
|
1277
|
+
result = arg0 instanceof CryptoKey;
|
|
1260
1278
|
}
|
|
1261
1279
|
catch (_) {
|
|
1262
1280
|
result = false;
|
|
@@ -1374,7 +1392,7 @@ export function __wbg_new_8a6f238a6ece86ea() {
|
|
|
1374
1392
|
}
|
|
1375
1393
|
export function __wbg_new_b25e3e4428c04a92() {
|
|
1376
1394
|
return handleError(function (arg0, arg1) {
|
|
1377
|
-
const ret = new
|
|
1395
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1378
1396
|
return ret;
|
|
1379
1397
|
}, arguments);
|
|
1380
1398
|
}
|
|
@@ -1385,7 +1403,7 @@ export function __wbg_new_b38cbb8a106768cf(arg0, arg1) {
|
|
|
1385
1403
|
const a = state0.a;
|
|
1386
1404
|
state0.a = 0;
|
|
1387
1405
|
try {
|
|
1388
|
-
return
|
|
1406
|
+
return __wbg_adapter_277(a, state0.b, arg0, arg1);
|
|
1389
1407
|
}
|
|
1390
1408
|
finally {
|
|
1391
1409
|
state0.a = a;
|
|
@@ -1527,7 +1545,7 @@ export function __wbg_setRemoteDescription_11eaf6e756e370af(arg0, arg1) {
|
|
|
1527
1545
|
}
|
|
1528
1546
|
export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
1529
1547
|
return handleError(function (arg0, arg1) {
|
|
1530
|
-
const ret =
|
|
1548
|
+
const ret = setTimeout(arg0, arg1);
|
|
1531
1549
|
return ret;
|
|
1532
1550
|
}, arguments);
|
|
1533
1551
|
}
|
|
@@ -1785,9 +1803,14 @@ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
|
1785
1803
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
1786
1804
|
return ret;
|
|
1787
1805
|
}
|
|
1788
|
-
export function
|
|
1789
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1806
|
+
export function __wbindgen_cast_278f9477a3e01cd9(arg0, arg1) {
|
|
1807
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 795, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 796, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1808
|
+
const ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_17);
|
|
1809
|
+
return ret;
|
|
1810
|
+
}
|
|
1811
|
+
export function __wbindgen_cast_32068b097ee4b6ad(arg0, arg1) {
|
|
1812
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 795, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 796, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
|
+
const ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_17);
|
|
1791
1814
|
return ret;
|
|
1792
1815
|
}
|
|
1793
1816
|
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
@@ -1795,19 +1818,14 @@ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
|
1795
1818
|
const ret = BigInt.asUintN(64, arg0);
|
|
1796
1819
|
return ret;
|
|
1797
1820
|
}
|
|
1798
|
-
export function
|
|
1799
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1800
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1821
|
+
export function __wbindgen_cast_52ed74f41af88dc3(arg0, arg1) {
|
|
1822
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1532, function: Function { arguments: [], shim_idx: 1533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1823
|
+
const ret = makeMutClosure(arg0, arg1, 1532, __wbg_adapter_28);
|
|
1801
1824
|
return ret;
|
|
1802
1825
|
}
|
|
1803
|
-
export function
|
|
1804
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1805
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1806
|
-
return ret;
|
|
1807
|
-
}
|
|
1808
|
-
export function __wbindgen_cast_6b52fb20aa53bdcd(arg0, arg1) {
|
|
1809
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 767, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 768, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1810
|
-
const ret = makeMutClosure(arg0, arg1, 767, __wbg_adapter_9);
|
|
1826
|
+
export function __wbindgen_cast_73f6f4de9ebff2b7(arg0, arg1) {
|
|
1827
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 795, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 796, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1828
|
+
const ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_17);
|
|
1811
1829
|
return ret;
|
|
1812
1830
|
}
|
|
1813
1831
|
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
@@ -1822,14 +1840,9 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
|
1822
1840
|
const ret = arg0;
|
|
1823
1841
|
return ret;
|
|
1824
1842
|
}
|
|
1825
|
-
export function
|
|
1826
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1827
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1828
|
-
return ret;
|
|
1829
|
-
}
|
|
1830
|
-
export function __wbindgen_cast_d004e0f207094cc3(arg0, arg1) {
|
|
1831
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 767, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 768, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1832
|
-
const ret = makeMutClosure(arg0, arg1, 767, __wbg_adapter_9);
|
|
1843
|
+
export function __wbindgen_cast_b5732421293e3bdd(arg0, arg1) {
|
|
1844
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1522, function: Function { arguments: [Externref], shim_idx: 1523, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1845
|
+
const ret = makeMutClosure(arg0, arg1, 1522, __wbg_adapter_10);
|
|
1833
1846
|
return ret;
|
|
1834
1847
|
}
|
|
1835
1848
|
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
@@ -1837,6 +1850,11 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
|
1837
1850
|
const ret = arg0;
|
|
1838
1851
|
return ret;
|
|
1839
1852
|
}
|
|
1853
|
+
export function __wbindgen_cast_f03b9d21f7da0088(arg0, arg1) {
|
|
1854
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 795, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 796, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1855
|
+
const ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_17);
|
|
1856
|
+
return ret;
|
|
1857
|
+
}
|
|
1840
1858
|
export function __wbindgen_init_externref_table() {
|
|
1841
1859
|
const table = wasm.__wbindgen_export_4;
|
|
1842
1860
|
const offset = table.grow(4);
|