@diaryx/wasm-node 1.4.3 → 1.4.4-dev.6acf600
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/diaryx_wasm.d.ts +2 -2
- package/diaryx_wasm.js +73 -74
- package/diaryx_wasm_bg.wasm +0 -0
- package/diaryx_wasm_bg.wasm.d.ts +2 -2
- package/package.json +1 -1
package/diaryx_wasm.d.ts
CHANGED
|
@@ -362,8 +362,8 @@ export interface InitOutput {
|
|
|
362
362
|
readonly today_formatted: (a: number, b: number) => [number, number];
|
|
363
363
|
readonly init: () => void;
|
|
364
364
|
readonly diaryxbackend_isCrdtEnabled: (a: number) => number;
|
|
365
|
-
readonly
|
|
366
|
-
readonly
|
|
365
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7174ba9de949bff3: (a: number, b: number, c: any) => [number, number];
|
|
366
|
+
readonly wasm_bindgen__convert__closures_____invoke__h377ea917efd328e8: (a: number, b: number, c: any, d: any) => void;
|
|
367
367
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
368
368
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
369
369
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/diaryx_wasm.js
CHANGED
|
@@ -530,34 +530,33 @@ export function today_formatted(format) {
|
|
|
530
530
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
|
|
534
533
|
function __wbg_get_imports() {
|
|
535
534
|
const import0 = {
|
|
536
535
|
__proto__: null,
|
|
537
|
-
|
|
536
|
+
__wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff: function(arg0) {
|
|
538
537
|
const v = arg0;
|
|
539
538
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
540
539
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
541
540
|
},
|
|
542
|
-
|
|
541
|
+
__wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
|
|
543
542
|
const ret = typeof(arg0) === 'function';
|
|
544
543
|
return ret;
|
|
545
544
|
},
|
|
546
|
-
|
|
545
|
+
__wbg___wbindgen_is_null_52ff4ec04186736f: function(arg0) {
|
|
547
546
|
const ret = arg0 === null;
|
|
548
547
|
return ret;
|
|
549
548
|
},
|
|
550
|
-
|
|
549
|
+
__wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
|
|
551
550
|
const ret = arg0 === undefined;
|
|
552
551
|
return ret;
|
|
553
552
|
},
|
|
554
|
-
|
|
553
|
+
__wbg___wbindgen_number_get_c7f42aed0525c451: function(arg0, arg1) {
|
|
555
554
|
const obj = arg1;
|
|
556
555
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
557
556
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
558
557
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
559
558
|
},
|
|
560
|
-
|
|
559
|
+
__wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
|
|
561
560
|
const obj = arg1;
|
|
562
561
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
563
562
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -565,62 +564,62 @@ function __wbg_get_imports() {
|
|
|
565
564
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
566
565
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
567
566
|
},
|
|
568
|
-
|
|
567
|
+
__wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
|
|
569
568
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
570
569
|
},
|
|
571
|
-
|
|
570
|
+
__wbg__wbg_cb_unref_b46c9b5a9f08ec37: function(arg0) {
|
|
572
571
|
arg0._wbg_cb_unref();
|
|
573
572
|
},
|
|
574
|
-
|
|
573
|
+
__wbg_apply_4c35bd236dda9c14: function() { return handleError(function (arg0, arg1, arg2) {
|
|
575
574
|
const ret = arg0.apply(arg1, arg2);
|
|
576
575
|
return ret;
|
|
577
576
|
}, arguments); },
|
|
578
|
-
|
|
579
|
-
const ret = arg0.call(arg1
|
|
577
|
+
__wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
|
|
578
|
+
const ret = arg0.call(arg1);
|
|
580
579
|
return ret;
|
|
581
580
|
}, arguments); },
|
|
582
|
-
|
|
583
|
-
const ret = arg0.call(arg1);
|
|
581
|
+
__wbg_call_86e39d65afc3d9db: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
582
|
+
const ret = arg0.call(arg1, arg2, arg3, arg4);
|
|
584
583
|
return ret;
|
|
585
584
|
}, arguments); },
|
|
586
|
-
|
|
585
|
+
__wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
587
586
|
const ret = arg0.call(arg1, arg2);
|
|
588
587
|
return ret;
|
|
589
588
|
}, arguments); },
|
|
590
|
-
|
|
591
|
-
const ret = arg0.call(arg1, arg2, arg3
|
|
589
|
+
__wbg_call_bb28efe6b2f55b86: function() { return handleError(function (arg0, arg1, arg2, arg3) {
|
|
590
|
+
const ret = arg0.call(arg1, arg2, arg3);
|
|
592
591
|
return ret;
|
|
593
592
|
}, arguments); },
|
|
594
|
-
|
|
593
|
+
__wbg_debug_4e190d233ee2e0d8: function(arg0, arg1, arg2, arg3) {
|
|
595
594
|
console.debug(arg0, arg1, arg2, arg3);
|
|
596
595
|
},
|
|
597
596
|
__wbg_diaryxbackend_new: function(arg0) {
|
|
598
597
|
const ret = DiaryxBackend.__wrap(arg0);
|
|
599
598
|
return ret;
|
|
600
599
|
},
|
|
601
|
-
|
|
600
|
+
__wbg_error_a6a4bb2525a88971: function(arg0, arg1, arg2, arg3) {
|
|
602
601
|
console.error(arg0, arg1, arg2, arg3);
|
|
603
602
|
},
|
|
604
|
-
|
|
603
|
+
__wbg_getTime_da7c55f52b71e8c6: function(arg0) {
|
|
605
604
|
const ret = arg0.getTime();
|
|
606
605
|
return ret;
|
|
607
606
|
},
|
|
608
|
-
|
|
607
|
+
__wbg_getTimezoneOffset_31f57a5389d0d57c: function(arg0) {
|
|
609
608
|
const ret = arg0.getTimezoneOffset();
|
|
610
609
|
return ret;
|
|
611
610
|
},
|
|
612
|
-
|
|
613
|
-
const ret = arg0[arg1 >>> 0];
|
|
614
|
-
return ret;
|
|
615
|
-
},
|
|
616
|
-
__wbg_get_f96702c6245e4ef9: function() { return handleError(function (arg0, arg1) {
|
|
611
|
+
__wbg_get_6011fa3a58f61074: function() { return handleError(function (arg0, arg1) {
|
|
617
612
|
const ret = Reflect.get(arg0, arg1);
|
|
618
613
|
return ret;
|
|
619
614
|
}, arguments); },
|
|
620
|
-
|
|
615
|
+
__wbg_get_8360291721e2339f: function(arg0, arg1) {
|
|
616
|
+
const ret = arg0[arg1 >>> 0];
|
|
617
|
+
return ret;
|
|
618
|
+
},
|
|
619
|
+
__wbg_info_e1c3400f7bf783dc: function(arg0, arg1, arg2, arg3) {
|
|
621
620
|
console.info(arg0, arg1, arg2, arg3);
|
|
622
621
|
},
|
|
623
|
-
|
|
622
|
+
__wbg_instanceof_Object_7c99480a1cdfb911: function(arg0) {
|
|
624
623
|
let result;
|
|
625
624
|
try {
|
|
626
625
|
result = arg0 instanceof Object;
|
|
@@ -630,7 +629,7 @@ function __wbg_get_imports() {
|
|
|
630
629
|
const ret = result;
|
|
631
630
|
return ret;
|
|
632
631
|
},
|
|
633
|
-
|
|
632
|
+
__wbg_instanceof_Promise_78658358a9b27cd4: function(arg0) {
|
|
634
633
|
let result;
|
|
635
634
|
try {
|
|
636
635
|
result = arg0 instanceof Promise;
|
|
@@ -640,7 +639,7 @@ function __wbg_get_imports() {
|
|
|
640
639
|
const ret = result;
|
|
641
640
|
return ret;
|
|
642
641
|
},
|
|
643
|
-
|
|
642
|
+
__wbg_instanceof_Uint8Array_152ba1f289edcf3f: function(arg0) {
|
|
644
643
|
let result;
|
|
645
644
|
try {
|
|
646
645
|
result = arg0 instanceof Uint8Array;
|
|
@@ -650,53 +649,53 @@ function __wbg_get_imports() {
|
|
|
650
649
|
const ret = result;
|
|
651
650
|
return ret;
|
|
652
651
|
},
|
|
653
|
-
|
|
652
|
+
__wbg_isArray_c3109d14ffc06469: function(arg0) {
|
|
654
653
|
const ret = Array.isArray(arg0);
|
|
655
654
|
return ret;
|
|
656
655
|
},
|
|
657
|
-
|
|
656
|
+
__wbg_length_3d4ecd04bd8d22f1: function(arg0) {
|
|
658
657
|
const ret = arg0.length;
|
|
659
658
|
return ret;
|
|
660
659
|
},
|
|
661
|
-
|
|
660
|
+
__wbg_length_9f1775224cf1d815: function(arg0) {
|
|
662
661
|
const ret = arg0.length;
|
|
663
662
|
return ret;
|
|
664
663
|
},
|
|
665
|
-
|
|
664
|
+
__wbg_log_465fe3993e4051bf: function(arg0, arg1, arg2, arg3) {
|
|
666
665
|
console.log(arg0, arg1, arg2, arg3);
|
|
667
666
|
},
|
|
668
|
-
|
|
667
|
+
__wbg_new_0_4d657201ced14de3: function() {
|
|
669
668
|
const ret = new Date();
|
|
670
669
|
return ret;
|
|
671
670
|
},
|
|
672
|
-
|
|
673
|
-
const ret = new
|
|
671
|
+
__wbg_new_5e360d2ff7b9e1c3: function(arg0, arg1) {
|
|
672
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
674
673
|
return ret;
|
|
675
674
|
},
|
|
676
|
-
|
|
677
|
-
const ret = new
|
|
675
|
+
__wbg_new_682678e2f47e32bc: function() {
|
|
676
|
+
const ret = new Array();
|
|
678
677
|
return ret;
|
|
679
678
|
},
|
|
680
|
-
|
|
681
|
-
const ret = new
|
|
679
|
+
__wbg_new_7913666fe5070684: function(arg0) {
|
|
680
|
+
const ret = new Date(arg0);
|
|
682
681
|
return ret;
|
|
683
682
|
},
|
|
684
|
-
|
|
685
|
-
const ret = new
|
|
683
|
+
__wbg_new_aa8d0fa9762c29bd: function() {
|
|
684
|
+
const ret = new Object();
|
|
686
685
|
return ret;
|
|
687
686
|
},
|
|
688
|
-
|
|
687
|
+
__wbg_new_from_slice_b5ea43e23f6008c0: function(arg0, arg1) {
|
|
689
688
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
690
689
|
return ret;
|
|
691
690
|
},
|
|
692
|
-
|
|
691
|
+
__wbg_new_typed_323f37fd55ab048d: function(arg0, arg1) {
|
|
693
692
|
try {
|
|
694
693
|
var state0 = {a: arg0, b: arg1};
|
|
695
694
|
var cb0 = (arg0, arg1) => {
|
|
696
695
|
const a = state0.a;
|
|
697
696
|
state0.a = 0;
|
|
698
697
|
try {
|
|
699
|
-
return
|
|
698
|
+
return wasm_bindgen__convert__closures_____invoke__h377ea917efd328e8(a, state0.b, arg0, arg1);
|
|
700
699
|
} finally {
|
|
701
700
|
state0.a = a;
|
|
702
701
|
}
|
|
@@ -707,73 +706,73 @@ function __wbg_get_imports() {
|
|
|
707
706
|
state0.a = 0;
|
|
708
707
|
}
|
|
709
708
|
},
|
|
710
|
-
|
|
709
|
+
__wbg_new_with_length_8c854e41ea4dae9b: function(arg0) {
|
|
711
710
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
712
711
|
return ret;
|
|
713
712
|
},
|
|
714
|
-
|
|
713
|
+
__wbg_parse_1bbc9c053611d0a7: function() { return handleError(function (arg0, arg1) {
|
|
715
714
|
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
716
715
|
return ret;
|
|
717
716
|
}, arguments); },
|
|
718
|
-
|
|
717
|
+
__wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
|
|
719
718
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
720
719
|
},
|
|
721
|
-
|
|
720
|
+
__wbg_push_471a5b068a5295f6: function(arg0, arg1) {
|
|
722
721
|
const ret = arg0.push(arg1);
|
|
723
722
|
return ret;
|
|
724
723
|
},
|
|
725
|
-
|
|
724
|
+
__wbg_queueMicrotask_5d15a957e6aa920e: function(arg0) {
|
|
725
|
+
queueMicrotask(arg0);
|
|
726
|
+
},
|
|
727
|
+
__wbg_queueMicrotask_f8819e5ffc402f36: function(arg0) {
|
|
726
728
|
const ret = arg0.queueMicrotask;
|
|
727
729
|
return ret;
|
|
728
730
|
},
|
|
729
|
-
|
|
730
|
-
queueMicrotask(arg0);
|
|
731
|
-
},
|
|
732
|
-
__wbg_resolve_0a79de24e9d2267b: function(arg0) {
|
|
731
|
+
__wbg_resolve_e6c466bc1052f16c: function(arg0) {
|
|
733
732
|
const ret = Promise.resolve(arg0);
|
|
734
733
|
return ret;
|
|
735
734
|
},
|
|
736
|
-
|
|
737
|
-
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
738
|
-
},
|
|
739
|
-
__wbg_set_8ee2d34facb8466e: function() { return handleError(function (arg0, arg1, arg2) {
|
|
735
|
+
__wbg_set_022bee52d0b05b19: function() { return handleError(function (arg0, arg1, arg2) {
|
|
740
736
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
741
737
|
return ret;
|
|
742
738
|
}, arguments); },
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
739
|
+
__wbg_set_3d484eb794afec82: function(arg0, arg1, arg2) {
|
|
740
|
+
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
746
741
|
},
|
|
747
|
-
|
|
742
|
+
__wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
|
|
748
743
|
const ret = typeof global === 'undefined' ? null : global;
|
|
749
744
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
750
745
|
},
|
|
751
|
-
|
|
746
|
+
__wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
|
|
747
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
748
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
749
|
+
},
|
|
750
|
+
__wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
|
|
752
751
|
const ret = typeof self === 'undefined' ? null : self;
|
|
753
752
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
754
753
|
},
|
|
755
|
-
|
|
754
|
+
__wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
|
|
756
755
|
const ret = typeof window === 'undefined' ? null : window;
|
|
757
756
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
758
757
|
},
|
|
759
|
-
|
|
758
|
+
__wbg_then_792e0c862b060889: function(arg0, arg1, arg2) {
|
|
760
759
|
const ret = arg0.then(arg1, arg2);
|
|
761
760
|
return ret;
|
|
762
761
|
},
|
|
763
|
-
|
|
762
|
+
__wbg_then_8e16ee11f05e4827: function(arg0, arg1) {
|
|
764
763
|
const ret = arg0.then(arg1);
|
|
765
764
|
return ret;
|
|
766
765
|
},
|
|
767
|
-
|
|
766
|
+
__wbg_toString_306ed0b9f320c1ca: function(arg0) {
|
|
768
767
|
const ret = arg0.toString();
|
|
769
768
|
return ret;
|
|
770
769
|
},
|
|
771
|
-
|
|
770
|
+
__wbg_warn_ad997e36628bd23a: function(arg0, arg1, arg2, arg3) {
|
|
772
771
|
console.warn(arg0, arg1, arg2, arg3);
|
|
773
772
|
},
|
|
774
773
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
775
774
|
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 597, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
776
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
775
|
+
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h7174ba9de949bff3);
|
|
777
776
|
return ret;
|
|
778
777
|
},
|
|
779
778
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -802,15 +801,15 @@ function __wbg_get_imports() {
|
|
|
802
801
|
};
|
|
803
802
|
}
|
|
804
803
|
|
|
805
|
-
function
|
|
806
|
-
const ret = wasm.
|
|
804
|
+
function wasm_bindgen__convert__closures_____invoke__h7174ba9de949bff3(arg0, arg1, arg2) {
|
|
805
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h7174ba9de949bff3(arg0, arg1, arg2);
|
|
807
806
|
if (ret[1]) {
|
|
808
807
|
throw takeFromExternrefTable0(ret[0]);
|
|
809
808
|
}
|
|
810
809
|
}
|
|
811
810
|
|
|
812
|
-
function
|
|
813
|
-
wasm.
|
|
811
|
+
function wasm_bindgen__convert__closures_____invoke__h377ea917efd328e8(arg0, arg1, arg2, arg3) {
|
|
812
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h377ea917efd328e8(arg0, arg1, arg2, arg3);
|
|
814
813
|
}
|
|
815
814
|
|
|
816
815
|
const AuthClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/diaryx_wasm_bg.wasm
CHANGED
|
Binary file
|
package/diaryx_wasm_bg.wasm.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ export const now_timestamp: () => [number, number];
|
|
|
39
39
|
export const today_formatted: (a: number, b: number) => [number, number];
|
|
40
40
|
export const init: () => void;
|
|
41
41
|
export const diaryxbackend_isCrdtEnabled: (a: number) => number;
|
|
42
|
-
export const
|
|
43
|
-
export const
|
|
42
|
+
export const wasm_bindgen__convert__closures_____invoke__h7174ba9de949bff3: (a: number, b: number, c: any) => [number, number];
|
|
43
|
+
export const wasm_bindgen__convert__closures_____invoke__h377ea917efd328e8: (a: number, b: number, c: any, d: any) => void;
|
|
44
44
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
45
45
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
46
46
|
export const __wbindgen_exn_store: (a: number) => void;
|
package/package.json
CHANGED