jazz-wasm 2.0.0-alpha.2 → 2.0.0-alpha.21
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/package.json +5 -1
- package/pkg/jazz_wasm.d.ts +109 -96
- package/pkg/jazz_wasm.js +373 -179
- package/pkg/jazz_wasm_bg.wasm +0 -0
package/pkg/jazz_wasm.js
CHANGED
|
@@ -329,6 +329,29 @@ export class WasmRuntime {
|
|
|
329
329
|
const ptr = this.__destroy_into_raw();
|
|
330
330
|
wasm.__wbg_wasmruntime_free(ptr, 0);
|
|
331
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* Debug helper: expose schema/lens state currently loaded in SchemaManager.
|
|
334
|
+
* @returns {any}
|
|
335
|
+
*/
|
|
336
|
+
__debugSchemaState() {
|
|
337
|
+
const ret = wasm.wasmruntime___debugSchemaState(this.__wbg_ptr);
|
|
338
|
+
if (ret[2]) {
|
|
339
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
340
|
+
}
|
|
341
|
+
return takeFromExternrefTable0(ret[0]);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Debug helper: seed a historical schema and persist schema/lens catalogue objects.
|
|
345
|
+
* @param {string} schema_json
|
|
346
|
+
*/
|
|
347
|
+
__debugSeedLiveSchema(schema_json) {
|
|
348
|
+
const ptr0 = passStringToWasm0(schema_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
349
|
+
const len0 = WASM_VECTOR_LEN;
|
|
350
|
+
const ret = wasm.wasmruntime___debugSeedLiveSchema(this.__wbg_ptr, ptr0, len0);
|
|
351
|
+
if (ret[1]) {
|
|
352
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
332
355
|
/**
|
|
333
356
|
* Add a client connection (for server-side use in tests).
|
|
334
357
|
* @returns {string}
|
|
@@ -351,9 +374,36 @@ export class WasmRuntime {
|
|
|
351
374
|
* After adding the server, immediately flushes the outbox so that
|
|
352
375
|
* catalogue sync messages (from queue_full_sync_to_server) are sent
|
|
353
376
|
* before the call returns, rather than being deferred to a microtask.
|
|
377
|
+
* @param {string | null} [server_catalogue_state_hash]
|
|
354
378
|
*/
|
|
355
|
-
addServer() {
|
|
356
|
-
wasm.
|
|
379
|
+
addServer(server_catalogue_state_hash) {
|
|
380
|
+
var ptr0 = isLikeNone(server_catalogue_state_hash) ? 0 : passStringToWasm0(server_catalogue_state_hash, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
381
|
+
var len0 = WASM_VECTOR_LEN;
|
|
382
|
+
wasm.wasmruntime_addServer(this.__wbg_ptr, ptr0, len0);
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Phase 1 of 2-phase subscribe: allocate a handle and store query params.
|
|
386
|
+
* No compilation, no sync, no tick — just bookkeeping.
|
|
387
|
+
* @param {string} query_json
|
|
388
|
+
* @param {string | null} [session_json]
|
|
389
|
+
* @param {string | null} [settled_tier]
|
|
390
|
+
* @param {string | null} [options_json]
|
|
391
|
+
* @returns {number}
|
|
392
|
+
*/
|
|
393
|
+
createSubscription(query_json, session_json, settled_tier, options_json) {
|
|
394
|
+
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
395
|
+
const len0 = WASM_VECTOR_LEN;
|
|
396
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
|
+
var len1 = WASM_VECTOR_LEN;
|
|
398
|
+
var ptr2 = isLikeNone(settled_tier) ? 0 : passStringToWasm0(settled_tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
399
|
+
var len2 = WASM_VECTOR_LEN;
|
|
400
|
+
var ptr3 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
401
|
+
var len3 = WASM_VECTOR_LEN;
|
|
402
|
+
const ret = wasm.wasmruntime_createSubscription(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
403
|
+
if (ret[2]) {
|
|
404
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
405
|
+
}
|
|
406
|
+
return ret[0];
|
|
357
407
|
}
|
|
358
408
|
/**
|
|
359
409
|
* Delete a row by ObjectId.
|
|
@@ -373,17 +423,67 @@ export class WasmRuntime {
|
|
|
373
423
|
* @param {string} tier
|
|
374
424
|
* @returns {Promise<any>}
|
|
375
425
|
*/
|
|
376
|
-
|
|
426
|
+
deleteDurable(object_id, tier) {
|
|
377
427
|
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
378
428
|
const len0 = WASM_VECTOR_LEN;
|
|
379
429
|
const ptr1 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
380
430
|
const len1 = WASM_VECTOR_LEN;
|
|
381
|
-
const ret = wasm.
|
|
431
|
+
const ret = wasm.wasmruntime_deleteDurable(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
432
|
+
if (ret[2]) {
|
|
433
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
434
|
+
}
|
|
435
|
+
return takeFromExternrefTable0(ret[0]);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Delete a row and return a Promise that resolves when the tier acks,
|
|
439
|
+
* scoped to an explicit session principal.
|
|
440
|
+
* @param {string} object_id
|
|
441
|
+
* @param {string | null | undefined} session_json
|
|
442
|
+
* @param {string} tier
|
|
443
|
+
* @returns {Promise<any>}
|
|
444
|
+
*/
|
|
445
|
+
deleteDurableWithSession(object_id, session_json, tier) {
|
|
446
|
+
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
447
|
+
const len0 = WASM_VECTOR_LEN;
|
|
448
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
449
|
+
var len1 = WASM_VECTOR_LEN;
|
|
450
|
+
const ptr2 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
451
|
+
const len2 = WASM_VECTOR_LEN;
|
|
452
|
+
const ret = wasm.wasmruntime_deleteDurableWithSession(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
382
453
|
if (ret[2]) {
|
|
383
454
|
throw takeFromExternrefTable0(ret[1]);
|
|
384
455
|
}
|
|
385
456
|
return takeFromExternrefTable0(ret[0]);
|
|
386
457
|
}
|
|
458
|
+
/**
|
|
459
|
+
* Delete a row by ObjectId as an explicit session principal.
|
|
460
|
+
* @param {string} object_id
|
|
461
|
+
* @param {string | null} [session_json]
|
|
462
|
+
*/
|
|
463
|
+
deleteWithSession(object_id, session_json) {
|
|
464
|
+
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
465
|
+
const len0 = WASM_VECTOR_LEN;
|
|
466
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
467
|
+
var len1 = WASM_VECTOR_LEN;
|
|
468
|
+
const ret = wasm.wasmruntime_deleteWithSession(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
469
|
+
if (ret[1]) {
|
|
470
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
/**
|
|
474
|
+
* Phase 2 of 2-phase subscribe: compile graph, register subscription,
|
|
475
|
+
* sync to servers, attach callback, and deliver the first delta.
|
|
476
|
+
*
|
|
477
|
+
* No-ops silently if the handle was already unsubscribed.
|
|
478
|
+
* @param {number} handle
|
|
479
|
+
* @param {Function} on_update
|
|
480
|
+
*/
|
|
481
|
+
executeSubscription(handle, on_update) {
|
|
482
|
+
const ret = wasm.wasmruntime_executeSubscription(this.__wbg_ptr, handle, on_update);
|
|
483
|
+
if (ret[1]) {
|
|
484
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
485
|
+
}
|
|
486
|
+
}
|
|
387
487
|
/**
|
|
388
488
|
* Flush all data to persistent storage (snapshot).
|
|
389
489
|
*/
|
|
@@ -427,46 +527,75 @@ export class WasmRuntime {
|
|
|
427
527
|
* Insert a row into a table.
|
|
428
528
|
*
|
|
429
529
|
* # Returns
|
|
430
|
-
* The
|
|
530
|
+
* The inserted row as `{ id, values }`.
|
|
431
531
|
* @param {string} table
|
|
432
532
|
* @param {any} values
|
|
433
|
-
* @returns {
|
|
533
|
+
* @returns {any}
|
|
434
534
|
*/
|
|
435
535
|
insert(table, values) {
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
const ret = wasm.wasmruntime_insert(this.__wbg_ptr, ptr0, len0, values);
|
|
442
|
-
var ptr2 = ret[0];
|
|
443
|
-
var len2 = ret[1];
|
|
444
|
-
if (ret[3]) {
|
|
445
|
-
ptr2 = 0; len2 = 0;
|
|
446
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
447
|
-
}
|
|
448
|
-
deferred3_0 = ptr2;
|
|
449
|
-
deferred3_1 = len2;
|
|
450
|
-
return getStringFromWasm0(ptr2, len2);
|
|
451
|
-
} finally {
|
|
452
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
536
|
+
const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
537
|
+
const len0 = WASM_VECTOR_LEN;
|
|
538
|
+
const ret = wasm.wasmruntime_insert(this.__wbg_ptr, ptr0, len0, values);
|
|
539
|
+
if (ret[2]) {
|
|
540
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
453
541
|
}
|
|
542
|
+
return takeFromExternrefTable0(ret[0]);
|
|
454
543
|
}
|
|
455
544
|
/**
|
|
456
545
|
* Insert a row and return a Promise that resolves when the tier acks.
|
|
457
546
|
*
|
|
458
|
-
* `tier` must be one of: "worker", "edge", "
|
|
547
|
+
* `tier` must be one of: "worker", "edge", "global".
|
|
459
548
|
* @param {string} table
|
|
460
549
|
* @param {any} values
|
|
461
550
|
* @param {string} tier
|
|
462
551
|
* @returns {Promise<any>}
|
|
463
552
|
*/
|
|
464
|
-
|
|
553
|
+
insertDurable(table, values, tier) {
|
|
465
554
|
const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
466
555
|
const len0 = WASM_VECTOR_LEN;
|
|
467
556
|
const ptr1 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
468
557
|
const len1 = WASM_VECTOR_LEN;
|
|
469
|
-
const ret = wasm.
|
|
558
|
+
const ret = wasm.wasmruntime_insertDurable(this.__wbg_ptr, ptr0, len0, values, ptr1, len1);
|
|
559
|
+
if (ret[2]) {
|
|
560
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
561
|
+
}
|
|
562
|
+
return takeFromExternrefTable0(ret[0]);
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* Insert a row and return a Promise that resolves when the tier acks,
|
|
566
|
+
* scoped to an explicit session principal.
|
|
567
|
+
* @param {string} table
|
|
568
|
+
* @param {any} values
|
|
569
|
+
* @param {string | null | undefined} session_json
|
|
570
|
+
* @param {string} tier
|
|
571
|
+
* @returns {Promise<any>}
|
|
572
|
+
*/
|
|
573
|
+
insertDurableWithSession(table, values, session_json, tier) {
|
|
574
|
+
const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
575
|
+
const len0 = WASM_VECTOR_LEN;
|
|
576
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
577
|
+
var len1 = WASM_VECTOR_LEN;
|
|
578
|
+
const ptr2 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
579
|
+
const len2 = WASM_VECTOR_LEN;
|
|
580
|
+
const ret = wasm.wasmruntime_insertDurableWithSession(this.__wbg_ptr, ptr0, len0, values, ptr1, len1, ptr2, len2);
|
|
581
|
+
if (ret[2]) {
|
|
582
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
583
|
+
}
|
|
584
|
+
return takeFromExternrefTable0(ret[0]);
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* Insert a row into a table as an explicit session principal.
|
|
588
|
+
* @param {string} table
|
|
589
|
+
* @param {any} values
|
|
590
|
+
* @param {string | null} [session_json]
|
|
591
|
+
* @returns {any}
|
|
592
|
+
*/
|
|
593
|
+
insertWithSession(table, values, session_json) {
|
|
594
|
+
const ptr0 = passStringToWasm0(table, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
595
|
+
const len0 = WASM_VECTOR_LEN;
|
|
596
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
597
|
+
var len1 = WASM_VECTOR_LEN;
|
|
598
|
+
const ret = wasm.wasmruntime_insertWithSession(this.__wbg_ptr, ptr0, len0, values, ptr1, len1);
|
|
470
599
|
if (ret[2]) {
|
|
471
600
|
throw takeFromExternrefTable0(ret[1]);
|
|
472
601
|
}
|
|
@@ -482,15 +611,18 @@ export class WasmRuntime {
|
|
|
482
611
|
* * `app_id` - Application identifier
|
|
483
612
|
* * `env` - Environment (e.g., "dev", "prod")
|
|
484
613
|
* * `user_branch` - User's branch name (e.g., "main")
|
|
485
|
-
* * `tier` - Optional
|
|
614
|
+
* * `tier` - Optional node durability tier ("worker", "edge", "global").
|
|
486
615
|
* Set for server nodes to enable ack emission.
|
|
616
|
+
* * `use_binary_encoding` - Optional outgoing sync payload encoding mode.
|
|
617
|
+
* `Some(true)` emits postcard bytes (`Uint8Array`), otherwise JSON strings.
|
|
487
618
|
* @param {string} schema_json
|
|
488
619
|
* @param {string} app_id
|
|
489
620
|
* @param {string} env
|
|
490
621
|
* @param {string} user_branch
|
|
491
622
|
* @param {string | null} [tier]
|
|
623
|
+
* @param {boolean | null} [use_binary_encoding]
|
|
492
624
|
*/
|
|
493
|
-
constructor(schema_json, app_id, env, user_branch, tier) {
|
|
625
|
+
constructor(schema_json, app_id, env, user_branch, tier, use_binary_encoding) {
|
|
494
626
|
const ptr0 = passStringToWasm0(schema_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
495
627
|
const len0 = WASM_VECTOR_LEN;
|
|
496
628
|
const ptr1 = passStringToWasm0(app_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -501,7 +633,7 @@ export class WasmRuntime {
|
|
|
501
633
|
const len3 = WASM_VECTOR_LEN;
|
|
502
634
|
var ptr4 = isLikeNone(tier) ? 0 : passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
503
635
|
var len4 = WASM_VECTOR_LEN;
|
|
504
|
-
const ret = wasm.wasmruntime_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
636
|
+
const ret = wasm.wasmruntime_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, isLikeNone(use_binary_encoding) ? 0xFFFFFF : use_binary_encoding ? 1 : 0);
|
|
505
637
|
if (ret[2]) {
|
|
506
638
|
throw takeFromExternrefTable0(ret[1]);
|
|
507
639
|
}
|
|
@@ -513,13 +645,12 @@ export class WasmRuntime {
|
|
|
513
645
|
* Called by JS when a sync message arrives from the server.
|
|
514
646
|
*
|
|
515
647
|
* # Arguments
|
|
516
|
-
* * `
|
|
517
|
-
*
|
|
648
|
+
* * `payload` - Either postcard-encoded SyncPayload bytes (`Uint8Array`)
|
|
649
|
+
* or JSON-encoded SyncPayload (`string`)
|
|
650
|
+
* @param {any} payload
|
|
518
651
|
*/
|
|
519
|
-
onSyncMessageReceived(
|
|
520
|
-
const
|
|
521
|
-
const len0 = WASM_VECTOR_LEN;
|
|
522
|
-
const ret = wasm.wasmruntime_onSyncMessageReceived(this.__wbg_ptr, ptr0, len0);
|
|
652
|
+
onSyncMessageReceived(payload) {
|
|
653
|
+
const ret = wasm.wasmruntime_onSyncMessageReceived(this.__wbg_ptr, payload);
|
|
523
654
|
if (ret[1]) {
|
|
524
655
|
throw takeFromExternrefTable0(ret[0]);
|
|
525
656
|
}
|
|
@@ -529,16 +660,14 @@ export class WasmRuntime {
|
|
|
529
660
|
*
|
|
530
661
|
* # Arguments
|
|
531
662
|
* * `client_id` - UUID string of the sending client
|
|
532
|
-
* * `
|
|
663
|
+
* * `payload` - Postcard-encoded SyncPayload bytes
|
|
533
664
|
* @param {string} client_id
|
|
534
|
-
* @param {
|
|
665
|
+
* @param {any} payload
|
|
535
666
|
*/
|
|
536
|
-
onSyncMessageReceivedFromClient(client_id,
|
|
667
|
+
onSyncMessageReceivedFromClient(client_id, payload) {
|
|
537
668
|
const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
538
669
|
const len0 = WASM_VECTOR_LEN;
|
|
539
|
-
const
|
|
540
|
-
const len1 = WASM_VECTOR_LEN;
|
|
541
|
-
const ret = wasm.wasmruntime_onSyncMessageReceivedFromClient(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
670
|
+
const ret = wasm.wasmruntime_onSyncMessageReceivedFromClient(this.__wbg_ptr, ptr0, len0, payload);
|
|
542
671
|
if (ret[1]) {
|
|
543
672
|
throw takeFromExternrefTable0(ret[0]);
|
|
544
673
|
}
|
|
@@ -560,10 +689,11 @@ export class WasmRuntime {
|
|
|
560
689
|
* @param {string} env
|
|
561
690
|
* @param {string} user_branch
|
|
562
691
|
* @param {string} db_name
|
|
563
|
-
* @param {string | null}
|
|
692
|
+
* @param {string | null | undefined} tier
|
|
693
|
+
* @param {boolean} use_binary_encoding
|
|
564
694
|
* @returns {Promise<WasmRuntime>}
|
|
565
695
|
*/
|
|
566
|
-
static openPersistent(schema_json, app_id, env, user_branch, db_name, tier) {
|
|
696
|
+
static openPersistent(schema_json, app_id, env, user_branch, db_name, tier, use_binary_encoding) {
|
|
567
697
|
const ptr0 = passStringToWasm0(schema_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
568
698
|
const len0 = WASM_VECTOR_LEN;
|
|
569
699
|
const ptr1 = passStringToWasm0(app_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -576,26 +706,29 @@ export class WasmRuntime {
|
|
|
576
706
|
const len4 = WASM_VECTOR_LEN;
|
|
577
707
|
var ptr5 = isLikeNone(tier) ? 0 : passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
578
708
|
var len5 = WASM_VECTOR_LEN;
|
|
579
|
-
const ret = wasm.wasmruntime_openPersistent(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5);
|
|
709
|
+
const ret = wasm.wasmruntime_openPersistent(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4, ptr5, len5, use_binary_encoding);
|
|
580
710
|
return ret;
|
|
581
711
|
}
|
|
582
712
|
/**
|
|
583
713
|
* Execute a query and return results as a Promise.
|
|
584
714
|
*
|
|
585
|
-
* Optional
|
|
715
|
+
* Optional durability tier controls remote settlement behavior.
|
|
586
716
|
* @param {string} query_json
|
|
587
717
|
* @param {string | null} [session_json]
|
|
588
718
|
* @param {string | null} [settled_tier]
|
|
719
|
+
* @param {string | null} [options_json]
|
|
589
720
|
* @returns {Promise<any>}
|
|
590
721
|
*/
|
|
591
|
-
query(query_json, session_json, settled_tier) {
|
|
722
|
+
query(query_json, session_json, settled_tier, options_json) {
|
|
592
723
|
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
593
724
|
const len0 = WASM_VECTOR_LEN;
|
|
594
725
|
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
595
726
|
var len1 = WASM_VECTOR_LEN;
|
|
596
727
|
var ptr2 = isLikeNone(settled_tier) ? 0 : passStringToWasm0(settled_tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
597
728
|
var len2 = WASM_VECTOR_LEN;
|
|
598
|
-
|
|
729
|
+
var ptr3 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
730
|
+
var len3 = WASM_VECTOR_LEN;
|
|
731
|
+
const ret = wasm.wasmruntime_query(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
599
732
|
if (ret[2]) {
|
|
600
733
|
throw takeFromExternrefTable0(ret[1]);
|
|
601
734
|
}
|
|
@@ -633,7 +766,7 @@ export class WasmRuntime {
|
|
|
633
766
|
* - with upstream server: first callback waits for protocol QuerySettled convergence
|
|
634
767
|
* - without upstream server: first callback is local-immediate
|
|
635
768
|
*
|
|
636
|
-
* Pass
|
|
769
|
+
* Pass durability options to override this default.
|
|
637
770
|
*
|
|
638
771
|
* # Returns
|
|
639
772
|
* Subscription handle (f64) for later unsubscription.
|
|
@@ -641,16 +774,19 @@ export class WasmRuntime {
|
|
|
641
774
|
* @param {Function} on_update
|
|
642
775
|
* @param {string | null} [session_json]
|
|
643
776
|
* @param {string | null} [settled_tier]
|
|
777
|
+
* @param {string | null} [options_json]
|
|
644
778
|
* @returns {number}
|
|
645
779
|
*/
|
|
646
|
-
subscribe(query_json, on_update, session_json, settled_tier) {
|
|
780
|
+
subscribe(query_json, on_update, session_json, settled_tier, options_json) {
|
|
647
781
|
const ptr0 = passStringToWasm0(query_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
648
782
|
const len0 = WASM_VECTOR_LEN;
|
|
649
783
|
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
650
784
|
var len1 = WASM_VECTOR_LEN;
|
|
651
785
|
var ptr2 = isLikeNone(settled_tier) ? 0 : passStringToWasm0(settled_tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
652
786
|
var len2 = WASM_VECTOR_LEN;
|
|
653
|
-
|
|
787
|
+
var ptr3 = isLikeNone(options_json) ? 0 : passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
788
|
+
var len3 = WASM_VECTOR_LEN;
|
|
789
|
+
const ret = wasm.wasmruntime_subscribe(this.__wbg_ptr, ptr0, len0, on_update, ptr1, len1, ptr2, len2, ptr3, len3);
|
|
654
790
|
if (ret[2]) {
|
|
655
791
|
throw takeFromExternrefTable0(ret[1]);
|
|
656
792
|
}
|
|
@@ -683,17 +819,60 @@ export class WasmRuntime {
|
|
|
683
819
|
* @param {string} tier
|
|
684
820
|
* @returns {Promise<any>}
|
|
685
821
|
*/
|
|
686
|
-
|
|
822
|
+
updateDurable(object_id, values, tier) {
|
|
687
823
|
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
824
|
const len0 = WASM_VECTOR_LEN;
|
|
689
825
|
const ptr1 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
690
826
|
const len1 = WASM_VECTOR_LEN;
|
|
691
|
-
const ret = wasm.
|
|
827
|
+
const ret = wasm.wasmruntime_updateDurable(this.__wbg_ptr, ptr0, len0, values, ptr1, len1);
|
|
828
|
+
if (ret[2]) {
|
|
829
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
830
|
+
}
|
|
831
|
+
return takeFromExternrefTable0(ret[0]);
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Update a row and return a Promise that resolves when the tier acks,
|
|
835
|
+
* scoped to an explicit session principal.
|
|
836
|
+
* @param {string} object_id
|
|
837
|
+
* @param {any} values
|
|
838
|
+
* @param {string | null | undefined} session_json
|
|
839
|
+
* @param {string} tier
|
|
840
|
+
* @returns {Promise<any>}
|
|
841
|
+
*/
|
|
842
|
+
updateDurableWithSession(object_id, values, session_json, tier) {
|
|
843
|
+
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
844
|
+
const len0 = WASM_VECTOR_LEN;
|
|
845
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
846
|
+
var len1 = WASM_VECTOR_LEN;
|
|
847
|
+
const ptr2 = passStringToWasm0(tier, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
848
|
+
const len2 = WASM_VECTOR_LEN;
|
|
849
|
+
const ret = wasm.wasmruntime_updateDurableWithSession(this.__wbg_ptr, ptr0, len0, values, ptr1, len1, ptr2, len2);
|
|
692
850
|
if (ret[2]) {
|
|
693
851
|
throw takeFromExternrefTable0(ret[1]);
|
|
694
852
|
}
|
|
695
853
|
return takeFromExternrefTable0(ret[0]);
|
|
696
854
|
}
|
|
855
|
+
/**
|
|
856
|
+
* Update a row by ObjectId as an explicit session principal.
|
|
857
|
+
*
|
|
858
|
+
* # Arguments
|
|
859
|
+
* * `object_id` - UUID string of target object
|
|
860
|
+
* * `values` - Partial update map (`{ columnName: Value }`)
|
|
861
|
+
* * `session_json` - Optional JSON-encoded Session used for policy checks
|
|
862
|
+
* @param {string} object_id
|
|
863
|
+
* @param {any} values
|
|
864
|
+
* @param {string | null} [session_json]
|
|
865
|
+
*/
|
|
866
|
+
updateWithSession(object_id, values, session_json) {
|
|
867
|
+
const ptr0 = passStringToWasm0(object_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
868
|
+
const len0 = WASM_VECTOR_LEN;
|
|
869
|
+
var ptr1 = isLikeNone(session_json) ? 0 : passStringToWasm0(session_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
870
|
+
var len1 = WASM_VECTOR_LEN;
|
|
871
|
+
const ret = wasm.wasmruntime_updateWithSession(this.__wbg_ptr, ptr0, len0, values, ptr1, len1);
|
|
872
|
+
if (ret[1]) {
|
|
873
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
874
|
+
}
|
|
875
|
+
}
|
|
697
876
|
}
|
|
698
877
|
if (Symbol.dispose) WasmRuntime.prototype[Symbol.dispose] = WasmRuntime.prototype.free;
|
|
699
878
|
|
|
@@ -951,83 +1130,83 @@ export function parseSchema(json) {
|
|
|
951
1130
|
function __wbg_get_imports() {
|
|
952
1131
|
const import0 = {
|
|
953
1132
|
__proto__: null,
|
|
954
|
-
|
|
1133
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
955
1134
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
956
1135
|
return ret;
|
|
957
1136
|
},
|
|
958
|
-
|
|
1137
|
+
__wbg_Number_a5a435bd7bbec835: function(arg0) {
|
|
959
1138
|
const ret = Number(arg0);
|
|
960
1139
|
return ret;
|
|
961
1140
|
},
|
|
962
|
-
|
|
1141
|
+
__wbg_String_8564e559799eccda: function(arg0, arg1) {
|
|
963
1142
|
const ret = String(arg1);
|
|
964
1143
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
965
1144
|
const len1 = WASM_VECTOR_LEN;
|
|
966
1145
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
967
1146
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
968
1147
|
},
|
|
969
|
-
|
|
1148
|
+
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
970
1149
|
const v = arg1;
|
|
971
1150
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
972
1151
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
973
1152
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
974
1153
|
},
|
|
975
|
-
|
|
1154
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
976
1155
|
const v = arg0;
|
|
977
1156
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
978
1157
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
979
1158
|
},
|
|
980
|
-
|
|
1159
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
981
1160
|
const ret = debugString(arg1);
|
|
982
1161
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
983
1162
|
const len1 = WASM_VECTOR_LEN;
|
|
984
1163
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
985
1164
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
986
1165
|
},
|
|
987
|
-
|
|
1166
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
988
1167
|
const ret = arg0 in arg1;
|
|
989
1168
|
return ret;
|
|
990
1169
|
},
|
|
991
|
-
|
|
1170
|
+
__wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
|
|
992
1171
|
const ret = typeof(arg0) === 'bigint';
|
|
993
1172
|
return ret;
|
|
994
1173
|
},
|
|
995
|
-
|
|
1174
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
996
1175
|
const ret = typeof(arg0) === 'function';
|
|
997
1176
|
return ret;
|
|
998
1177
|
},
|
|
999
|
-
|
|
1178
|
+
__wbg___wbindgen_is_null_0b605fc6b167c56f: function(arg0) {
|
|
1000
1179
|
const ret = arg0 === null;
|
|
1001
1180
|
return ret;
|
|
1002
1181
|
},
|
|
1003
|
-
|
|
1182
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
1004
1183
|
const val = arg0;
|
|
1005
1184
|
const ret = typeof(val) === 'object' && val !== null;
|
|
1006
1185
|
return ret;
|
|
1007
1186
|
},
|
|
1008
|
-
|
|
1187
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
1009
1188
|
const ret = typeof(arg0) === 'string';
|
|
1010
1189
|
return ret;
|
|
1011
1190
|
},
|
|
1012
|
-
|
|
1191
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
1013
1192
|
const ret = arg0 === undefined;
|
|
1014
1193
|
return ret;
|
|
1015
1194
|
},
|
|
1016
|
-
|
|
1195
|
+
__wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
|
|
1017
1196
|
const ret = arg0 === arg1;
|
|
1018
1197
|
return ret;
|
|
1019
1198
|
},
|
|
1020
|
-
|
|
1199
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
1021
1200
|
const ret = arg0 == arg1;
|
|
1022
1201
|
return ret;
|
|
1023
1202
|
},
|
|
1024
|
-
|
|
1203
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
1025
1204
|
const obj = arg1;
|
|
1026
1205
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1027
1206
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1028
1207
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1029
1208
|
},
|
|
1030
|
-
|
|
1209
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
1031
1210
|
const obj = arg1;
|
|
1032
1211
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1033
1212
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -1035,32 +1214,36 @@ function __wbg_get_imports() {
|
|
|
1035
1214
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1036
1215
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1037
1216
|
},
|
|
1038
|
-
|
|
1217
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
1039
1218
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1040
1219
|
},
|
|
1041
|
-
|
|
1220
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
1042
1221
|
arg0._wbg_cb_unref();
|
|
1043
1222
|
},
|
|
1044
|
-
|
|
1045
|
-
const ret = arg0.call(arg1);
|
|
1223
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1224
|
+
const ret = arg0.call(arg1, arg2);
|
|
1046
1225
|
return ret;
|
|
1047
1226
|
}, arguments); },
|
|
1048
|
-
|
|
1049
|
-
const ret = arg0.call(arg1, arg2);
|
|
1227
|
+
__wbg_call_89797ac1adb21543: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
1228
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
|
|
1050
1229
|
return ret;
|
|
1051
1230
|
}, arguments); },
|
|
1052
|
-
|
|
1231
|
+
__wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1053
1232
|
const ret = arg0.call(arg1, arg2, arg3);
|
|
1054
1233
|
return ret;
|
|
1055
1234
|
}, arguments); },
|
|
1056
|
-
|
|
1235
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
1236
|
+
const ret = arg0.call(arg1);
|
|
1237
|
+
return ret;
|
|
1238
|
+
}, arguments); },
|
|
1239
|
+
__wbg_close_bea86eef0f71dd9b: function(arg0) {
|
|
1057
1240
|
arg0.close();
|
|
1058
1241
|
},
|
|
1059
|
-
|
|
1242
|
+
__wbg_createSyncAccessHandle_b7143219a305a2ce: function(arg0) {
|
|
1060
1243
|
const ret = arg0.createSyncAccessHandle();
|
|
1061
1244
|
return ret;
|
|
1062
1245
|
},
|
|
1063
|
-
|
|
1246
|
+
__wbg_debug_32973ac940f2ca14: function(arg0, arg1) {
|
|
1064
1247
|
let deferred0_0;
|
|
1065
1248
|
let deferred0_1;
|
|
1066
1249
|
try {
|
|
@@ -1071,7 +1254,7 @@ function __wbg_get_imports() {
|
|
|
1071
1254
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1072
1255
|
}
|
|
1073
1256
|
},
|
|
1074
|
-
|
|
1257
|
+
__wbg_debug_982454fce39f6582: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1075
1258
|
let deferred0_0;
|
|
1076
1259
|
let deferred0_1;
|
|
1077
1260
|
try {
|
|
@@ -1082,15 +1265,15 @@ function __wbg_get_imports() {
|
|
|
1082
1265
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1083
1266
|
}
|
|
1084
1267
|
},
|
|
1085
|
-
|
|
1268
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
1086
1269
|
const ret = arg0.done;
|
|
1087
1270
|
return ret;
|
|
1088
1271
|
},
|
|
1089
|
-
|
|
1272
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
1090
1273
|
const ret = Object.entries(arg0);
|
|
1091
1274
|
return ret;
|
|
1092
1275
|
},
|
|
1093
|
-
|
|
1276
|
+
__wbg_error_1fd0a521bc586cb5: function(arg0, arg1) {
|
|
1094
1277
|
let deferred0_0;
|
|
1095
1278
|
let deferred0_1;
|
|
1096
1279
|
try {
|
|
@@ -1101,62 +1284,70 @@ function __wbg_get_imports() {
|
|
|
1101
1284
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1102
1285
|
}
|
|
1103
1286
|
},
|
|
1104
|
-
|
|
1287
|
+
__wbg_error_87093280954deb60: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1105
1288
|
let deferred0_0;
|
|
1106
1289
|
let deferred0_1;
|
|
1107
1290
|
try {
|
|
1108
1291
|
deferred0_0 = arg0;
|
|
1109
1292
|
deferred0_1 = arg1;
|
|
1110
|
-
console.error(getStringFromWasm0(arg0, arg1));
|
|
1293
|
+
console.error(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
1111
1294
|
} finally {
|
|
1112
1295
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1113
1296
|
}
|
|
1114
1297
|
},
|
|
1115
|
-
|
|
1298
|
+
__wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
|
|
1116
1299
|
let deferred0_0;
|
|
1117
1300
|
let deferred0_1;
|
|
1118
1301
|
try {
|
|
1119
1302
|
deferred0_0 = arg0;
|
|
1120
1303
|
deferred0_1 = arg1;
|
|
1121
|
-
console.error(getStringFromWasm0(arg0, arg1)
|
|
1304
|
+
console.error(getStringFromWasm0(arg0, arg1));
|
|
1122
1305
|
} finally {
|
|
1123
1306
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1124
1307
|
}
|
|
1125
1308
|
},
|
|
1126
|
-
|
|
1309
|
+
__wbg_flush_1eca046e0ff7c399: function() { return handleError(function (arg0) {
|
|
1127
1310
|
arg0.flush();
|
|
1128
1311
|
}, arguments); },
|
|
1129
|
-
|
|
1312
|
+
__wbg_getDirectory_2406d369de179ff0: function(arg0) {
|
|
1130
1313
|
const ret = arg0.getDirectory();
|
|
1131
1314
|
return ret;
|
|
1132
1315
|
},
|
|
1133
|
-
|
|
1316
|
+
__wbg_getFileHandle_b85805519dc63efa: function(arg0, arg1, arg2, arg3) {
|
|
1134
1317
|
const ret = arg0.getFileHandle(getStringFromWasm0(arg1, arg2), arg3);
|
|
1135
1318
|
return ret;
|
|
1136
1319
|
},
|
|
1137
|
-
|
|
1320
|
+
__wbg_getRandomValues_3f44b700395062e5: function() { return handleError(function (arg0, arg1) {
|
|
1138
1321
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1139
1322
|
}, arguments); },
|
|
1140
|
-
|
|
1323
|
+
__wbg_getRandomValues_a1cf2e70b003a59d: function() { return handleError(function (arg0, arg1) {
|
|
1141
1324
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1142
1325
|
}, arguments); },
|
|
1143
|
-
|
|
1326
|
+
__wbg_getSize_0a16c5e2524d34aa: function() { return handleError(function (arg0) {
|
|
1144
1327
|
const ret = arg0.getSize();
|
|
1145
1328
|
return ret;
|
|
1146
1329
|
}, arguments); },
|
|
1147
|
-
|
|
1148
|
-
const ret = arg0
|
|
1330
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
1331
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1149
1332
|
return ret;
|
|
1150
|
-
},
|
|
1151
|
-
|
|
1333
|
+
}, arguments); },
|
|
1334
|
+
__wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
|
|
1152
1335
|
const ret = Reflect.get(arg0, arg1);
|
|
1153
1336
|
return ret;
|
|
1154
1337
|
}, arguments); },
|
|
1155
|
-
|
|
1338
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
1339
|
+
const ret = arg0[arg1 >>> 0];
|
|
1340
|
+
return ret;
|
|
1341
|
+
},
|
|
1342
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
1343
|
+
const ret = arg0[arg1 >>> 0];
|
|
1344
|
+
return ret;
|
|
1345
|
+
},
|
|
1346
|
+
__wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
|
|
1156
1347
|
const ret = arg0[arg1];
|
|
1157
1348
|
return ret;
|
|
1158
1349
|
},
|
|
1159
|
-
|
|
1350
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
1160
1351
|
let result;
|
|
1161
1352
|
try {
|
|
1162
1353
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -1166,7 +1357,7 @@ function __wbg_get_imports() {
|
|
|
1166
1357
|
const ret = result;
|
|
1167
1358
|
return ret;
|
|
1168
1359
|
},
|
|
1169
|
-
|
|
1360
|
+
__wbg_instanceof_FileSystemDirectoryHandle_2944d0641b4ea10c: function(arg0) {
|
|
1170
1361
|
let result;
|
|
1171
1362
|
try {
|
|
1172
1363
|
result = arg0 instanceof FileSystemDirectoryHandle;
|
|
@@ -1176,7 +1367,7 @@ function __wbg_get_imports() {
|
|
|
1176
1367
|
const ret = result;
|
|
1177
1368
|
return ret;
|
|
1178
1369
|
},
|
|
1179
|
-
|
|
1370
|
+
__wbg_instanceof_FileSystemFileHandle_37ac45c6adcff28f: function(arg0) {
|
|
1180
1371
|
let result;
|
|
1181
1372
|
try {
|
|
1182
1373
|
result = arg0 instanceof FileSystemFileHandle;
|
|
@@ -1186,7 +1377,7 @@ function __wbg_get_imports() {
|
|
|
1186
1377
|
const ret = result;
|
|
1187
1378
|
return ret;
|
|
1188
1379
|
},
|
|
1189
|
-
|
|
1380
|
+
__wbg_instanceof_FileSystemSyncAccessHandle_dc45d7dabb2f5ad9: function(arg0) {
|
|
1190
1381
|
let result;
|
|
1191
1382
|
try {
|
|
1192
1383
|
result = arg0 instanceof FileSystemSyncAccessHandle;
|
|
@@ -1196,7 +1387,7 @@ function __wbg_get_imports() {
|
|
|
1196
1387
|
const ret = result;
|
|
1197
1388
|
return ret;
|
|
1198
1389
|
},
|
|
1199
|
-
|
|
1390
|
+
__wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
|
|
1200
1391
|
let result;
|
|
1201
1392
|
try {
|
|
1202
1393
|
result = arg0 instanceof Map;
|
|
@@ -1206,7 +1397,7 @@ function __wbg_get_imports() {
|
|
|
1206
1397
|
const ret = result;
|
|
1207
1398
|
return ret;
|
|
1208
1399
|
},
|
|
1209
|
-
|
|
1400
|
+
__wbg_instanceof_Promise_7c3bdd7805c2c6e6: function(arg0) {
|
|
1210
1401
|
let result;
|
|
1211
1402
|
try {
|
|
1212
1403
|
result = arg0 instanceof Promise;
|
|
@@ -1216,7 +1407,7 @@ function __wbg_get_imports() {
|
|
|
1216
1407
|
const ret = result;
|
|
1217
1408
|
return ret;
|
|
1218
1409
|
},
|
|
1219
|
-
|
|
1410
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
1220
1411
|
let result;
|
|
1221
1412
|
try {
|
|
1222
1413
|
result = arg0 instanceof Uint8Array;
|
|
@@ -1226,7 +1417,7 @@ function __wbg_get_imports() {
|
|
|
1226
1417
|
const ret = result;
|
|
1227
1418
|
return ret;
|
|
1228
1419
|
},
|
|
1229
|
-
|
|
1420
|
+
__wbg_instanceof_WorkerGlobalScope_de6976d00cb213c6: function(arg0) {
|
|
1230
1421
|
let result;
|
|
1231
1422
|
try {
|
|
1232
1423
|
result = arg0 instanceof WorkerGlobalScope;
|
|
@@ -1236,27 +1427,27 @@ function __wbg_get_imports() {
|
|
|
1236
1427
|
const ret = result;
|
|
1237
1428
|
return ret;
|
|
1238
1429
|
},
|
|
1239
|
-
|
|
1430
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
1240
1431
|
const ret = Array.isArray(arg0);
|
|
1241
1432
|
return ret;
|
|
1242
1433
|
},
|
|
1243
|
-
|
|
1434
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
1244
1435
|
const ret = Number.isSafeInteger(arg0);
|
|
1245
1436
|
return ret;
|
|
1246
1437
|
},
|
|
1247
|
-
|
|
1438
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
1248
1439
|
const ret = Symbol.iterator;
|
|
1249
1440
|
return ret;
|
|
1250
1441
|
},
|
|
1251
|
-
|
|
1442
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
1252
1443
|
const ret = arg0.length;
|
|
1253
1444
|
return ret;
|
|
1254
1445
|
},
|
|
1255
|
-
|
|
1446
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
1256
1447
|
const ret = arg0.length;
|
|
1257
1448
|
return ret;
|
|
1258
1449
|
},
|
|
1259
|
-
|
|
1450
|
+
__wbg_log_6a8b55ee2e172f54: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1260
1451
|
let deferred0_0;
|
|
1261
1452
|
let deferred0_1;
|
|
1262
1453
|
try {
|
|
@@ -1267,7 +1458,7 @@ function __wbg_get_imports() {
|
|
|
1267
1458
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1268
1459
|
}
|
|
1269
1460
|
},
|
|
1270
|
-
|
|
1461
|
+
__wbg_log_a25c2a4d205f1618: function(arg0, arg1) {
|
|
1271
1462
|
let deferred0_0;
|
|
1272
1463
|
let deferred0_1;
|
|
1273
1464
|
try {
|
|
@@ -1278,10 +1469,10 @@ function __wbg_get_imports() {
|
|
|
1278
1469
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1279
1470
|
}
|
|
1280
1471
|
},
|
|
1281
|
-
|
|
1472
|
+
__wbg_mark_e4b209bb53de57a7: function(arg0, arg1) {
|
|
1282
1473
|
performance.mark(getStringFromWasm0(arg0, arg1));
|
|
1283
1474
|
},
|
|
1284
|
-
|
|
1475
|
+
__wbg_measure_0cab89f3addcdc37: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1285
1476
|
let deferred0_0;
|
|
1286
1477
|
let deferred0_1;
|
|
1287
1478
|
let deferred1_0;
|
|
@@ -1297,30 +1488,42 @@ function __wbg_get_imports() {
|
|
|
1297
1488
|
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
1298
1489
|
}
|
|
1299
1490
|
}, arguments); },
|
|
1300
|
-
|
|
1491
|
+
__wbg_navigator_583ffd4fc14c0f7a: function(arg0) {
|
|
1301
1492
|
const ret = arg0.navigator;
|
|
1302
1493
|
return ret;
|
|
1303
1494
|
},
|
|
1304
|
-
|
|
1305
|
-
const ret = new
|
|
1495
|
+
__wbg_new_227d7c05414eb861: function() {
|
|
1496
|
+
const ret = new Error();
|
|
1497
|
+
return ret;
|
|
1498
|
+
},
|
|
1499
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
1500
|
+
const ret = new Map();
|
|
1501
|
+
return ret;
|
|
1502
|
+
},
|
|
1503
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1504
|
+
const ret = new Uint8Array(arg0);
|
|
1306
1505
|
return ret;
|
|
1307
1506
|
},
|
|
1308
|
-
|
|
1507
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
1309
1508
|
const ret = new Array();
|
|
1310
1509
|
return ret;
|
|
1311
1510
|
},
|
|
1312
|
-
|
|
1313
|
-
const ret = new
|
|
1511
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
1512
|
+
const ret = new Object();
|
|
1314
1513
|
return ret;
|
|
1315
1514
|
},
|
|
1316
|
-
|
|
1515
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
1516
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1517
|
+
return ret;
|
|
1518
|
+
},
|
|
1519
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
1317
1520
|
try {
|
|
1318
1521
|
var state0 = {a: arg0, b: arg1};
|
|
1319
1522
|
var cb0 = (arg0, arg1) => {
|
|
1320
1523
|
const a = state0.a;
|
|
1321
1524
|
state0.a = 0;
|
|
1322
1525
|
try {
|
|
1323
|
-
return
|
|
1526
|
+
return wasm_bindgen__convert__closures_____invoke__h4abc8a55d4718cb4(a, state0.b, arg0, arg1);
|
|
1324
1527
|
} finally {
|
|
1325
1528
|
state0.a = a;
|
|
1326
1529
|
}
|
|
@@ -1331,133 +1534,121 @@ function __wbg_get_imports() {
|
|
|
1331
1534
|
state0.a = state0.b = 0;
|
|
1332
1535
|
}
|
|
1333
1536
|
},
|
|
1334
|
-
|
|
1335
|
-
const ret = new Map();
|
|
1336
|
-
return ret;
|
|
1337
|
-
},
|
|
1338
|
-
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
1339
|
-
const ret = new Uint8Array(arg0);
|
|
1340
|
-
return ret;
|
|
1341
|
-
},
|
|
1342
|
-
__wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
|
|
1343
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1344
|
-
return ret;
|
|
1345
|
-
},
|
|
1346
|
-
__wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
|
|
1537
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
1347
1538
|
const ret = arg0.next();
|
|
1348
1539
|
return ret;
|
|
1349
1540
|
}, arguments); },
|
|
1350
|
-
|
|
1541
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1351
1542
|
const ret = arg0.next;
|
|
1352
1543
|
return ret;
|
|
1353
1544
|
},
|
|
1354
|
-
|
|
1545
|
+
__wbg_now_16f0c993d5dd6c27: function() {
|
|
1355
1546
|
const ret = Date.now();
|
|
1356
1547
|
return ret;
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1548
|
+
},
|
|
1549
|
+
__wbg_now_ad1121946ba97ea0: function() { return handleError(function () {
|
|
1359
1550
|
const ret = Date.now();
|
|
1360
1551
|
return ret;
|
|
1361
|
-
},
|
|
1362
|
-
|
|
1552
|
+
}, arguments); },
|
|
1553
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
1363
1554
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1364
1555
|
},
|
|
1365
|
-
|
|
1556
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
1366
1557
|
const ret = arg0.queueMicrotask;
|
|
1367
1558
|
return ret;
|
|
1368
1559
|
},
|
|
1369
|
-
|
|
1560
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1370
1561
|
queueMicrotask(arg0);
|
|
1371
1562
|
},
|
|
1372
|
-
|
|
1563
|
+
__wbg_random_5bb86cae65a45bf6: function() {
|
|
1373
1564
|
const ret = Math.random();
|
|
1374
1565
|
return ret;
|
|
1375
1566
|
},
|
|
1376
|
-
|
|
1567
|
+
__wbg_read_0285869b4fd131af: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1377
1568
|
const ret = arg0.read(getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1378
1569
|
return ret;
|
|
1379
1570
|
}, arguments); },
|
|
1380
|
-
|
|
1571
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
1381
1572
|
const ret = Promise.resolve(arg0);
|
|
1382
1573
|
return ret;
|
|
1383
1574
|
},
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
return ret;
|
|
1575
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
1576
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1387
1577
|
},
|
|
1388
|
-
|
|
1578
|
+
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1389
1579
|
arg0[arg1] = arg2;
|
|
1390
1580
|
},
|
|
1391
|
-
|
|
1581
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1392
1582
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1393
1583
|
return ret;
|
|
1394
1584
|
}, arguments); },
|
|
1395
|
-
|
|
1585
|
+
__wbg_set_at_e227be75df7f9abf: function(arg0, arg1) {
|
|
1396
1586
|
arg0.at = arg1;
|
|
1397
1587
|
},
|
|
1398
|
-
|
|
1399
|
-
|
|
1588
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1589
|
+
const ret = arg0.set(arg1, arg2);
|
|
1590
|
+
return ret;
|
|
1400
1591
|
},
|
|
1401
|
-
|
|
1402
|
-
arg0
|
|
1592
|
+
__wbg_set_create_ef897736206a6f05: function(arg0, arg1) {
|
|
1593
|
+
arg0.create = arg1 !== 0;
|
|
1403
1594
|
},
|
|
1404
|
-
|
|
1595
|
+
__wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
|
|
1405
1596
|
const ret = arg1.stack;
|
|
1406
1597
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1407
1598
|
const len1 = WASM_VECTOR_LEN;
|
|
1408
1599
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1409
1600
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1410
1601
|
},
|
|
1411
|
-
|
|
1602
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1412
1603
|
const ret = typeof global === 'undefined' ? null : global;
|
|
1413
1604
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1414
1605
|
},
|
|
1415
|
-
|
|
1606
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1416
1607
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1417
1608
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1418
1609
|
},
|
|
1419
|
-
|
|
1610
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1420
1611
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1421
1612
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1422
1613
|
},
|
|
1423
|
-
|
|
1614
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1424
1615
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1425
1616
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1426
1617
|
},
|
|
1427
|
-
|
|
1618
|
+
__wbg_storage_8d917976d6753ee0: function(arg0) {
|
|
1428
1619
|
const ret = arg0.storage;
|
|
1429
1620
|
return ret;
|
|
1430
1621
|
},
|
|
1431
|
-
|
|
1432
|
-
const ret = arg0.then(arg1
|
|
1622
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1623
|
+
const ret = arg0.then(arg1);
|
|
1433
1624
|
return ret;
|
|
1434
1625
|
},
|
|
1435
|
-
|
|
1436
|
-
const ret = arg0.then(arg1);
|
|
1626
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1627
|
+
const ret = arg0.then(arg1, arg2);
|
|
1437
1628
|
return ret;
|
|
1438
1629
|
},
|
|
1439
|
-
|
|
1630
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
1440
1631
|
const ret = arg0.value;
|
|
1441
1632
|
return ret;
|
|
1442
1633
|
},
|
|
1443
|
-
|
|
1634
|
+
__wbg_warn_173c62eb2a78dd0b: function(arg0, arg1) {
|
|
1444
1635
|
let deferred0_0;
|
|
1445
1636
|
let deferred0_1;
|
|
1446
1637
|
try {
|
|
1447
1638
|
deferred0_0 = arg0;
|
|
1448
1639
|
deferred0_1 = arg1;
|
|
1449
|
-
console.warn(getStringFromWasm0(arg0, arg1)
|
|
1640
|
+
console.warn(getStringFromWasm0(arg0, arg1));
|
|
1450
1641
|
} finally {
|
|
1451
1642
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1452
1643
|
}
|
|
1453
1644
|
},
|
|
1454
|
-
|
|
1645
|
+
__wbg_warn_783eb0d84a16b85c: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
1455
1646
|
let deferred0_0;
|
|
1456
1647
|
let deferred0_1;
|
|
1457
1648
|
try {
|
|
1458
1649
|
deferred0_0 = arg0;
|
|
1459
1650
|
deferred0_1 = arg1;
|
|
1460
|
-
console.warn(getStringFromWasm0(arg0, arg1));
|
|
1651
|
+
console.warn(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3), getStringFromWasm0(arg4, arg5), getStringFromWasm0(arg6, arg7));
|
|
1461
1652
|
} finally {
|
|
1462
1653
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
1463
1654
|
}
|
|
@@ -1466,13 +1657,13 @@ function __wbg_get_imports() {
|
|
|
1466
1657
|
const ret = WasmRuntime.__wrap(arg0);
|
|
1467
1658
|
return ret;
|
|
1468
1659
|
},
|
|
1469
|
-
|
|
1660
|
+
__wbg_write_57c477a82b886339: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
1470
1661
|
const ret = arg0.write(getArrayU8FromWasm0(arg1, arg2), arg3);
|
|
1471
1662
|
return ret;
|
|
1472
1663
|
}, arguments); },
|
|
1473
1664
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1474
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1475
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1665
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 2497, function: Function { arguments: [Externref], shim_idx: 2498, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1666
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h91062c162630e93c, wasm_bindgen__convert__closures_____invoke__hc8651b792d0b9061);
|
|
1476
1667
|
return ret;
|
|
1477
1668
|
},
|
|
1478
1669
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -1511,12 +1702,15 @@ function __wbg_get_imports() {
|
|
|
1511
1702
|
};
|
|
1512
1703
|
}
|
|
1513
1704
|
|
|
1514
|
-
function
|
|
1515
|
-
wasm.
|
|
1705
|
+
function wasm_bindgen__convert__closures_____invoke__hc8651b792d0b9061(arg0, arg1, arg2) {
|
|
1706
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__hc8651b792d0b9061(arg0, arg1, arg2);
|
|
1707
|
+
if (ret[1]) {
|
|
1708
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
1709
|
+
}
|
|
1516
1710
|
}
|
|
1517
1711
|
|
|
1518
|
-
function
|
|
1519
|
-
wasm.
|
|
1712
|
+
function wasm_bindgen__convert__closures_____invoke__h4abc8a55d4718cb4(arg0, arg1, arg2, arg3) {
|
|
1713
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h4abc8a55d4718cb4(arg0, arg1, arg2, arg3);
|
|
1520
1714
|
}
|
|
1521
1715
|
|
|
1522
1716
|
const WasmQueryBuilderFinalization = (typeof FinalizationRegistry === 'undefined')
|