@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
package/README.md
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
# DATEX
|
|
1
|
+
# DATEX Web
|
|
2
2
|
|
|
3
3
|
> Check out our specification at [datex.unyt.org](https://datex.unyt.org).
|
|
4
4
|
|
|
5
|
+
[](https://crates.io/crates/datex-web)
|
|
5
6
|
[![Twitter badge][]][Twitter link] [![Discord badge][]][Discord link]
|
|
6
7
|
|
|
7
8
|
<img align="right" src="assets/datex-logo-light.svg" width="150px" alt="The DATEX logo">
|
|
8
9
|
|
|
9
|
-
The DATEX
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
developed and maintained by the [unyt.org](https://unyt.org) organization and
|
|
13
|
-
community.
|
|
10
|
+
The DATEX Web Library for JavaScript (DATEX Web) is based on the [DATEX](https://github.com/unyt-org/datex) Rust library
|
|
11
|
+
and provides a high-level API for working with DATEX in JavaScript and TypeScript. DATEX is developed and maintained by
|
|
12
|
+
the [unyt.org](https://unyt.org) organization and community.
|
|
14
13
|
|
|
15
|
-
You can find the legacy version of the DATEX Core library _(implemented in
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
The legacy version is still maintained and supported until this library reaches
|
|
19
|
-
feature parity.
|
|
14
|
+
You can find the legacy version of the DATEX Core library _(implemented in TypeScript)_ at
|
|
15
|
+
[unyt-org/datex-core-js-legacy](https://github.com/unyt-org/datex-core-js-legacy). The legacy version is still
|
|
16
|
+
maintained and supported until this library reaches feature parity.
|
|
20
17
|
|
|
21
18
|
## Contributing
|
|
22
19
|
|
|
23
|
-
We welcome every contribution!<br> Please take a look at the
|
|
24
|
-
[development guidelines](./DEVELOP.md) and the unyt.org
|
|
20
|
+
We welcome every contribution!<br> Please take a look at the [development guidelines](./DEVELOP.md) and the unyt.org
|
|
25
21
|
[contribution guidlines](https://github.com/unyt-org/.github/blob/main/CONTRIBUTING.md).
|
|
26
22
|
|
|
27
23
|
[Twitter badge]: https://img.shields.io/twitter/follow/unytorg.svg?style=social&label=Follow
|
|
@@ -31,4 +27,4 @@ We welcome every contribution!<br> Please take a look at the
|
|
|
31
27
|
|
|
32
28
|
---
|
|
33
29
|
|
|
34
|
-
<sub>© unyt
|
|
30
|
+
<sub>© unyt 2026 • [unyt.org](https://unyt.org)</sub>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datex_web.d.ts","sourceRoot":"","sources":["../../src/datex-web/datex_web.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {any} config
|
|
3
|
+
* @param {any} debug_config
|
|
4
|
+
* @returns {Promise<JSRuntime>}
|
|
5
|
+
*/
|
|
6
|
+
export function create_runtime(config: any, debug_config: any): Promise<JSRuntime>;
|
|
7
|
+
/**
|
|
8
|
+
* Executes a Datex script and returns the result as a string.
|
|
9
|
+
* @param {string} datex_script
|
|
10
|
+
* @param {any} decompile_options
|
|
11
|
+
* @returns {string}
|
|
12
|
+
*/
|
|
13
|
+
export function execute(datex_script: string, decompile_options: any): string;
|
|
14
|
+
/**
|
|
15
|
+
* Executes a Datex script and returns true when execution was successful.
|
|
16
|
+
* Does not return the result of the script, but only indicates success or failure.
|
|
17
|
+
* @param {string} datex_script
|
|
18
|
+
* @returns {boolean}
|
|
19
|
+
*/
|
|
20
|
+
export function execute_internal(datex_script: string): boolean;
|
|
21
|
+
export function __wbg_Error_dbcd8782dbb273a2(arg0: any, arg1: any): Error;
|
|
22
|
+
export function __wbg_Number_012552ac4683228d(arg0: any): number;
|
|
23
|
+
export function __wbg_String_8564e559799eccda(arg0: any, arg1: any): void;
|
|
24
|
+
export function __wbg___wbindgen_bigint_get_as_i64_25c638f64ce0e2e0(arg0: any, arg1: any): void;
|
|
25
|
+
export function __wbg___wbindgen_boolean_get_7f1c4dd217655ab6(arg0: any): 1 | 0 | 16777215;
|
|
26
|
+
export function __wbg___wbindgen_debug_string_6cf0badf0b90f6ef(arg0: any, arg1: any): void;
|
|
27
|
+
export function __wbg___wbindgen_in_e32cbbbf71fdc915(arg0: any, arg1: any): boolean;
|
|
28
|
+
export function __wbg___wbindgen_is_bigint_95f22c948ca1bbe1(arg0: any): arg0 is bigint;
|
|
29
|
+
export function __wbg___wbindgen_is_function_4500d4795b15e70b(arg0: any): boolean;
|
|
30
|
+
export function __wbg___wbindgen_is_null_5467e07e008308e7(arg0: any): boolean;
|
|
31
|
+
export function __wbg___wbindgen_is_object_f8b6723c60349a13(arg0: any): boolean;
|
|
32
|
+
export function __wbg___wbindgen_is_string_89134e23eba104e4(arg0: any): arg0 is string;
|
|
33
|
+
export function __wbg___wbindgen_is_undefined_1296fcc83c2da07a(arg0: any): boolean;
|
|
34
|
+
export function __wbg___wbindgen_jsval_eq_39cab0b49f8188e9(arg0: any, arg1: any): boolean;
|
|
35
|
+
export function __wbg___wbindgen_jsval_loose_eq_3173dea557396a92(arg0: any, arg1: any): boolean;
|
|
36
|
+
export function __wbg___wbindgen_number_get_3330675b4e5c3680(arg0: any, arg1: any): void;
|
|
37
|
+
export function __wbg___wbindgen_string_get_7b8bc463f6cbeefe(arg0: any, arg1: any): void;
|
|
38
|
+
export function __wbg___wbindgen_throw_89ca9e2c67795ec1(arg0: any, arg1: any): void;
|
|
39
|
+
export function __wbg__wbg_cb_unref_f00ff3c6385bd6fa(arg0: any): void;
|
|
40
|
+
export function __wbg_buffer_bfc0004d8d490b64(arg0: any): any;
|
|
41
|
+
export function __wbg_byteLength_bf98fbeb47223e5a(arg0: any): any;
|
|
42
|
+
export function __wbg_call_3eadb5cea0462653(...args: any[]): any;
|
|
43
|
+
export function __wbg_call_9ff23202a8e4c398(...args: any[]): any;
|
|
44
|
+
export function __wbg_call_dcf4c86f489d6628(...args: any[]): any;
|
|
45
|
+
export function __wbg_call_eb691bc2f5533064(...args: any[]): any;
|
|
46
|
+
export function __wbg_cancel_ab703655e38608f0(arg0: any): any;
|
|
47
|
+
export function __wbg_clearTimeout_113b1cde814ec762(arg0: any): any;
|
|
48
|
+
export function __wbg_close_ac58aa253ae5c164(...args: any[]): any;
|
|
49
|
+
export function __wbg_crypto_15952a660f6c42f9(...args: any[]): any;
|
|
50
|
+
export function __wbg_data_946ee98fc7c8524e(arg0: any): any;
|
|
51
|
+
export function __wbg_debug_bc486fe1782a2e20(arg0: any, arg1: any, arg2: any, arg3: any): void;
|
|
52
|
+
export function __wbg_decrypt_fb3df4e7108c7af8(...args: any[]): any;
|
|
53
|
+
export function __wbg_deriveBits_babd864f24c26510(...args: any[]): any;
|
|
54
|
+
export function __wbg_digest_68cb89b17e4a5dc4(...args: any[]): any;
|
|
55
|
+
export function __wbg_done_82b14aeb31e98db6(arg0: any): any;
|
|
56
|
+
export function __wbg_encrypt_2fe1a4fe781e4500(...args: any[]): any;
|
|
57
|
+
export function __wbg_entries_46c64fadfaa3b525(arg0: any): [string, any][];
|
|
58
|
+
export function __wbg_error_6df093442af96598(arg0: any, arg1: any, arg2: any, arg3: any): void;
|
|
59
|
+
export function __wbg_error_a6fa202b58aa1cd3(arg0: any, arg1: any): void;
|
|
60
|
+
export function __wbg_error_d0b9fd88b7a19297(arg0: any): void;
|
|
61
|
+
export function __wbg_exportKey_888238fed76b1d57(...args: any[]): any;
|
|
62
|
+
export function __wbg_generateKey_cacf6d919231a631(...args: any[]): any;
|
|
63
|
+
export function __wbg_getRandomValues_1fcaec8b7b47660c(...args: any[]): any;
|
|
64
|
+
export function __wbg_getReader_c1c7b71406750f3a(arg0: any): any;
|
|
65
|
+
export function __wbg_getWriter_b14ed7011222629c(...args: any[]): any;
|
|
66
|
+
export function __wbg_get_229657ec2da079cd(arg0: any, arg1: any): any;
|
|
67
|
+
export function __wbg_get_89f3a4c398b4872e(...args: any[]): any;
|
|
68
|
+
export function __wbg_get_done_c355ff5cc3338368(arg0: any): 1 | 0 | 16777215;
|
|
69
|
+
export function __wbg_get_ed44f5f876f22351(...args: any[]): any;
|
|
70
|
+
export function __wbg_get_private_key_86d9a3716e61a11a(arg0: any): any;
|
|
71
|
+
export function __wbg_get_public_key_0e3517f984bc9ce7(arg0: any): any;
|
|
72
|
+
export function __wbg_get_unchecked_ae4d1600970be7c3(arg0: any, arg1: any): any;
|
|
73
|
+
export function __wbg_get_value_e7da3dda29ab004c(arg0: any): any;
|
|
74
|
+
export function __wbg_get_with_ref_key_6412cf3094599694(arg0: any, arg1: any): any;
|
|
75
|
+
export function __wbg_importKey_d5d98bc5f7c574a9(...args: any[]): any;
|
|
76
|
+
export function __wbg_info_3fd9a89e2dc8aaf1(arg0: any, arg1: any, arg2: any, arg3: any): void;
|
|
77
|
+
export function __wbg_instanceof_ArrayBuffer_4f2b9b5ed416155d(arg0: any): boolean;
|
|
78
|
+
export function __wbg_instanceof_CryptoKey_f4419e1bcb5414ed(arg0: any): boolean;
|
|
79
|
+
export function __wbg_instanceof_Map_3ad422261e078a42(arg0: any): boolean;
|
|
80
|
+
export function __wbg_instanceof_Object_4ac1098d06a01a38(arg0: any): boolean;
|
|
81
|
+
export function __wbg_instanceof_ReadableStreamDefaultReader_251c05d2f717b795(arg0: any): boolean;
|
|
82
|
+
export function __wbg_instanceof_Uint8Array_6482c66fce35827d(arg0: any): boolean;
|
|
83
|
+
export function __wbg_instanceof_Window_27a653e1b516dd65(arg0: any): boolean;
|
|
84
|
+
export function __wbg_isArray_fe5201bfdab7e39d(arg0: any): arg0 is any[];
|
|
85
|
+
export function __wbg_isSafeInteger_d6215c7562dbc4db(arg0: any): boolean;
|
|
86
|
+
export function __wbg_iterator_63c3a1857203cf2f(): symbol;
|
|
87
|
+
export function __wbg_jsruntime_new(arg0: any): any;
|
|
88
|
+
export function __wbg_length_f875d3a041bab91a(arg0: any): any;
|
|
89
|
+
export function __wbg_length_feaf2a40e5f9755a(arg0: any): any;
|
|
90
|
+
export function __wbg_log_876289592910878f(arg0: any, arg1: any, arg2: any, arg3: any): void;
|
|
91
|
+
export function __wbg_navigator_373a54253e4475fb(arg0: any): any;
|
|
92
|
+
export function __wbg_new_227d7c05414eb861(): Error;
|
|
93
|
+
export function __wbg_new_5947ca72f3fee3e6(): Map<any, any>;
|
|
94
|
+
export function __wbg_new_6e7681a5f6f98ceb(arg0: any): Uint8Array<any>;
|
|
95
|
+
export function __wbg_new_6feff3e11e4d0799(): Object;
|
|
96
|
+
export function __wbg_new_c6862560cccd12ba(...args: any[]): any;
|
|
97
|
+
export function __wbg_new_ff7f9cc4c9a4a0cf(): any[];
|
|
98
|
+
export function __wbg_new_from_slice_a5be53238f31f9f7(arg0: any, arg1: any): Uint8Array<any>;
|
|
99
|
+
export function __wbg_new_typed_094c40c0ef1c4dd9(): any[];
|
|
100
|
+
export function __wbg_new_typed_f79896f0ea5f7de8(arg0: any, arg1: any): Promise<any>;
|
|
101
|
+
export function __wbg_next_ae5b710aea83f41e(...args: any[]): any;
|
|
102
|
+
export function __wbg_next_f577b3e02c9be709(arg0: any): any;
|
|
103
|
+
export function __wbg_now_054cfe5280165f10(): number;
|
|
104
|
+
export function __wbg_now_e7c6795a7f81e10f(arg0: any): any;
|
|
105
|
+
export function __wbg_of_46d2833daab368cb(arg0: any, arg1: any): any[];
|
|
106
|
+
export function __wbg_of_fcc1c8c0899b3729(arg0: any): any[];
|
|
107
|
+
export function __wbg_open_594aeba07b1a8345(arg0: any, arg1: any): any;
|
|
108
|
+
export function __wbg_performance_3fcf6e32a7e1ed0a(arg0: any): any;
|
|
109
|
+
export function __wbg_prototypesetcall_37f00e1be5c4015a(arg0: any, arg1: any, arg2: any): void;
|
|
110
|
+
export function __wbg_push_3584053bd77475ee(arg0: any, arg1: any): any;
|
|
111
|
+
export function __wbg_queueMicrotask_5e387cf4d8e3f63e(arg0: any): void;
|
|
112
|
+
export function __wbg_queueMicrotask_77bf5a3ad712168b(arg0: any): any;
|
|
113
|
+
export function __wbg_randomUUID_a5d67697fb5a6a89(arg0: any, arg1: any): void;
|
|
114
|
+
export function __wbg_read_4cfc9fe040a376a9(arg0: any): any;
|
|
115
|
+
export function __wbg_readable_3e679010e75a81aa(arg0: any): any;
|
|
116
|
+
export function __wbg_requestPort_f20299b9686054c0(arg0: any): any;
|
|
117
|
+
export function __wbg_resolve_2e8556632715b12f(arg0: any): Promise<any>;
|
|
118
|
+
export function __wbg_send_62684b18190d0f4e(...args: any[]): any;
|
|
119
|
+
export function __wbg_serial_4363b4032ea3768b(arg0: any): any;
|
|
120
|
+
export function __wbg_setTimeout_ef24d2fc3ad97385(...args: any[]): any;
|
|
121
|
+
export function __wbg_set_409333732b484ee7(...args: any[]): any;
|
|
122
|
+
export function __wbg_set_601f3e1d081df3ac(arg0: any, arg1: any, arg2: any): void;
|
|
123
|
+
export function __wbg_set_6be42768c690e380(arg0: any, arg1: any, arg2: any): void;
|
|
124
|
+
export function __wbg_set_b1226382f10be917(arg0: any, arg1: any, arg2: any): any;
|
|
125
|
+
export function __wbg_set_baud_rate_fe6143d5d7676056(arg0: any, arg1: any): void;
|
|
126
|
+
export function __wbg_set_binaryType_cf0c7d4f696463c4(arg0: any, arg1: any): void;
|
|
127
|
+
export function __wbg_set_counter_70f1a54a0f915958(arg0: any, arg1: any): void;
|
|
128
|
+
export function __wbg_set_length_3eeb986747a2cafc(arg0: any, arg1: any): void;
|
|
129
|
+
export function __wbg_set_name_ddf0b4aff0b39746(arg0: any, arg1: any, arg2: any): void;
|
|
130
|
+
export function __wbg_set_onclose_f1dc4f34db0edb70(arg0: any, arg1: any): void;
|
|
131
|
+
export function __wbg_set_onerror_c5cc940aaa32469f(arg0: any, arg1: any): void;
|
|
132
|
+
export function __wbg_set_onmessage_4bc3bcd36a569c03(arg0: any, arg1: any): void;
|
|
133
|
+
export function __wbg_set_onopen_7c5a9bca5c4ae13d(arg0: any, arg1: any): void;
|
|
134
|
+
export function __wbg_sign_ac2a693ae3c36d52(...args: any[]): any;
|
|
135
|
+
export function __wbg_stack_3b0d974bbf31e44f(arg0: any, arg1: any): void;
|
|
136
|
+
export function __wbg_static_accessor_GLOBAL_280fe6a619bbfbf6(): any;
|
|
137
|
+
export function __wbg_static_accessor_GLOBAL_THIS_12c1f4811ec605d1(): any;
|
|
138
|
+
export function __wbg_static_accessor_SELF_3a156961626f54d9(): any;
|
|
139
|
+
export function __wbg_static_accessor_WINDOW_210015b3eb6018a4(): any;
|
|
140
|
+
export function __wbg_subtle_81be0a973c415a03(arg0: any): any;
|
|
141
|
+
export function __wbg_then_5ce48a9e69c0d3cd(arg0: any, arg1: any): any;
|
|
142
|
+
export function __wbg_then_f73127af3894d61c(arg0: any, arg1: any, arg2: any): any;
|
|
143
|
+
export function __wbg_toString_e3e5fe9e1dd78d7e(arg0: any): any;
|
|
144
|
+
export function __wbg_unwrapKey_a1ed6f93290ea7e6(...args: any[]): any;
|
|
145
|
+
export function __wbg_value_3e1fdb73e1353fb3(arg0: any): any;
|
|
146
|
+
export function __wbg_verify_f1f7d4c6724422ed(...args: any[]): any;
|
|
147
|
+
export function __wbg_warn_1cdc9092c462f8ba(arg0: any, arg1: any, arg2: any, arg3: any): void;
|
|
148
|
+
export function __wbg_wrapKey_86c5988ab8fc9c88(...args: any[]): any;
|
|
149
|
+
export function __wbg_writable_895b2d01f223385e(arg0: any): any;
|
|
150
|
+
export function __wbg_write_537b90f946efe5cf(arg0: any, arg1: any): any;
|
|
151
|
+
export function __wbindgen_cast_0000000000000001(arg0: any, arg1: any): {
|
|
152
|
+
(...args: any[]): any;
|
|
153
|
+
_wbg_cb_unref(): void;
|
|
154
|
+
};
|
|
155
|
+
export function __wbindgen_cast_0000000000000002(arg0: any, arg1: any): {
|
|
156
|
+
(...args: any[]): any;
|
|
157
|
+
_wbg_cb_unref(): void;
|
|
158
|
+
};
|
|
159
|
+
export function __wbindgen_cast_0000000000000003(arg0: any, arg1: any): {
|
|
160
|
+
(...args: any[]): any;
|
|
161
|
+
_wbg_cb_unref(): void;
|
|
162
|
+
};
|
|
163
|
+
export function __wbindgen_cast_0000000000000004(arg0: any, arg1: any): {
|
|
164
|
+
(...args: any[]): any;
|
|
165
|
+
_wbg_cb_unref(): void;
|
|
166
|
+
};
|
|
167
|
+
export function __wbindgen_cast_0000000000000005(arg0: any, arg1: any): {
|
|
168
|
+
(...args: any[]): any;
|
|
169
|
+
_wbg_cb_unref(): void;
|
|
170
|
+
};
|
|
171
|
+
export function __wbindgen_cast_0000000000000006(arg0: any, arg1: any): {
|
|
172
|
+
(...args: any[]): any;
|
|
173
|
+
_wbg_cb_unref(): void;
|
|
174
|
+
};
|
|
175
|
+
export function __wbindgen_cast_0000000000000007(arg0: any, arg1: any): {
|
|
176
|
+
(...args: any[]): any;
|
|
177
|
+
_wbg_cb_unref(): void;
|
|
178
|
+
};
|
|
179
|
+
export function __wbindgen_cast_0000000000000008(arg0: any, arg1: any): {
|
|
180
|
+
(...args: any[]): any;
|
|
181
|
+
_wbg_cb_unref(): void;
|
|
182
|
+
};
|
|
183
|
+
export function __wbindgen_cast_0000000000000009(arg0: any): any;
|
|
184
|
+
export function __wbindgen_cast_000000000000000a(arg0: any): any;
|
|
185
|
+
export function __wbindgen_cast_000000000000000b(arg0: any, arg1: any): any;
|
|
186
|
+
export function __wbindgen_cast_000000000000000c(arg0: any): bigint;
|
|
187
|
+
export function __wbindgen_cast_000000000000000d(arg0: any, arg1: any): any;
|
|
188
|
+
export function __wbindgen_init_externref_table(): void;
|
|
189
|
+
export function __wbg_set_wasm(val: any): void;
|
|
190
|
+
export class JSComHub {
|
|
191
|
+
static __wrap(ptr: any): any;
|
|
192
|
+
__destroy_into_raw(): number | undefined;
|
|
193
|
+
__wbg_ptr: number | undefined;
|
|
194
|
+
free(): void;
|
|
195
|
+
/**
|
|
196
|
+
* @param {string} interface_type
|
|
197
|
+
* @param {any} setup_data
|
|
198
|
+
* @param {number | null} [priority]
|
|
199
|
+
* @returns {Promise<string>}
|
|
200
|
+
*/
|
|
201
|
+
create_interface(interface_type: string, setup_data: any, priority?: number | null): Promise<string>;
|
|
202
|
+
/**
|
|
203
|
+
* @returns {any}
|
|
204
|
+
*/
|
|
205
|
+
get_metadata(): any;
|
|
206
|
+
/**
|
|
207
|
+
* @returns {string}
|
|
208
|
+
*/
|
|
209
|
+
get_metadata_string(): string;
|
|
210
|
+
/**
|
|
211
|
+
* @param {string} endpoint
|
|
212
|
+
* @returns {Promise<any | undefined>}
|
|
213
|
+
*/
|
|
214
|
+
get_trace(endpoint: string): Promise<any | undefined>;
|
|
215
|
+
/**
|
|
216
|
+
* @param {string} endpoint
|
|
217
|
+
* @returns {Promise<string | undefined>}
|
|
218
|
+
*/
|
|
219
|
+
get_trace_string(endpoint: string): Promise<string | undefined>;
|
|
220
|
+
register_default_interface_factories(): void;
|
|
221
|
+
/**
|
|
222
|
+
* @param {Function} callback
|
|
223
|
+
*/
|
|
224
|
+
register_incoming_block_interceptor(callback: Function): void;
|
|
225
|
+
/**
|
|
226
|
+
* @param {string} interface_type
|
|
227
|
+
* @param {Function} factory
|
|
228
|
+
*/
|
|
229
|
+
register_interface_factory(interface_type: string, factory: Function): void;
|
|
230
|
+
/**
|
|
231
|
+
* @param {Function} callback
|
|
232
|
+
*/
|
|
233
|
+
register_outgoing_block_interceptor(callback: Function): void;
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} interface_uuid
|
|
236
|
+
* @returns {Promise<void>}
|
|
237
|
+
*/
|
|
238
|
+
remove_interface(interface_uuid: string): Promise<void>;
|
|
239
|
+
/**
|
|
240
|
+
* @param {string} socket_uuid
|
|
241
|
+
* @returns {Promise<void>}
|
|
242
|
+
*/
|
|
243
|
+
remove_socket(socket_uuid: string): Promise<void>;
|
|
244
|
+
}
|
|
245
|
+
export class JSPointer {
|
|
246
|
+
__destroy_into_raw(): number | undefined;
|
|
247
|
+
__wbg_ptr: number | undefined;
|
|
248
|
+
free(): void;
|
|
249
|
+
}
|
|
250
|
+
export class JSRuntime {
|
|
251
|
+
static __wrap(ptr: any): any;
|
|
252
|
+
__destroy_into_raw(): number | undefined;
|
|
253
|
+
__wbg_ptr: number | undefined;
|
|
254
|
+
free(): void;
|
|
255
|
+
/**
|
|
256
|
+
* @param {JSComHub} arg0
|
|
257
|
+
*/
|
|
258
|
+
set com_hub(arg0: JSComHub);
|
|
259
|
+
/**
|
|
260
|
+
* @returns {JSComHub}
|
|
261
|
+
*/
|
|
262
|
+
get com_hub(): JSComHub;
|
|
263
|
+
/**
|
|
264
|
+
* @param {Uint8Array | null | undefined} body
|
|
265
|
+
* @param {string[]} receivers
|
|
266
|
+
* @returns {Uint8Array}
|
|
267
|
+
*/
|
|
268
|
+
_create_block(body: Uint8Array | null | undefined, receivers: string[]): Uint8Array;
|
|
269
|
+
/**
|
|
270
|
+
* @returns {Promise<Promise<any>>}
|
|
271
|
+
*/
|
|
272
|
+
crypto_test_tmp(): Promise<Promise<any>>;
|
|
273
|
+
/**
|
|
274
|
+
* Get a handle to the DIF interface of the runtime
|
|
275
|
+
* @returns {RuntimeDIFHandle}
|
|
276
|
+
*/
|
|
277
|
+
dif(): RuntimeDIFHandle;
|
|
278
|
+
/**
|
|
279
|
+
* @returns {string}
|
|
280
|
+
*/
|
|
281
|
+
get endpoint(): string;
|
|
282
|
+
/**
|
|
283
|
+
* @param {string} script
|
|
284
|
+
* @param {any[] | null} [dif_values]
|
|
285
|
+
* @returns {Promise<any>}
|
|
286
|
+
*/
|
|
287
|
+
execute(script: string, dif_values?: any[] | null): Promise<any>;
|
|
288
|
+
/**
|
|
289
|
+
* @param {string} script
|
|
290
|
+
* @param {any[] | null} [dif_values]
|
|
291
|
+
* @returns {any}
|
|
292
|
+
*/
|
|
293
|
+
execute_sync(script: string, dif_values?: any[] | null): any;
|
|
294
|
+
/**
|
|
295
|
+
* @param {string} script
|
|
296
|
+
* @param {any[] | null | undefined} dif_values
|
|
297
|
+
* @param {any} decompile_options
|
|
298
|
+
* @returns {string}
|
|
299
|
+
*/
|
|
300
|
+
execute_sync_with_string_result(script: string, dif_values: any[] | null | undefined, decompile_options: any): string;
|
|
301
|
+
/**
|
|
302
|
+
* @param {string} script
|
|
303
|
+
* @param {any[] | null | undefined} dif_values
|
|
304
|
+
* @param {any} decompile_options
|
|
305
|
+
* @returns {Promise<string>}
|
|
306
|
+
*/
|
|
307
|
+
execute_with_string_result(script: string, dif_values: any[] | null | undefined, decompile_options: any): Promise<string>;
|
|
308
|
+
/**
|
|
309
|
+
* Start the LSP server, returning a JS function to send messages to Rust
|
|
310
|
+
* @param {Function} send_to_js
|
|
311
|
+
* @returns {Function}
|
|
312
|
+
*/
|
|
313
|
+
start_lsp(send_to_js: Function): Function;
|
|
314
|
+
/**
|
|
315
|
+
* @param {any} dif_value
|
|
316
|
+
* @param {any} decompile_options
|
|
317
|
+
* @returns {string}
|
|
318
|
+
*/
|
|
319
|
+
value_to_string(dif_value: any, decompile_options: any): string;
|
|
320
|
+
/**
|
|
321
|
+
* @returns {string}
|
|
322
|
+
*/
|
|
323
|
+
get version(): string;
|
|
324
|
+
}
|
|
325
|
+
export class RuntimeDIFHandle {
|
|
326
|
+
static __wrap(ptr: any): any;
|
|
327
|
+
__destroy_into_raw(): number | undefined;
|
|
328
|
+
__wbg_ptr: number | undefined;
|
|
329
|
+
free(): void;
|
|
330
|
+
/**
|
|
331
|
+
* @param {any} callee
|
|
332
|
+
* @param {any} value
|
|
333
|
+
* @returns {any}
|
|
334
|
+
*/
|
|
335
|
+
apply(callee: any, value: any): any;
|
|
336
|
+
/**
|
|
337
|
+
* @param {any} value
|
|
338
|
+
* @param {any} allowed_type
|
|
339
|
+
* @param {number} mutability
|
|
340
|
+
* @returns {string}
|
|
341
|
+
*/
|
|
342
|
+
create_pointer(value: any, allowed_type: any, mutability: number): string;
|
|
343
|
+
/**
|
|
344
|
+
* @param {number} transceiver_id
|
|
345
|
+
* @param {string} address
|
|
346
|
+
* @param {any} observe_options
|
|
347
|
+
* @param {Function} callback
|
|
348
|
+
* @returns {number}
|
|
349
|
+
*/
|
|
350
|
+
observe_pointer(transceiver_id: number, address: string, observe_options: any, callback: Function): number;
|
|
351
|
+
/**
|
|
352
|
+
* Resolve a pointer address, returning a Promise
|
|
353
|
+
* If the pointer is in memory, the promise resolves immediately
|
|
354
|
+
* If the pointer is not in memory, it will be loaded first
|
|
355
|
+
* @param {string} address
|
|
356
|
+
* @returns {any}
|
|
357
|
+
*/
|
|
358
|
+
resolve_pointer_address(address: string): any;
|
|
359
|
+
/**
|
|
360
|
+
* Resolve a pointer address synchronously if it's in memory, otherwise return an error
|
|
361
|
+
* @param {string} address
|
|
362
|
+
* @returns {any}
|
|
363
|
+
*/
|
|
364
|
+
resolve_pointer_address_sync(address: string): any;
|
|
365
|
+
/**
|
|
366
|
+
* @param {string} address
|
|
367
|
+
* @param {number} observer_id
|
|
368
|
+
*/
|
|
369
|
+
unobserve_pointer(address: string, observer_id: number): void;
|
|
370
|
+
/**
|
|
371
|
+
* @param {number} transceiver_id
|
|
372
|
+
* @param {string} address
|
|
373
|
+
* @param {any} update
|
|
374
|
+
*/
|
|
375
|
+
update(transceiver_id: number, address: string, update: any): void;
|
|
376
|
+
/**
|
|
377
|
+
* @param {string} address
|
|
378
|
+
* @param {number} observer_id
|
|
379
|
+
* @param {any} observe_options
|
|
380
|
+
*/
|
|
381
|
+
update_observer_options(address: string, observer_id: number, observe_options: any): void;
|
|
382
|
+
}
|
|
383
|
+
//# sourceMappingURL=datex_web.internal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datex_web.internal.d.ts","sourceRoot":"","sources":["../../src/datex-web/datex_web.internal.js"],"names":[],"mappings":"AA+dA;;;;GAIG;AACH,uCAJW,GAAG,gBACH,GAAG,GACD,OAAO,CAAC,SAAS,CAAC,CAK9B;AAED;;;;;GAKG;AACH,sCAJW,MAAM,qBACN,GAAG,GACD,MAAM,CAelB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,OAAO,CAOnB;AACD,0EAGC;AACD,iEAGC;AACD,0EAMC;AACD,gGAKC;AACD,2FAIC;AACD,2FAMC;AACD,oFAGC;AACD,uFAGC;AACD,kFAGC;AACD,8EAGC;AACD,gFAIC;AACD,uFAGC;AACD,mFAGC;AACD,0FAGC;AACD,gGAGC;AACD,yFAKC;AACD,yFAOC;AACD,oFAEC;AACD,sEAEC;AACD,8DAGC;AACD,kEAGC;AACD,iEAGgB;AAChB,iEAGgB;AAChB,iEAGgB;AAChB,iEAGgB;AAChB,8DAGC;AACD,oEAGC;AACD,kEAEgB;AAChB,mEAGgB;AAChB,4DAGC;AACD,+FAEC;AACD,oEAGgB;AAChB,uEAGgB;AAChB,mEAGgB;AAChB,4DAGC;AACD,oEAGgB;AAChB,2EAGC;AACD,+FAEC;AACD,yEAUC;AACD,8DAEC;AACD,sEAGgB;AAChB,wEAGgB;AAChB,4EAGgB;AAChB,iEAGC;AACD,sEAGgB;AAChB,sEAGC;AACD,gEAGgB;AAChB,6EAGC;AACD,gEAGgB;AAChB,uEAGC;AACD,sEAGC;AACD,gFAGC;AACD,iEAGC;AACD,mFAGC;AACD,sEAGgB;AAChB,8FAEC;AACD,kFASC;AACD,gFASC;AACD,0EASC;AACD,6EASC;AACD,kGASC;AACD,iFASC;AACD,6EASC;AACD,yEAGC;AACD,yEAGC;AACD,0DAGC;AACD,oDAGC;AACD,8DAGC;AACD,8DAGC;AACD,6FAEC;AACD,iEAGC;AACD,oDAGC;AACD,4DAGC;AACD,uEAGC;AACD,qDAGC;AACD,gEAGgB;AAChB,oDAGC;AACD,6FAGC;AACD,0DAGC;AACD,qFAiBC;AACD,iEAGgB;AAChB,4DAGC;AACD,qDAGC;AACD,2DAGC;AACD,uEAGC;AACD,4DAGC;AACD,uEAGC;AACD,mEAGC;AACD,+FAEC;AACD,uEAGC;AACD,uEAEC;AACD,sEAGC;AACD,8EAMC;AACD,4DAGC;AACD,gEAGC;AACD,mEAGC;AACD,wEAGC;AACD,iEAEgB;AAChB,8DAGC;AACD,uEAGgB;AAChB,gEAGgB;AAChB,kFAEC;AACD,kFAEC;AACD,iFAGC;AACD,iFAEC;AACD,kFAEC;AACD,+EAEC;AACD,8EAEC;AACD,uFAEC;AACD,+EAEC;AACD,+EAEC;AACD,iFAEC;AACD,8EAEC;AACD,iEAGgB;AAChB,yEAMC;AACD,qEAGC;AACD,0EAGC;AACD,mEAGC;AACD,qEAGC;AACD,8DAGC;AACD,uEAGC;AACD,kFAGC;AACD,gEAGC;AACD,sEAGgB;AAChB,6DAGC;AACD,mEAGgB;AAChB,8FAEC;AACD,oEAGgB;AAChB,gEAGC;AACD,wEAGC;AACD;;;EAIC;AACD;;;EAIC;AACD;;;EAIC;AACD;;;EAIC;AACD;;;EAIC;AACD;;;EAIC;AACD;;;EAIC;AACD;;;E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