@unyt/datex 0.0.8 → 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/_dnt.shims.d.ts +1 -27
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/_dnt.shims.js +1 -31
- package/esm/datex-core/datex_core_js.internal.d.ts +53 -44
- package/esm/datex-core/datex_core_js.internal.d.ts.map +1 -1
- package/esm/datex-core/datex_core_js.internal.js +164 -146
- package/esm/datex-core/datex_core_js.js +16 -15
- package/esm/datex-core/datex_core_js.wasm +0 -0
- package/esm/datex-core/wasm_url.node.js +1 -0
- package/esm/datex-core.d.ts +6 -0
- package/esm/datex-core.d.ts.map +1 -1
- package/esm/datex-core.js +6 -0
- package/esm/default.d.ts +8 -1
- package/esm/default.d.ts.map +1 -1
- package/esm/default.js +8 -1
- package/esm/deno.json +3 -2
- package/esm/dif/builders.d.ts +5 -0
- package/esm/dif/builders.d.ts.map +1 -1
- package/esm/dif/builders.js +5 -0
- package/esm/dif/core.d.ts +9 -0
- package/esm/dif/core.d.ts.map +1 -1
- package/esm/dif/core.js +6 -0
- package/esm/dif/definitions.d.ts +43 -1
- package/esm/dif/definitions.d.ts.map +1 -1
- package/esm/dif/definitions.js +14 -0
- package/esm/dif/dif-handler.d.ts +17 -0
- package/esm/dif/dif-handler.d.ts.map +1 -1
- package/esm/dif/dif-handler.js +18 -2
- package/esm/dif/display.d.ts +23 -0
- package/esm/dif/display.d.ts.map +1 -1
- package/esm/dif/display.js +23 -0
- package/esm/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 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +16 -1
- package/esm/network/com-hub.d.ts +30 -0
- package/esm/network/com-hub.d.ts.map +1 -1
- package/esm/network/com-hub.js +32 -0
- package/esm/network/com-interface.d.ts +18 -0
- package/esm/network/com-interface.d.ts.map +1 -1
- package/esm/network/com-interface.js +13 -0
- package/esm/network/interface-impls/base.d.ts +36 -1
- package/esm/network/interface-impls/base.d.ts.map +1 -1
- package/esm/network/interface-impls/base.js +27 -1
- package/esm/network/interface-impls/websocket-client.d.ts +3 -1
- package/esm/network/interface-impls/websocket-client.d.ts.map +1 -1
- package/esm/network/interface-impls/websocket-client.js +3 -1
- package/esm/network/mod.d.ts +6 -0
- package/esm/network/mod.d.ts.map +1 -1
- package/esm/network/mod.js +6 -0
- package/esm/refs/ref.d.ts +3 -0
- package/esm/refs/ref.d.ts.map +1 -1
- package/esm/refs/ref.js +3 -0
- package/esm/runtime/runtime.d.ts +52 -2
- package/esm/runtime/runtime.d.ts.map +1 -1
- package/esm/runtime/runtime.js +49 -3
- package/esm/runtime/special-core-types.d.ts +18 -2
- package/esm/runtime/special-core-types.d.ts.map +1 -1
- package/esm/runtime/special-core-types.js +19 -3
- package/esm/utils/js-runtime-compat/js-runtime-interface.d.ts +10 -0
- package/esm/utils/js-runtime-compat/js-runtime-interface.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/js-runtime-interface.js +1 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts +18 -0
- package/esm/utils/js-runtime-compat/js-runtime.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/js-runtime.js +43 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/browser.js +22 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/deno.js +19 -0
- package/esm/utils/js-runtime-compat/runtimes/node.d.ts +8 -0
- package/esm/utils/js-runtime-compat/runtimes/node.d.ts.map +1 -0
- package/esm/utils/js-runtime-compat/runtimes/node.js +21 -0
- package/package.json +1 -22
- package/esm/_dnt.polyfills.d.ts +0 -101
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -127
- package/esm/network/interface-impls/serial.d.ts +0 -6
- package/esm/network/interface-impls/serial.d.ts.map +0 -1
- package/esm/network/interface-impls/serial.js +0 -6
- package/esm/network/interface-impls/webrtc.d.ts +0 -12
- package/esm/network/interface-impls/webrtc.d.ts.map +0 -1
- package/esm/network/interface-impls/webrtc.js +0 -24
- package/esm/network/interface-impls/websocket-server-deno.d.ts +0 -9
- package/esm/network/interface-impls/websocket-server-deno.d.ts.map +0 -1
- package/esm/network/interface-impls/websocket-server-deno.js +0 -45
|
@@ -219,52 +219,17 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
219
219
|
CLOSURE_DTORS.register(real, state, state);
|
|
220
220
|
return real;
|
|
221
221
|
}
|
|
222
|
-
function passArray8ToWasm0(arg, malloc) {
|
|
223
|
-
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
224
|
-
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
225
|
-
WASM_VECTOR_LEN = arg.length;
|
|
226
|
-
return ptr;
|
|
227
|
-
}
|
|
228
222
|
function takeFromExternrefTable0(idx) {
|
|
229
223
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
230
224
|
wasm.__externref_table_dealloc(idx);
|
|
231
225
|
return value;
|
|
232
226
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
function passArrayJsValueToWasm0(array, malloc) {
|
|
239
|
-
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
240
|
-
for (let i = 0; i < array.length; i++) {
|
|
241
|
-
const add = addToExternrefTable0(array[i]);
|
|
242
|
-
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
243
|
-
}
|
|
244
|
-
WASM_VECTOR_LEN = array.length;
|
|
227
|
+
function passArray8ToWasm0(arg, malloc) {
|
|
228
|
+
const ptr = malloc(arg.length * 1, 1) >>> 0;
|
|
229
|
+
getUint8ArrayMemory0().set(arg, ptr / 1);
|
|
230
|
+
WASM_VECTOR_LEN = arg.length;
|
|
245
231
|
return ptr;
|
|
246
232
|
}
|
|
247
|
-
function getArrayJsValueFromWasm0(ptr, len) {
|
|
248
|
-
ptr = ptr >>> 0;
|
|
249
|
-
const mem = getDataViewMemory0();
|
|
250
|
-
const result = [];
|
|
251
|
-
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
252
|
-
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
253
|
-
}
|
|
254
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
255
|
-
return result;
|
|
256
|
-
}
|
|
257
|
-
/**
|
|
258
|
-
* @param {string} config
|
|
259
|
-
* @param {any} debug_flags
|
|
260
|
-
* @returns {JSRuntime}
|
|
261
|
-
*/
|
|
262
|
-
export function create_runtime(config, debug_flags) {
|
|
263
|
-
const ptr0 = passStringToWasm0(config, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
264
|
-
const len0 = WASM_VECTOR_LEN;
|
|
265
|
-
const ret = wasm.create_runtime(ptr0, len0, debug_flags);
|
|
266
|
-
return JSRuntime.__wrap(ret);
|
|
267
|
-
}
|
|
268
233
|
/**
|
|
269
234
|
* Executes a Datex script and returns the result as a string.
|
|
270
235
|
* @param {string} datex_script
|
|
@@ -298,17 +263,52 @@ export function execute_internal(datex_script) {
|
|
|
298
263
|
const ret = wasm.execute_internal(ptr0, len0);
|
|
299
264
|
return ret !== 0;
|
|
300
265
|
}
|
|
301
|
-
|
|
302
|
-
|
|
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
|
+
function _assertClass(instance, klass) {
|
|
278
|
+
if (!(instance instanceof klass)) {
|
|
279
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function passArrayJsValueToWasm0(array, malloc) {
|
|
283
|
+
const ptr = malloc(array.length * 4, 4) >>> 0;
|
|
284
|
+
for (let i = 0; i < array.length; i++) {
|
|
285
|
+
const add = addToExternrefTable0(array[i]);
|
|
286
|
+
getDataViewMemory0().setUint32(ptr + 4 * i, add, true);
|
|
287
|
+
}
|
|
288
|
+
WASM_VECTOR_LEN = array.length;
|
|
289
|
+
return ptr;
|
|
290
|
+
}
|
|
291
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
292
|
+
ptr = ptr >>> 0;
|
|
293
|
+
const mem = getDataViewMemory0();
|
|
294
|
+
const result = [];
|
|
295
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
296
|
+
result.push(wasm.__wbindgen_export_4.get(mem.getUint32(i, true)));
|
|
297
|
+
}
|
|
298
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
299
|
+
return result;
|
|
303
300
|
}
|
|
304
|
-
function
|
|
305
|
-
wasm.
|
|
301
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
302
|
+
wasm.closure1523_externref_shim(arg0, arg1, arg2);
|
|
306
303
|
}
|
|
307
|
-
function
|
|
308
|
-
wasm.
|
|
304
|
+
function __wbg_adapter_11(arg0, arg1) {
|
|
305
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hf1f930a523fb34af(arg0, arg1);
|
|
309
306
|
}
|
|
310
|
-
function
|
|
311
|
-
wasm.
|
|
307
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
308
|
+
wasm.closure795_externref_shim(arg0, arg1, arg2);
|
|
309
|
+
}
|
|
310
|
+
function __wbg_adapter_277(arg0, arg1, arg2, arg3) {
|
|
311
|
+
wasm.closure2442_externref_shim(arg0, arg1, arg2, arg3);
|
|
312
312
|
}
|
|
313
313
|
const __wbindgen_enum_BinaryType = ["blob", "arraybuffer"];
|
|
314
314
|
const __wbindgen_enum_RtcIceConnectionState = [
|
|
@@ -365,77 +365,6 @@ export class JSComHub {
|
|
|
365
365
|
const ptr = this.__destroy_into_raw();
|
|
366
366
|
wasm.__wbg_jscomhub_free(ptr, 0);
|
|
367
367
|
}
|
|
368
|
-
/**
|
|
369
|
-
* @param {string} interface_uuid
|
|
370
|
-
* @param {Uint8Array} answer
|
|
371
|
-
* @returns {Promise<void>}
|
|
372
|
-
*/
|
|
373
|
-
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
374
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
375
|
-
const len0 = WASM_VECTOR_LEN;
|
|
376
|
-
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
377
|
-
const len1 = WASM_VECTOR_LEN;
|
|
378
|
-
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
379
|
-
return ret;
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* @param {string} interface_uuid
|
|
383
|
-
* @returns {Promise<Uint8Array>}
|
|
384
|
-
*/
|
|
385
|
-
webrtc_interface_create_offer(interface_uuid) {
|
|
386
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
387
|
-
const len0 = WASM_VECTOR_LEN;
|
|
388
|
-
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
389
|
-
return ret;
|
|
390
|
-
}
|
|
391
|
-
/**
|
|
392
|
-
* @param {string} interface_uuid
|
|
393
|
-
* @param {Uint8Array} offer
|
|
394
|
-
* @returns {Promise<Uint8Array>}
|
|
395
|
-
*/
|
|
396
|
-
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
397
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
398
|
-
const len0 = WASM_VECTOR_LEN;
|
|
399
|
-
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
400
|
-
const len1 = WASM_VECTOR_LEN;
|
|
401
|
-
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
402
|
-
return ret;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* @param {string} interface_uuid
|
|
406
|
-
* @param {Uint8Array} candidate
|
|
407
|
-
* @returns {Promise<void>}
|
|
408
|
-
*/
|
|
409
|
-
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
410
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
411
|
-
const len0 = WASM_VECTOR_LEN;
|
|
412
|
-
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
413
|
-
const len1 = WASM_VECTOR_LEN;
|
|
414
|
-
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
415
|
-
return ret;
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* @param {string} interface_uuid
|
|
419
|
-
* @returns {Promise<void>}
|
|
420
|
-
*/
|
|
421
|
-
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
422
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
423
|
-
const len0 = WASM_VECTOR_LEN;
|
|
424
|
-
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
425
|
-
return ret;
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* @param {string} interface_uuid
|
|
429
|
-
* @param {Function} on_ice_candidate
|
|
430
|
-
*/
|
|
431
|
-
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
432
|
-
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
433
|
-
const len0 = WASM_VECTOR_LEN;
|
|
434
|
-
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
435
|
-
if (ret[1]) {
|
|
436
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
368
|
/**
|
|
440
369
|
* @param {string} uuid
|
|
441
370
|
* @param {Function} func
|
|
@@ -524,6 +453,77 @@ export class JSComHub {
|
|
|
524
453
|
const ret = wasm.jscomhub_base_interface_test_send_block(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
525
454
|
return ret;
|
|
526
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* @param {string} interface_uuid
|
|
458
|
+
* @param {Uint8Array} answer
|
|
459
|
+
* @returns {Promise<void>}
|
|
460
|
+
*/
|
|
461
|
+
webrtc_interface_set_answer(interface_uuid, answer) {
|
|
462
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
463
|
+
const len0 = WASM_VECTOR_LEN;
|
|
464
|
+
const ptr1 = passArray8ToWasm0(answer, wasm.__wbindgen_malloc);
|
|
465
|
+
const len1 = WASM_VECTOR_LEN;
|
|
466
|
+
const ret = wasm.jscomhub_webrtc_interface_set_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
467
|
+
return ret;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* @param {string} interface_uuid
|
|
471
|
+
* @returns {Promise<Uint8Array>}
|
|
472
|
+
*/
|
|
473
|
+
webrtc_interface_create_offer(interface_uuid) {
|
|
474
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
475
|
+
const len0 = WASM_VECTOR_LEN;
|
|
476
|
+
const ret = wasm.jscomhub_webrtc_interface_create_offer(this.__wbg_ptr, ptr0, len0);
|
|
477
|
+
return ret;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @param {string} interface_uuid
|
|
481
|
+
* @param {Uint8Array} offer
|
|
482
|
+
* @returns {Promise<Uint8Array>}
|
|
483
|
+
*/
|
|
484
|
+
webrtc_interface_create_answer(interface_uuid, offer) {
|
|
485
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
486
|
+
const len0 = WASM_VECTOR_LEN;
|
|
487
|
+
const ptr1 = passArray8ToWasm0(offer, wasm.__wbindgen_malloc);
|
|
488
|
+
const len1 = WASM_VECTOR_LEN;
|
|
489
|
+
const ret = wasm.jscomhub_webrtc_interface_create_answer(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
490
|
+
return ret;
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* @param {string} interface_uuid
|
|
494
|
+
* @param {Uint8Array} candidate
|
|
495
|
+
* @returns {Promise<void>}
|
|
496
|
+
*/
|
|
497
|
+
webrtc_interface_add_ice_candidate(interface_uuid, candidate) {
|
|
498
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
499
|
+
const len0 = WASM_VECTOR_LEN;
|
|
500
|
+
const ptr1 = passArray8ToWasm0(candidate, wasm.__wbindgen_malloc);
|
|
501
|
+
const len1 = WASM_VECTOR_LEN;
|
|
502
|
+
const ret = wasm.jscomhub_webrtc_interface_add_ice_candidate(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
503
|
+
return ret;
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* @param {string} interface_uuid
|
|
507
|
+
* @returns {Promise<void>}
|
|
508
|
+
*/
|
|
509
|
+
webrtc_interface_wait_for_connection(interface_uuid) {
|
|
510
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
511
|
+
const len0 = WASM_VECTOR_LEN;
|
|
512
|
+
const ret = wasm.jscomhub_webrtc_interface_wait_for_connection(this.__wbg_ptr, ptr0, len0);
|
|
513
|
+
return ret;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @param {string} interface_uuid
|
|
517
|
+
* @param {Function} on_ice_candidate
|
|
518
|
+
*/
|
|
519
|
+
webrtc_interface_set_on_ice_candidate(interface_uuid, on_ice_candidate) {
|
|
520
|
+
const ptr0 = passStringToWasm0(interface_uuid, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
521
|
+
const len0 = WASM_VECTOR_LEN;
|
|
522
|
+
const ret = wasm.jscomhub_webrtc_interface_set_on_ice_candidate(this.__wbg_ptr, ptr0, len0, on_ice_candidate);
|
|
523
|
+
if (ret[1]) {
|
|
524
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
527
|
/**
|
|
528
528
|
* @param {string} interface_uuid
|
|
529
529
|
* @param {WebSocket} websocket
|
|
@@ -629,6 +629,18 @@ export class JSComHub {
|
|
|
629
629
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
630
630
|
return v1;
|
|
631
631
|
}
|
|
632
|
+
/**
|
|
633
|
+
* @param {Function} callback
|
|
634
|
+
*/
|
|
635
|
+
register_incoming_block_interceptor(callback) {
|
|
636
|
+
wasm.jscomhub_register_incoming_block_interceptor(this.__wbg_ptr, callback);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* @param {Function} callback
|
|
640
|
+
*/
|
|
641
|
+
register_outgoing_block_interceptor(callback) {
|
|
642
|
+
wasm.jscomhub_register_outgoing_block_interceptor(this.__wbg_ptr, callback);
|
|
643
|
+
}
|
|
632
644
|
register_default_interface_factories() {
|
|
633
645
|
wasm.jscomhub_register_default_interface_factories(this.__wbg_ptr);
|
|
634
646
|
}
|
|
@@ -1064,6 +1076,12 @@ export function __wbg_buffer_4306305a9644b7a1(arg0) {
|
|
|
1064
1076
|
const ret = arg0.buffer;
|
|
1065
1077
|
return ret;
|
|
1066
1078
|
}
|
|
1079
|
+
export function __wbg_call_0ba5f27818746ea4() {
|
|
1080
|
+
return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1081
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
1082
|
+
return ret;
|
|
1083
|
+
}, arguments);
|
|
1084
|
+
}
|
|
1067
1085
|
export function __wbg_call_52af042a326d9b3a() {
|
|
1068
1086
|
return handleError(function (arg0, arg1, arg2) {
|
|
1069
1087
|
const ret = arg0.call(arg1, arg2);
|
|
@@ -1256,7 +1274,7 @@ export function __wbg_instanceof_ArrayBuffer_625e762023eb35cf(arg0) {
|
|
|
1256
1274
|
export function __wbg_instanceof_CryptoKey_d94aaf75de500efb(arg0) {
|
|
1257
1275
|
let result;
|
|
1258
1276
|
try {
|
|
1259
|
-
result = arg0 instanceof
|
|
1277
|
+
result = arg0 instanceof CryptoKey;
|
|
1260
1278
|
}
|
|
1261
1279
|
catch (_) {
|
|
1262
1280
|
result = false;
|
|
@@ -1374,7 +1392,7 @@ export function __wbg_new_8a6f238a6ece86ea() {
|
|
|
1374
1392
|
}
|
|
1375
1393
|
export function __wbg_new_b25e3e4428c04a92() {
|
|
1376
1394
|
return handleError(function (arg0, arg1) {
|
|
1377
|
-
const ret = new
|
|
1395
|
+
const ret = new WebSocket(getStringFromWasm0(arg0, arg1));
|
|
1378
1396
|
return ret;
|
|
1379
1397
|
}, arguments);
|
|
1380
1398
|
}
|
|
@@ -1385,7 +1403,7 @@ export function __wbg_new_b38cbb8a106768cf(arg0, arg1) {
|
|
|
1385
1403
|
const a = state0.a;
|
|
1386
1404
|
state0.a = 0;
|
|
1387
1405
|
try {
|
|
1388
|
-
return
|
|
1406
|
+
return __wbg_adapter_277(a, state0.b, arg0, arg1);
|
|
1389
1407
|
}
|
|
1390
1408
|
finally {
|
|
1391
1409
|
state0.a = a;
|
|
@@ -1527,7 +1545,7 @@ export function __wbg_setRemoteDescription_11eaf6e756e370af(arg0, arg1) {
|
|
|
1527
1545
|
}
|
|
1528
1546
|
export function __wbg_setTimeout_db2dbaeefb6f39c7() {
|
|
1529
1547
|
return handleError(function (arg0, arg1) {
|
|
1530
|
-
const ret =
|
|
1548
|
+
const ret = setTimeout(arg0, arg1);
|
|
1531
1549
|
return ret;
|
|
1532
1550
|
}, arguments);
|
|
1533
1551
|
}
|
|
@@ -1780,34 +1798,34 @@ export function __wbg_write_e7fe7265c2fa5ddb(arg0, arg1) {
|
|
|
1780
1798
|
const ret = arg0.write(arg1);
|
|
1781
1799
|
return ret;
|
|
1782
1800
|
}
|
|
1783
|
-
export function
|
|
1784
|
-
// Cast intrinsic for `
|
|
1785
|
-
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);
|
|
1786
1804
|
return ret;
|
|
1787
1805
|
}
|
|
1788
|
-
export function
|
|
1789
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1790
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1806
|
+
export function __wbindgen_cast_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);
|
|
1791
1809
|
return ret;
|
|
1792
1810
|
}
|
|
1793
|
-
export function
|
|
1794
|
-
// Cast intrinsic for `
|
|
1795
|
-
const ret =
|
|
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);
|
|
1796
1814
|
return ret;
|
|
1797
1815
|
}
|
|
1798
|
-
export function
|
|
1799
|
-
// Cast intrinsic for `
|
|
1800
|
-
const ret =
|
|
1816
|
+
export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
|
|
1817
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1818
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1801
1819
|
return ret;
|
|
1802
1820
|
}
|
|
1803
|
-
export function
|
|
1804
|
-
// Cast intrinsic for `
|
|
1805
|
-
const ret =
|
|
1821
|
+
export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
|
|
1822
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1823
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1806
1824
|
return ret;
|
|
1807
1825
|
}
|
|
1808
|
-
export function
|
|
1809
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1810
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1826
|
+
export function __wbindgen_cast_52ed74f41af88dc3(arg0, arg1) {
|
|
1827
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1532, function: Function { arguments: [], shim_idx: 1533, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1828
|
+
const ret = makeMutClosure(arg0, arg1, 1532, __wbg_adapter_11);
|
|
1811
1829
|
return ret;
|
|
1812
1830
|
}
|
|
1813
1831
|
export function __wbindgen_cast_77bc3e92745e9a35(arg0, arg1) {
|
|
@@ -1822,14 +1840,14 @@ export function __wbindgen_cast_9ae0607507abb057(arg0) {
|
|
|
1822
1840
|
const ret = arg0;
|
|
1823
1841
|
return ret;
|
|
1824
1842
|
}
|
|
1825
|
-
export function
|
|
1826
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1827
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1843
|
+
export function __wbindgen_cast_b5732421293e3bdd(arg0, arg1) {
|
|
1844
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 1522, function: Function { arguments: [Externref], shim_idx: 1523, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1845
|
+
const ret = makeMutClosure(arg0, arg1, 1522, __wbg_adapter_6);
|
|
1828
1846
|
return ret;
|
|
1829
1847
|
}
|
|
1830
|
-
export function
|
|
1831
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1832
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
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);
|
|
1833
1851
|
return ret;
|
|
1834
1852
|
}
|
|
1835
1853
|
export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import * as dntShim from "../_dnt.shims.js";
|
|
2
1
|
import * as imports from "./datex_core_js.internal.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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;
|
|
17
18
|
export * from "./datex_core_js.internal.js";
|
|
18
19
|
import { __wbg_set_wasm } from "./datex_core_js.internal.js";
|
|
19
20
|
__wbg_set_wasm(wasm.exports);
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./datex_core_js.wasm?url";
|
package/esm/datex-core.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module datex-core.ts
|
|
3
|
+
* @description
|
|
4
|
+
* This module serves as the core of the Datex library, re-exporting
|
|
5
|
+
* essential types and functionalities from the Datex core JavaScript implementation.
|
|
6
|
+
*/
|
|
1
7
|
export * from "./datex-core/datex_core_js.js";
|
|
2
8
|
//# sourceMappingURL=datex-core.d.ts.map
|
package/esm/datex-core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datex-core.d.ts","sourceRoot":"","sources":["../src/datex-core.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"datex-core.d.ts","sourceRoot":"","sources":["../src/datex-core.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,+BAA+B,CAAC"}
|
package/esm/datex-core.js
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module datex-core.ts
|
|
3
|
+
* @description
|
|
4
|
+
* This module serves as the core of the Datex library, re-exporting
|
|
5
|
+
* essential types and functionalities from the Datex core JavaScript implementation.
|
|
6
|
+
*/
|
|
1
7
|
/* @ts-types="./datex-core/datex_core_js.d.ts" */
|
|
2
8
|
export * from "./datex-core/datex_core_js.js";
|
package/esm/default.d.ts
CHANGED
|
@@ -2,8 +2,15 @@
|
|
|
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
|
-
import "./_dnt.polyfills.js";
|
|
7
14
|
import { Runtime } from "./runtime/runtime.js";
|
|
8
15
|
/**
|
|
9
16
|
* The default instance of the Datex runtime.
|
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,8 +2,15 @@
|
|
|
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
|
-
import "./_dnt.polyfills.js";
|
|
7
14
|
import { Runtime } from "./runtime/runtime.js";
|
|
8
15
|
/**
|
|
9
16
|
* The default configuration for the Datex runtime.
|
package/esm/deno.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unyt/datex",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/mod.ts",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"@std/cli": "jsr:@std/cli@^1.0.23",
|
|
46
46
|
"@std/encoding": "jsr:@std/encoding@^1.0.10",
|
|
47
47
|
"@std/fmt": "jsr:@std/fmt@^1.0.8",
|
|
48
|
-
"@std/uuid": "jsr:@std/uuid@^1.0.9"
|
|
48
|
+
"@std/uuid": "jsr:@std/uuid@^1.0.9",
|
|
49
|
+
"@unyt/speck": "jsr:@unyt/speck@^0.0.10"
|
|
49
50
|
},
|
|
50
51
|
"test": {
|
|
51
52
|
"exclude": [
|
package/esm/dif/builders.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/dif/builders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EACzB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,CAAC,GACT,aAAa,CAMf;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EACnC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,CAAC,GACT,aAAa,CAQf"}
|
|
1
|
+
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/dif/builders.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EACzB,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,CAAC,GACT,aAAa,CAMf;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EACnC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,CAAC,EACX,KAAK,EAAE,CAAC,GACT,aAAa,CAQf"}
|
package/esm/dif/builders.js
CHANGED
package/esm/dif/core.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mapping of core type names to their unique pointer addresses.
|
|
3
|
+
*/
|
|
1
4
|
export declare const CoreTypeAddress: {
|
|
2
5
|
readonly null: "010000";
|
|
3
6
|
readonly type: "020000";
|
|
@@ -24,7 +27,13 @@ export declare const CoreTypeAddress: {
|
|
|
24
27
|
readonly integer_i128: "6e0000";
|
|
25
28
|
readonly integer_big: "6f0000";
|
|
26
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Type representing the unique pointer addresses of core types.
|
|
32
|
+
*/
|
|
27
33
|
export type CoreTypeAddress = typeof CoreTypeAddress[keyof typeof CoreTypeAddress];
|
|
34
|
+
/**
|
|
35
|
+
* Mapping of core type address ranges for categorization.
|
|
36
|
+
*/
|
|
28
37
|
export declare const CoreTypeAddressRanges: {
|
|
29
38
|
readonly small_unsigned_integers: Set<"650000" | "660000" | "670000" | "680000" | "690000">;
|
|
30
39
|
readonly big_unsigned_integers: Set<"6f0000">;
|
package/esm/dif/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/dif/core.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC;AACX,MAAM,MAAM,eAAe,GACvB,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD,eAAO,MAAM,qBAAqB;;;;;;CAuBxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/dif/core.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;CAyBlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAEzD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;CAuBxB,CAAC"}
|
package/esm/dif/core.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mapping of core type names to their unique pointer addresses.
|
|
3
|
+
*/
|
|
1
4
|
export const CoreTypeAddress = {
|
|
2
5
|
null: "010000",
|
|
3
6
|
type: "020000",
|
|
@@ -24,6 +27,9 @@ export const CoreTypeAddress = {
|
|
|
24
27
|
integer_i128: "6e0000",
|
|
25
28
|
integer_big: "6f0000",
|
|
26
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Mapping of core type address ranges for categorization.
|
|
32
|
+
*/
|
|
27
33
|
export const CoreTypeAddressRanges = {
|
|
28
34
|
small_unsigned_integers: new Set([
|
|
29
35
|
CoreTypeAddress.integer_u8,
|