@unyt/datex 0.0.4 → 0.0.6
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 -2
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.d.ts.map +1 -0
- package/esm/{src/datex-core → datex-core}/datex_core_js.internal.d.ts +79 -116
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -0
- package/esm/{src/datex-core → datex-core}/datex_core_js.internal.js +245 -344
- package/esm/{src/datex-core → datex-core}/datex_core_js.js +2 -2
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core.d.ts.map +1 -0
- package/esm/deno.json +3 -3
- package/esm/{src/mod.d.ts → mod.d.ts} +2 -2
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +29 -0
- package/esm/network/com-hub.d.ts +21 -0
- package/esm/network/com-hub.d.ts.map +1 -0
- package/esm/network/com-hub.js +74 -0
- package/esm/network/com-interface.d.ts +17 -0
- package/esm/network/com-interface.d.ts.map +1 -0
- package/esm/network/com-interface.js +62 -0
- package/esm/runtime/runtime.d.ts +38 -0
- package/esm/runtime/runtime.d.ts.map +1 -0
- package/esm/{src/runtime → runtime}/runtime.js +21 -6
- package/package.json +5 -9
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/almost_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/array_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/assert.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/fail.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/greater.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/greater_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/less.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/less_or_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/rejects.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/string_includes.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/throws.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/unimplemented.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.13/unreachable.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts +0 -2
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts +0 -69
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/lib/deno_std_wasm_crypto.internal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/crypto/1.0.5/_wasm/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/crypto/1.0.5/crypto.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.9/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/_common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/common.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/constants.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v1.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v3.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v4.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/uuid/1.0.9/v5.d.ts.map +0 -1
- package/esm/rs-lib/datex-core/Cargo.toml +0 -169
- package/esm/src/datex-core/datex_core_js.d.ts.map +0 -1
- package/esm/src/datex-core/datex_core_js.internal.d.ts.map +0 -1
- package/esm/src/datex-core/datex_core_js.wasm +0 -0
- package/esm/src/datex-core.d.ts.map +0 -1
- package/esm/src/mod.d.ts.map +0 -1
- package/esm/src/mod.js +0 -11
- package/esm/src/runtime/runtime.d.ts +0 -25
- package/esm/src/runtime/runtime.d.ts.map +0 -1
- package/esm/test/compiler/execute.test.d.ts.map +0 -1
- package/esm/test/crypto.test.d.ts.map +0 -1
- package/esm/test/init.test.d.ts.map +0 -1
- package/esm/test/is-node.d.ts.map +0 -1
- package/esm/test/network/BaseInterface.test.d.ts.map +0 -1
- package/esm/test/network/ComHub.test.d.ts.map +0 -1
- package/esm/test/network/WebsocketClientInterface.test.d.ts.map +0 -1
- package/esm/test/network/WebsocketMockupServer.d.ts.map +0 -1
- package/esm/test/network/WebsocketServerInterface.test.d.ts.map +0 -1
- package/esm/test/utils.d.ts.map +0 -1
- /package/esm/{src/datex-core → datex-core}/datex_core_js.d.ts +0 -0
- /package/esm/{src/datex-core.d.ts → datex-core.d.ts} +0 -0
- /package/esm/{src/datex-core.js → datex-core.js} +0 -0
package/esm/_dnt.shims.d.ts
CHANGED
|
@@ -7,7 +7,6 @@ export { setInterval, setTimeout } from "@deno/shim-timers";
|
|
|
7
7
|
import { fetch, File, FormData, Headers, Request, Response } from "undici";
|
|
8
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
9
|
export { WeakRef, type WeakRefConstructor } from "@deno/sham-weakref";
|
|
10
|
-
import { default as WebSocket } from "ws";
|
|
11
10
|
export { default as WebSocket } from "ws";
|
|
12
11
|
export declare const dntGlobalThis: Omit<typeof globalThis, "WeakRef" | "fetch" | "Request" | "Response" | "FormData" | "Headers" | "File" | "crypto" | "setInterval" | "setTimeout" | "Deno" | "alert" | "confirm" | "prompt" | "WebSocket"> & {
|
|
13
12
|
Deno: typeof Deno;
|
|
@@ -24,6 +23,6 @@ export declare const dntGlobalThis: Omit<typeof globalThis, "WeakRef" | "fetch"
|
|
|
24
23
|
Request: typeof Request;
|
|
25
24
|
Response: typeof Response;
|
|
26
25
|
WeakRef: import("@deno/sham-weakref").WeakRefConstructor;
|
|
27
|
-
WebSocket:
|
|
26
|
+
WebSocket: any;
|
|
28
27
|
};
|
|
29
28
|
//# 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":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAEvC,OAAO,EAAE,MAAM,EAAE,KAAK,MAAM,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,SAAS,EAAE,KAAK,aAAa,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,mBAAmB,EAAE,KAAK,UAAU,EAAE,KAAK,uBAAuB,EAAE,KAAK,YAAY,EAAE,KAAK,mBAAmB,EAAE,KAAK,gBAAgB,EAAE,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,KAAK,SAAS,EAAE,KAAK,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,UAAU,EAAE,KAAK,cAAc,EAAE,KAAK,UAAU,EAAE,KAAK,aAAa,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErvB,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAA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|
3
|
-
* @param {string}
|
|
3
|
+
* @param {string} config
|
|
4
4
|
* @param {any} debug_flags
|
|
5
5
|
* @returns {JSRuntime}
|
|
6
6
|
*/
|
|
7
|
-
export function
|
|
7
|
+
export function create_runtime(config: string, debug_flags: any): JSRuntime;
|
|
8
8
|
/**
|
|
9
9
|
* @param {string} datex_script
|
|
10
10
|
*/
|
|
@@ -42,9 +42,7 @@ export function __wbg_crypto_12576cd66246998b(...args: any[]): any;
|
|
|
42
42
|
export function __wbg_data_432d9c3df2630942(arg0: any): any;
|
|
43
43
|
export function __wbg_debug_3cb59063b29f58c1(arg0: any): void;
|
|
44
44
|
export function __wbg_decrypt_f913c8ffec178afe(...args: any[]): any;
|
|
45
|
-
export function __wbg_deleteProperty_96363d4a1d977c97(...args: any[]): any;
|
|
46
45
|
export function __wbg_encrypt_4d890132dfd8a0a7(...args: any[]): any;
|
|
47
|
-
export function __wbg_entries_3265d4158b33e5dc(arg0: any): [string, any][];
|
|
48
46
|
export function __wbg_error_524f506f44df1645(arg0: any): void;
|
|
49
47
|
export function __wbg_error_7534b8e9a36f1ab4(arg0: any, arg1: any): void;
|
|
50
48
|
export function __wbg_exportKey_d8fbe6e8de2fbb6a(...args: any[]): any;
|
|
@@ -53,7 +51,6 @@ export function __wbg_getRandomValues_5754b82ca6952f9b(...args: any[]): any;
|
|
|
53
51
|
export function __wbg_getReader_be0d36e5873a525b(arg0: any): any;
|
|
54
52
|
export function __wbg_getWriter_6ce182d0adc3f96b(...args: any[]): any;
|
|
55
53
|
export function __wbg_get_67b2ba62fc30de12(...args: any[]): any;
|
|
56
|
-
export function __wbg_get_b9b93047fe3cf45b(arg0: any, arg1: any): any;
|
|
57
54
|
export function __wbg_getprivatekey_c03ce2e8935f16db(arg0: any): any;
|
|
58
55
|
export function __wbg_getpublickey_66fc5575903e8954(arg0: any): any;
|
|
59
56
|
export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0: any, arg1: any): any;
|
|
@@ -66,10 +63,8 @@ export function __wbg_instanceof_Object_7f2dcef8f78644a4(arg0: any): boolean;
|
|
|
66
63
|
export function __wbg_instanceof_ReadableStreamDefaultReader_056dcea99b3557aa(arg0: any): boolean;
|
|
67
64
|
export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0: any): boolean;
|
|
68
65
|
export function __wbg_instanceof_Window_def73ea0955fc569(arg0: any): boolean;
|
|
69
|
-
export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0: any): boolean;
|
|
70
66
|
export function __wbg_label_674e88e28b0f69db(arg0: any, arg1: any): void;
|
|
71
67
|
export function __wbg_length_a446193dc22c12f8(arg0: any): any;
|
|
72
|
-
export function __wbg_length_e2d2a49132c1b256(arg0: any): any;
|
|
73
68
|
export function __wbg_log_c222819a41e063d3(arg0: any): void;
|
|
74
69
|
export function __wbg_message_d1685a448ba00178(arg0: any, arg1: any): void;
|
|
75
70
|
export function __wbg_navigator_1577371c070c8947(arg0: any): any;
|
|
@@ -79,7 +74,6 @@ export function __wbg_new_78feb108b6472713(): any[];
|
|
|
79
74
|
export function __wbg_new_8a6f238a6ece86ea(): Error;
|
|
80
75
|
export function __wbg_new_92c54fc74574ef55(...args: any[]): any;
|
|
81
76
|
export function __wbg_new_a12002a7f91c75be(arg0: any): Uint8Array;
|
|
82
|
-
export function __wbg_new_c68d7209be747379(arg0: any, arg1: any): Error;
|
|
83
77
|
export function __wbg_newnoargs_105ed471475aaf50(arg0: any, arg1: any): Function;
|
|
84
78
|
export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0: any, arg1: any, arg2: any): Uint8Array;
|
|
85
79
|
export function __wbg_newwithconfiguration_d716d1bf0ec3af80(...args: any[]): any;
|
|
@@ -103,7 +97,6 @@ export function __wbg_serial_a5487140b2fdb38f(arg0: any): any;
|
|
|
103
97
|
export function __wbg_setLocalDescription_3b7809adf05c8170(arg0: any, arg1: any): any;
|
|
104
98
|
export function __wbg_setRemoteDescription_2bd5c020ee5cf31f(arg0: any, arg1: any): any;
|
|
105
99
|
export function __wbg_setTimeout_db2dbaeefb6f39c7(...args: any[]): any;
|
|
106
|
-
export function __wbg_set_3f1d0b984ed272ed(arg0: any, arg1: any, arg2: any): void;
|
|
107
100
|
export function __wbg_set_65595bdd868b3009(arg0: any, arg1: any, arg2: any): void;
|
|
108
101
|
export function __wbg_set_bb8cecf6a62b9f46(...args: any[]): any;
|
|
109
102
|
export function __wbg_setbaudrate_fe58f64af51588e8(arg0: any, arg1: any): void;
|
|
@@ -140,12 +133,9 @@ export function __wbg_verify_51e2b45815701128(...args: any[]): any;
|
|
|
140
133
|
export function __wbg_warn_4ca3906c248c47c4(arg0: any): void;
|
|
141
134
|
export function __wbg_writable_169515f8aae06da5(arg0: any): any;
|
|
142
135
|
export function __wbg_write_311434e30ee214e5(arg0: any, arg1: any): any;
|
|
143
|
-
export function __wbindgen_as_number(arg0: any): number;
|
|
144
|
-
export function __wbindgen_bigint_from_u64(arg0: any): bigint;
|
|
145
|
-
export function __wbindgen_bigint_get_as_i64(arg0: any, arg1: any): void;
|
|
146
136
|
export function __wbindgen_boolean_get(arg0: any): 1 | 0 | 2;
|
|
147
137
|
export function __wbindgen_cb_drop(arg0: any): boolean;
|
|
148
|
-
export function
|
|
138
|
+
export function __wbindgen_closure_wrapper3688(arg0: any, arg1: any, arg2: any): {
|
|
149
139
|
(...args: any[]): any;
|
|
150
140
|
original: {
|
|
151
141
|
a: any;
|
|
@@ -154,7 +144,7 @@ export function __wbindgen_closure_wrapper3082(arg0: any, arg1: any, arg2: any):
|
|
|
154
144
|
dtor: any;
|
|
155
145
|
};
|
|
156
146
|
};
|
|
157
|
-
export function
|
|
147
|
+
export function __wbindgen_closure_wrapper3721(arg0: any, arg1: any, arg2: any): {
|
|
158
148
|
(...args: any[]): any;
|
|
159
149
|
original: {
|
|
160
150
|
a: any;
|
|
@@ -163,7 +153,7 @@ export function __wbindgen_closure_wrapper3321(arg0: any, arg1: any, arg2: any):
|
|
|
163
153
|
dtor: any;
|
|
164
154
|
};
|
|
165
155
|
};
|
|
166
|
-
export function
|
|
156
|
+
export function __wbindgen_closure_wrapper410(arg0: any, arg1: any, arg2: any): {
|
|
167
157
|
(...args: any[]): any;
|
|
168
158
|
original: {
|
|
169
159
|
a: any;
|
|
@@ -172,7 +162,7 @@ export function __wbindgen_closure_wrapper3326(arg0: any, arg1: any, arg2: any):
|
|
|
172
162
|
dtor: any;
|
|
173
163
|
};
|
|
174
164
|
};
|
|
175
|
-
export function
|
|
165
|
+
export function __wbindgen_closure_wrapper411(arg0: any, arg1: any, arg2: any): {
|
|
176
166
|
(...args: any[]): any;
|
|
177
167
|
original: {
|
|
178
168
|
a: any;
|
|
@@ -181,7 +171,7 @@ export function __wbindgen_closure_wrapper3826(arg0: any, arg1: any, arg2: any):
|
|
|
181
171
|
dtor: any;
|
|
182
172
|
};
|
|
183
173
|
};
|
|
184
|
-
export function
|
|
174
|
+
export function __wbindgen_closure_wrapper412(arg0: any, arg1: any, arg2: any): {
|
|
185
175
|
(...args: any[]): any;
|
|
186
176
|
original: {
|
|
187
177
|
a: any;
|
|
@@ -190,7 +180,7 @@ export function __wbindgen_closure_wrapper887(arg0: any, arg1: any, arg2: any):
|
|
|
190
180
|
dtor: any;
|
|
191
181
|
};
|
|
192
182
|
};
|
|
193
|
-
export function
|
|
183
|
+
export function __wbindgen_closure_wrapper413(arg0: any, arg1: any, arg2: any): {
|
|
194
184
|
(...args: any[]): any;
|
|
195
185
|
original: {
|
|
196
186
|
a: any;
|
|
@@ -203,12 +193,9 @@ export function __wbindgen_debug_string(arg0: any, arg1: any): void;
|
|
|
203
193
|
export function __wbindgen_error_new(arg0: any, arg1: any): Error;
|
|
204
194
|
export function __wbindgen_in(arg0: any, arg1: any): boolean;
|
|
205
195
|
export function __wbindgen_init_externref_table(): void;
|
|
206
|
-
export function __wbindgen_is_bigint(arg0: any): arg0 is bigint;
|
|
207
196
|
export function __wbindgen_is_function(arg0: any): boolean;
|
|
208
197
|
export function __wbindgen_is_object(arg0: any): boolean;
|
|
209
|
-
export function __wbindgen_is_string(arg0: any): arg0 is string;
|
|
210
198
|
export function __wbindgen_is_undefined(arg0: any): boolean;
|
|
211
|
-
export function __wbindgen_jsval_eq(arg0: any, arg1: any): boolean;
|
|
212
199
|
export function __wbindgen_jsval_loose_eq(arg0: any, arg1: any): boolean;
|
|
213
200
|
export function __wbindgen_memory(): any;
|
|
214
201
|
export function __wbindgen_number_get(arg0: any, arg1: any): void;
|
|
@@ -218,83 +205,66 @@ export function __wbindgen_string_new(arg0: any, arg1: any): any;
|
|
|
218
205
|
export function __wbindgen_throw(arg0: any, arg1: any): void;
|
|
219
206
|
export function __wbindgen_uint8_array_new(arg0: any, arg1: any): any;
|
|
220
207
|
export class BaseJSInterface {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
208
|
+
__destroy_into_raw(): number | undefined;
|
|
209
|
+
__wbg_ptr: number | undefined;
|
|
210
|
+
free(): void;
|
|
211
|
+
}
|
|
212
|
+
export class JSComHub {
|
|
213
|
+
static __wrap(ptr: any): any;
|
|
214
|
+
__destroy_into_raw(): number | undefined;
|
|
215
|
+
__wbg_ptr: number | undefined;
|
|
228
216
|
free(): void;
|
|
229
217
|
/**
|
|
230
|
-
* @
|
|
218
|
+
* @param {string} interface_uuid
|
|
219
|
+
* @param {WebSocket} websocket
|
|
220
|
+
* @returns {string}
|
|
231
221
|
*/
|
|
232
|
-
|
|
222
|
+
websocket_server_interface_add_socket(interface_uuid: string, websocket: WebSocket): string;
|
|
233
223
|
/**
|
|
224
|
+
* @param {string} uuid
|
|
225
|
+
* @param {string} direction
|
|
234
226
|
* @returns {string}
|
|
235
227
|
*/
|
|
236
|
-
|
|
228
|
+
base_interface_register_socket(uuid: string, direction: string): string;
|
|
237
229
|
/**
|
|
230
|
+
* @param {string} uuid
|
|
238
231
|
* @param {string} socket_uuid
|
|
239
232
|
* @param {Uint8Array} data
|
|
240
|
-
* @returns {Promise<boolean>}
|
|
241
233
|
*/
|
|
242
|
-
|
|
234
|
+
base_interface_receive(uuid: string, socket_uuid: string, data: Uint8Array): void;
|
|
243
235
|
/**
|
|
244
|
-
* @param {
|
|
236
|
+
* @param {string} uuid
|
|
237
|
+
* @param {string} socket_uuid
|
|
245
238
|
*/
|
|
246
|
-
|
|
239
|
+
base_interface_destroy_socket(uuid: string, socket_uuid: string): void;
|
|
247
240
|
/**
|
|
248
|
-
* @param {string}
|
|
249
|
-
* @
|
|
241
|
+
* @param {string} uuid
|
|
242
|
+
* @param {Function} func
|
|
250
243
|
*/
|
|
251
|
-
|
|
244
|
+
base_interface_on_send(uuid: string, func: Function): void;
|
|
252
245
|
/**
|
|
246
|
+
* @param {string} uuid
|
|
253
247
|
* @param {string} socket_uuid
|
|
248
|
+
* @param {Uint8Array} data
|
|
249
|
+
* @returns {Promise<boolean>}
|
|
254
250
|
*/
|
|
255
|
-
|
|
251
|
+
base_interface_test_send_block(uuid: string, socket_uuid: string, data: Uint8Array): Promise<boolean>;
|
|
252
|
+
register_default_interface_factories(): void;
|
|
256
253
|
/**
|
|
257
|
-
* @param {string}
|
|
258
|
-
* @param {
|
|
259
|
-
* @returns {Promise<
|
|
254
|
+
* @param {string} interface_type
|
|
255
|
+
* @param {string} properties
|
|
256
|
+
* @returns {Promise<any>}
|
|
260
257
|
*/
|
|
261
|
-
|
|
262
|
-
}
|
|
263
|
-
export class JSComHub {
|
|
264
|
-
static __wrap(ptr: any): any;
|
|
265
|
-
__destroy_into_raw(): number | undefined;
|
|
266
|
-
__wbg_ptr: number | undefined;
|
|
267
|
-
free(): void;
|
|
258
|
+
create_interface(interface_type: string, properties: string): Promise<any>;
|
|
268
259
|
/**
|
|
269
260
|
* @param {string} interface_uuid
|
|
270
261
|
* @returns {Promise<any>}
|
|
271
262
|
*/
|
|
272
263
|
close_interface(interface_uuid: string): Promise<any>;
|
|
273
|
-
start_update_loop(): void;
|
|
274
|
-
/**
|
|
275
|
-
* @returns {Promise<void>}
|
|
276
|
-
*/
|
|
277
|
-
stop_update_loop(): Promise<void>;
|
|
278
264
|
/**
|
|
279
265
|
* @returns {Promise<void>}
|
|
280
266
|
*/
|
|
281
267
|
update(): Promise<void>;
|
|
282
|
-
/**
|
|
283
|
-
* @returns {WebSocketServerRegistry}
|
|
284
|
-
*/
|
|
285
|
-
get websocket_server(): WebSocketServerRegistry;
|
|
286
|
-
/**
|
|
287
|
-
* @returns {WebSocketClientRegistry}
|
|
288
|
-
*/
|
|
289
|
-
get websocket_client(): WebSocketClientRegistry;
|
|
290
|
-
/**
|
|
291
|
-
* @returns {SerialRegistry}
|
|
292
|
-
*/
|
|
293
|
-
get serial(): SerialRegistry;
|
|
294
|
-
/**
|
|
295
|
-
* @returns {WebRTCRegistry}
|
|
296
|
-
*/
|
|
297
|
-
get webrtc(): WebRTCRegistry;
|
|
298
268
|
/**
|
|
299
269
|
* Send a block to the given interface and socket
|
|
300
270
|
* This does not involve the routing on the ComHub level.
|
|
@@ -310,6 +280,15 @@ export class JSComHub {
|
|
|
310
280
|
* @returns {Uint8Array[]}
|
|
311
281
|
*/
|
|
312
282
|
_drain_incoming_blocks(): Uint8Array[];
|
|
283
|
+
/**
|
|
284
|
+
* @returns {string}
|
|
285
|
+
*/
|
|
286
|
+
get_metadata_string(): string;
|
|
287
|
+
/**
|
|
288
|
+
* @param {string} endpoint
|
|
289
|
+
* @returns {Promise<string | undefined>}
|
|
290
|
+
*/
|
|
291
|
+
get_trace_string(endpoint: string): Promise<string | undefined>;
|
|
313
292
|
}
|
|
314
293
|
export class JSMemory {
|
|
315
294
|
static __wrap(ptr: any): any;
|
|
@@ -338,50 +317,61 @@ export class JSRuntime {
|
|
|
338
317
|
__wbg_ptr: number | undefined;
|
|
339
318
|
free(): void;
|
|
340
319
|
/**
|
|
341
|
-
* @
|
|
320
|
+
* @param {JSComHub} arg0
|
|
342
321
|
*/
|
|
343
|
-
|
|
322
|
+
set com_hub(arg0: JSComHub);
|
|
344
323
|
/**
|
|
345
|
-
* @returns {
|
|
324
|
+
* @returns {JSComHub}
|
|
346
325
|
*/
|
|
347
|
-
get
|
|
326
|
+
get com_hub(): JSComHub;
|
|
327
|
+
/**
|
|
328
|
+
* @param {JSMemory} arg0
|
|
329
|
+
*/
|
|
330
|
+
set memory(arg0: JSMemory);
|
|
348
331
|
/**
|
|
349
332
|
* @returns {JSMemory}
|
|
350
333
|
*/
|
|
351
334
|
get memory(): JSMemory;
|
|
335
|
+
/**
|
|
336
|
+
* @returns {Promise<Promise<any>>}
|
|
337
|
+
*/
|
|
338
|
+
crypto_test_tmp(): Promise<Promise<any>>;
|
|
352
339
|
/**
|
|
353
340
|
* @returns {string}
|
|
354
341
|
*/
|
|
355
|
-
get
|
|
342
|
+
get version(): string;
|
|
356
343
|
/**
|
|
357
|
-
* @returns {
|
|
344
|
+
* @returns {string}
|
|
358
345
|
*/
|
|
359
|
-
get
|
|
346
|
+
get endpoint(): string;
|
|
360
347
|
/**
|
|
361
348
|
* @param {Uint8Array | null | undefined} body
|
|
362
349
|
* @param {string[]} receivers
|
|
363
350
|
* @returns {Uint8Array}
|
|
364
351
|
*/
|
|
365
352
|
_create_block(body: Uint8Array | null | undefined, receivers: string[]): Uint8Array;
|
|
366
|
-
}
|
|
367
|
-
export class SerialRegistry {
|
|
368
|
-
static __wrap(ptr: any): any;
|
|
369
|
-
__destroy_into_raw(): number | undefined;
|
|
370
|
-
__wbg_ptr: number | undefined;
|
|
371
|
-
free(): void;
|
|
372
353
|
/**
|
|
373
|
-
* @
|
|
374
|
-
* @returns {Promise<any>}
|
|
354
|
+
* @returns {Promise<void>}
|
|
375
355
|
*/
|
|
376
|
-
|
|
356
|
+
start(): Promise<void>;
|
|
357
|
+
/**
|
|
358
|
+
* @returns {Promise<void>}
|
|
359
|
+
*/
|
|
360
|
+
_stop(): Promise<void>;
|
|
377
361
|
/**
|
|
378
|
-
* @param {
|
|
362
|
+
* @param {string} script
|
|
363
|
+
* @param {boolean} formatted
|
|
379
364
|
* @returns {Promise<string>}
|
|
380
365
|
*/
|
|
381
|
-
|
|
366
|
+
execute(script: string, formatted: boolean): Promise<string>;
|
|
367
|
+
/**
|
|
368
|
+
* @param {string} script
|
|
369
|
+
* @param {boolean} formatted
|
|
370
|
+
* @returns {string}
|
|
371
|
+
*/
|
|
372
|
+
execute_sync(script: string, formatted: boolean): string;
|
|
382
373
|
}
|
|
383
374
|
export class WebRTCRegistry {
|
|
384
|
-
static __wrap(ptr: any): any;
|
|
385
375
|
__destroy_into_raw(): number | undefined;
|
|
386
376
|
__wbg_ptr: number | undefined;
|
|
387
377
|
free(): void;
|
|
@@ -429,24 +419,7 @@ export class WebRTCRegistry {
|
|
|
429
419
|
*/
|
|
430
420
|
wait_for_connection(interface_uuid: string): Promise<void>;
|
|
431
421
|
}
|
|
432
|
-
export class WebSocketClientRegistry {
|
|
433
|
-
static __wrap(ptr: any): any;
|
|
434
|
-
__destroy_into_raw(): number | undefined;
|
|
435
|
-
__wbg_ptr: number | undefined;
|
|
436
|
-
free(): void;
|
|
437
|
-
/**
|
|
438
|
-
* @param {string} interface_uuid
|
|
439
|
-
* @returns {Promise<any>}
|
|
440
|
-
*/
|
|
441
|
-
close(interface_uuid: string): Promise<any>;
|
|
442
|
-
/**
|
|
443
|
-
* @param {string} address
|
|
444
|
-
* @returns {Promise<string>}
|
|
445
|
-
*/
|
|
446
|
-
register(address: string): Promise<string>;
|
|
447
|
-
}
|
|
448
422
|
export class WebSocketServerRegistry {
|
|
449
|
-
static __wrap(ptr: any): any;
|
|
450
423
|
__destroy_into_raw(): number | undefined;
|
|
451
424
|
__wbg_ptr: number | undefined;
|
|
452
425
|
free(): void;
|
|
@@ -455,15 +428,5 @@ export class WebSocketServerRegistry {
|
|
|
455
428
|
* @returns {Promise<any>}
|
|
456
429
|
*/
|
|
457
430
|
close(interface_uuid: string): Promise<any>;
|
|
458
|
-
/**
|
|
459
|
-
* @returns {Promise<string>}
|
|
460
|
-
*/
|
|
461
|
-
register(): Promise<string>;
|
|
462
|
-
/**
|
|
463
|
-
* @param {string} interface_uuid
|
|
464
|
-
* @param {WebSocket} websocket
|
|
465
|
-
* @returns {any}
|
|
466
|
-
*/
|
|
467
|
-
add_socket(interface_uuid: string, websocket: WebSocket): any;
|
|
468
431
|
}
|
|
469
432
|
//# sourceMappingURL=datex_core_js.internal.d.ts.map
|
|
@@ -0,0 +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;AA6OD;;;;GAIG;AACH,uCAJW,MAAM,eACN,GAAG,GACD,SAAS,CAWrB;AAED;;GAEG;AACH,sCAFW,MAAM,QAUhB;AAED;;;;;GAKG;AACH,sCAJW,MAAM,aACN,OAAO,GACL,MAAM,CAmBlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,OAAO,CAWnB;AAi4BD,kFAGC;AAED,8DAGC;AAED,iEAKC;AAED,iEAKC;AAED,iEAKC;AAED,iEAGC;AAED,6EAUC;AAED,+DAGC;AAED,qEAGC;AAED,6DAGC;AAED,kEAIC;AAED,8DAEC;AAED,oEAGC;AAED,+FAGC;AAED,mEAGC;AAED,mEAKC;AAED,4DAGC;AAED,8DAEC;AAED,oEASC;AAED,oEASC;AAED,8DAEC;AAED,yEAUC;AAED,sEAKC;AAED,wEAKC;AAED,4EAKC;AAED,iEAGC;AAED,sEAKC;AAED,gEAKC;AAED,qEAGC;AAED,oEAGC;AAED,gFAGC;AAED,6EAGC;AAED,sEAWC;AAED,6DAEC;AAED,kFASC;AAED,gFASC;AAED,6EASC;AAED,kGAWC;AAED,iFASC;AAED,6EASC;AAED,yEAUC;AAED,8DAGC;AAED,4DAEC;AAED,2EAUC;AAED,iEAGC;AAED,+EAiBC;AAED,qDAGC;AAED,oDAGC;AAED,oDAGC;AAED,gEAKC;AAED,kEAGC;AAED,iFAGC;AAED,+GAOC;AAED,iFAKC;AAED,4EAGC;AA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