@laboverwire/stitch-wasm 0.5.1 → 0.6.0
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 +1 -1
- package/stitch_wasm.d.ts +103 -83
- package/stitch_wasm_bg.js +497 -454
- package/stitch_wasm_bg.wasm +0 -0
package/stitch_wasm_bg.js
CHANGED
|
@@ -35,7 +35,7 @@ export class ConnectOptions {
|
|
|
35
35
|
const ret = wasm.connectoptions_authentication_method(this.__wbg_ptr);
|
|
36
36
|
let v1;
|
|
37
37
|
if (ret[0] !== 0) {
|
|
38
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
38
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
39
39
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
40
40
|
}
|
|
41
41
|
return v1;
|
|
@@ -61,7 +61,7 @@ export class ConnectOptions {
|
|
|
61
61
|
*/
|
|
62
62
|
getBackupUrls() {
|
|
63
63
|
const ret = wasm.connectoptions_getBackupUrls(this.__wbg_ptr);
|
|
64
|
-
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1])
|
|
64
|
+
var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
|
|
65
65
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
66
66
|
return v1;
|
|
67
67
|
}
|
|
@@ -255,7 +255,7 @@ export class ConnectOptions {
|
|
|
255
255
|
const ret = wasm.connectoptions_username(this.__wbg_ptr);
|
|
256
256
|
let v1;
|
|
257
257
|
if (ret[0] !== 0) {
|
|
258
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
258
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
259
259
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
260
260
|
}
|
|
261
261
|
return v1;
|
|
@@ -354,17 +354,18 @@ export class Database {
|
|
|
354
354
|
wasm.__wbg_database_free(ptr, 0);
|
|
355
355
|
}
|
|
356
356
|
/**
|
|
357
|
-
* Adds a foreign key constraint.
|
|
357
|
+
* Adds a foreign key constraint and persists to storage.
|
|
358
358
|
*
|
|
359
359
|
* # Errors
|
|
360
|
-
*
|
|
360
|
+
* Returns an error if storage fails.
|
|
361
361
|
* @param {string} source_entity
|
|
362
362
|
* @param {string} source_field
|
|
363
363
|
* @param {string} target_entity
|
|
364
364
|
* @param {string} target_field
|
|
365
365
|
* @param {string} on_delete
|
|
366
|
+
* @returns {Promise<void>}
|
|
366
367
|
*/
|
|
367
|
-
|
|
368
|
+
addForeignKeyAsync(source_entity, source_field, target_entity, target_field, on_delete) {
|
|
368
369
|
const ptr0 = passStringToWasm0(source_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
369
370
|
const len0 = WASM_VECTOR_LEN;
|
|
370
371
|
const ptr1 = passStringToWasm0(source_field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -375,24 +376,21 @@ export class Database {
|
|
|
375
376
|
const len3 = WASM_VECTOR_LEN;
|
|
376
377
|
const ptr4 = passStringToWasm0(on_delete, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
377
378
|
const len4 = WASM_VECTOR_LEN;
|
|
378
|
-
const ret = wasm.
|
|
379
|
-
|
|
380
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
381
|
-
}
|
|
379
|
+
const ret = wasm.database_addForeignKeyAsync(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
380
|
+
return ret;
|
|
382
381
|
}
|
|
383
382
|
/**
|
|
384
|
-
* Adds a foreign key constraint
|
|
383
|
+
* Adds a foreign key constraint.
|
|
385
384
|
*
|
|
386
385
|
* # Errors
|
|
387
|
-
*
|
|
386
|
+
* This function does not currently return errors but the signature allows for future validation.
|
|
388
387
|
* @param {string} source_entity
|
|
389
388
|
* @param {string} source_field
|
|
390
389
|
* @param {string} target_entity
|
|
391
390
|
* @param {string} target_field
|
|
392
391
|
* @param {string} on_delete
|
|
393
|
-
* @returns {Promise<void>}
|
|
394
392
|
*/
|
|
395
|
-
|
|
393
|
+
addForeignKey(source_entity, source_field, target_entity, target_field, on_delete) {
|
|
396
394
|
const ptr0 = passStringToWasm0(source_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
397
395
|
const len0 = WASM_VECTOR_LEN;
|
|
398
396
|
const ptr1 = passStringToWasm0(source_field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -403,23 +401,7 @@ export class Database {
|
|
|
403
401
|
const len3 = WASM_VECTOR_LEN;
|
|
404
402
|
const ptr4 = passStringToWasm0(on_delete, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
405
403
|
const len4 = WASM_VECTOR_LEN;
|
|
406
|
-
const ret = wasm.
|
|
407
|
-
return ret;
|
|
408
|
-
}
|
|
409
|
-
/**
|
|
410
|
-
* Adds an index on the specified fields and backfills from existing records (sync, memory only).
|
|
411
|
-
*
|
|
412
|
-
* # Errors
|
|
413
|
-
* Returns an error if the backend is not memory-based or backfill fails.
|
|
414
|
-
* @param {string} entity
|
|
415
|
-
* @param {string[]} fields
|
|
416
|
-
*/
|
|
417
|
-
addIndex(entity, fields) {
|
|
418
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
419
|
-
const len0 = WASM_VECTOR_LEN;
|
|
420
|
-
const ptr1 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
|
|
421
|
-
const len1 = WASM_VECTOR_LEN;
|
|
422
|
-
const ret = wasm.database_addIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
404
|
+
const ret = wasm.database_addForeignKey(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
|
|
423
405
|
if (ret[1]) {
|
|
424
406
|
throw takeFromExternrefTable0(ret[0]);
|
|
425
407
|
}
|
|
@@ -442,19 +424,19 @@ export class Database {
|
|
|
442
424
|
return ret;
|
|
443
425
|
}
|
|
444
426
|
/**
|
|
445
|
-
* Adds
|
|
427
|
+
* Adds an index on the specified fields and backfills from existing records (sync, memory only).
|
|
446
428
|
*
|
|
447
429
|
* # Errors
|
|
448
|
-
*
|
|
430
|
+
* Returns an error if the backend is not memory-based or backfill fails.
|
|
449
431
|
* @param {string} entity
|
|
450
|
-
* @param {string}
|
|
432
|
+
* @param {string[]} fields
|
|
451
433
|
*/
|
|
452
|
-
|
|
434
|
+
addIndex(entity, fields) {
|
|
453
435
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
454
436
|
const len0 = WASM_VECTOR_LEN;
|
|
455
|
-
const ptr1 =
|
|
437
|
+
const ptr1 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
|
|
456
438
|
const len1 = WASM_VECTOR_LEN;
|
|
457
|
-
const ret = wasm.
|
|
439
|
+
const ret = wasm.database_addIndex(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
458
440
|
if (ret[1]) {
|
|
459
441
|
throw takeFromExternrefTable0(ret[0]);
|
|
460
442
|
}
|
|
@@ -477,22 +459,19 @@ export class Database {
|
|
|
477
459
|
return ret;
|
|
478
460
|
}
|
|
479
461
|
/**
|
|
480
|
-
* Adds a
|
|
462
|
+
* Adds a NOT NULL constraint on the specified field.
|
|
481
463
|
*
|
|
482
464
|
* # Errors
|
|
483
465
|
* This function does not currently return errors but the signature allows for future validation.
|
|
484
|
-
* @param {string}
|
|
466
|
+
* @param {string} entity
|
|
485
467
|
* @param {string} field
|
|
486
|
-
* @param {string} target_entity
|
|
487
468
|
*/
|
|
488
|
-
|
|
489
|
-
const ptr0 = passStringToWasm0(
|
|
469
|
+
addNotNull(entity, field) {
|
|
470
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
490
471
|
const len0 = WASM_VECTOR_LEN;
|
|
491
472
|
const ptr1 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
492
473
|
const len1 = WASM_VECTOR_LEN;
|
|
493
|
-
const
|
|
494
|
-
const len2 = WASM_VECTOR_LEN;
|
|
495
|
-
const ret = wasm.database_addRelationship(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
474
|
+
const ret = wasm.database_addNotNull(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
496
475
|
if (ret[1]) {
|
|
497
476
|
throw takeFromExternrefTable0(ret[0]);
|
|
498
477
|
}
|
|
@@ -518,17 +497,22 @@ export class Database {
|
|
|
518
497
|
return ret;
|
|
519
498
|
}
|
|
520
499
|
/**
|
|
521
|
-
* Adds a
|
|
500
|
+
* Adds a relationship definition for eager loading.
|
|
522
501
|
*
|
|
523
502
|
* # Errors
|
|
524
|
-
*
|
|
525
|
-
* @param {string}
|
|
526
|
-
* @param {
|
|
503
|
+
* This function does not currently return errors but the signature allows for future validation.
|
|
504
|
+
* @param {string} source_entity
|
|
505
|
+
* @param {string} field
|
|
506
|
+
* @param {string} target_entity
|
|
527
507
|
*/
|
|
528
|
-
|
|
529
|
-
const ptr0 = passStringToWasm0(
|
|
508
|
+
addRelationship(source_entity, field, target_entity) {
|
|
509
|
+
const ptr0 = passStringToWasm0(source_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
530
510
|
const len0 = WASM_VECTOR_LEN;
|
|
531
|
-
const
|
|
511
|
+
const ptr1 = passStringToWasm0(field, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
+
const len1 = WASM_VECTOR_LEN;
|
|
513
|
+
const ptr2 = passStringToWasm0(target_entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
514
|
+
const len2 = WASM_VECTOR_LEN;
|
|
515
|
+
const ret = wasm.database_addRelationship(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
532
516
|
if (ret[1]) {
|
|
533
517
|
throw takeFromExternrefTable0(ret[0]);
|
|
534
518
|
}
|
|
@@ -549,19 +533,17 @@ export class Database {
|
|
|
549
533
|
return ret;
|
|
550
534
|
}
|
|
551
535
|
/**
|
|
552
|
-
* Adds a
|
|
536
|
+
* Adds a schema definition for an entity (sync, memory backend only).
|
|
553
537
|
*
|
|
554
538
|
* # Errors
|
|
555
|
-
*
|
|
539
|
+
* Returns an error if the schema definition is invalid.
|
|
556
540
|
* @param {string} entity
|
|
557
|
-
* @param {
|
|
541
|
+
* @param {any} schema_js
|
|
558
542
|
*/
|
|
559
|
-
|
|
543
|
+
addSchema(entity, schema_js) {
|
|
560
544
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
561
545
|
const len0 = WASM_VECTOR_LEN;
|
|
562
|
-
const
|
|
563
|
-
const len1 = WASM_VECTOR_LEN;
|
|
564
|
-
const ret = wasm.database_addUniqueConstraint(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
546
|
+
const ret = wasm.database_addSchema(this.__wbg_ptr, ptr0, len0, schema_js);
|
|
565
547
|
if (ret[1]) {
|
|
566
548
|
throw takeFromExternrefTable0(ret[0]);
|
|
567
549
|
}
|
|
@@ -584,19 +566,22 @@ export class Database {
|
|
|
584
566
|
return ret;
|
|
585
567
|
}
|
|
586
568
|
/**
|
|
587
|
-
*
|
|
569
|
+
* Adds a unique constraint on the specified fields.
|
|
588
570
|
*
|
|
589
571
|
* # Errors
|
|
590
|
-
*
|
|
572
|
+
* This function does not currently return errors but the signature allows for future validation.
|
|
591
573
|
* @param {string} entity
|
|
592
|
-
* @param {
|
|
593
|
-
* @returns {Promise<number>}
|
|
574
|
+
* @param {string[]} fields
|
|
594
575
|
*/
|
|
595
|
-
|
|
576
|
+
addUniqueConstraint(entity, fields) {
|
|
596
577
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
597
578
|
const len0 = WASM_VECTOR_LEN;
|
|
598
|
-
const
|
|
599
|
-
|
|
579
|
+
const ptr1 = passArrayJsValueToWasm0(fields, wasm.__wbindgen_malloc);
|
|
580
|
+
const len1 = WASM_VECTOR_LEN;
|
|
581
|
+
const ret = wasm.database_addUniqueConstraint(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
582
|
+
if (ret[1]) {
|
|
583
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
584
|
+
}
|
|
600
585
|
}
|
|
601
586
|
/**
|
|
602
587
|
* # Errors
|
|
@@ -615,18 +600,18 @@ export class Database {
|
|
|
615
600
|
return ret[0] >>> 0;
|
|
616
601
|
}
|
|
617
602
|
/**
|
|
618
|
-
*
|
|
603
|
+
* Counts records matching optional filters, using indexes when available.
|
|
619
604
|
*
|
|
620
605
|
* # Errors
|
|
621
|
-
* Returns an error if
|
|
606
|
+
* Returns an error if options are invalid or the storage operation fails.
|
|
622
607
|
* @param {string} entity
|
|
623
|
-
* @param {any}
|
|
624
|
-
* @returns {Promise<
|
|
608
|
+
* @param {any} options
|
|
609
|
+
* @returns {Promise<number>}
|
|
625
610
|
*/
|
|
626
|
-
|
|
611
|
+
count(entity, options) {
|
|
627
612
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
628
613
|
const len0 = WASM_VECTOR_LEN;
|
|
629
|
-
const ret = wasm.
|
|
614
|
+
const ret = wasm.database_count(this.__wbg_ptr, ptr0, len0, options);
|
|
630
615
|
return ret;
|
|
631
616
|
}
|
|
632
617
|
/**
|
|
@@ -645,6 +630,21 @@ export class Database {
|
|
|
645
630
|
}
|
|
646
631
|
return takeFromExternrefTable0(ret[0]);
|
|
647
632
|
}
|
|
633
|
+
/**
|
|
634
|
+
* Creates a new record in the specified entity.
|
|
635
|
+
*
|
|
636
|
+
* # Errors
|
|
637
|
+
* Returns an error if validation fails or the storage operation fails.
|
|
638
|
+
* @param {string} entity
|
|
639
|
+
* @param {any} data
|
|
640
|
+
* @returns {Promise<any>}
|
|
641
|
+
*/
|
|
642
|
+
create(entity, data) {
|
|
643
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
644
|
+
const len0 = WASM_VECTOR_LEN;
|
|
645
|
+
const ret = wasm.database_create(this.__wbg_ptr, ptr0, len0, data);
|
|
646
|
+
return ret;
|
|
647
|
+
}
|
|
648
648
|
/**
|
|
649
649
|
* Creates a cursor for streaming iteration over records.
|
|
650
650
|
*
|
|
@@ -661,37 +661,37 @@ export class Database {
|
|
|
661
661
|
return ret;
|
|
662
662
|
}
|
|
663
663
|
/**
|
|
664
|
-
* Deletes a record by entity and ID.
|
|
665
|
-
*
|
|
666
664
|
* # Errors
|
|
667
|
-
* Returns an error if the record is not found
|
|
665
|
+
* Returns an error if the record is not found, foreign key constraints prevent deletion, or the backend is not memory-based.
|
|
668
666
|
* @param {string} entity
|
|
669
667
|
* @param {string} id
|
|
670
|
-
* @returns {Promise<void>}
|
|
671
668
|
*/
|
|
672
|
-
|
|
669
|
+
deleteSync(entity, id) {
|
|
673
670
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
674
671
|
const len0 = WASM_VECTOR_LEN;
|
|
675
672
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
676
673
|
const len1 = WASM_VECTOR_LEN;
|
|
677
|
-
const ret = wasm.
|
|
678
|
-
|
|
674
|
+
const ret = wasm.database_deleteSync(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
675
|
+
if (ret[1]) {
|
|
676
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
677
|
+
}
|
|
679
678
|
}
|
|
680
679
|
/**
|
|
680
|
+
* Deletes a record by entity and ID.
|
|
681
|
+
*
|
|
681
682
|
* # Errors
|
|
682
|
-
* Returns an error if the record is not found
|
|
683
|
+
* Returns an error if the record is not found or foreign key constraints prevent deletion.
|
|
683
684
|
* @param {string} entity
|
|
684
685
|
* @param {string} id
|
|
686
|
+
* @returns {Promise<void>}
|
|
685
687
|
*/
|
|
686
|
-
|
|
688
|
+
delete(entity, id) {
|
|
687
689
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
690
|
const len0 = WASM_VECTOR_LEN;
|
|
689
691
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
690
692
|
const len1 = WASM_VECTOR_LEN;
|
|
691
|
-
const ret = wasm.
|
|
692
|
-
|
|
693
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
694
|
-
}
|
|
693
|
+
const ret = wasm.database_delete(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
694
|
+
return ret;
|
|
695
695
|
}
|
|
696
696
|
/**
|
|
697
697
|
* Executes a database operation based on an MQTT-style topic.
|
|
@@ -777,21 +777,6 @@ export class Database {
|
|
|
777
777
|
const ret = wasm.database_isMemoryBackend(this.__wbg_ptr);
|
|
778
778
|
return ret !== 0;
|
|
779
779
|
}
|
|
780
|
-
/**
|
|
781
|
-
* Lists records from an entity with optional filtering, sorting, and pagination.
|
|
782
|
-
*
|
|
783
|
-
* # Errors
|
|
784
|
-
* Returns an error if options are invalid or the storage operation fails.
|
|
785
|
-
* @param {string} entity
|
|
786
|
-
* @param {any} options
|
|
787
|
-
* @returns {Promise<any>}
|
|
788
|
-
*/
|
|
789
|
-
list(entity, options) {
|
|
790
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
791
|
-
const len0 = WASM_VECTOR_LEN;
|
|
792
|
-
const ret = wasm.database_list(this.__wbg_ptr, ptr0, len0, options);
|
|
793
|
-
return ret;
|
|
794
|
-
}
|
|
795
780
|
/**
|
|
796
781
|
* @param {string} entity
|
|
797
782
|
* @returns {any}
|
|
@@ -840,6 +825,21 @@ export class Database {
|
|
|
840
825
|
}
|
|
841
826
|
return takeFromExternrefTable0(ret[0]);
|
|
842
827
|
}
|
|
828
|
+
/**
|
|
829
|
+
* Lists records from an entity with optional filtering, sorting, and pagination.
|
|
830
|
+
*
|
|
831
|
+
* # Errors
|
|
832
|
+
* Returns an error if options are invalid or the storage operation fails.
|
|
833
|
+
* @param {string} entity
|
|
834
|
+
* @param {any} options
|
|
835
|
+
* @returns {Promise<any>}
|
|
836
|
+
*/
|
|
837
|
+
list(entity, options) {
|
|
838
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
839
|
+
const len0 = WASM_VECTOR_LEN;
|
|
840
|
+
const ret = wasm.database_list(this.__wbg_ptr, ptr0, len0, options);
|
|
841
|
+
return ret;
|
|
842
|
+
}
|
|
843
843
|
constructor() {
|
|
844
844
|
const ret = wasm.database_new();
|
|
845
845
|
this.__wbg_ptr = ret;
|
|
@@ -869,23 +869,6 @@ export class Database {
|
|
|
869
869
|
const ret = wasm.database_openPersistent(ptr0, len0);
|
|
870
870
|
return ret;
|
|
871
871
|
}
|
|
872
|
-
/**
|
|
873
|
-
* Reads a record by entity and ID.
|
|
874
|
-
*
|
|
875
|
-
* # Errors
|
|
876
|
-
* Returns an error if the record is not found or deserialization fails.
|
|
877
|
-
* @param {string} entity
|
|
878
|
-
* @param {string} id
|
|
879
|
-
* @returns {Promise<any>}
|
|
880
|
-
*/
|
|
881
|
-
read(entity, id) {
|
|
882
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
883
|
-
const len0 = WASM_VECTOR_LEN;
|
|
884
|
-
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
885
|
-
const len1 = WASM_VECTOR_LEN;
|
|
886
|
-
const ret = wasm.database_read(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
887
|
-
return ret;
|
|
888
|
-
}
|
|
889
872
|
/**
|
|
890
873
|
* # Errors
|
|
891
874
|
* Returns an error if the record is not found or the backend is not memory-based.
|
|
@@ -923,34 +906,21 @@ export class Database {
|
|
|
923
906
|
return ret;
|
|
924
907
|
}
|
|
925
908
|
/**
|
|
909
|
+
* Reads a record by entity and ID.
|
|
910
|
+
*
|
|
926
911
|
* # Errors
|
|
927
|
-
* Returns
|
|
928
|
-
* @param {string}
|
|
929
|
-
* @param {string
|
|
930
|
-
* @
|
|
931
|
-
* @returns {string}
|
|
912
|
+
* Returns an error if the record is not found or deserialization fails.
|
|
913
|
+
* @param {string} entity
|
|
914
|
+
* @param {string} id
|
|
915
|
+
* @returns {Promise<any>}
|
|
932
916
|
*/
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
var len1 = WASM_VECTOR_LEN;
|
|
941
|
-
const ret = wasm.database_subscribe(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
942
|
-
var ptr3 = ret[0];
|
|
943
|
-
var len3 = ret[1];
|
|
944
|
-
if (ret[3]) {
|
|
945
|
-
ptr3 = 0; len3 = 0;
|
|
946
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
947
|
-
}
|
|
948
|
-
deferred4_0 = ptr3;
|
|
949
|
-
deferred4_1 = len3;
|
|
950
|
-
return getStringFromWasm0(ptr3, len3);
|
|
951
|
-
} finally {
|
|
952
|
-
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
953
|
-
}
|
|
917
|
+
read(entity, id) {
|
|
918
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
919
|
+
const len0 = WASM_VECTOR_LEN;
|
|
920
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
921
|
+
const len1 = WASM_VECTOR_LEN;
|
|
922
|
+
const ret = wasm.database_read(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
923
|
+
return ret;
|
|
954
924
|
}
|
|
955
925
|
/**
|
|
956
926
|
* # Errors
|
|
@@ -988,20 +958,69 @@ export class Database {
|
|
|
988
958
|
wasm.__wbindgen_free(deferred6_0, deferred6_1, 1);
|
|
989
959
|
}
|
|
990
960
|
}
|
|
961
|
+
/**
|
|
962
|
+
* # Errors
|
|
963
|
+
* Returns `JsValue` if the database is currently borrowed.
|
|
964
|
+
* @param {string} pattern
|
|
965
|
+
* @param {string | null | undefined} entity
|
|
966
|
+
* @param {Function} callback
|
|
967
|
+
* @returns {string}
|
|
968
|
+
*/
|
|
969
|
+
subscribe(pattern, entity, callback) {
|
|
970
|
+
let deferred4_0;
|
|
971
|
+
let deferred4_1;
|
|
972
|
+
try {
|
|
973
|
+
const ptr0 = passStringToWasm0(pattern, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
974
|
+
const len0 = WASM_VECTOR_LEN;
|
|
975
|
+
var ptr1 = isLikeNone(entity) ? 0 : passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
976
|
+
var len1 = WASM_VECTOR_LEN;
|
|
977
|
+
const ret = wasm.database_subscribe(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
978
|
+
var ptr3 = ret[0];
|
|
979
|
+
var len3 = ret[1];
|
|
980
|
+
if (ret[3]) {
|
|
981
|
+
ptr3 = 0; len3 = 0;
|
|
982
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
983
|
+
}
|
|
984
|
+
deferred4_0 = ptr3;
|
|
985
|
+
deferred4_1 = len3;
|
|
986
|
+
return getStringFromWasm0(ptr3, len3);
|
|
987
|
+
} finally {
|
|
988
|
+
wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
991
|
/**
|
|
992
992
|
* # Errors
|
|
993
993
|
* Returns `JsValue` if the database is currently borrowed.
|
|
994
994
|
* @param {string} sub_id
|
|
995
995
|
* @returns {boolean}
|
|
996
996
|
*/
|
|
997
|
-
unsubscribe(sub_id) {
|
|
998
|
-
const ptr0 = passStringToWasm0(sub_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
997
|
+
unsubscribe(sub_id) {
|
|
998
|
+
const ptr0 = passStringToWasm0(sub_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
999
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1000
|
+
const ret = wasm.database_unsubscribe(this.__wbg_ptr, ptr0, len0);
|
|
1001
|
+
if (ret[2]) {
|
|
1002
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
1003
|
+
}
|
|
1004
|
+
return ret[0] !== 0;
|
|
1005
|
+
}
|
|
1006
|
+
/**
|
|
1007
|
+
* # Errors
|
|
1008
|
+
* Returns an error if the record is not found, validation fails, or the backend is not memory-based.
|
|
1009
|
+
* @param {string} entity
|
|
1010
|
+
* @param {string} id
|
|
1011
|
+
* @param {any} fields
|
|
1012
|
+
* @returns {any}
|
|
1013
|
+
*/
|
|
1014
|
+
updateSync(entity, id, fields) {
|
|
1015
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
999
1016
|
const len0 = WASM_VECTOR_LEN;
|
|
1000
|
-
const
|
|
1017
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1018
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1019
|
+
const ret = wasm.database_updateSync(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
1001
1020
|
if (ret[2]) {
|
|
1002
1021
|
throw takeFromExternrefTable0(ret[1]);
|
|
1003
1022
|
}
|
|
1004
|
-
return ret[0]
|
|
1023
|
+
return takeFromExternrefTable0(ret[0]);
|
|
1005
1024
|
}
|
|
1006
1025
|
/**
|
|
1007
1026
|
* Updates an existing record with new field values.
|
|
@@ -1021,25 +1040,6 @@ export class Database {
|
|
|
1021
1040
|
const ret = wasm.database_update(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
1022
1041
|
return ret;
|
|
1023
1042
|
}
|
|
1024
|
-
/**
|
|
1025
|
-
* # Errors
|
|
1026
|
-
* Returns an error if the record is not found, validation fails, or the backend is not memory-based.
|
|
1027
|
-
* @param {string} entity
|
|
1028
|
-
* @param {string} id
|
|
1029
|
-
* @param {any} fields
|
|
1030
|
-
* @returns {any}
|
|
1031
|
-
*/
|
|
1032
|
-
updateSync(entity, id, fields) {
|
|
1033
|
-
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1034
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1035
|
-
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1036
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1037
|
-
const ret = wasm.database_updateSync(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
1038
|
-
if (ret[2]) {
|
|
1039
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
1040
|
-
}
|
|
1041
|
-
return takeFromExternrefTable0(ret[0]);
|
|
1042
|
-
}
|
|
1043
1043
|
}
|
|
1044
1044
|
if (Symbol.dispose) Database.prototype[Symbol.dispose] = Database.prototype.free;
|
|
1045
1045
|
|
|
@@ -1067,7 +1067,7 @@ export class MessageProperties {
|
|
|
1067
1067
|
const ret = wasm.messageproperties_content_type(this.__wbg_ptr);
|
|
1068
1068
|
let v1;
|
|
1069
1069
|
if (ret[0] !== 0) {
|
|
1070
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1070
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1071
1071
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1072
1072
|
}
|
|
1073
1073
|
return v1;
|
|
@@ -1112,7 +1112,7 @@ export class MessageProperties {
|
|
|
1112
1112
|
const ret = wasm.messageproperties_response_topic(this.__wbg_ptr);
|
|
1113
1113
|
let v1;
|
|
1114
1114
|
if (ret[0] !== 0) {
|
|
1115
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1115
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1116
1116
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1117
1117
|
}
|
|
1118
1118
|
return v1;
|
|
@@ -1143,25 +1143,25 @@ export class MqttClient {
|
|
|
1143
1143
|
/**
|
|
1144
1144
|
* # Errors
|
|
1145
1145
|
* Returns an error if connection fails.
|
|
1146
|
-
* @param {string}
|
|
1146
|
+
* @param {string} channelName
|
|
1147
1147
|
* @returns {Promise<void>}
|
|
1148
1148
|
*/
|
|
1149
|
-
|
|
1150
|
-
const ptr0 = passStringToWasm0(
|
|
1149
|
+
connectBroadcastChannel(channelName) {
|
|
1150
|
+
const ptr0 = passStringToWasm0(channelName, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1151
1151
|
const len0 = WASM_VECTOR_LEN;
|
|
1152
|
-
const ret = wasm.
|
|
1152
|
+
const ret = wasm.mqttclient_connectBroadcastChannel(this.__wbg_ptr, ptr0, len0);
|
|
1153
1153
|
return ret;
|
|
1154
1154
|
}
|
|
1155
1155
|
/**
|
|
1156
1156
|
* # Errors
|
|
1157
1157
|
* Returns an error if connection fails.
|
|
1158
|
-
* @param {
|
|
1158
|
+
* @param {MessagePort} port
|
|
1159
|
+
* @param {ConnectOptions} config
|
|
1159
1160
|
* @returns {Promise<void>}
|
|
1160
1161
|
*/
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
const
|
|
1164
|
-
const ret = wasm.mqttclient_connectBroadcastChannel(this.__wbg_ptr, ptr0, len0);
|
|
1162
|
+
connectMessagePortWithOptions(port, config) {
|
|
1163
|
+
_assertClass(config, ConnectOptions);
|
|
1164
|
+
const ret = wasm.mqttclient_connectMessagePortWithOptions(this.__wbg_ptr, port, config.__wbg_ptr);
|
|
1165
1165
|
return ret;
|
|
1166
1166
|
}
|
|
1167
1167
|
/**
|
|
@@ -1177,27 +1177,27 @@ export class MqttClient {
|
|
|
1177
1177
|
/**
|
|
1178
1178
|
* # Errors
|
|
1179
1179
|
* Returns an error if connection fails.
|
|
1180
|
-
* @param {
|
|
1180
|
+
* @param {string} url
|
|
1181
1181
|
* @param {ConnectOptions} config
|
|
1182
1182
|
* @returns {Promise<void>}
|
|
1183
1183
|
*/
|
|
1184
|
-
|
|
1184
|
+
connectWithOptions(url, config) {
|
|
1185
|
+
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1186
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1185
1187
|
_assertClass(config, ConnectOptions);
|
|
1186
|
-
const ret = wasm.
|
|
1188
|
+
const ret = wasm.mqttclient_connectWithOptions(this.__wbg_ptr, ptr0, len0, config.__wbg_ptr);
|
|
1187
1189
|
return ret;
|
|
1188
1190
|
}
|
|
1189
1191
|
/**
|
|
1190
1192
|
* # Errors
|
|
1191
1193
|
* Returns an error if connection fails.
|
|
1192
1194
|
* @param {string} url
|
|
1193
|
-
* @param {ConnectOptions} config
|
|
1194
1195
|
* @returns {Promise<void>}
|
|
1195
1196
|
*/
|
|
1196
|
-
|
|
1197
|
+
connect(url) {
|
|
1197
1198
|
const ptr0 = passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1198
1199
|
const len0 = WASM_VECTOR_LEN;
|
|
1199
|
-
|
|
1200
|
-
const ret = wasm.mqttclient_connectWithOptions(this.__wbg_ptr, ptr0, len0, config.__wbg_ptr);
|
|
1200
|
+
const ret = wasm.mqttclient_connect(this.__wbg_ptr, ptr0, len0);
|
|
1201
1201
|
return ret;
|
|
1202
1202
|
}
|
|
1203
1203
|
destroy() {
|
|
@@ -1297,14 +1297,15 @@ export class MqttClient {
|
|
|
1297
1297
|
* Returns an error if not connected or publish fails.
|
|
1298
1298
|
* @param {string} topic
|
|
1299
1299
|
* @param {Uint8Array} payload
|
|
1300
|
-
* @
|
|
1300
|
+
* @param {Function} callback
|
|
1301
|
+
* @returns {Promise<number>}
|
|
1301
1302
|
*/
|
|
1302
|
-
|
|
1303
|
+
publishQos1(topic, payload, callback) {
|
|
1303
1304
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1304
1305
|
const len0 = WASM_VECTOR_LEN;
|
|
1305
1306
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1306
1307
|
const len1 = WASM_VECTOR_LEN;
|
|
1307
|
-
const ret = wasm.
|
|
1308
|
+
const ret = wasm.mqttclient_publishQos1(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
1308
1309
|
return ret;
|
|
1309
1310
|
}
|
|
1310
1311
|
/**
|
|
@@ -1315,12 +1316,12 @@ export class MqttClient {
|
|
|
1315
1316
|
* @param {Function} callback
|
|
1316
1317
|
* @returns {Promise<number>}
|
|
1317
1318
|
*/
|
|
1318
|
-
|
|
1319
|
+
publishQos2(topic, payload, callback) {
|
|
1319
1320
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1320
1321
|
const len0 = WASM_VECTOR_LEN;
|
|
1321
1322
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1322
1323
|
const len1 = WASM_VECTOR_LEN;
|
|
1323
|
-
const ret = wasm.
|
|
1324
|
+
const ret = wasm.mqttclient_publishQos2(this.__wbg_ptr, ptr0, len0, ptr1, len1, callback);
|
|
1324
1325
|
return ret;
|
|
1325
1326
|
}
|
|
1326
1327
|
/**
|
|
@@ -1328,15 +1329,16 @@ export class MqttClient {
|
|
|
1328
1329
|
* Returns an error if not connected or publish fails.
|
|
1329
1330
|
* @param {string} topic
|
|
1330
1331
|
* @param {Uint8Array} payload
|
|
1331
|
-
* @param {
|
|
1332
|
+
* @param {PublishOptions} options
|
|
1332
1333
|
* @returns {Promise<number>}
|
|
1333
1334
|
*/
|
|
1334
|
-
|
|
1335
|
+
publishWithOptions(topic, payload, options) {
|
|
1335
1336
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1336
1337
|
const len0 = WASM_VECTOR_LEN;
|
|
1337
1338
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1338
1339
|
const len1 = WASM_VECTOR_LEN;
|
|
1339
|
-
|
|
1340
|
+
_assertClass(options, PublishOptions);
|
|
1341
|
+
const ret = wasm.mqttclient_publishWithOptions(this.__wbg_ptr, ptr0, len0, ptr1, len1, options.__wbg_ptr);
|
|
1340
1342
|
return ret;
|
|
1341
1343
|
}
|
|
1342
1344
|
/**
|
|
@@ -1344,16 +1346,14 @@ export class MqttClient {
|
|
|
1344
1346
|
* Returns an error if not connected or publish fails.
|
|
1345
1347
|
* @param {string} topic
|
|
1346
1348
|
* @param {Uint8Array} payload
|
|
1347
|
-
* @
|
|
1348
|
-
* @returns {Promise<number>}
|
|
1349
|
+
* @returns {Promise<void>}
|
|
1349
1350
|
*/
|
|
1350
|
-
|
|
1351
|
+
publish(topic, payload) {
|
|
1351
1352
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1352
1353
|
const len0 = WASM_VECTOR_LEN;
|
|
1353
1354
|
const ptr1 = passArray8ToWasm0(payload, wasm.__wbindgen_malloc);
|
|
1354
1355
|
const len1 = WASM_VECTOR_LEN;
|
|
1355
|
-
|
|
1356
|
-
const ret = wasm.mqttclient_publishWithOptions(this.__wbg_ptr, ptr0, len0, ptr1, len1, options.__wbg_ptr);
|
|
1356
|
+
const ret = wasm.mqttclient_publish(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1357
1357
|
return ret;
|
|
1358
1358
|
}
|
|
1359
1359
|
/**
|
|
@@ -1380,12 +1380,13 @@ export class MqttClient {
|
|
|
1380
1380
|
* # Errors
|
|
1381
1381
|
* Returns an error if not connected or subscribe fails.
|
|
1382
1382
|
* @param {string} topic
|
|
1383
|
+
* @param {Function} callback
|
|
1383
1384
|
* @returns {Promise<number>}
|
|
1384
1385
|
*/
|
|
1385
|
-
|
|
1386
|
+
subscribeWithCallback(topic, callback) {
|
|
1386
1387
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1387
1388
|
const len0 = WASM_VECTOR_LEN;
|
|
1388
|
-
const ret = wasm.
|
|
1389
|
+
const ret = wasm.mqttclient_subscribeWithCallback(this.__wbg_ptr, ptr0, len0, callback);
|
|
1389
1390
|
return ret;
|
|
1390
1391
|
}
|
|
1391
1392
|
/**
|
|
@@ -1393,27 +1394,26 @@ export class MqttClient {
|
|
|
1393
1394
|
* Returns an error if not connected or subscribe fails.
|
|
1394
1395
|
* @param {string} topic
|
|
1395
1396
|
* @param {Function} callback
|
|
1397
|
+
* @param {SubscribeOptions} options
|
|
1396
1398
|
* @returns {Promise<number>}
|
|
1397
1399
|
*/
|
|
1398
|
-
|
|
1400
|
+
subscribeWithOptions(topic, callback, options) {
|
|
1399
1401
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1400
1402
|
const len0 = WASM_VECTOR_LEN;
|
|
1401
|
-
|
|
1403
|
+
_assertClass(options, SubscribeOptions);
|
|
1404
|
+
const ret = wasm.mqttclient_subscribeWithOptions(this.__wbg_ptr, ptr0, len0, callback, options.__wbg_ptr);
|
|
1402
1405
|
return ret;
|
|
1403
1406
|
}
|
|
1404
1407
|
/**
|
|
1405
1408
|
* # Errors
|
|
1406
1409
|
* Returns an error if not connected or subscribe fails.
|
|
1407
1410
|
* @param {string} topic
|
|
1408
|
-
* @param {Function} callback
|
|
1409
|
-
* @param {SubscribeOptions} options
|
|
1410
1411
|
* @returns {Promise<number>}
|
|
1411
1412
|
*/
|
|
1412
|
-
|
|
1413
|
+
subscribe(topic) {
|
|
1413
1414
|
const ptr0 = passStringToWasm0(topic, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1414
1415
|
const len0 = WASM_VECTOR_LEN;
|
|
1415
|
-
|
|
1416
|
-
const ret = wasm.mqttclient_subscribeWithOptions(this.__wbg_ptr, ptr0, len0, callback, options.__wbg_ptr);
|
|
1416
|
+
const ret = wasm.mqttclient_subscribe(this.__wbg_ptr, ptr0, len0);
|
|
1417
1417
|
return ret;
|
|
1418
1418
|
}
|
|
1419
1419
|
/**
|
|
@@ -1463,7 +1463,7 @@ export class PublishOptions {
|
|
|
1463
1463
|
const ret = wasm.publishoptions_content_type(this.__wbg_ptr);
|
|
1464
1464
|
let v1;
|
|
1465
1465
|
if (ret[0] !== 0) {
|
|
1466
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1466
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1467
1467
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1468
1468
|
}
|
|
1469
1469
|
return v1;
|
|
@@ -1502,7 +1502,7 @@ export class PublishOptions {
|
|
|
1502
1502
|
const ret = wasm.publishoptions_response_topic(this.__wbg_ptr);
|
|
1503
1503
|
let v1;
|
|
1504
1504
|
if (ret[0] !== 0) {
|
|
1505
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
1505
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
1506
1506
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
1507
1507
|
}
|
|
1508
1508
|
return v1;
|
|
@@ -1787,6 +1787,26 @@ export class Store {
|
|
|
1787
1787
|
const ret = wasm.store_create(this.__wbg_ptr, ptr0, len0, ptr1, len1, data, ptr2, len2);
|
|
1788
1788
|
return ret;
|
|
1789
1789
|
}
|
|
1790
|
+
/**
|
|
1791
|
+
* Compare-and-set delete: remove the row only if its server version still
|
|
1792
|
+
* equals `expectedVersion`. Same semantics as `updateIf`.
|
|
1793
|
+
*
|
|
1794
|
+
* # Errors
|
|
1795
|
+
* Returns an error if the argument is malformed, there is no connected
|
|
1796
|
+
* remote, or the broker rejects the write (including version mismatch).
|
|
1797
|
+
* @param {string} entity
|
|
1798
|
+
* @param {string} id
|
|
1799
|
+
* @param {number} expected_version
|
|
1800
|
+
* @returns {Promise<void>}
|
|
1801
|
+
*/
|
|
1802
|
+
deleteIf(entity, id, expected_version) {
|
|
1803
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1804
|
+
const len0 = WASM_VECTOR_LEN;
|
|
1805
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1806
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1807
|
+
const ret = wasm.store_deleteIf(this.__wbg_ptr, ptr0, len0, ptr1, len1, expected_version);
|
|
1808
|
+
return ret;
|
|
1809
|
+
}
|
|
1790
1810
|
/**
|
|
1791
1811
|
* Delete a row. No-op if absent.
|
|
1792
1812
|
*
|
|
@@ -1862,8 +1882,7 @@ export class Store {
|
|
|
1862
1882
|
return ret[0] >>> 0;
|
|
1863
1883
|
}
|
|
1864
1884
|
/**
|
|
1865
|
-
* Snapshot of
|
|
1866
|
-
* `getSnapshot`.
|
|
1885
|
+
* Snapshot of `entity` within `scopeId` as an object keyed by row id.
|
|
1867
1886
|
*
|
|
1868
1887
|
* # Errors
|
|
1869
1888
|
* Returns an error if the read fails.
|
|
@@ -1871,19 +1890,20 @@ export class Store {
|
|
|
1871
1890
|
* @param {string} scope_id
|
|
1872
1891
|
* @returns {any}
|
|
1873
1892
|
*/
|
|
1874
|
-
|
|
1893
|
+
getSnapshotAsMap(entity, scope_id) {
|
|
1875
1894
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1876
1895
|
const len0 = WASM_VECTOR_LEN;
|
|
1877
1896
|
const ptr1 = passStringToWasm0(scope_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1878
1897
|
const len1 = WASM_VECTOR_LEN;
|
|
1879
|
-
const ret = wasm.
|
|
1898
|
+
const ret = wasm.store_getSnapshotAsMap(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1880
1899
|
if (ret[2]) {
|
|
1881
1900
|
throw takeFromExternrefTable0(ret[1]);
|
|
1882
1901
|
}
|
|
1883
1902
|
return takeFromExternrefTable0(ret[0]);
|
|
1884
1903
|
}
|
|
1885
1904
|
/**
|
|
1886
|
-
* Snapshot of `entity` within `scopeId
|
|
1905
|
+
* Snapshot of all rows for `entity` within `scopeId`. Equivalent to TS
|
|
1906
|
+
* `getSnapshot`.
|
|
1887
1907
|
*
|
|
1888
1908
|
* # Errors
|
|
1889
1909
|
* Returns an error if the read fails.
|
|
@@ -1891,12 +1911,12 @@ export class Store {
|
|
|
1891
1911
|
* @param {string} scope_id
|
|
1892
1912
|
* @returns {any}
|
|
1893
1913
|
*/
|
|
1894
|
-
|
|
1914
|
+
getSnapshot(entity, scope_id) {
|
|
1895
1915
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1896
1916
|
const len0 = WASM_VECTOR_LEN;
|
|
1897
1917
|
const ptr1 = passStringToWasm0(scope_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1898
1918
|
const len1 = WASM_VECTOR_LEN;
|
|
1899
|
-
const ret = wasm.
|
|
1919
|
+
const ret = wasm.store_getSnapshot(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
1900
1920
|
if (ret[2]) {
|
|
1901
1921
|
throw takeFromExternrefTable0(ret[1]);
|
|
1902
1922
|
}
|
|
@@ -1983,6 +2003,19 @@ export class Store {
|
|
|
1983
2003
|
}
|
|
1984
2004
|
return ret[0] !== 0;
|
|
1985
2005
|
}
|
|
2006
|
+
/**
|
|
2007
|
+
* List all root entities across scopes, optionally sorted (`[{ field,
|
|
2008
|
+
* direction }]`).
|
|
2009
|
+
*
|
|
2010
|
+
* # Errors
|
|
2011
|
+
* Returns an error if the read fails or `sort` is malformed.
|
|
2012
|
+
* @param {any} sort
|
|
2013
|
+
* @returns {Promise<any>}
|
|
2014
|
+
*/
|
|
2015
|
+
listRootEntities(sort) {
|
|
2016
|
+
const ret = wasm.store_listRootEntities(this.__wbg_ptr, sort);
|
|
2017
|
+
return ret;
|
|
2018
|
+
}
|
|
1986
2019
|
/**
|
|
1987
2020
|
* List rows of `entity`, optionally filtered/sorted. `filter` is
|
|
1988
2021
|
* `{ scopeId?, sort?: [{ field, direction }], projection?: [string] }`.
|
|
@@ -1999,19 +2032,6 @@ export class Store {
|
|
|
1999
2032
|
const ret = wasm.store_list(this.__wbg_ptr, ptr0, len0, filter);
|
|
2000
2033
|
return ret;
|
|
2001
2034
|
}
|
|
2002
|
-
/**
|
|
2003
|
-
* List all root entities across scopes, optionally sorted (`[{ field,
|
|
2004
|
-
* direction }]`).
|
|
2005
|
-
*
|
|
2006
|
-
* # Errors
|
|
2007
|
-
* Returns an error if the read fails or `sort` is malformed.
|
|
2008
|
-
* @param {any} sort
|
|
2009
|
-
* @returns {Promise<any>}
|
|
2010
|
-
*/
|
|
2011
|
-
listRootEntities(sort) {
|
|
2012
|
-
const ret = wasm.store_listRootEntities(this.__wbg_ptr, sort);
|
|
2013
|
-
return ret;
|
|
2014
|
-
}
|
|
2015
2035
|
/**
|
|
2016
2036
|
* Load a scope's rows into the in-memory cache from caller-supplied data,
|
|
2017
2037
|
* `{ entity: [records] }`, replacing any currently-loaded scope. Equivalent
|
|
@@ -2046,43 +2066,43 @@ export class Store {
|
|
|
2046
2066
|
return ret;
|
|
2047
2067
|
}
|
|
2048
2068
|
/**
|
|
2049
|
-
* Read a
|
|
2069
|
+
* Read a row straight from durable persistence, bypassing the in-memory
|
|
2070
|
+
* cache. Returns `null` if absent. Falls back to memory when the store has
|
|
2071
|
+
* no persistence configured.
|
|
2050
2072
|
*
|
|
2051
2073
|
* # Errors
|
|
2052
2074
|
* Returns an error if the read fails.
|
|
2053
2075
|
* @param {string} entity
|
|
2054
2076
|
* @param {string} id
|
|
2055
|
-
* @returns {any}
|
|
2077
|
+
* @returns {Promise<any>}
|
|
2056
2078
|
*/
|
|
2057
|
-
|
|
2079
|
+
readLocalState(entity, id) {
|
|
2058
2080
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2059
2081
|
const len0 = WASM_VECTOR_LEN;
|
|
2060
2082
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2061
2083
|
const len1 = WASM_VECTOR_LEN;
|
|
2062
|
-
const ret = wasm.
|
|
2063
|
-
|
|
2064
|
-
throw takeFromExternrefTable0(ret[1]);
|
|
2065
|
-
}
|
|
2066
|
-
return takeFromExternrefTable0(ret[0]);
|
|
2084
|
+
const ret = wasm.store_readLocalState(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2085
|
+
return ret;
|
|
2067
2086
|
}
|
|
2068
2087
|
/**
|
|
2069
|
-
* Read a row
|
|
2070
|
-
* cache. Returns `null` if absent. Falls back to memory when the store has
|
|
2071
|
-
* no persistence configured.
|
|
2088
|
+
* Read a single row from the in-memory cache, or `null` if absent.
|
|
2072
2089
|
*
|
|
2073
2090
|
* # Errors
|
|
2074
2091
|
* Returns an error if the read fails.
|
|
2075
2092
|
* @param {string} entity
|
|
2076
2093
|
* @param {string} id
|
|
2077
|
-
* @returns {
|
|
2094
|
+
* @returns {any}
|
|
2078
2095
|
*/
|
|
2079
|
-
|
|
2096
|
+
read(entity, id) {
|
|
2080
2097
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2081
2098
|
const len0 = WASM_VECTOR_LEN;
|
|
2082
2099
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2083
2100
|
const len1 = WASM_VECTOR_LEN;
|
|
2084
|
-
const ret = wasm.
|
|
2085
|
-
|
|
2101
|
+
const ret = wasm.store_read(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
2102
|
+
if (ret[2]) {
|
|
2103
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
2104
|
+
}
|
|
2105
|
+
return takeFromExternrefTable0(ret[0]);
|
|
2086
2106
|
}
|
|
2087
2107
|
/**
|
|
2088
2108
|
* `true` once [`Store::initialize`] has completed.
|
|
@@ -2251,24 +2271,26 @@ export class Store {
|
|
|
2251
2271
|
return takeFromExternrefTable0(ret[0]);
|
|
2252
2272
|
}
|
|
2253
2273
|
/**
|
|
2254
|
-
*
|
|
2274
|
+
* Compare-and-set update: apply `fields` only if the row's server version
|
|
2275
|
+
* still equals `expectedVersion` (from a prior row's `_version`). Returns
|
|
2276
|
+
* the new version. Requires a live remote; rejects with a
|
|
2277
|
+
* `preconditionFailed` error on a stale version.
|
|
2255
2278
|
*
|
|
2256
2279
|
* # Errors
|
|
2257
|
-
* Returns an error if the
|
|
2280
|
+
* Returns an error if the argument is malformed, there is no connected
|
|
2281
|
+
* remote, or the broker rejects the write (including version mismatch).
|
|
2258
2282
|
* @param {string} entity
|
|
2259
2283
|
* @param {string} id
|
|
2260
2284
|
* @param {any} fields
|
|
2261
|
-
* @param {
|
|
2262
|
-
* @returns {Promise<
|
|
2285
|
+
* @param {number} expected_version
|
|
2286
|
+
* @returns {Promise<number>}
|
|
2263
2287
|
*/
|
|
2264
|
-
|
|
2288
|
+
updateIf(entity, id, fields, expected_version) {
|
|
2265
2289
|
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2266
2290
|
const len0 = WASM_VECTOR_LEN;
|
|
2267
2291
|
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2268
2292
|
const len1 = WASM_VECTOR_LEN;
|
|
2269
|
-
|
|
2270
|
-
var len2 = WASM_VECTOR_LEN;
|
|
2271
|
-
const ret = wasm.store_update(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields, ptr2, len2);
|
|
2293
|
+
const ret = wasm.store_updateIf(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields, expected_version);
|
|
2272
2294
|
return ret;
|
|
2273
2295
|
}
|
|
2274
2296
|
/**
|
|
@@ -2289,6 +2311,27 @@ export class Store {
|
|
|
2289
2311
|
const ret = wasm.store_updateLocalState(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields);
|
|
2290
2312
|
return ret;
|
|
2291
2313
|
}
|
|
2314
|
+
/**
|
|
2315
|
+
* Partial-update a row.
|
|
2316
|
+
*
|
|
2317
|
+
* # Errors
|
|
2318
|
+
* Returns an error if the write fails.
|
|
2319
|
+
* @param {string} entity
|
|
2320
|
+
* @param {string} id
|
|
2321
|
+
* @param {any} fields
|
|
2322
|
+
* @param {string | null} [tag]
|
|
2323
|
+
* @returns {Promise<void>}
|
|
2324
|
+
*/
|
|
2325
|
+
update(entity, id, fields, tag) {
|
|
2326
|
+
const ptr0 = passStringToWasm0(entity, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2327
|
+
const len0 = WASM_VECTOR_LEN;
|
|
2328
|
+
const ptr1 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2329
|
+
const len1 = WASM_VECTOR_LEN;
|
|
2330
|
+
var ptr2 = isLikeNone(tag) ? 0 : passStringToWasm0(tag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2331
|
+
var len2 = WASM_VECTOR_LEN;
|
|
2332
|
+
const ret = wasm.store_update(this.__wbg_ptr, ptr0, len0, ptr1, len1, fields, ptr2, len2);
|
|
2333
|
+
return ret;
|
|
2334
|
+
}
|
|
2292
2335
|
}
|
|
2293
2336
|
if (Symbol.dispose) Store.prototype[Symbol.dispose] = Store.prototype.free;
|
|
2294
2337
|
|
|
@@ -2395,7 +2438,7 @@ export class WillMessage {
|
|
|
2395
2438
|
const ret = wasm.willmessage_content_type(this.__wbg_ptr);
|
|
2396
2439
|
let v1;
|
|
2397
2440
|
if (ret[0] !== 0) {
|
|
2398
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
2441
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
2399
2442
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2400
2443
|
}
|
|
2401
2444
|
return v1;
|
|
@@ -2435,7 +2478,7 @@ export class WillMessage {
|
|
|
2435
2478
|
const ret = wasm.willmessage_response_topic(this.__wbg_ptr);
|
|
2436
2479
|
let v1;
|
|
2437
2480
|
if (ret[0] !== 0) {
|
|
2438
|
-
v1 = getStringFromWasm0(ret[0], ret[1])
|
|
2481
|
+
v1 = getStringFromWasm0(ret[0], ret[1]);
|
|
2439
2482
|
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
2440
2483
|
}
|
|
2441
2484
|
return v1;
|
|
@@ -2560,11 +2603,11 @@ export function createStore(config, options) {
|
|
|
2560
2603
|
export function init() {
|
|
2561
2604
|
wasm.init();
|
|
2562
2605
|
}
|
|
2563
|
-
export function
|
|
2606
|
+
export function __wbg_Error_30c8987f7c2ed4e2(arg0, arg1) {
|
|
2564
2607
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
2565
2608
|
return ret;
|
|
2566
2609
|
}
|
|
2567
|
-
export function
|
|
2610
|
+
export function __wbg_Number_14af1003b8dd5ead(arg0) {
|
|
2568
2611
|
const ret = Number(arg0);
|
|
2569
2612
|
return ret;
|
|
2570
2613
|
}
|
|
@@ -2575,64 +2618,64 @@ export function __wbg_String_8564e559799eccda(arg0, arg1) {
|
|
|
2575
2618
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2576
2619
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2577
2620
|
}
|
|
2578
|
-
export function
|
|
2621
|
+
export function __wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c(arg0, arg1) {
|
|
2579
2622
|
const v = arg1;
|
|
2580
2623
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
2581
2624
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
2582
2625
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2583
2626
|
}
|
|
2584
|
-
export function
|
|
2627
|
+
export function __wbg___wbindgen_boolean_get_5b446f51afd21013(arg0) {
|
|
2585
2628
|
const v = arg0;
|
|
2586
2629
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
2587
2630
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
2588
2631
|
}
|
|
2589
|
-
export function
|
|
2632
|
+
export function __wbg___wbindgen_debug_string_4687d8d8c2017d52(arg0, arg1) {
|
|
2590
2633
|
const ret = debugString(arg1);
|
|
2591
2634
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
2592
2635
|
const len1 = WASM_VECTOR_LEN;
|
|
2593
2636
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2594
2637
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2595
2638
|
}
|
|
2596
|
-
export function
|
|
2639
|
+
export function __wbg___wbindgen_in_92f62ee1427d9e49(arg0, arg1) {
|
|
2597
2640
|
const ret = arg0 in arg1;
|
|
2598
2641
|
return ret;
|
|
2599
2642
|
}
|
|
2600
|
-
export function
|
|
2643
|
+
export function __wbg___wbindgen_is_bigint_b123553bed3bb382(arg0) {
|
|
2601
2644
|
const ret = typeof(arg0) === 'bigint';
|
|
2602
2645
|
return ret;
|
|
2603
2646
|
}
|
|
2604
|
-
export function
|
|
2647
|
+
export function __wbg___wbindgen_is_function_1f9d30630b8b1d3d(arg0) {
|
|
2605
2648
|
const ret = typeof(arg0) === 'function';
|
|
2606
2649
|
return ret;
|
|
2607
2650
|
}
|
|
2608
|
-
export function
|
|
2651
|
+
export function __wbg___wbindgen_is_null_e343b7d08827ba72(arg0) {
|
|
2609
2652
|
const ret = arg0 === null;
|
|
2610
2653
|
return ret;
|
|
2611
2654
|
}
|
|
2612
|
-
export function
|
|
2655
|
+
export function __wbg___wbindgen_is_object_3c45d4f2dde4e749(arg0) {
|
|
2613
2656
|
const val = arg0;
|
|
2614
2657
|
const ret = typeof(val) === 'object' && val !== null;
|
|
2615
2658
|
return ret;
|
|
2616
2659
|
}
|
|
2617
|
-
export function
|
|
2660
|
+
export function __wbg___wbindgen_is_undefined_8865fb403f8fe9d8(arg0) {
|
|
2618
2661
|
const ret = arg0 === undefined;
|
|
2619
2662
|
return ret;
|
|
2620
2663
|
}
|
|
2621
|
-
export function
|
|
2664
|
+
export function __wbg___wbindgen_jsval_eq_02babf21faa37971(arg0, arg1) {
|
|
2622
2665
|
const ret = arg0 === arg1;
|
|
2623
2666
|
return ret;
|
|
2624
2667
|
}
|
|
2625
|
-
export function
|
|
2668
|
+
export function __wbg___wbindgen_jsval_loose_eq_677f21e468d6b461(arg0, arg1) {
|
|
2626
2669
|
const ret = arg0 == arg1;
|
|
2627
2670
|
return ret;
|
|
2628
2671
|
}
|
|
2629
|
-
export function
|
|
2672
|
+
export function __wbg___wbindgen_number_get_2e0e7dee9f701a71(arg0, arg1) {
|
|
2630
2673
|
const obj = arg1;
|
|
2631
2674
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
2632
2675
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
2633
2676
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
2634
2677
|
}
|
|
2635
|
-
export function
|
|
2678
|
+
export function __wbg___wbindgen_string_get_0380ccaa2f57f0d9(arg0, arg1) {
|
|
2636
2679
|
const obj = arg1;
|
|
2637
2680
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
2638
2681
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -2640,70 +2683,70 @@ export function __wbg___wbindgen_string_get_b0ca35b86a603356(arg0, arg1) {
|
|
|
2640
2683
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
2641
2684
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
2642
2685
|
}
|
|
2643
|
-
export function
|
|
2686
|
+
export function __wbg___wbindgen_throw_41e9ee4f547fc59a(arg0, arg1) {
|
|
2644
2687
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
2645
2688
|
}
|
|
2646
|
-
export function
|
|
2689
|
+
export function __wbg__wbg_cb_unref_dcc1a90847f04c41(arg0) {
|
|
2647
2690
|
arg0._wbg_cb_unref();
|
|
2648
2691
|
}
|
|
2649
|
-
export function
|
|
2692
|
+
export function __wbg_abort_5b288d575f2b02d1() { return handleError(function (arg0) {
|
|
2650
2693
|
arg0.abort();
|
|
2651
2694
|
}, arguments); }
|
|
2652
|
-
export function
|
|
2653
|
-
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
2654
|
-
}, arguments); }
|
|
2655
|
-
export function __wbg_addEventListener_d85450ee1320c989() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2695
|
+
export function __wbg_addEventListener_4d0db17c671ea324() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2656
2696
|
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
2657
2697
|
}, arguments); }
|
|
2658
|
-
export function
|
|
2698
|
+
export function __wbg_addEventListener_8d3235978b9c69a8() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2699
|
+
arg0.addEventListener(getStringFromWasm0(arg1, arg2), arg3, arg4);
|
|
2700
|
+
}, arguments); }
|
|
2701
|
+
export function __wbg_bound_28d4d4981b7923a4() { return handleError(function (arg0, arg1) {
|
|
2659
2702
|
const ret = IDBKeyRange.bound(arg0, arg1);
|
|
2660
2703
|
return ret;
|
|
2661
2704
|
}, arguments); }
|
|
2662
|
-
export function
|
|
2705
|
+
export function __wbg_buffer_56ec2905a66f58b9(arg0) {
|
|
2663
2706
|
const ret = arg0.buffer;
|
|
2664
2707
|
return ret;
|
|
2665
2708
|
}
|
|
2666
|
-
export function
|
|
2667
|
-
const ret = arg0.call(arg1, arg2, arg3
|
|
2709
|
+
export function __wbg_call_1875a20c43a36133() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2710
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
2668
2711
|
return ret;
|
|
2669
2712
|
}, arguments); }
|
|
2670
|
-
export function
|
|
2671
|
-
const ret = arg0.call(arg1);
|
|
2713
|
+
export function __wbg_call_187d372bd5fdd4aa() { return handleError(function (arg0, arg1, arg2) {
|
|
2714
|
+
const ret = arg0.call(arg1, arg2);
|
|
2672
2715
|
return ret;
|
|
2673
2716
|
}, arguments); }
|
|
2674
|
-
export function
|
|
2675
|
-
const ret = arg0.call(arg1
|
|
2717
|
+
export function __wbg_call_6137034ef55c9d0f() { return handleError(function (arg0, arg1) {
|
|
2718
|
+
const ret = arg0.call(arg1);
|
|
2676
2719
|
return ret;
|
|
2677
2720
|
}, arguments); }
|
|
2678
|
-
export function
|
|
2679
|
-
const ret = arg0.call(arg1, arg2, arg3);
|
|
2721
|
+
export function __wbg_call_939a2607c4484b0b() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2722
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
2680
2723
|
return ret;
|
|
2681
2724
|
}, arguments); }
|
|
2682
2725
|
export function __wbg_clearTimeout_3629d6209dfcc46e(arg0) {
|
|
2683
2726
|
const ret = clearTimeout(arg0);
|
|
2684
2727
|
return ret;
|
|
2685
2728
|
}
|
|
2686
|
-
export function
|
|
2729
|
+
export function __wbg_close_3dbb67f6997e08f5(arg0) {
|
|
2687
2730
|
arg0.close();
|
|
2688
2731
|
}
|
|
2689
|
-
export function
|
|
2732
|
+
export function __wbg_close_910d189411ba5062(arg0) {
|
|
2690
2733
|
arg0.close();
|
|
2691
2734
|
}
|
|
2692
|
-
export function
|
|
2735
|
+
export function __wbg_close_d3ed56b5763be5ae() { return handleError(function (arg0) {
|
|
2693
2736
|
arg0.close();
|
|
2694
2737
|
}, arguments); }
|
|
2695
|
-
export function
|
|
2738
|
+
export function __wbg_contains_4222f17acc5763a3(arg0, arg1, arg2) {
|
|
2696
2739
|
const ret = arg0.contains(getStringFromWasm0(arg1, arg2));
|
|
2697
2740
|
return ret;
|
|
2698
2741
|
}
|
|
2699
|
-
export function
|
|
2742
|
+
export function __wbg_continue_f83efa8d7e649e16() { return handleError(function (arg0) {
|
|
2700
2743
|
arg0.continue();
|
|
2701
2744
|
}, arguments); }
|
|
2702
|
-
export function
|
|
2745
|
+
export function __wbg_createObjectStore_04975f5b5e182bfb() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2703
2746
|
const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
|
|
2704
2747
|
return ret;
|
|
2705
2748
|
}, arguments); }
|
|
2706
|
-
export function
|
|
2749
|
+
export function __wbg_crypto_d3d085052e9d631f() { return handleError(function (arg0) {
|
|
2707
2750
|
const ret = arg0.crypto;
|
|
2708
2751
|
return ret;
|
|
2709
2752
|
}, arguments); }
|
|
@@ -2711,7 +2754,7 @@ export function __wbg_cursor_new(arg0) {
|
|
|
2711
2754
|
const ret = Cursor.__wrap(arg0);
|
|
2712
2755
|
return ret;
|
|
2713
2756
|
}
|
|
2714
|
-
export function
|
|
2757
|
+
export function __wbg_data_522f7abc70721269(arg0) {
|
|
2715
2758
|
const ret = arg0.data;
|
|
2716
2759
|
return ret;
|
|
2717
2760
|
}
|
|
@@ -2719,31 +2762,31 @@ export function __wbg_database_new(arg0) {
|
|
|
2719
2762
|
const ret = Database.__wrap(arg0);
|
|
2720
2763
|
return ret;
|
|
2721
2764
|
}
|
|
2722
|
-
export function
|
|
2765
|
+
export function __wbg_decrypt_0e9566ce8284c64c() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2723
2766
|
const ret = arg0.decrypt(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2724
2767
|
return ret;
|
|
2725
2768
|
}, arguments); }
|
|
2726
|
-
export function
|
|
2769
|
+
export function __wbg_delete_efcc1a7f91e815b8() { return handleError(function (arg0, arg1) {
|
|
2727
2770
|
const ret = arg0.delete(arg1);
|
|
2728
2771
|
return ret;
|
|
2729
2772
|
}, arguments); }
|
|
2730
|
-
export function
|
|
2773
|
+
export function __wbg_deriveKey_758cf0c078e2740c() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
|
|
2731
2774
|
const ret = arg0.deriveKey(arg1, arg2, arg3, arg4 !== 0, arg5);
|
|
2732
2775
|
return ret;
|
|
2733
2776
|
}, arguments); }
|
|
2734
|
-
export function
|
|
2777
|
+
export function __wbg_done_b41a1d26cdb37fb6(arg0) {
|
|
2735
2778
|
const ret = arg0.done;
|
|
2736
2779
|
return ret;
|
|
2737
2780
|
}
|
|
2738
|
-
export function
|
|
2781
|
+
export function __wbg_encrypt_59d97b75fa4a14ef() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
2739
2782
|
const ret = arg0.encrypt(arg1, arg2, getArrayU8FromWasm0(arg3, arg4));
|
|
2740
2783
|
return ret;
|
|
2741
2784
|
}, arguments); }
|
|
2742
|
-
export function
|
|
2785
|
+
export function __wbg_entries_fb6397112b1de25f(arg0) {
|
|
2743
2786
|
const ret = Object.entries(arg0);
|
|
2744
2787
|
return ret;
|
|
2745
2788
|
}
|
|
2746
|
-
export function
|
|
2789
|
+
export function __wbg_error_757e9472f8410341(arg0, arg1) {
|
|
2747
2790
|
let deferred0_0;
|
|
2748
2791
|
let deferred0_1;
|
|
2749
2792
|
try {
|
|
@@ -2754,37 +2797,37 @@ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
|
|
|
2754
2797
|
wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
|
|
2755
2798
|
}
|
|
2756
2799
|
}
|
|
2757
|
-
export function
|
|
2800
|
+
export function __wbg_from_296ca31f8d0f1c52(arg0) {
|
|
2758
2801
|
const ret = Array.from(arg0);
|
|
2759
2802
|
return ret;
|
|
2760
2803
|
}
|
|
2761
|
-
export function
|
|
2762
|
-
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
2763
|
-
return ret;
|
|
2764
|
-
}, arguments); }
|
|
2765
|
-
export function __wbg_getRandomValues_cc7f052a444bb2ce() { return handleError(function (arg0, arg1) {
|
|
2804
|
+
export function __wbg_getRandomValues_436a51d0629d84e1() { return handleError(function (arg0, arg1) {
|
|
2766
2805
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2767
2806
|
}, arguments); }
|
|
2768
|
-
export function
|
|
2807
|
+
export function __wbg_getRandomValues_973dabfb0ad1769f() { return handleError(function (arg0, arg1) {
|
|
2769
2808
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
2770
2809
|
}, arguments); }
|
|
2771
|
-
export function
|
|
2772
|
-
const ret = arg0
|
|
2810
|
+
export function __wbg_getRandomValues_d6af6b966cb9aefc() { return handleError(function (arg0, arg1, arg2) {
|
|
2811
|
+
const ret = arg0.getRandomValues(getArrayU8FromWasm0(arg1, arg2));
|
|
2773
2812
|
return ret;
|
|
2774
|
-
}
|
|
2775
|
-
export function
|
|
2813
|
+
}, arguments); }
|
|
2814
|
+
export function __wbg_get_31af05bd4842a84f() { return handleError(function (arg0, arg1) {
|
|
2776
2815
|
const ret = Reflect.get(arg0, arg1);
|
|
2777
2816
|
return ret;
|
|
2778
2817
|
}, arguments); }
|
|
2779
|
-
export function
|
|
2818
|
+
export function __wbg_get_658f6698067d9515() { return handleError(function (arg0, arg1) {
|
|
2780
2819
|
const ret = Reflect.get(arg0, arg1);
|
|
2781
2820
|
return ret;
|
|
2782
2821
|
}, arguments); }
|
|
2783
|
-
export function
|
|
2822
|
+
export function __wbg_get_6c896e0571ddae51(arg0, arg1) {
|
|
2823
|
+
const ret = arg0[arg1 >>> 0];
|
|
2824
|
+
return ret;
|
|
2825
|
+
}
|
|
2826
|
+
export function __wbg_get_e06b8725897cb193() { return handleError(function (arg0, arg1) {
|
|
2784
2827
|
const ret = arg0.get(arg1);
|
|
2785
2828
|
return ret;
|
|
2786
2829
|
}, arguments); }
|
|
2787
|
-
export function
|
|
2830
|
+
export function __wbg_get_unchecked_288889d017702237(arg0, arg1) {
|
|
2788
2831
|
const ret = arg0[arg1 >>> 0];
|
|
2789
2832
|
return ret;
|
|
2790
2833
|
}
|
|
@@ -2792,15 +2835,15 @@ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
|
|
|
2792
2835
|
const ret = arg0[arg1];
|
|
2793
2836
|
return ret;
|
|
2794
2837
|
}
|
|
2795
|
-
export function
|
|
2838
|
+
export function __wbg_importKey_5955a809402df9c3() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
|
2796
2839
|
const ret = arg0.importKey(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5), arg6 !== 0, arg7);
|
|
2797
2840
|
return ret;
|
|
2798
2841
|
}, arguments); }
|
|
2799
|
-
export function
|
|
2842
|
+
export function __wbg_indexedDB_53d75531b7daa0cd() { return handleError(function (arg0) {
|
|
2800
2843
|
const ret = arg0.indexedDB;
|
|
2801
2844
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
2802
2845
|
}, arguments); }
|
|
2803
|
-
export function
|
|
2846
|
+
export function __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8(arg0) {
|
|
2804
2847
|
let result;
|
|
2805
2848
|
try {
|
|
2806
2849
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -2810,7 +2853,7 @@ export function __wbg_instanceof_ArrayBuffer_4480b9e0068a8adb(arg0) {
|
|
|
2810
2853
|
const ret = result;
|
|
2811
2854
|
return ret;
|
|
2812
2855
|
}
|
|
2813
|
-
export function
|
|
2856
|
+
export function __wbg_instanceof_Map_b2611749102d7ba3(arg0) {
|
|
2814
2857
|
let result;
|
|
2815
2858
|
try {
|
|
2816
2859
|
result = arg0 instanceof Map;
|
|
@@ -2820,7 +2863,7 @@ export function __wbg_instanceof_Map_e5b5e3db98422fcc(arg0) {
|
|
|
2820
2863
|
const ret = result;
|
|
2821
2864
|
return ret;
|
|
2822
2865
|
}
|
|
2823
|
-
export function
|
|
2866
|
+
export function __wbg_instanceof_Uint8Array_828cef2aaacafc31(arg0) {
|
|
2824
2867
|
let result;
|
|
2825
2868
|
try {
|
|
2826
2869
|
result = arg0 instanceof Uint8Array;
|
|
@@ -2830,7 +2873,7 @@ export function __wbg_instanceof_Uint8Array_309b927aaf7a3fc7(arg0) {
|
|
|
2830
2873
|
const ret = result;
|
|
2831
2874
|
return ret;
|
|
2832
2875
|
}
|
|
2833
|
-
export function
|
|
2876
|
+
export function __wbg_instanceof_Window_82d71df4eddf88bc(arg0) {
|
|
2834
2877
|
let result;
|
|
2835
2878
|
try {
|
|
2836
2879
|
result = arg0 instanceof Window;
|
|
@@ -2840,27 +2883,27 @@ export function __wbg_instanceof_Window_05ba1ee4f6781663(arg0) {
|
|
|
2840
2883
|
const ret = result;
|
|
2841
2884
|
return ret;
|
|
2842
2885
|
}
|
|
2843
|
-
export function
|
|
2886
|
+
export function __wbg_isArray_e15a2ff68ffdbef2(arg0) {
|
|
2844
2887
|
const ret = Array.isArray(arg0);
|
|
2845
2888
|
return ret;
|
|
2846
2889
|
}
|
|
2847
|
-
export function
|
|
2890
|
+
export function __wbg_isSafeInteger_717808ad6a54bd9e(arg0) {
|
|
2848
2891
|
const ret = Number.isSafeInteger(arg0);
|
|
2849
2892
|
return ret;
|
|
2850
2893
|
}
|
|
2851
|
-
export function
|
|
2894
|
+
export function __wbg_iterator_e3c31c892080e444() {
|
|
2852
2895
|
const ret = Symbol.iterator;
|
|
2853
2896
|
return ret;
|
|
2854
2897
|
}
|
|
2855
|
-
export function
|
|
2898
|
+
export function __wbg_key_46ce184affdc8d18() { return handleError(function (arg0) {
|
|
2856
2899
|
const ret = arg0.key;
|
|
2857
2900
|
return ret;
|
|
2858
2901
|
}, arguments); }
|
|
2859
|
-
export function
|
|
2902
|
+
export function __wbg_length_7f3c00c40364105e(arg0) {
|
|
2860
2903
|
const ret = arg0.length;
|
|
2861
2904
|
return ret;
|
|
2862
2905
|
}
|
|
2863
|
-
export function
|
|
2906
|
+
export function __wbg_length_d4bdea10311bd9cf(arg0) {
|
|
2864
2907
|
const ret = arg0.length;
|
|
2865
2908
|
return ret;
|
|
2866
2909
|
}
|
|
@@ -2868,30 +2911,30 @@ export function __wbg_messageproperties_new(arg0) {
|
|
|
2868
2911
|
const ret = MessageProperties.__wrap(arg0);
|
|
2869
2912
|
return ret;
|
|
2870
2913
|
}
|
|
2871
|
-
export function
|
|
2914
|
+
export function __wbg_navigator_2156486643462a87(arg0) {
|
|
2872
2915
|
const ret = arg0.navigator;
|
|
2873
2916
|
return ret;
|
|
2874
2917
|
}
|
|
2918
|
+
export function __wbg_new_1dbf7428bba60a42(arg0) {
|
|
2919
|
+
const ret = new Uint8Array(arg0);
|
|
2920
|
+
return ret;
|
|
2921
|
+
}
|
|
2875
2922
|
export function __wbg_new_227d7c05414eb861() {
|
|
2876
2923
|
const ret = new Error();
|
|
2877
2924
|
return ret;
|
|
2878
2925
|
}
|
|
2879
|
-
export function
|
|
2880
|
-
const ret = new
|
|
2881
|
-
return ret;
|
|
2882
|
-
}, arguments); }
|
|
2883
|
-
export function __wbg_new_32b398fb48b6d94a() {
|
|
2884
|
-
const ret = new Array();
|
|
2926
|
+
export function __wbg_new_343a093a3c2ffb4e(arg0, arg1) {
|
|
2927
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
2885
2928
|
return ret;
|
|
2886
2929
|
}
|
|
2887
|
-
export function
|
|
2930
|
+
export function __wbg_new_5502aad30c185fc8(arg0, arg1) {
|
|
2888
2931
|
try {
|
|
2889
2932
|
var state0 = {a: arg0, b: arg1};
|
|
2890
2933
|
var cb0 = (arg0, arg1) => {
|
|
2891
2934
|
const a = state0.a;
|
|
2892
2935
|
state0.a = 0;
|
|
2893
2936
|
try {
|
|
2894
|
-
return
|
|
2937
|
+
return wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
2895
2938
|
} finally {
|
|
2896
2939
|
state0.a = a;
|
|
2897
2940
|
}
|
|
@@ -2902,34 +2945,34 @@ export function __wbg_new_aec3e25493d729fe(arg0, arg1) {
|
|
|
2902
2945
|
state0.a = 0;
|
|
2903
2946
|
}
|
|
2904
2947
|
}
|
|
2905
|
-
export function
|
|
2906
|
-
const ret = new
|
|
2948
|
+
export function __wbg_new_617a8cdb8bb1130e() {
|
|
2949
|
+
const ret = new Object();
|
|
2907
2950
|
return ret;
|
|
2908
2951
|
}
|
|
2909
|
-
export function
|
|
2910
|
-
const ret = new
|
|
2952
|
+
export function __wbg_new_abaf2d49bbf44a41() { return handleError(function (arg0, arg1) {
|
|
2953
|
+
const ret = new BroadcastChannel(getStringFromWasm0(arg0, arg1));
|
|
2911
2954
|
return ret;
|
|
2912
|
-
}
|
|
2913
|
-
export function
|
|
2914
|
-
const ret = new
|
|
2955
|
+
}, arguments); }
|
|
2956
|
+
export function __wbg_new_ee2291f50781bf1d() {
|
|
2957
|
+
const ret = new Array();
|
|
2915
2958
|
return ret;
|
|
2916
2959
|
}
|
|
2917
|
-
export function
|
|
2960
|
+
export function __wbg_new_from_slice_9a868026ffa4208a(arg0, arg1) {
|
|
2918
2961
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
2919
2962
|
return ret;
|
|
2920
2963
|
}
|
|
2921
|
-
export function
|
|
2964
|
+
export function __wbg_new_no_args_549db978c37d28cc(arg0, arg1) {
|
|
2922
2965
|
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
2923
2966
|
return ret;
|
|
2924
2967
|
}
|
|
2925
|
-
export function
|
|
2968
|
+
export function __wbg_new_typed_b01cb72a8af741a3(arg0, arg1) {
|
|
2926
2969
|
try {
|
|
2927
2970
|
var state0 = {a: arg0, b: arg1};
|
|
2928
2971
|
var cb0 = (arg0, arg1) => {
|
|
2929
2972
|
const a = state0.a;
|
|
2930
2973
|
state0.a = 0;
|
|
2931
2974
|
try {
|
|
2932
|
-
return
|
|
2975
|
+
return wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
2933
2976
|
} finally {
|
|
2934
2977
|
state0.a = a;
|
|
2935
2978
|
}
|
|
@@ -2940,86 +2983,86 @@ export function __wbg_new_typed_1824d93f294193e5(arg0, arg1) {
|
|
|
2940
2983
|
state0.a = 0;
|
|
2941
2984
|
}
|
|
2942
2985
|
}
|
|
2943
|
-
export function
|
|
2986
|
+
export function __wbg_new_with_str_d969ab40df6f3773() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2944
2987
|
const ret = new WebSocket(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
2945
2988
|
return ret;
|
|
2946
2989
|
}, arguments); }
|
|
2947
|
-
export function
|
|
2990
|
+
export function __wbg_next_33784799010f1bbe(arg0) {
|
|
2948
2991
|
const ret = arg0.next;
|
|
2949
2992
|
return ret;
|
|
2950
2993
|
}
|
|
2951
|
-
export function
|
|
2994
|
+
export function __wbg_next_f4aac29c42af995c() { return handleError(function (arg0) {
|
|
2952
2995
|
const ret = arg0.next();
|
|
2953
2996
|
return ret;
|
|
2954
2997
|
}, arguments); }
|
|
2955
|
-
export function
|
|
2998
|
+
export function __wbg_now_aa4ccb83129e9e55() {
|
|
2956
2999
|
const ret = Date.now();
|
|
2957
3000
|
return ret;
|
|
2958
3001
|
}
|
|
2959
|
-
export function
|
|
3002
|
+
export function __wbg_now_e1044392fce0f3e7() { return handleError(function () {
|
|
2960
3003
|
const ret = Date.now();
|
|
2961
3004
|
return ret;
|
|
2962
3005
|
}, arguments); }
|
|
2963
|
-
export function
|
|
3006
|
+
export function __wbg_objectStoreNames_19a06aba400d0baf(arg0) {
|
|
2964
3007
|
const ret = arg0.objectStoreNames;
|
|
2965
3008
|
return ret;
|
|
2966
3009
|
}
|
|
2967
|
-
export function
|
|
3010
|
+
export function __wbg_objectStore_43178e7a3459e234() { return handleError(function (arg0, arg1, arg2) {
|
|
2968
3011
|
const ret = arg0.objectStore(getStringFromWasm0(arg1, arg2));
|
|
2969
3012
|
return ret;
|
|
2970
3013
|
}, arguments); }
|
|
2971
|
-
export function
|
|
3014
|
+
export function __wbg_onLine_f6b59ad69e157268(arg0) {
|
|
2972
3015
|
const ret = arg0.onLine;
|
|
2973
3016
|
return ret;
|
|
2974
3017
|
}
|
|
2975
|
-
export function
|
|
3018
|
+
export function __wbg_openCursor_50c5809d0805ebb3() { return handleError(function (arg0, arg1) {
|
|
2976
3019
|
const ret = arg0.openCursor(arg1);
|
|
2977
3020
|
return ret;
|
|
2978
3021
|
}, arguments); }
|
|
2979
|
-
export function
|
|
3022
|
+
export function __wbg_open_dbf85f9611885c1b() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
2980
3023
|
const ret = arg0.open(getStringFromWasm0(arg1, arg2), arg3 >>> 0);
|
|
2981
3024
|
return ret;
|
|
2982
3025
|
}, arguments); }
|
|
2983
|
-
export function
|
|
3026
|
+
export function __wbg_parse_0fc53dead14b3b42() { return handleError(function (arg0, arg1) {
|
|
2984
3027
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
2985
3028
|
return ret;
|
|
2986
3029
|
}, arguments); }
|
|
2987
|
-
export function
|
|
3030
|
+
export function __wbg_postMessage_1e2d73aba527c147() { return handleError(function (arg0, arg1) {
|
|
2988
3031
|
arg0.postMessage(arg1);
|
|
2989
3032
|
}, arguments); }
|
|
2990
|
-
export function
|
|
3033
|
+
export function __wbg_postMessage_a6f2014b8b722172() { return handleError(function (arg0, arg1) {
|
|
2991
3034
|
arg0.postMessage(arg1);
|
|
2992
3035
|
}, arguments); }
|
|
2993
|
-
export function
|
|
3036
|
+
export function __wbg_prototypesetcall_bc27214492979395(arg0, arg1, arg2) {
|
|
2994
3037
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
2995
3038
|
}
|
|
2996
|
-
export function
|
|
3039
|
+
export function __wbg_push_2baf45db356cf468(arg0, arg1) {
|
|
2997
3040
|
const ret = arg0.push(arg1);
|
|
2998
3041
|
return ret;
|
|
2999
3042
|
}
|
|
3000
|
-
export function
|
|
3043
|
+
export function __wbg_put_378af428b16ba8f2() { return handleError(function (arg0, arg1, arg2) {
|
|
3001
3044
|
const ret = arg0.put(arg1, arg2);
|
|
3002
3045
|
return ret;
|
|
3003
3046
|
}, arguments); }
|
|
3004
|
-
export function
|
|
3047
|
+
export function __wbg_queueMicrotask_9833f9a49df95a49(arg0) {
|
|
3005
3048
|
const ret = arg0.queueMicrotask;
|
|
3006
3049
|
return ret;
|
|
3007
3050
|
}
|
|
3008
|
-
export function
|
|
3051
|
+
export function __wbg_queueMicrotask_a72f977e97f23c5f(arg0) {
|
|
3009
3052
|
queueMicrotask(arg0);
|
|
3010
3053
|
}
|
|
3011
|
-
export function
|
|
3054
|
+
export function __wbg_removeEventListener_6e68185345978771() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3012
3055
|
arg0.removeEventListener(getStringFromWasm0(arg1, arg2), arg3);
|
|
3013
3056
|
}, arguments); }
|
|
3014
|
-
export function
|
|
3057
|
+
export function __wbg_resolve_0076e10020304ede(arg0) {
|
|
3015
3058
|
const ret = Promise.resolve(arg0);
|
|
3016
3059
|
return ret;
|
|
3017
3060
|
}
|
|
3018
|
-
export function
|
|
3061
|
+
export function __wbg_result_ea60156c5cd4726f() { return handleError(function (arg0) {
|
|
3019
3062
|
const ret = arg0.result;
|
|
3020
3063
|
return ret;
|
|
3021
3064
|
}, arguments); }
|
|
3022
|
-
export function
|
|
3065
|
+
export function __wbg_send_c1dad0ec2e52defb() { return handleError(function (arg0, arg1, arg2) {
|
|
3023
3066
|
arg0.send(getArrayU8FromWasm0(arg1, arg2));
|
|
3024
3067
|
}, arguments); }
|
|
3025
3068
|
export function __wbg_setTimeout_56bcdccbad22fd44() { return handleError(function (arg0, arg1) {
|
|
@@ -3030,68 +3073,68 @@ export function __wbg_setTimeout_bf11a6c6d35ea7b0(arg0, arg1) {
|
|
|
3030
3073
|
const ret = setTimeout(arg0, arg1);
|
|
3031
3074
|
return ret;
|
|
3032
3075
|
}
|
|
3033
|
-
export function
|
|
3076
|
+
export function __wbg_set_145a351398b48c65() { return handleError(function (arg0, arg1, arg2) {
|
|
3034
3077
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
3035
3078
|
return ret;
|
|
3036
3079
|
}, arguments); }
|
|
3037
|
-
export function
|
|
3080
|
+
export function __wbg_set_additional_data_ff131a30fb81a17d(arg0, arg1) {
|
|
3038
3081
|
arg0.additionalData = arg1;
|
|
3039
3082
|
}
|
|
3040
|
-
export function
|
|
3083
|
+
export function __wbg_set_binaryType_21835bf0df8f70aa(arg0, arg1) {
|
|
3041
3084
|
arg0.binaryType = __wbindgen_enum_BinaryType[arg1];
|
|
3042
3085
|
}
|
|
3043
|
-
export function
|
|
3086
|
+
export function __wbg_set_hash_494a18afe12e8af3(arg0, arg1) {
|
|
3044
3087
|
arg0.hash = arg1;
|
|
3045
3088
|
}
|
|
3046
|
-
export function
|
|
3089
|
+
export function __wbg_set_iterations_013d01fe4589fb9b(arg0, arg1) {
|
|
3047
3090
|
arg0.iterations = arg1 >>> 0;
|
|
3048
3091
|
}
|
|
3049
|
-
export function
|
|
3092
|
+
export function __wbg_set_iv_976dcf1aaf77a821(arg0, arg1) {
|
|
3050
3093
|
arg0.iv = arg1;
|
|
3051
3094
|
}
|
|
3052
|
-
export function
|
|
3095
|
+
export function __wbg_set_length_8339027b398747a6(arg0, arg1) {
|
|
3053
3096
|
arg0.length = arg1;
|
|
3054
3097
|
}
|
|
3055
|
-
export function
|
|
3098
|
+
export function __wbg_set_name_30f4bce9ac70119f(arg0, arg1, arg2) {
|
|
3056
3099
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3057
3100
|
}
|
|
3058
|
-
export function
|
|
3101
|
+
export function __wbg_set_name_3de0dd856e76461a(arg0, arg1, arg2) {
|
|
3059
3102
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3060
3103
|
}
|
|
3061
|
-
export function
|
|
3104
|
+
export function __wbg_set_name_d3391bc1a7f05c87(arg0, arg1, arg2) {
|
|
3062
3105
|
arg0.name = getStringFromWasm0(arg1, arg2);
|
|
3063
3106
|
}
|
|
3064
|
-
export function
|
|
3107
|
+
export function __wbg_set_once_8c45bbbfb71d1b34(arg0, arg1) {
|
|
3065
3108
|
arg0.once = arg1 !== 0;
|
|
3066
3109
|
}
|
|
3067
|
-
export function
|
|
3110
|
+
export function __wbg_set_onclose_a84370531f3d2948(arg0, arg1) {
|
|
3068
3111
|
arg0.onclose = arg1;
|
|
3069
3112
|
}
|
|
3070
|
-
export function
|
|
3113
|
+
export function __wbg_set_onerror_24dddc0e8dc54601(arg0, arg1) {
|
|
3071
3114
|
arg0.onerror = arg1;
|
|
3072
3115
|
}
|
|
3073
|
-
export function
|
|
3116
|
+
export function __wbg_set_onerror_94ee307653399172(arg0, arg1) {
|
|
3074
3117
|
arg0.onerror = arg1;
|
|
3075
3118
|
}
|
|
3076
|
-
export function
|
|
3119
|
+
export function __wbg_set_onmessage_870d468822d40c5b(arg0, arg1) {
|
|
3077
3120
|
arg0.onmessage = arg1;
|
|
3078
3121
|
}
|
|
3079
|
-
export function
|
|
3122
|
+
export function __wbg_set_onmessage_cb6f77d2d8e0402a(arg0, arg1) {
|
|
3080
3123
|
arg0.onmessage = arg1;
|
|
3081
3124
|
}
|
|
3082
|
-
export function
|
|
3125
|
+
export function __wbg_set_onmessage_d83a0d6439238156(arg0, arg1) {
|
|
3083
3126
|
arg0.onmessage = arg1;
|
|
3084
3127
|
}
|
|
3085
|
-
export function
|
|
3128
|
+
export function __wbg_set_onopen_c914147e8a2db4b0(arg0, arg1) {
|
|
3086
3129
|
arg0.onopen = arg1;
|
|
3087
3130
|
}
|
|
3088
|
-
export function
|
|
3131
|
+
export function __wbg_set_onsuccess_e970bffc8d0e7520(arg0, arg1) {
|
|
3089
3132
|
arg0.onsuccess = arg1;
|
|
3090
3133
|
}
|
|
3091
|
-
export function
|
|
3134
|
+
export function __wbg_set_onupgradeneeded_f9d42df70899331b(arg0, arg1) {
|
|
3092
3135
|
arg0.onupgradeneeded = arg1;
|
|
3093
3136
|
}
|
|
3094
|
-
export function
|
|
3137
|
+
export function __wbg_set_salt_ae9718ceff047a15(arg0, arg1) {
|
|
3095
3138
|
arg0.salt = arg1;
|
|
3096
3139
|
}
|
|
3097
3140
|
export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
@@ -3101,121 +3144,121 @@ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
|
|
|
3101
3144
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
3102
3145
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
3103
3146
|
}
|
|
3104
|
-
export function
|
|
3147
|
+
export function __wbg_start_3ffec68c7a207acd(arg0) {
|
|
3105
3148
|
arg0.start();
|
|
3106
3149
|
}
|
|
3107
|
-
export function
|
|
3150
|
+
export function __wbg_static_accessor_GLOBAL_266715b9d96ba635() {
|
|
3108
3151
|
const ret = typeof global === 'undefined' ? null : global;
|
|
3109
3152
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3110
3153
|
}
|
|
3111
|
-
export function
|
|
3154
|
+
export function __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179() {
|
|
3112
3155
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
3113
3156
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3114
3157
|
}
|
|
3115
|
-
export function
|
|
3158
|
+
export function __wbg_static_accessor_SELF_0b583911f537483a() {
|
|
3116
3159
|
const ret = typeof self === 'undefined' ? null : self;
|
|
3117
3160
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3118
3161
|
}
|
|
3119
|
-
export function
|
|
3162
|
+
export function __wbg_static_accessor_WINDOW_d7f903d1508cbdc4() {
|
|
3120
3163
|
const ret = typeof window === 'undefined' ? null : window;
|
|
3121
3164
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3122
3165
|
}
|
|
3123
|
-
export function
|
|
3166
|
+
export function __wbg_stringify_52ff602c1cc4fbb6() { return handleError(function (arg0) {
|
|
3124
3167
|
const ret = JSON.stringify(arg0);
|
|
3125
3168
|
return ret;
|
|
3126
3169
|
}, arguments); }
|
|
3127
|
-
export function
|
|
3170
|
+
export function __wbg_subtle_fd9b8e4f931c4961(arg0) {
|
|
3128
3171
|
const ret = arg0.subtle;
|
|
3129
3172
|
return ret;
|
|
3130
3173
|
}
|
|
3131
|
-
export function
|
|
3174
|
+
export function __wbg_target_38ae9feb025b820c(arg0) {
|
|
3132
3175
|
const ret = arg0.target;
|
|
3133
3176
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
3134
3177
|
}
|
|
3135
|
-
export function
|
|
3178
|
+
export function __wbg_then_c949d5a25a4e78f8(arg0, arg1, arg2) {
|
|
3136
3179
|
const ret = arg0.then(arg1, arg2);
|
|
3137
3180
|
return ret;
|
|
3138
3181
|
}
|
|
3139
|
-
export function
|
|
3182
|
+
export function __wbg_then_e71170d78fcf8954(arg0, arg1) {
|
|
3140
3183
|
const ret = arg0.then(arg1);
|
|
3141
3184
|
return ret;
|
|
3142
3185
|
}
|
|
3143
|
-
export function
|
|
3186
|
+
export function __wbg_transaction_55a3a4e0134a0fd6() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
3144
3187
|
const ret = arg0.transaction(getStringFromWasm0(arg1, arg2), __wbindgen_enum_IdbTransactionMode[arg3]);
|
|
3145
3188
|
return ret;
|
|
3146
3189
|
}, arguments); }
|
|
3147
|
-
export function
|
|
3190
|
+
export function __wbg_value_e6653e661698cb71() { return handleError(function (arg0) {
|
|
3148
3191
|
const ret = arg0.value;
|
|
3149
3192
|
return ret;
|
|
3150
3193
|
}, arguments); }
|
|
3151
|
-
export function
|
|
3194
|
+
export function __wbg_value_f3c585ee8f5ba40c(arg0) {
|
|
3152
3195
|
const ret = arg0.value;
|
|
3153
3196
|
return ret;
|
|
3154
3197
|
}
|
|
3155
|
-
export function
|
|
3198
|
+
export function __wbg_warn_13abc63e0d4b3527(arg0) {
|
|
3156
3199
|
console.warn(arg0);
|
|
3157
3200
|
}
|
|
3158
|
-
export function
|
|
3159
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3160
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3201
|
+
export function __wbindgen_generic_0000000000000001(arg0, arg1) {
|
|
3202
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1211, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
3203
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_789e7c43d3c051be___JsError___true_);
|
|
3161
3204
|
return ret;
|
|
3162
3205
|
}
|
|
3163
|
-
export function
|
|
3164
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
3165
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3206
|
+
export function __wbindgen_generic_0000000000000002(arg0, arg1) {
|
|
3207
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3208
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true_);
|
|
3166
3209
|
return ret;
|
|
3167
3210
|
}
|
|
3168
|
-
export function
|
|
3169
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx:
|
|
3170
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3211
|
+
export function __wbindgen_generic_0000000000000003(arg0, arg1) {
|
|
3212
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3213
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__215);
|
|
3171
3214
|
return ret;
|
|
3172
3215
|
}
|
|
3173
|
-
export function
|
|
3174
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx:
|
|
3175
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3216
|
+
export function __wbindgen_generic_0000000000000004(arg0, arg1) {
|
|
3217
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("ErrorEvent")], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3218
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__216);
|
|
3176
3219
|
return ret;
|
|
3177
3220
|
}
|
|
3178
|
-
export function
|
|
3179
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx:
|
|
3180
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3221
|
+
export function __wbindgen_generic_0000000000000005(arg0, arg1) {
|
|
3222
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("Event")], shim_idx: 1185, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3223
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_);
|
|
3181
3224
|
return ret;
|
|
3182
3225
|
}
|
|
3183
|
-
export function
|
|
3184
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx:
|
|
3185
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3226
|
+
export function __wbindgen_generic_0000000000000006(arg0, arg1) {
|
|
3227
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("IDBVersionChangeEvent")], shim_idx: 1185, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3228
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__218);
|
|
3186
3229
|
return ret;
|
|
3187
3230
|
}
|
|
3188
|
-
export function
|
|
3189
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx:
|
|
3190
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3231
|
+
export function __wbindgen_generic_0000000000000007(arg0, arg1) {
|
|
3232
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 708, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3233
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__219);
|
|
3191
3234
|
return ret;
|
|
3192
3235
|
}
|
|
3193
|
-
export function
|
|
3194
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3195
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3236
|
+
export function __wbindgen_generic_0000000000000008(arg0, arg1) {
|
|
3237
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 568, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3238
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true_);
|
|
3196
3239
|
return ret;
|
|
3197
3240
|
}
|
|
3198
|
-
export function
|
|
3199
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx:
|
|
3200
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
3241
|
+
export function __wbindgen_generic_0000000000000009(arg0, arg1) {
|
|
3242
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 713, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
3243
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true__1_);
|
|
3201
3244
|
return ret;
|
|
3202
3245
|
}
|
|
3203
|
-
export function
|
|
3246
|
+
export function __wbindgen_generic_000000000000000a(arg0) {
|
|
3204
3247
|
// Cast intrinsic for `F64 -> Externref`.
|
|
3205
3248
|
const ret = arg0;
|
|
3206
3249
|
return ret;
|
|
3207
3250
|
}
|
|
3208
|
-
export function
|
|
3251
|
+
export function __wbindgen_generic_000000000000000b(arg0) {
|
|
3209
3252
|
// Cast intrinsic for `I64 -> Externref`.
|
|
3210
3253
|
const ret = arg0;
|
|
3211
3254
|
return ret;
|
|
3212
3255
|
}
|
|
3213
|
-
export function
|
|
3256
|
+
export function __wbindgen_generic_000000000000000c(arg0, arg1) {
|
|
3214
3257
|
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
3215
3258
|
const ret = getStringFromWasm0(arg0, arg1);
|
|
3216
3259
|
return ret;
|
|
3217
3260
|
}
|
|
3218
|
-
export function
|
|
3261
|
+
export function __wbindgen_generic_000000000000000d(arg0) {
|
|
3219
3262
|
// Cast intrinsic for `U64 -> Externref`.
|
|
3220
3263
|
const ret = BigInt.asUintN(64, arg0);
|
|
3221
3264
|
return ret;
|
|
@@ -3229,47 +3272,47 @@ export function __wbindgen_init_externref_table() {
|
|
|
3229
3272
|
table.set(offset + 2, true);
|
|
3230
3273
|
table.set(offset + 3, false);
|
|
3231
3274
|
}
|
|
3232
|
-
function
|
|
3233
|
-
wasm.
|
|
3275
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true_(arg0, arg1) {
|
|
3276
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true_(arg0, arg1);
|
|
3234
3277
|
}
|
|
3235
3278
|
|
|
3236
|
-
function
|
|
3237
|
-
wasm.
|
|
3279
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true__1_(arg0, arg1) {
|
|
3280
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke_______true__1_(arg0, arg1);
|
|
3238
3281
|
}
|
|
3239
3282
|
|
|
3240
|
-
function
|
|
3241
|
-
wasm.
|
|
3283
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true_(arg0, arg1, arg2) {
|
|
3284
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true_(arg0, arg1, arg2);
|
|
3242
3285
|
}
|
|
3243
3286
|
|
|
3244
|
-
function
|
|
3245
|
-
wasm.
|
|
3287
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__215(arg0, arg1, arg2) {
|
|
3288
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__215(arg0, arg1, arg2);
|
|
3246
3289
|
}
|
|
3247
3290
|
|
|
3248
|
-
function
|
|
3249
|
-
wasm.
|
|
3291
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__216(arg0, arg1, arg2) {
|
|
3292
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__216(arg0, arg1, arg2);
|
|
3250
3293
|
}
|
|
3251
3294
|
|
|
3252
|
-
function
|
|
3253
|
-
wasm.
|
|
3295
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2) {
|
|
3296
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true_(arg0, arg1, arg2);
|
|
3254
3297
|
}
|
|
3255
3298
|
|
|
3256
|
-
function
|
|
3257
|
-
wasm.
|
|
3299
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__218(arg0, arg1, arg2) {
|
|
3300
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___web_sys_9fd664ab82fa256b___features__gen_IdbVersionChangeEvent__IdbVersionChangeEvent______true__218(arg0, arg1, arg2);
|
|
3258
3301
|
}
|
|
3259
3302
|
|
|
3260
|
-
function
|
|
3261
|
-
wasm.
|
|
3303
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__219(arg0, arg1, arg2) {
|
|
3304
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue______true__219(arg0, arg1, arg2);
|
|
3262
3305
|
}
|
|
3263
3306
|
|
|
3264
|
-
function
|
|
3265
|
-
const ret = wasm.
|
|
3307
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_789e7c43d3c051be___JsError___true_(arg0, arg1, arg2) {
|
|
3308
|
+
const ret = wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___wasm_bindgen_789e7c43d3c051be___JsValue__core_37ee0ce0c4cd57d5___result__Result_____wasm_bindgen_789e7c43d3c051be___JsError___true_(arg0, arg1, arg2);
|
|
3266
3309
|
if (ret[1]) {
|
|
3267
3310
|
throw takeFromExternrefTable0(ret[0]);
|
|
3268
3311
|
}
|
|
3269
3312
|
}
|
|
3270
3313
|
|
|
3271
|
-
function
|
|
3272
|
-
wasm.
|
|
3314
|
+
function wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
3315
|
+
wasm.wasm_bindgen_789e7c43d3c051be___convert__closures_____invoke___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined___js_sys_904a669457b72f9c___Function_fn_wasm_bindgen_789e7c43d3c051be___JsValue_____wasm_bindgen_789e7c43d3c051be___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
3273
3316
|
}
|
|
3274
3317
|
|
|
3275
3318
|
|