@unyt/datex 0.0.9 → 0.0.10
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/datex-core/datex_core_js.internal.d.ts +14 -14
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.internal.js +37 -37
- package/esm/datex-core/datex_core_js.js +7 -3
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +1 -1
- package/esm/default.d.ts +8 -0
- package/esm/default.d.ts.map +1 -1
- package/esm/default.js +8 -0
- package/esm/deno.json +1 -1
- package/esm/dif/mod.d.ts +5 -0
- package/esm/dif/mod.d.ts.map +1 -1
- package/esm/dif/mod.js +5 -0
- package/esm/mod.d.ts +16 -10
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +16 -10
- package/esm/network/interface-impls/base.d.ts +9 -1
- package/esm/network/interface-impls/base.d.ts.map +1 -1
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,4 @@
|
|
|
1
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
2
|
/**
|
|
9
3
|
* Executes a Datex script and returns the result as a string.
|
|
10
4
|
* @param {string} datex_script
|
|
@@ -19,6 +13,12 @@ export function execute(datex_script: string, formatted: boolean): string;
|
|
|
19
13
|
* @returns {boolean}
|
|
20
14
|
*/
|
|
21
15
|
export function execute_internal(datex_script: string): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @param {string} config
|
|
18
|
+
* @param {any} debug_flags
|
|
19
|
+
* @returns {JSRuntime}
|
|
20
|
+
*/
|
|
21
|
+
export function create_runtime(config: string, debug_flags: any): JSRuntime;
|
|
22
22
|
export function __wbg_Error_90f14b053b2af32f(arg0: any, arg1: any): Error;
|
|
23
23
|
export function __wbg_String_8f0eb39a4a4c2f66(arg0: any, arg1: any): void;
|
|
24
24
|
export function __wbg_addIceCandidate_d30d0ef80c221bbc(arg0: any, arg1: any): any;
|
|
@@ -172,8 +172,7 @@ export function __wbg_wbindgenthrow_681185b504fabc8e(arg0: any, arg1: any): void
|
|
|
172
172
|
export function __wbg_wrapKey_5f8a7476203809ce(...args: any[]): any;
|
|
173
173
|
export function __wbg_writable_9cc2382cd543b064(arg0: any): any;
|
|
174
174
|
export function __wbg_write_e7fe7265c2fa5ddb(arg0: any, arg1: any): any;
|
|
175
|
-
export function
|
|
176
|
-
export function __wbindgen_cast_278f9477a3e01cd9(arg0: any, arg1: any): {
|
|
175
|
+
export function __wbindgen_cast_00d32d01068fa77a(arg0: any, arg1: any): {
|
|
177
176
|
(...args: any[]): any;
|
|
178
177
|
original: {
|
|
179
178
|
a: any;
|
|
@@ -182,7 +181,7 @@ export function __wbindgen_cast_278f9477a3e01cd9(arg0: any, arg1: any): {
|
|
|
182
181
|
dtor: any;
|
|
183
182
|
};
|
|
184
183
|
};
|
|
185
|
-
export function
|
|
184
|
+
export function __wbindgen_cast_0f13b535f344ea3c(arg0: any, arg1: any): {
|
|
186
185
|
(...args: any[]): any;
|
|
187
186
|
original: {
|
|
188
187
|
a: any;
|
|
@@ -191,8 +190,7 @@ export function __wbindgen_cast_32068b097ee4b6ad(arg0: any, arg1: any): {
|
|
|
191
190
|
dtor: any;
|
|
192
191
|
};
|
|
193
192
|
};
|
|
194
|
-
export function
|
|
195
|
-
export function __wbindgen_cast_52ed74f41af88dc3(arg0: any, arg1: any): {
|
|
193
|
+
export function __wbindgen_cast_13e0fca1c517096b(arg0: any, arg1: any): {
|
|
196
194
|
(...args: any[]): any;
|
|
197
195
|
original: {
|
|
198
196
|
a: any;
|
|
@@ -201,7 +199,9 @@ export function __wbindgen_cast_52ed74f41af88dc3(arg0: any, arg1: any): {
|
|
|
201
199
|
dtor: any;
|
|
202
200
|
};
|
|
203
201
|
};
|
|
204
|
-
export function
|
|
202
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0: any, arg1: any): any;
|
|
203
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0: any): bigint;
|
|
204
|
+
export function __wbindgen_cast_52ed74f41af88dc3(arg0: any, arg1: any): {
|
|
205
205
|
(...args: any[]): any;
|
|
206
206
|
original: {
|
|
207
207
|
a: any;
|
|
@@ -221,8 +221,7 @@ export function __wbindgen_cast_b5732421293e3bdd(arg0: any, arg1: any): {
|
|
|
221
221
|
dtor: any;
|
|
222
222
|
};
|
|
223
223
|
};
|
|
224
|
-
export function
|
|
225
|
-
export function __wbindgen_cast_f03b9d21f7da0088(arg0: any, arg1: any): {
|
|
224
|
+
export function __wbindgen_cast_b8a0a8592565ad28(arg0: any, arg1: any): {
|
|
226
225
|
(...args: any[]): any;
|
|
227
226
|
original: {
|
|
228
227
|
a: any;
|
|
@@ -231,6 +230,7 @@ export function __wbindgen_cast_f03b9d21f7da0088(arg0: any, arg1: any): {
|
|
|
231
230
|
dtor: any;
|
|
232
231
|
};
|
|
233
232
|
};
|
|
233
|
+
export function __wbindgen_cast_d6cd19b81560fd6e(arg0: any): any;
|
|
234
234
|
export function __wbindgen_init_externref_table(): void;
|
|
235
235
|
export class BaseJSInterface {
|
|
236
236
|
__destroy_into_raw(): number | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datex_core_js.internal.d.ts","sourceRoot":"","sources":["../../src/datex-core/datex_core_js.internal.js"],"names":[],"mappings":"AAQA,+CAEC;AA8PD
|
|
1
|
+
{"version":3,"file":"datex_core_js.internal.d.ts","sourceRoot":"","sources":["../../src/datex-core/datex_core_js.internal.js"],"names":[],"mappings":"AAQA,+CAEC;AA8PD;;;;;GAKG;AACH,sCAJW,MAAM,aACN,OAAO,GACL,MAAM,CAmBlB;AAED;;;;;GAKG;AACH,+CAHW,MAAM,GACJ,OAAO,CAWnB;AAED;;;;GAIG;AACH,uCAJW,MAAM,eACN,GAAG,GACD,SAAS,CAWrB;AAkmCD,0EAGC;AAED,0EAUC;AAED,kFAGC;AAED,8DAGC;AAED,iEAKC;AAED,iEAKC;AAED,iEAKC;AAED,iEAKC;AAED,6EAUC;AAED,iEAGC;AAED,+DAGC;AAED,oEAGC;AAED,kEAIC;AAED,8DAEC;AAED,6DAGC;AAED,oEAGC;AAED,+FAGC;AAED,mEAGC;AAED,mEAKC;AAED,4DAGC;AAED,8DAEC;AAED,oEAKC;AAED,uEAKC;AAED,4DAGC;AAED,oEAKC;AAED,2EAGC;AAED,yEAUC;AAED,8DAEC;AAED,sEAKC;AAED,wEAKC;AAED,4EAKC;AAED,iEAGC;AAED,sEAKC;AAED,sEAGC;AAED,gEAKC;AAED,qEAGC;AAED,oEAGC;AAED,gFAGC;AAED,6EAGC;AAED,sEAWC;AAED,6DAEC;AAED,kFASC;AAED,gFASC;AAED,0EASC;AAED,6EASC;AAED,kGAWC;AAED,iFASC;AAED,6EASC;AAED,yEAGC;AAED,yEAGC;AAED,0DAGC;AAED,yEAUC;AAED,8DAGC;AAED,8DAGC;AAED,4DAEC;AAED,2EAUC;AAED,iEAGC;AAED,qDAGC;AAED,4DAGC;AAED,oDAGC;AAED,gEAKC;AAED,+EAiBC;AAED,uEAGC;AAED,oDAGC;AAED,2FAGC;AAED,iFAGC;AAED,iFAKC;AAED,yFAGC;AAED,4DAGC;AAED,iEAKC;AAED,qDAGC;AAED,uEAGC;AAED,4DAGC;AAED,uEAGC;AAED,+FAEC;AAED,uEAGC;AAED,uEAEC;AAED,sEAGC;AAED,8EAUC;AAED,4DAGC;AAED,gEAGC;AAED,oEAEC;AAED,mEAGC;AAED,wEAGC;AAED,qEAGC;AAED,0EAYC;AAED,iEAIC;AAED,iEAIC;AAED,8DAGC;AAED,sFAGC;AAED,uFAGC;AAED,uEAKC;AAED,kFAEC;AAED,kFAEC;AAED,iFAG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ACH,iCAJW,MAAM,eACN,MAAM,mBACN,GAAG,QAmBb;IACD;;;;OAIG;IACH,sCAHW,MAAM,GACJ,GAAG,CAkBf;IACD;;;;OAIG;IACH,cAJW,GAAG,SACH,GAAG,GACD,GAAG,CAQf;IACD;;;;OAIG;IACH,uBAJW,MAAM,WACN,MAAM,UACN,GAAG,QAmBb;CACJ;AASD;IACI,yCAKC;IAHG,8BAAkB;IAKtB,aAGC;IACD;;;OAGG;IACH,sBAHW,MAAM,GACJ,OAAO,CAAC,GAAG,CAAC,CAexB;CACJ"}
|
|
@@ -230,17 +230,6 @@ function passArray8ToWasm0(arg, malloc) {
|
|
|
230
230
|
WASM_VECTOR_LEN = arg.length;
|
|
231
231
|
return ptr;
|
|
232
232
|
}
|
|
233
|
-
/**
|
|
234
|
-
* @param {string} config
|
|
235
|
-
* @param {any} debug_flags
|
|
236
|
-
* @returns {JSRuntime}
|
|
237
|
-
*/
|
|
238
|
-
export function create_runtime(config, debug_flags) {
|
|
239
|
-
const ptr0 = passStringToWasm0(config, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
240
|
-
const len0 = WASM_VECTOR_LEN;
|
|
241
|
-
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
242
|
-
return JSRuntime.__wrap(ret);
|
|
243
|
-
}
|
|
244
233
|
/**
|
|
245
234
|
* Executes a Datex script and returns the result as a string.
|
|
246
235
|
* @param {string} datex_script
|
|
@@ -274,6 +263,17 @@ export function execute_internal(datex_script) {
|
|
|
274
263
|
const ret = wasm.execute_internal(ptr0, len0);
|
|
275
264
|
return ret !== 0;
|
|
276
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* @param {string} config
|
|
268
|
+
* @param {any} debug_flags
|
|
269
|
+
* @returns {JSRuntime}
|
|
270
|
+
*/
|
|
271
|
+
export function create_runtime(config, debug_flags) {
|
|
272
|
+
const ptr0 = passStringToWasm0(config, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
273
|
+
const len0 = WASM_VECTOR_LEN;
|
|
274
|
+
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
275
|
+
return JSRuntime.__wrap(ret);
|
|
276
|
+
}
|
|
277
277
|
function _assertClass(instance, klass) {
|
|
278
278
|
if (!(instance instanceof klass)) {
|
|
279
279
|
throw new Error(`expected instance of ${klass.name}`);
|
|
@@ -298,15 +298,15 @@ function getArrayJsValueFromWasm0(ptr, len) {
|
|
|
298
298
|
wasm.__externref_drop_slice(ptr, len);
|
|
299
299
|
return result;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
302
302
|
wasm.closure1523_externref_shim(arg0, arg1, arg2);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
wasm.closure796_externref_shim(arg0, arg1, arg2);
|
|
306
|
-
}
|
|
307
|
-
function __wbg_adapter_28(arg0, arg1) {
|
|
304
|
+
function __wbg_adapter_11(arg0, arg1) {
|
|
308
305
|
wasm.wasm_bindgen__convert__closures_____invoke__hf1f930a523fb34af(arg0, arg1);
|
|
309
306
|
}
|
|
307
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
308
|
+
wasm.closure795_externref_shim(arg0, arg1, arg2);
|
|
309
|
+
}
|
|
310
310
|
function __wbg_adapter_277(arg0, arg1, arg2, arg3) {
|
|
311
311
|
wasm.closure2442_externref_shim(arg0, arg1, arg2, arg3);
|
|
312
312
|
}
|
|
@@ -1798,19 +1798,24 @@ export function __wbg_write_e7fe7265c2fa5ddb(arg0, arg1) {
|
|
|
1798
1798
|
const ret = arg0.write(arg1);
|
|
1799
1799
|
return ret;
|
|
1800
1800
|
}
|
|
1801
|
-
export function
|
|
1802
|
-
// Cast intrinsic for `
|
|
1803
|
-
const ret =
|
|
1801
|
+
export function __wbindgen_cast_00d32d01068fa77a(arg0, arg1) {
|
|
1802
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 794, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 795, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1803
|
+
const ret = makeMutClosure(arg0, arg1, 794, __wbg_adapter_16);
|
|
1804
1804
|
return ret;
|
|
1805
1805
|
}
|
|
1806
|
-
export function
|
|
1807
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1808
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1806
|
+
export function __wbindgen_cast_0f13b535f344ea3c(arg0, arg1) {
|
|
1807
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 794, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 795, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1808
|
+
const ret = makeMutClosure(arg0, arg1, 794, __wbg_adapter_16);
|
|
1809
1809
|
return ret;
|
|
1810
1810
|
}
|
|
1811
|
-
export function
|
|
1812
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1813
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1811
|
+
export function __wbindgen_cast_13e0fca1c517096b(arg0, arg1) {
|
|
1812
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 794, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 795, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1813
|
+
const ret = makeMutClosure(arg0, arg1, 794, __wbg_adapter_16);
|
|
1814
|
+
return ret;
|
|
1815
|
+
}
|
|
1816
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1817
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1818
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1814
1819
|
return ret;
|
|
1815
1820
|
}
|
|
1816
1821
|
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
@@ -1820,12 +1825,7 @@ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
|
1820
1825
|
}
|
|
1821
1826
|
export function __wbindgen_cast_52ed74f41af88dc3(arg0, arg1) {
|
|
1822
1827
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1532, function: Function { arguments: [], shim_idx: 1533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1823
|
-
const ret = makeMutClosure(arg0, arg1, 1532,
|
|
1824
|
-
return ret;
|
|
1825
|
-
}
|
|
1826
|
-
export function __wbindgen_cast_73f6f4de9ebff2b7(arg0, arg1) {
|
|
1827
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 795, function: Function { arguments: [NamedExternref("RTCDataChannelEvent")], shim_idx: 796, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1828
|
-
const ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_17);
|
|
1828
|
+
const ret = makeMutClosure(arg0, arg1, 1532, __wbg_adapter_11);
|
|
1829
1829
|
return ret;
|
|
1830
1830
|
}
|
|
1831
1831
|
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
@@ -1842,7 +1842,12 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
|
1842
1842
|
}
|
|
1843
1843
|
export function __wbindgen_cast_b5732421293e3bdd(arg0, arg1) {
|
|
1844
1844
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1522, function: Function { arguments: [Externref], shim_idx: 1523, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1845
|
-
const ret = makeMutClosure(arg0, arg1, 1522,
|
|
1845
|
+
const ret = makeMutClosure(arg0, arg1, 1522, __wbg_adapter_6);
|
|
1846
|
+
return ret;
|
|
1847
|
+
}
|
|
1848
|
+
export function __wbindgen_cast_b8a0a8592565ad28(arg0, arg1) {
|
|
1849
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 794, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 795, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1850
|
+
const ret = makeMutClosure(arg0, arg1, 794, __wbg_adapter_16);
|
|
1846
1851
|
return ret;
|
|
1847
1852
|
}
|
|
1848
1853
|
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
@@ -1850,11 +1855,6 @@ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
|
1850
1855
|
const ret = arg0;
|
|
1851
1856
|
return ret;
|
|
1852
1857
|
}
|
|
1853
|
-
export function __wbindgen_cast_f03b9d21f7da0088(arg0, arg1) {
|
|
1854
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 795, function: Function { arguments: [NamedExternref("RTCPeerConnectionIceEvent")], shim_idx: 796, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1855
|
-
const ret = makeMutClosure(arg0, arg1, 795, __wbg_adapter_17);
|
|
1856
|
-
return ret;
|
|
1857
|
-
}
|
|
1858
1858
|
export function __wbindgen_init_externref_table() {
|
|
1859
1859
|
const table = wasm.__wbindgen_export_4;
|
|
1860
1860
|
const offset = table.grow(4);
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import * as imports from "./datex_core_js.internal.js";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
detectRuntime,
|
|
4
|
+
runtimeInterface,
|
|
5
|
+
} from "../utils/js-runtime-compat/js-runtime.js";
|
|
3
6
|
|
|
4
7
|
let wasmUrl;
|
|
5
|
-
|
|
8
|
+
const isVite = !!import.meta.env?.MODE;
|
|
9
|
+
if (detectRuntime() == "browser" && isVite) {
|
|
6
10
|
wasmUrl = (await import("./wasm_url.node.js")).default;
|
|
7
11
|
} else {
|
|
8
12
|
wasmUrl = new URL("datex_core_js.wasm", import.meta.url);
|
|
@@ -14,4 +18,4 @@ const wasm = (await runtimeInterface.instantiateWebAssembly(wasmUrl, {
|
|
|
14
18
|
export * from "./datex_core_js.internal.js";
|
|
15
19
|
import { __wbg_set_wasm } from "./datex_core_js.internal.js";
|
|
16
20
|
__wbg_set_wasm(wasm.exports);
|
|
17
|
-
wasm.exports.__wbindgen_start();
|
|
21
|
+
wasm.exports.__wbindgen_start();
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "./datex_core_js.wasm?url";
|
|
1
|
+
export { default } from "./datex_core_js.wasm?url";
|
package/esm/default.d.ts
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* @module default.ts
|
|
3
3
|
* @description
|
|
4
4
|
* This module exports an instance of the DATEX runtime.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Datex } from "@unyt/datex/default";
|
|
9
|
+
*
|
|
10
|
+
* // Use the Datex runtime instance
|
|
11
|
+
* const result = await Datex.execute("@example :: 1 + 2");
|
|
12
|
+
* ```
|
|
5
13
|
*/
|
|
6
14
|
import { Runtime } from "./runtime/runtime.js";
|
|
7
15
|
/**
|
package/esm/default.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"default.d.ts","sourceRoot":"","sources":["../src/default.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAa/C;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,OAElB,CAAC"}
|
package/esm/default.js
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
* @module default.ts
|
|
3
3
|
* @description
|
|
4
4
|
* This module exports an instance of the DATEX runtime.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Datex } from "@unyt/datex/default";
|
|
9
|
+
*
|
|
10
|
+
* // Use the Datex runtime instance
|
|
11
|
+
* const result = await Datex.execute("@example :: 1 + 2");
|
|
12
|
+
* ```
|
|
5
13
|
*/
|
|
6
14
|
import { Runtime } from "./runtime/runtime.js";
|
|
7
15
|
/**
|
package/esm/deno.json
CHANGED
package/esm/dif/mod.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module dif/mod.ts
|
|
3
|
+
* @description
|
|
4
|
+
* This namespace contains all modules related to the DIF (DATEX Interchange Format) interfaces of the DATEX runtime.
|
|
5
|
+
*/
|
|
1
6
|
export * as Definitions from "./definitions.js";
|
|
2
7
|
export * as Builders from "./builders.js";
|
|
3
8
|
export * as Display from "./display.js";
|
package/esm/dif/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/dif/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/dif/mod.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC"}
|
package/esm/dif/mod.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module dif/mod.ts
|
|
3
|
+
* @description
|
|
4
|
+
* This namespace contains all modules related to the DIF (DATEX Interchange Format) interfaces of the DATEX runtime.
|
|
5
|
+
*/
|
|
1
6
|
export * as Definitions from "./definitions.js";
|
|
2
7
|
export * as Builders from "./builders.js";
|
|
3
8
|
export * as Display from "./display.js";
|
package/esm/mod.d.ts
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
* @module mod.ts
|
|
3
3
|
* @description
|
|
4
4
|
* This module exports all public APIs of the DATEX runtime.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Runtime } from "@unyt/datex";
|
|
9
|
+
*
|
|
10
|
+
* // Create a runtime instance
|
|
11
|
+
* export const runtime: Runtime = await Runtime.create({
|
|
12
|
+
* interfaces: [{
|
|
13
|
+
* type: "websocket-client",
|
|
14
|
+
* config: { address: "wss://example.unyt.land" },
|
|
15
|
+
* }],
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* // Use the runtime instance
|
|
19
|
+
* const result = await runtime.execute("@example :: 1 + 2");
|
|
20
|
+
* ```
|
|
5
21
|
*/
|
|
6
22
|
export * from "./runtime/runtime.js";
|
|
7
|
-
/**
|
|
8
|
-
* @namespace DIF
|
|
9
|
-
* @description
|
|
10
|
-
* This namespace contains all modules related to the DIF (DATEX Interchange Format) interfaces of the DATEX runtime.
|
|
11
|
-
*/
|
|
12
23
|
export * as DIF from "./dif/mod.js";
|
|
13
|
-
/**
|
|
14
|
-
* @namespace Network
|
|
15
|
-
* @description
|
|
16
|
-
* This namespace contains all modules related to the network interfaces of the DATEX runtime.
|
|
17
|
-
*/
|
|
18
24
|
export * as Network from "./network/mod.js";
|
|
19
25
|
//# sourceMappingURL=mod.d.ts.map
|
package/esm/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,qBAAqB,CAAC;AAG7B,cAAc,sBAAsB,CAAC;AACrC,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC"}
|
package/esm/mod.js
CHANGED
|
@@ -2,17 +2,23 @@
|
|
|
2
2
|
* @module mod.ts
|
|
3
3
|
* @description
|
|
4
4
|
* This module exports all public APIs of the DATEX runtime.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```ts
|
|
8
|
+
* import { Runtime } from "@unyt/datex";
|
|
9
|
+
*
|
|
10
|
+
* // Create a runtime instance
|
|
11
|
+
* export const runtime: Runtime = await Runtime.create({
|
|
12
|
+
* interfaces: [{
|
|
13
|
+
* type: "websocket-client",
|
|
14
|
+
* config: { address: "wss://example.unyt.land" },
|
|
15
|
+
* }],
|
|
16
|
+
* });
|
|
17
|
+
*
|
|
18
|
+
* // Use the runtime instance
|
|
19
|
+
* const result = await runtime.execute("@example :: 1 + 2");
|
|
20
|
+
* ```
|
|
5
21
|
*/
|
|
6
22
|
export * from "./runtime/runtime.js";
|
|
7
|
-
/**
|
|
8
|
-
* @namespace DIF
|
|
9
|
-
* @description
|
|
10
|
-
* This namespace contains all modules related to the DIF (DATEX Interchange Format) interfaces of the DATEX runtime.
|
|
11
|
-
*/
|
|
12
23
|
export * as DIF from "./dif/mod.js";
|
|
13
|
-
/**
|
|
14
|
-
* @namespace Network
|
|
15
|
-
* @description
|
|
16
|
-
* This namespace contains all modules related to the network interfaces of the DATEX runtime.
|
|
17
|
-
*/
|
|
18
24
|
export * as Network from "./network/mod.js";
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { ComInterfaceImpl } from "../com-interface.js";
|
|
2
2
|
import type { BaseInterfaceSetupData, InterfaceDirection } from "../../datex-core/datex_core_js";
|
|
3
|
-
export type {
|
|
3
|
+
export type {
|
|
4
|
+
/**
|
|
5
|
+
* Setup data for the base communication interface.
|
|
6
|
+
*/
|
|
7
|
+
BaseInterfaceSetupData,
|
|
8
|
+
/**
|
|
9
|
+
* Direction of the communication interface (In/Out/InOut).
|
|
10
|
+
*/
|
|
11
|
+
InterfaceDirection, };
|
|
4
12
|
/**
|
|
5
13
|
* Implementation of the base communication interface.
|
|
6
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/network/interface-impls/base.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EACR,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/network/interface-impls/base.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,KAAK,EACR,sBAAsB,EACtB,kBAAkB,EACrB,MAAM,gCAAgC,CAAC;AAExC,YAAY;AACR;;GAEG;AACH,sBAAsB;AACtB;;GAEG;AACH,kBAAkB,GACrB,CAAC;AAEF;;GAEG;AACH,qBAAa,iBACT,SAAQ,gBAAgB,CAAC,sBAAsB,CAAC;IAChD;;;;OAIG;IACI,cAAc,CAAC,kBAAkB,EAAE,kBAAkB,GAAG,MAAM;IAOrE;;;OAGG;IACI,aAAa,CAAC,UAAU,EAAE,MAAM;IAOvC;;;;OAIG;IACI,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU;IAQnD;;;;;OAKG;IACI,aAAa,CAChB,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,UAAU,GACjB,OAAO,CAAC,OAAO,CAAC;IAQnB;;;OAGG;IACI,MAAM,CACT,QAAQ,EAAE,CACN,IAAI,EAAE,UAAU,EAChB,oBAAoB,EAAE,MAAM,KAC3B,OAAO,CAAC,OAAO,CAAC;CAI5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"js-runtime.d.ts","sourceRoot":"","sources":["../../../src/utils/js-runtime-compat/js-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACR,kBAAkB,EAClB,aAAa,EAChB,MAAM,2BAA2B,CAAC;AAInC,wBAAgB,aAAa,IAAI,aAAa,CAU7C;
|
|
1
|
+
{"version":3,"file":"js-runtime.d.ts","sourceRoot":"","sources":["../../../src/utils/js-runtime-compat/js-runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACR,kBAAkB,EAClB,aAAa,EAChB,MAAM,2BAA2B,CAAC;AAInC,wBAAgB,aAAa,IAAI,aAAa,CAU7C;AAkBD,gEAAgE;AAChE,eAAO,MAAM,gBAAgB,EAAE,kBAE9B,CAAC"}
|