@unyt/datex 0.0.11 → 0.0.12
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/README.md +10 -14
- package/esm/datex-web/datex_web.d.ts +2 -0
- package/esm/datex-web/datex_web.d.ts.map +1 -0
- package/esm/datex-web/datex_web.internal.d.ts +383 -0
- package/esm/datex-web/datex_web.internal.d.ts.map +1 -0
- package/esm/{datex-core/datex_core_js.internal.js → datex-web/datex_web.internal.js} +737 -1121
- package/esm/datex-web/datex_web.js +18 -0
- package/esm/datex-web/datex_web.wasm +0 -0
- package/esm/datex-web/wasm_url.node.js +1 -0
- package/esm/{datex-core.d.ts → datex.d.ts} +3 -3
- package/esm/datex.d.ts.map +1 -0
- package/esm/{datex-core.js → datex.js} +3 -3
- package/esm/default.d.ts.map +1 -1
- package/esm/default.js +2 -3
- package/esm/deno.json +27 -21
- package/esm/dif/core.d.ts.map +1 -1
- package/esm/dif/definitions.d.ts.map +1 -1
- package/esm/dif/dif-handler.d.ts +10 -1
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +14 -2
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +1 -3
- package/esm/dif/js-lib.d.ts.map +1 -1
- package/esm/dif/type-registry.d.ts.map +1 -1
- package/esm/dif/type-registry.js +2 -2
- package/esm/lib/special-core-types/endpoint.d.ts +2 -0
- package/esm/lib/special-core-types/endpoint.d.ts.map +1 -1
- package/esm/lib/special-core-types/endpoint.js +6 -1
- package/esm/mod.d.ts +3 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -1
- package/esm/network/com-hub.d.ts +20 -22
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +30 -49
- package/esm/network/interfaces/websocket-server-base.d.ts +8 -0
- package/esm/network/interfaces/websocket-server-base.d.ts.map +1 -0
- package/esm/network/interfaces/websocket-server-base.js +93 -0
- package/esm/network/interfaces/websocket-server-deno.d.ts +4 -0
- package/esm/network/interfaces/websocket-server-deno.d.ts.map +1 -0
- package/esm/network/interfaces/websocket-server-deno.js +22 -0
- package/esm/network/mod.d.ts +0 -1
- package/esm/network/mod.d.ts.map +1 -1
- package/esm/network/mod.js +0 -1
- package/esm/runtime/runtime.d.ts +7 -14
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +11 -20
- package/esm/utils/devtools-formatter.d.ts +2 -0
- package/esm/utils/devtools-formatter.d.ts.map +1 -0
- package/esm/utils/devtools-formatter.js +40 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -1
- package/package.json +7 -7
- package/esm/datex-core/datex_core_js.d.ts +0 -2
- package/esm/datex-core/datex_core_js.d.ts.map +0 -1
- package/esm/datex-core/datex_core_js.internal.d.ts +0 -496
- package/esm/datex-core/datex_core_js.internal.d.ts.map +0 -1
- package/esm/datex-core/datex_core_js.js +0 -21
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +0 -1
- package/esm/datex-core.d.ts.map +0 -1
- package/esm/network/com-interface.d.ts +0 -35
- package/esm/network/com-interface.d.ts.map +0 -1
- package/esm/network/com-interface.js +0 -75
- package/esm/network/interface-impls/base.d.ts +0 -46
- package/esm/network/interface-impls/base.d.ts.map +0 -1
- package/esm/network/interface-impls/base.js +0 -47
- package/esm/network/interface-impls/websocket-client.d.ts +0 -8
- package/esm/network/interface-impls/websocket-client.d.ts.map +0 -1
- package/esm/network/interface-impls/websocket-client.js +0 -8
|
@@ -1,496 +0,0 @@
|
|
|
1
|
-
export function __wbg_set_wasm(val: any): void;
|
|
2
|
-
/**
|
|
3
|
-
* @param {string} config
|
|
4
|
-
* @param {any} debug_flags
|
|
5
|
-
* @returns {JSRuntime}
|
|
6
|
-
*/
|
|
7
|
-
export function create_runtime(config: string, debug_flags: any): JSRuntime;
|
|
8
|
-
/**
|
|
9
|
-
* Executes a Datex script and returns the result as a string.
|
|
10
|
-
* @param {string} datex_script
|
|
11
|
-
* @param {any} decompile_options
|
|
12
|
-
* @returns {string}
|
|
13
|
-
*/
|
|
14
|
-
export function execute(datex_script: string, decompile_options: any): string;
|
|
15
|
-
/**
|
|
16
|
-
* Executes a Datex script and returns true when execution was successful.
|
|
17
|
-
* Does not return the result of the script, but only indicates success or failure.
|
|
18
|
-
* @param {string} datex_script
|
|
19
|
-
* @returns {boolean}
|
|
20
|
-
*/
|
|
21
|
-
export function execute_internal(datex_script: string): boolean;
|
|
22
|
-
export function __wbg_Error_e83987f665cf5504(arg0: any, arg1: any): Error;
|
|
23
|
-
export function __wbg_Number_bb48ca12f395cd08(arg0: any): number;
|
|
24
|
-
export function __wbg_String_8f0eb39a4a4c2f66(arg0: any, arg1: any): void;
|
|
25
|
-
export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0: any, arg1: any): void;
|
|
26
|
-
export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0: any): 1 | 0 | 16777215;
|
|
27
|
-
export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0: any, arg1: any): void;
|
|
28
|
-
export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0: any, arg1: any): boolean;
|
|
29
|
-
export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0: any): arg0 is bigint;
|
|
30
|
-
export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0: any): boolean;
|
|
31
|
-
export function __wbg___wbindgen_is_null_5e69f72e906cc57c(arg0: any): boolean;
|
|
32
|
-
export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0: any): boolean;
|
|
33
|
-
export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0: any): arg0 is string;
|
|
34
|
-
export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0: any): boolean;
|
|
35
|
-
export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0: any, arg1: any): boolean;
|
|
36
|
-
export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0: any, arg1: any): boolean;
|
|
37
|
-
export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0: any, arg1: any): void;
|
|
38
|
-
export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0: any, arg1: any): void;
|
|
39
|
-
export function __wbg___wbindgen_throw_b855445ff6a94295(arg0: any, arg1: any): void;
|
|
40
|
-
export function __wbg__wbg_cb_unref_2454a539ea5790d9(arg0: any): void;
|
|
41
|
-
export function __wbg_addIceCandidate_640e0bb689123302(arg0: any, arg1: any): any;
|
|
42
|
-
export function __wbg_buffer_ccc4520b36d3ccf4(arg0: any): any;
|
|
43
|
-
export function __wbg_call_357bb72daee10695(...args: any[]): any;
|
|
44
|
-
export function __wbg_call_525440f72fbfc0ea(...args: any[]): any;
|
|
45
|
-
export function __wbg_call_e45d2cf9fc925fcf(...args: any[]): any;
|
|
46
|
-
export function __wbg_call_e762c39fa8ea36bf(...args: any[]): any;
|
|
47
|
-
export function __wbg_candidate_481747b2d85374f5(arg0: any, arg1: any): void;
|
|
48
|
-
export function __wbg_candidate_5f937d1d65e47c01(arg0: any): any;
|
|
49
|
-
export function __wbg_channel_592ae18783344afb(arg0: any): any;
|
|
50
|
-
export function __wbg_clearTimeout_5a54f8841c30079a(arg0: any): any;
|
|
51
|
-
export function __wbg_close_398d767f74ef8ed0(arg0: any): any;
|
|
52
|
-
export function __wbg_close_885e277edf06b3fa(...args: any[]): any;
|
|
53
|
-
export function __wbg_close_edf4a14b3cb82bca(arg0: any): void;
|
|
54
|
-
export function __wbg_createAnswer_572b7c1578f68a31(arg0: any): any;
|
|
55
|
-
export function __wbg_createDataChannel_2c80fcae96c3f118(arg0: any, arg1: any, arg2: any): any;
|
|
56
|
-
export function __wbg_createOffer_f0003c393c14496b(arg0: any): any;
|
|
57
|
-
export function __wbg_crypto_f5dce82c355d159f(...args: any[]): any;
|
|
58
|
-
export function __wbg_data_ee4306d069f24f2d(arg0: any): any;
|
|
59
|
-
export function __wbg_debug_f4b0c59db649db48(arg0: any): void;
|
|
60
|
-
export function __wbg_decrypt_45277e4601d6ada4(...args: any[]): any;
|
|
61
|
-
export function __wbg_deriveBits_28ff8a809aa473ec(...args: any[]): any;
|
|
62
|
-
export function __wbg_digest_78c58e89f8153afb(...args: any[]): any;
|
|
63
|
-
export function __wbg_done_2042aa2670fb1db1(arg0: any): any;
|
|
64
|
-
export function __wbg_encrypt_0ceb389496419d4e(...args: any[]): any;
|
|
65
|
-
export function __wbg_entries_e171b586f8f6bdbf(arg0: any): [string, any][];
|
|
66
|
-
export function __wbg_error_7534b8e9a36f1ab4(arg0: any, arg1: any): void;
|
|
67
|
-
export function __wbg_error_a7f8fbb0523dae15(arg0: any): void;
|
|
68
|
-
export function __wbg_exportKey_14f4c9c1691e79dc(...args: any[]): any;
|
|
69
|
-
export function __wbg_generateKey_b0e4794bd9d639b0(...args: any[]): any;
|
|
70
|
-
export function __wbg_getRandomValues_6357e7b583eb49cc(...args: any[]): any;
|
|
71
|
-
export function __wbg_getReader_15e2d3098e32c359(arg0: any): any;
|
|
72
|
-
export function __wbg_getWriter_c891ce50cc187493(...args: any[]): any;
|
|
73
|
-
export function __wbg_get_7bed016f185add81(arg0: any, arg1: any): any;
|
|
74
|
-
export function __wbg_get_efcb449f58ec27c2(...args: any[]): any;
|
|
75
|
-
export function __wbg_get_private_key_0a3a263ca613b0c0(arg0: any): any;
|
|
76
|
-
export function __wbg_get_public_key_1e2c11d159e34827(arg0: any): any;
|
|
77
|
-
export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0: any, arg1: any): any;
|
|
78
|
-
export function __wbg_iceConnectionState_eacc62ca1ef48b7c(arg0: any): number;
|
|
79
|
-
export function __wbg_importKey_2be19189a1451235(...args: any[]): any;
|
|
80
|
-
export function __wbg_info_e674a11f4f50cc0c(arg0: any): void;
|
|
81
|
-
export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0: any): boolean;
|
|
82
|
-
export function __wbg_instanceof_CryptoKey_9fbbefded7590b8c(arg0: any): boolean;
|
|
83
|
-
export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0: any): boolean;
|
|
84
|
-
export function __wbg_instanceof_Object_10bb762262230c68(arg0: any): boolean;
|
|
85
|
-
export function __wbg_instanceof_ReadableStreamDefaultReader_33a4601dd218c69d(arg0: any): boolean;
|
|
86
|
-
export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0: any): boolean;
|
|
87
|
-
export function __wbg_instanceof_Window_4846dbb3de56c84c(arg0: any): boolean;
|
|
88
|
-
export function __wbg_isArray_96e0af9891d0945d(arg0: any): arg0 is any[];
|
|
89
|
-
export function __wbg_isSafeInteger_d216eda7911dde36(arg0: any): boolean;
|
|
90
|
-
export function __wbg_iterator_e5822695327a3c39(): symbol;
|
|
91
|
-
export function __wbg_label_51d81ae5c3577deb(arg0: any, arg1: any): void;
|
|
92
|
-
export function __wbg_length_69bca3cb64fc8748(arg0: any): any;
|
|
93
|
-
export function __wbg_length_cdd215e10d9dd507(arg0: any): any;
|
|
94
|
-
export function __wbg_log_8cec76766b8c0e33(arg0: any): void;
|
|
95
|
-
export function __wbg_message_3abccea43568e0bd(arg0: any, arg1: any): void;
|
|
96
|
-
export function __wbg_navigator_971384882e8ea23a(arg0: any): any;
|
|
97
|
-
export function __wbg_new_1acc0b6eea89d040(): Object;
|
|
98
|
-
export function __wbg_new_3c3d849046688a66(arg0: any, arg1: any): Promise<any>;
|
|
99
|
-
export function __wbg_new_5a79be3ab53b8aa5(arg0: any): Uint8Array<any>;
|
|
100
|
-
export function __wbg_new_68651c719dcda04e(): Map<any, any>;
|
|
101
|
-
export function __wbg_new_881c4fe631eee9ad(...args: any[]): any;
|
|
102
|
-
export function __wbg_new_8a6f238a6ece86ea(): Error;
|
|
103
|
-
export function __wbg_new_e17d9f43105b08be(): any[];
|
|
104
|
-
export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0: any, arg1: any): Uint8Array<any>;
|
|
105
|
-
export function __wbg_new_no_args_ee98eee5275000a4(arg0: any, arg1: any): Function;
|
|
106
|
-
export function __wbg_new_with_configuration_a1cd3f4d87d41876(...args: any[]): any;
|
|
107
|
-
export function __wbg_new_with_length_01aa0dc35aa13543(arg0: any): Uint8Array<ArrayBuffer>;
|
|
108
|
-
export function __wbg_next_020810e0ae8ebcb0(...args: any[]): any;
|
|
109
|
-
export function __wbg_next_2c826fe5dfec6b6a(arg0: any): any;
|
|
110
|
-
export function __wbg_now_2c95c9de01293173(arg0: any): any;
|
|
111
|
-
export function __wbg_now_793306c526e2e3b6(): number;
|
|
112
|
-
export function __wbg_of_035271b9e67a3bd9(arg0: any): any[];
|
|
113
|
-
export function __wbg_of_288d2471f5767a12(arg0: any, arg1: any): any[];
|
|
114
|
-
export function __wbg_open_fe29bb2df6de0b4c(arg0: any, arg1: any): any;
|
|
115
|
-
export function __wbg_performance_7a3ffd0b17f663ad(arg0: any): any;
|
|
116
|
-
export function __wbg_prototypesetcall_2a6620b6922694b2(arg0: any, arg1: any, arg2: any): void;
|
|
117
|
-
export function __wbg_push_df81a39d04db858c(arg0: any, arg1: any): any;
|
|
118
|
-
export function __wbg_queueMicrotask_34d692c25c47d05b(arg0: any): any;
|
|
119
|
-
export function __wbg_queueMicrotask_9d76cacb20c84d58(arg0: any): void;
|
|
120
|
-
export function __wbg_randomUUID_f5597397f97d1e44(arg0: any, arg1: any): void;
|
|
121
|
-
export function __wbg_read_48f1593df542f968(arg0: any): any;
|
|
122
|
-
export function __wbg_readable_1f11b5bdc6b1c439(arg0: any): any;
|
|
123
|
-
export function __wbg_releaseLock_5d0b5a68887b891d(arg0: any): void;
|
|
124
|
-
export function __wbg_requestPort_bce3f3626a6900f7(arg0: any): any;
|
|
125
|
-
export function __wbg_resolve_caf97c30b83f7053(arg0: any): Promise<any>;
|
|
126
|
-
export function __wbg_sdpMLineIndex_7e2abd17908820fb(arg0: any): any;
|
|
127
|
-
export function __wbg_sdpMid_524b91d9afabd2cc(arg0: any, arg1: any): void;
|
|
128
|
-
export function __wbg_send_3d2cf376613294f0(...args: any[]): any;
|
|
129
|
-
export function __wbg_send_3d93963ba80250ff(...args: any[]): any;
|
|
130
|
-
export function __wbg_serial_ebad1b1c9075169a(arg0: any): any;
|
|
131
|
-
export function __wbg_setLocalDescription_65cd8a6ccfe86e28(arg0: any, arg1: any): any;
|
|
132
|
-
export function __wbg_setRemoteDescription_f77d823b45b689fb(arg0: any, arg1: any): any;
|
|
133
|
-
export function __wbg_setTimeout_db2dbaeefb6f39c7(...args: any[]): any;
|
|
134
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0: any, arg1: any, arg2: any): void;
|
|
135
|
-
export function __wbg_set_907fb406c34a251d(arg0: any, arg1: any, arg2: any): any;
|
|
136
|
-
export function __wbg_set_9e6516df7b7d0f19(arg0: any, arg1: any, arg2: any): void;
|
|
137
|
-
export function __wbg_set_baud_rate_0d3d4098ad0007bd(arg0: any, arg1: any): void;
|
|
138
|
-
export function __wbg_set_binaryType_9d839cea8fcdc5c3(arg0: any, arg1: any): void;
|
|
139
|
-
export function __wbg_set_c213c871859d6500(arg0: any, arg1: any, arg2: any): void;
|
|
140
|
-
export function __wbg_set_c2abbebe8b9ebee1(...args: any[]): any;
|
|
141
|
-
export function __wbg_set_candidate_c95c6639c1ddc40c(arg0: any, arg1: any, arg2: any): void;
|
|
142
|
-
export function __wbg_set_counter_8cf891ddbb09c405(arg0: any, arg1: any): void;
|
|
143
|
-
export function __wbg_set_credential_a3cba9eb4bce068c(arg0: any, arg1: any, arg2: any): void;
|
|
144
|
-
export function __wbg_set_ice_servers_2fe64c1f7030a20f(arg0: any, arg1: any): void;
|
|
145
|
-
export function __wbg_set_length_9b3abd6e75f20e65(arg0: any, arg1: any): void;
|
|
146
|
-
export function __wbg_set_name_30c7450c8511ee95(arg0: any, arg1: any, arg2: any): void;
|
|
147
|
-
export function __wbg_set_onclose_c09e4f7422de8dae(arg0: any, arg1: any): void;
|
|
148
|
-
export function __wbg_set_ondatachannel_d3587e15167e215b(arg0: any, arg1: any): void;
|
|
149
|
-
export function __wbg_set_onerror_337a3a2db9517378(arg0: any, arg1: any): void;
|
|
150
|
-
export function __wbg_set_onicecandidate_fa449483ade769ae(arg0: any, arg1: any): void;
|
|
151
|
-
export function __wbg_set_oniceconnectionstatechange_11dbe6c347a5d4d2(arg0: any, arg1: any): void;
|
|
152
|
-
export function __wbg_set_onmessage_3a8d6c4b2e1962d7(arg0: any, arg1: any): void;
|
|
153
|
-
export function __wbg_set_onmessage_8661558551a89792(arg0: any, arg1: any): void;
|
|
154
|
-
export function __wbg_set_onopen_ac1685e688d0fbcf(arg0: any, arg1: any): void;
|
|
155
|
-
export function __wbg_set_onopen_efccb9305427b907(arg0: any, arg1: any): void;
|
|
156
|
-
export function __wbg_set_sdp_b8e3939b73c0ad0f(arg0: any, arg1: any, arg2: any): void;
|
|
157
|
-
export function __wbg_set_sdp_m_line_index_8fc884801bfc6173(arg0: any, arg1: any): void;
|
|
158
|
-
export function __wbg_set_sdp_mid_4a6d24c6bec77f74(arg0: any, arg1: any, arg2: any): void;
|
|
159
|
-
export function __wbg_set_type_2e7e493a02f43e56(arg0: any, arg1: any): void;
|
|
160
|
-
export function __wbg_set_urls_835196658d97779c(arg0: any, arg1: any): void;
|
|
161
|
-
export function __wbg_set_username_305ae082fdb063b0(arg0: any, arg1: any, arg2: any): void;
|
|
162
|
-
export function __wbg_sign_0077f2aabd37825a(...args: any[]): any;
|
|
163
|
-
export function __wbg_signalingState_9a34f568c00c8208(arg0: any): number;
|
|
164
|
-
export function __wbg_stack_0ed75d68575b0f3c(arg0: any, arg1: any): void;
|
|
165
|
-
export function __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e(): any;
|
|
166
|
-
export function __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac(): any;
|
|
167
|
-
export function __wbg_static_accessor_SELF_6fdf4b64710cc91b(): any;
|
|
168
|
-
export function __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2(): any;
|
|
169
|
-
export function __wbg_subtle_a158c8cba320b8ed(arg0: any): any;
|
|
170
|
-
export function __wbg_then_4f46f6544e6b4a28(arg0: any, arg1: any): any;
|
|
171
|
-
export function __wbg_then_70d05cf780a18d77(arg0: any, arg1: any, arg2: any): any;
|
|
172
|
-
export function __wbg_unwrapKey_91db60c1c1da6b02(...args: any[]): any;
|
|
173
|
-
export function __wbg_value_692627309814bb8c(arg0: any): any;
|
|
174
|
-
export function __wbg_verify_47e017cd0770194c(...args: any[]): any;
|
|
175
|
-
export function __wbg_warn_1d74dddbe2fd1dbb(arg0: any): void;
|
|
176
|
-
export function __wbg_wrapKey_1b54a5ca6fa71c99(...args: any[]): any;
|
|
177
|
-
export function __wbg_writable_914f96f3361cf74a(arg0: any): any;
|
|
178
|
-
export function __wbg_write_5f693b62e780062e(arg0: any, arg1: any): any;
|
|
179
|
-
export function __wbindgen_cast_0483c6432e6bb3b6(arg0: any, arg1: any): {
|
|
180
|
-
(...args: any[]): any;
|
|
181
|
-
_wbg_cb_unref(): void;
|
|
182
|
-
};
|
|
183
|
-
export function __wbindgen_cast_0870598a3ac49758(arg0: any, arg1: any): {
|
|
184
|
-
(...args: any[]): any;
|
|
185
|
-
_wbg_cb_unref(): void;
|
|
186
|
-
};
|
|
187
|
-
export function __wbindgen_cast_2241b6af4c4b2941(arg0: any, arg1: any): any;
|
|
188
|
-
export function __wbindgen_cast_3df71bd50e2a2cfe(arg0: any, arg1: any): {
|
|
189
|
-
(...args: any[]): any;
|
|
190
|
-
_wbg_cb_unref(): void;
|
|
191
|
-
};
|
|
192
|
-
export function __wbindgen_cast_4625c577ab2ec9ee(arg0: any): bigint;
|
|
193
|
-
export function __wbindgen_cast_77bc3e92745e9a35(arg0: any, arg1: any): any;
|
|
194
|
-
export function __wbindgen_cast_9229580bb106f983(arg0: any, arg1: any): {
|
|
195
|
-
(...args: any[]): any;
|
|
196
|
-
_wbg_cb_unref(): void;
|
|
197
|
-
};
|
|
198
|
-
export function __wbindgen_cast_942e1b1306809e74(arg0: any, arg1: any): {
|
|
199
|
-
(...args: any[]): any;
|
|
200
|
-
_wbg_cb_unref(): void;
|
|
201
|
-
};
|
|
202
|
-
export function __wbindgen_cast_9ae0607507abb057(arg0: any): any;
|
|
203
|
-
export function __wbindgen_cast_b5784ace92b0fffe(arg0: any, arg1: any): {
|
|
204
|
-
(...args: any[]): any;
|
|
205
|
-
_wbg_cb_unref(): void;
|
|
206
|
-
};
|
|
207
|
-
export function __wbindgen_cast_d6cd19b81560fd6e(arg0: any): any;
|
|
208
|
-
export function __wbindgen_cast_e30fea0391e3bac3(arg0: any, arg1: any): {
|
|
209
|
-
(...args: any[]): any;
|
|
210
|
-
_wbg_cb_unref(): void;
|
|
211
|
-
};
|
|
212
|
-
export function __wbindgen_init_externref_table(): void;
|
|
213
|
-
export class BaseJSInterface {
|
|
214
|
-
__destroy_into_raw(): number | undefined;
|
|
215
|
-
__wbg_ptr: number | undefined;
|
|
216
|
-
free(): void;
|
|
217
|
-
}
|
|
218
|
-
export class JSComHub {
|
|
219
|
-
static __wrap(ptr: any): any;
|
|
220
|
-
__destroy_into_raw(): number | undefined;
|
|
221
|
-
__wbg_ptr: number | undefined;
|
|
222
|
-
free(): void;
|
|
223
|
-
/**
|
|
224
|
-
* @param {string} interface_uuid
|
|
225
|
-
* @param {Uint8Array} answer
|
|
226
|
-
* @returns {Promise<void>}
|
|
227
|
-
*/
|
|
228
|
-
webrtc_interface_set_answer(interface_uuid: string, answer: Uint8Array): Promise<void>;
|
|
229
|
-
/**
|
|
230
|
-
* @param {string} interface_uuid
|
|
231
|
-
* @returns {Promise<Uint8Array>}
|
|
232
|
-
*/
|
|
233
|
-
webrtc_interface_create_offer(interface_uuid: string): Promise<Uint8Array>;
|
|
234
|
-
/**
|
|
235
|
-
* @param {string} interface_uuid
|
|
236
|
-
* @param {Uint8Array} offer
|
|
237
|
-
* @returns {Promise<Uint8Array>}
|
|
238
|
-
*/
|
|
239
|
-
webrtc_interface_create_answer(interface_uuid: string, offer: Uint8Array): Promise<Uint8Array>;
|
|
240
|
-
/**
|
|
241
|
-
* @param {string} interface_uuid
|
|
242
|
-
* @param {Uint8Array} candidate
|
|
243
|
-
* @returns {Promise<void>}
|
|
244
|
-
*/
|
|
245
|
-
webrtc_interface_add_ice_candidate(interface_uuid: string, candidate: Uint8Array): Promise<void>;
|
|
246
|
-
/**
|
|
247
|
-
* @param {string} interface_uuid
|
|
248
|
-
* @returns {Promise<void>}
|
|
249
|
-
*/
|
|
250
|
-
webrtc_interface_wait_for_connection(interface_uuid: string): Promise<void>;
|
|
251
|
-
/**
|
|
252
|
-
* Send a block to the given interface and socket
|
|
253
|
-
* This does not involve the routing on the ComHub level.
|
|
254
|
-
* The socket UUID is used to identify the socket to send the block over
|
|
255
|
-
* The interface UUID is used to identify the interface to send the block over
|
|
256
|
-
* @param {Uint8Array} block
|
|
257
|
-
* @param {string} interface_uuid
|
|
258
|
-
* @param {string} socket_uuid
|
|
259
|
-
* @returns {Promise<boolean>}
|
|
260
|
-
*/
|
|
261
|
-
send_block(block: Uint8Array, interface_uuid: string, socket_uuid: string): Promise<boolean>;
|
|
262
|
-
/**
|
|
263
|
-
* @param {string} endpoint
|
|
264
|
-
* @returns {Promise<string | undefined>}
|
|
265
|
-
*/
|
|
266
|
-
get_trace_string(endpoint: string): Promise<string | undefined>;
|
|
267
|
-
/**
|
|
268
|
-
* @returns {Promise<void>}
|
|
269
|
-
*/
|
|
270
|
-
update(): Promise<void>;
|
|
271
|
-
/**
|
|
272
|
-
* @param {string} interface_uuid
|
|
273
|
-
* @param {Function} on_ice_candidate
|
|
274
|
-
*/
|
|
275
|
-
webrtc_interface_set_on_ice_candidate(interface_uuid: string, on_ice_candidate: Function): void;
|
|
276
|
-
/**
|
|
277
|
-
* @param {string} interface_uuid
|
|
278
|
-
* @returns {Promise<any>}
|
|
279
|
-
*/
|
|
280
|
-
close_interface(interface_uuid: string): Promise<any>;
|
|
281
|
-
/**
|
|
282
|
-
* @param {string} interface_type
|
|
283
|
-
* @param {string} properties
|
|
284
|
-
* @returns {Promise<any>}
|
|
285
|
-
*/
|
|
286
|
-
create_interface(interface_type: string, properties: string): Promise<any>;
|
|
287
|
-
/**
|
|
288
|
-
* @returns {string}
|
|
289
|
-
*/
|
|
290
|
-
get_metadata_string(): string;
|
|
291
|
-
/**
|
|
292
|
-
* @returns {Uint8Array[]}
|
|
293
|
-
*/
|
|
294
|
-
_drain_incoming_blocks(): Uint8Array[];
|
|
295
|
-
/**
|
|
296
|
-
* @param {Function} callback
|
|
297
|
-
*/
|
|
298
|
-
register_incoming_block_interceptor(callback: Function): void;
|
|
299
|
-
/**
|
|
300
|
-
* @param {Function} callback
|
|
301
|
-
*/
|
|
302
|
-
register_outgoing_block_interceptor(callback: Function): void;
|
|
303
|
-
register_default_interface_factories(): void;
|
|
304
|
-
/**
|
|
305
|
-
* @param {string} uuid
|
|
306
|
-
* @param {string} socket_uuid
|
|
307
|
-
* @param {Uint8Array} data
|
|
308
|
-
* @returns {Promise<boolean>}
|
|
309
|
-
*/
|
|
310
|
-
base_interface_test_send_block(uuid: string, socket_uuid: string, data: Uint8Array): Promise<boolean>;
|
|
311
|
-
/**
|
|
312
|
-
* @param {string} uuid
|
|
313
|
-
* @param {Function} func
|
|
314
|
-
*/
|
|
315
|
-
base_interface_on_send(uuid: string, func: Function): void;
|
|
316
|
-
/**
|
|
317
|
-
* @param {string} uuid
|
|
318
|
-
* @param {string} socket_uuid
|
|
319
|
-
* @param {Uint8Array} data
|
|
320
|
-
*/
|
|
321
|
-
base_interface_receive(uuid: string, socket_uuid: string, data: Uint8Array): void;
|
|
322
|
-
/**
|
|
323
|
-
* @param {string} uuid
|
|
324
|
-
* @param {string} socket_uuid
|
|
325
|
-
*/
|
|
326
|
-
base_interface_destroy_socket(uuid: string, socket_uuid: string): void;
|
|
327
|
-
/**
|
|
328
|
-
* @param {string} uuid
|
|
329
|
-
* @param {string} direction
|
|
330
|
-
* @returns {string}
|
|
331
|
-
*/
|
|
332
|
-
base_interface_register_socket(uuid: string, direction: string): string;
|
|
333
|
-
/**
|
|
334
|
-
* @param {string} interface_uuid
|
|
335
|
-
* @param {WebSocket} websocket
|
|
336
|
-
* @returns {string}
|
|
337
|
-
*/
|
|
338
|
-
websocket_server_interface_add_socket(interface_uuid: string, websocket: WebSocket): string;
|
|
339
|
-
}
|
|
340
|
-
export class JSPointer {
|
|
341
|
-
__destroy_into_raw(): number | undefined;
|
|
342
|
-
__wbg_ptr: number | undefined;
|
|
343
|
-
free(): void;
|
|
344
|
-
}
|
|
345
|
-
export class JSRuntime {
|
|
346
|
-
static __wrap(ptr: any): any;
|
|
347
|
-
__destroy_into_raw(): number | undefined;
|
|
348
|
-
__wbg_ptr: number | undefined;
|
|
349
|
-
free(): void;
|
|
350
|
-
/**
|
|
351
|
-
* @returns {Promise<Promise<any>>}
|
|
352
|
-
*/
|
|
353
|
-
crypto_test_tmp(): Promise<Promise<any>>;
|
|
354
|
-
/**
|
|
355
|
-
* @param {string} script
|
|
356
|
-
* @param {any[] | null | undefined} dif_values
|
|
357
|
-
* @param {any} decompile_options
|
|
358
|
-
* @returns {Promise<string>}
|
|
359
|
-
*/
|
|
360
|
-
execute_with_string_result(script: string, dif_values: any[] | null | undefined, decompile_options: any): Promise<string>;
|
|
361
|
-
/**
|
|
362
|
-
* @returns {Promise<void>}
|
|
363
|
-
*/
|
|
364
|
-
_stop(): Promise<void>;
|
|
365
|
-
/**
|
|
366
|
-
* @returns {Promise<void>}
|
|
367
|
-
*/
|
|
368
|
-
start(): Promise<void>;
|
|
369
|
-
/**
|
|
370
|
-
* @param {string} script
|
|
371
|
-
* @param {any[] | null} [dif_values]
|
|
372
|
-
* @returns {Promise<any>}
|
|
373
|
-
*/
|
|
374
|
-
execute(script: string, dif_values?: any[] | null): Promise<any>;
|
|
375
|
-
/**
|
|
376
|
-
* @param {JSComHub} arg0
|
|
377
|
-
*/
|
|
378
|
-
set com_hub(arg0: JSComHub);
|
|
379
|
-
/**
|
|
380
|
-
* @returns {JSComHub}
|
|
381
|
-
*/
|
|
382
|
-
get com_hub(): JSComHub;
|
|
383
|
-
/**
|
|
384
|
-
* @param {string} script
|
|
385
|
-
* @param {any[] | null} [dif_values]
|
|
386
|
-
* @returns {any}
|
|
387
|
-
*/
|
|
388
|
-
execute_sync(script: string, dif_values?: any[] | null): any;
|
|
389
|
-
/**
|
|
390
|
-
* @param {Uint8Array | null | undefined} body
|
|
391
|
-
* @param {string[]} receivers
|
|
392
|
-
* @returns {Uint8Array}
|
|
393
|
-
*/
|
|
394
|
-
_create_block(body: Uint8Array | null | undefined, receivers: string[]): Uint8Array;
|
|
395
|
-
/**
|
|
396
|
-
* @param {any} dif_value
|
|
397
|
-
* @param {any} decompile_options
|
|
398
|
-
* @returns {string}
|
|
399
|
-
*/
|
|
400
|
-
value_to_string(dif_value: any, decompile_options: any): string;
|
|
401
|
-
/**
|
|
402
|
-
* @param {string} script
|
|
403
|
-
* @param {any[] | null | undefined} dif_values
|
|
404
|
-
* @param {any} decompile_options
|
|
405
|
-
* @returns {string}
|
|
406
|
-
*/
|
|
407
|
-
execute_sync_with_string_result(script: string, dif_values: any[] | null | undefined, decompile_options: any): string;
|
|
408
|
-
/**
|
|
409
|
-
* Get a handle to the DIF interface of the runtime
|
|
410
|
-
* @returns {RuntimeDIFHandle}
|
|
411
|
-
*/
|
|
412
|
-
dif(): RuntimeDIFHandle;
|
|
413
|
-
/**
|
|
414
|
-
* @returns {string}
|
|
415
|
-
*/
|
|
416
|
-
get version(): string;
|
|
417
|
-
/**
|
|
418
|
-
* @returns {string}
|
|
419
|
-
*/
|
|
420
|
-
get endpoint(): string;
|
|
421
|
-
/**
|
|
422
|
-
* Start the LSP server, returning a JS function to send messages to Rust
|
|
423
|
-
* @param {Function} send_to_js
|
|
424
|
-
* @returns {Function}
|
|
425
|
-
*/
|
|
426
|
-
start_lsp(send_to_js: Function): Function;
|
|
427
|
-
}
|
|
428
|
-
export class RuntimeDIFHandle {
|
|
429
|
-
static __wrap(ptr: any): any;
|
|
430
|
-
__destroy_into_raw(): number | undefined;
|
|
431
|
-
__wbg_ptr: number | undefined;
|
|
432
|
-
free(): void;
|
|
433
|
-
/**
|
|
434
|
-
* @param {any} value
|
|
435
|
-
* @param {any} allowed_type
|
|
436
|
-
* @param {number} mutability
|
|
437
|
-
* @returns {string}
|
|
438
|
-
*/
|
|
439
|
-
create_pointer(value: any, allowed_type: any, mutability: number): string;
|
|
440
|
-
/**
|
|
441
|
-
* @param {number} transceiver_id
|
|
442
|
-
* @param {string} address
|
|
443
|
-
* @param {any} observe_options
|
|
444
|
-
* @param {Function} callback
|
|
445
|
-
* @returns {number}
|
|
446
|
-
*/
|
|
447
|
-
observe_pointer(transceiver_id: number, address: string, observe_options: any, callback: Function): number;
|
|
448
|
-
/**
|
|
449
|
-
* @param {string} address
|
|
450
|
-
* @param {number} observer_id
|
|
451
|
-
*/
|
|
452
|
-
unobserve_pointer(address: string, observer_id: number): void;
|
|
453
|
-
/**
|
|
454
|
-
* Resolve a pointer address, returning a Promise
|
|
455
|
-
* If the pointer is in memory, the promise resolves immediately
|
|
456
|
-
* If the pointer is not in memory, it will be loaded first
|
|
457
|
-
* @param {string} address
|
|
458
|
-
* @returns {any}
|
|
459
|
-
*/
|
|
460
|
-
resolve_pointer_address(address: string): any;
|
|
461
|
-
/**
|
|
462
|
-
* @param {string} address
|
|
463
|
-
* @param {number} observer_id
|
|
464
|
-
* @param {any} observe_options
|
|
465
|
-
*/
|
|
466
|
-
update_observer_options(address: string, observer_id: number, observe_options: any): void;
|
|
467
|
-
/**
|
|
468
|
-
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
469
|
-
* @param {string} address
|
|
470
|
-
* @returns {any}
|
|
471
|
-
*/
|
|
472
|
-
resolve_pointer_address_sync(address: string): any;
|
|
473
|
-
/**
|
|
474
|
-
* @param {any} callee
|
|
475
|
-
* @param {any} value
|
|
476
|
-
* @returns {any}
|
|
477
|
-
*/
|
|
478
|
-
apply(callee: any, value: any): any;
|
|
479
|
-
/**
|
|
480
|
-
* @param {number} transceiver_id
|
|
481
|
-
* @param {string} address
|
|
482
|
-
* @param {any} update
|
|
483
|
-
*/
|
|
484
|
-
update(transceiver_id: number, address: string, update: any): void;
|
|
485
|
-
}
|
|
486
|
-
export class WebSocketServerRegistry {
|
|
487
|
-
__destroy_into_raw(): number | undefined;
|
|
488
|
-
__wbg_ptr: number | undefined;
|
|
489
|
-
free(): void;
|
|
490
|
-
/**
|
|
491
|
-
* @param {string} interface_uuid
|
|
492
|
-
* @returns {Promise<any>}
|
|
493
|
-
*/
|
|
494
|
-
close(interface_uuid: string): Promise<any>;
|
|
495
|
-
}
|
|
496
|
-
//# sourceMappingURL=datex_core_js.internal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datex_core_js.internal.d.ts","sourceRoot":"","sources":["../../src/datex-core/datex_core_js.internal.js"],"names":[],"mappings":"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"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as imports from "./datex_core_js.internal.js";
|
|
2
|
-
import {
|
|
3
|
-
detectRuntime,
|
|
4
|
-
runtimeInterface,
|
|
5
|
-
} from "../utils/js-runtime-compat/js-runtime.js";
|
|
6
|
-
|
|
7
|
-
let wasmUrl;
|
|
8
|
-
const isVite = !!import.meta.env?.MODE;
|
|
9
|
-
if (detectRuntime() == "browser" && isVite) {
|
|
10
|
-
wasmUrl = (await import("./wasm_url.node.js")).default;
|
|
11
|
-
} else {
|
|
12
|
-
wasmUrl = new URL("datex_core_js.wasm", import.meta.url);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const wasm = (await runtimeInterface.instantiateWebAssembly(wasmUrl, {
|
|
16
|
-
"./datex_core_js.internal.js": imports,
|
|
17
|
-
})).instance;
|
|
18
|
-
export * from "./datex_core_js.internal.js";
|
|
19
|
-
import { __wbg_set_wasm } from "./datex_core_js.internal.js";
|
|
20
|
-
__wbg_set_wasm(wasm.exports);
|
|
21
|
-
wasm.exports.__wbindgen_start();
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from "./datex_core_js.wasm?url";
|
package/esm/datex-core.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datex-core.d.ts","sourceRoot":"","sources":["../src/datex-core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { JSComHub } from "../datex-core/datex_core_js";
|
|
2
|
-
/**
|
|
3
|
-
* Abstract base class for communication interface implementations.
|
|
4
|
-
*/
|
|
5
|
-
export declare abstract class ComInterfaceImpl<SetupData> {
|
|
6
|
-
protected readonly uuid: string;
|
|
7
|
-
protected readonly setupData: SetupData;
|
|
8
|
-
protected readonly jsComHub: JSComHub;
|
|
9
|
-
constructor(uuid: string, setupData: SetupData, jsComHub: JSComHub);
|
|
10
|
-
/**
|
|
11
|
-
* Initializes the communication interface.
|
|
12
|
-
*/
|
|
13
|
-
init?(): Promise<void> | void;
|
|
14
|
-
/**
|
|
15
|
-
* Cleans up the communication interface.
|
|
16
|
-
*/
|
|
17
|
-
cleanup?(): Promise<void> | void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Represents a communication interface.
|
|
21
|
-
*/
|
|
22
|
-
export declare class ComInterface<T extends ComInterfaceImpl<unknown>> {
|
|
23
|
-
#private;
|
|
24
|
-
/** The UUID of the interface. */
|
|
25
|
-
readonly uuid: string;
|
|
26
|
-
/** The implementation of the interface. */
|
|
27
|
-
readonly impl: T;
|
|
28
|
-
constructor(uuid: string, impl: T, jsComHub: JSComHub);
|
|
29
|
-
/**
|
|
30
|
-
* Closes the communication interface.
|
|
31
|
-
* @returns True if the interface was closed successfully, false otherwise.
|
|
32
|
-
*/
|
|
33
|
-
close(): Promise<boolean>;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=com-interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"com-interface.d.ts","sourceRoot":"","sources":["../../src/network/com-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;GAEG;AACH,8BAAsB,gBAAgB,CAAC,SAAS;IAC5C,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAG,MAAM,CAAC;IACjC,SAAS,CAAC,QAAQ,CAAC,SAAS,EAAG,SAAS,CAAC;IACzC,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAG,QAAQ,CAAC;gBAE3B,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ;IAKlE;;OAEG;IACH,IAAI,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAC7B;;OAEG;IACH,OAAO,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;CACnC;AAED;;GAEG;AACH,qBAAa,YAAY,CAAC,CAAC,SAAS,gBAAgB,CAAC,OAAO,CAAC;;IACzD,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;gBAKL,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ;IAMrD;;;OAGG;IACU,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC;CAIzC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
-
};
|
|
12
|
-
var _ComInterface_jsComHub;
|
|
13
|
-
/**
|
|
14
|
-
* Abstract base class for communication interface implementations.
|
|
15
|
-
*/
|
|
16
|
-
export class ComInterfaceImpl {
|
|
17
|
-
constructor(uuid, setupData, jsComHub) {
|
|
18
|
-
Object.defineProperty(this, "uuid", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
configurable: true,
|
|
21
|
-
writable: true,
|
|
22
|
-
value: void 0
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(this, "setupData", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
configurable: true,
|
|
27
|
-
writable: true,
|
|
28
|
-
value: void 0
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(this, "jsComHub", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
configurable: true,
|
|
33
|
-
writable: true,
|
|
34
|
-
value: void 0
|
|
35
|
-
});
|
|
36
|
-
this.uuid = uuid;
|
|
37
|
-
this.setupData = setupData;
|
|
38
|
-
this.jsComHub = jsComHub;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Represents a communication interface.
|
|
43
|
-
*/
|
|
44
|
-
export class ComInterface {
|
|
45
|
-
constructor(uuid, impl, jsComHub) {
|
|
46
|
-
/** The UUID of the interface. */
|
|
47
|
-
Object.defineProperty(this, "uuid", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
configurable: true,
|
|
50
|
-
writable: true,
|
|
51
|
-
value: void 0
|
|
52
|
-
});
|
|
53
|
-
/** The implementation of the interface. */
|
|
54
|
-
Object.defineProperty(this, "impl", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
configurable: true,
|
|
57
|
-
writable: true,
|
|
58
|
-
value: void 0
|
|
59
|
-
});
|
|
60
|
-
/** The JS communication hub. */
|
|
61
|
-
_ComInterface_jsComHub.set(this, void 0);
|
|
62
|
-
this.uuid = uuid;
|
|
63
|
-
this.impl = impl;
|
|
64
|
-
__classPrivateFieldSet(this, _ComInterface_jsComHub, jsComHub, "f");
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Closes the communication interface.
|
|
68
|
-
* @returns True if the interface was closed successfully, false otherwise.
|
|
69
|
-
*/
|
|
70
|
-
async close() {
|
|
71
|
-
await this.impl.cleanup?.();
|
|
72
|
-
return __classPrivateFieldGet(this, _ComInterface_jsComHub, "f").close_interface(this.uuid);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
_ComInterface_jsComHub = new WeakMap();
|