@diaryx/wasm-node 1.3.0 → 1.3.2-dev.45897a6

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 CHANGED
@@ -319,9 +319,9 @@ export interface InitOutput {
319
319
  readonly today_formatted: (a: number, b: number) => [number, number];
320
320
  readonly diaryxbackend_isCrdtEnabled: (a: number) => number;
321
321
  readonly init: () => void;
322
- readonly wasm_bindgen__closure__destroy__h88c09826c7bdcc04: (a: number, b: number) => void;
323
- readonly wasm_bindgen__convert__closures_____invoke__h0d59e9d6e6af2fb0: (a: number, b: number, c: any, d: any) => void;
324
- readonly wasm_bindgen__convert__closures_____invoke__h225c842405c0a80f: (a: number, b: number, c: any) => void;
322
+ readonly wasm_bindgen__closure__destroy__h89cb80d21d3bc312: (a: number, b: number) => void;
323
+ readonly wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8: (a: number, b: number, c: any) => [number, number];
324
+ readonly wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440: (a: number, b: number, c: any, d: any) => void;
325
325
  readonly __wbindgen_malloc: (a: number, b: number) => number;
326
326
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
327
327
  readonly __wbindgen_exn_store: (a: number) => void;
package/diaryx_wasm.js CHANGED
@@ -160,7 +160,7 @@ export class DiaryxBackend {
160
160
  * @returns {boolean}
161
161
  */
162
162
  isCrdtEnabled() {
163
- const ret = wasm.diaryxbackend_hasNativeSync(this.__wbg_ptr);
163
+ const ret = wasm.diaryxbackend_isCrdtEnabled(this.__wbg_ptr);
164
164
  return ret !== 0;
165
165
  }
166
166
  /**
@@ -359,79 +359,79 @@ export function today_formatted(format) {
359
359
  function __wbg_get_imports() {
360
360
  const import0 = {
361
361
  __proto__: null,
362
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
362
+ __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
363
363
  const ret = Error(getStringFromWasm0(arg0, arg1));
364
364
  return ret;
365
365
  },
366
- __wbg_Number_04624de7d0e8332d: function(arg0) {
366
+ __wbg_Number_a5a435bd7bbec835: function(arg0) {
367
367
  const ret = Number(arg0);
368
368
  return ret;
369
369
  },
370
- __wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
370
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
371
371
  const ret = String(arg1);
372
372
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
373
373
  const len1 = WASM_VECTOR_LEN;
374
374
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
375
375
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
376
376
  },
377
- __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
377
+ __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
378
378
  const v = arg1;
379
379
  const ret = typeof(v) === 'bigint' ? v : undefined;
380
380
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
381
381
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
382
382
  },
383
- __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
383
+ __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
384
384
  const v = arg0;
385
385
  const ret = typeof(v) === 'boolean' ? v : undefined;
386
386
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
387
387
  },
388
- __wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
388
+ __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
389
389
  const ret = debugString(arg1);
390
390
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
391
391
  const len1 = WASM_VECTOR_LEN;
392
392
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
393
393
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
394
394
  },
395
- __wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
395
+ __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
396
396
  const ret = arg0 in arg1;
397
397
  return ret;
398
398
  },
399
- __wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
399
+ __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
400
400
  const ret = typeof(arg0) === 'bigint';
401
401
  return ret;
402
402
  },
403
- __wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
403
+ __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
404
404
  const ret = typeof(arg0) === 'function';
405
405
  return ret;
406
406
  },
407
- __wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
407
+ __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
408
408
  const val = arg0;
409
409
  const ret = typeof(val) === 'object' && val !== null;
410
410
  return ret;
411
411
  },
412
- __wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
412
+ __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
413
413
  const ret = typeof(arg0) === 'string';
414
414
  return ret;
415
415
  },
416
- __wbg___wbindgen_is_undefined_9e4d92534c42d778: function(arg0) {
416
+ __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
417
417
  const ret = arg0 === undefined;
418
418
  return ret;
419
419
  },
420
- __wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
420
+ __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
421
421
  const ret = arg0 === arg1;
422
422
  return ret;
423
423
  },
424
- __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
424
+ __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
425
425
  const ret = arg0 == arg1;
426
426
  return ret;
427
427
  },
428
- __wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
428
+ __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
429
429
  const obj = arg1;
430
430
  const ret = typeof(obj) === 'number' ? obj : undefined;
431
431
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
432
432
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
433
433
  },
434
- __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
434
+ __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
435
435
  const obj = arg1;
436
436
  const ret = typeof(obj) === 'string' ? obj : undefined;
437
437
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -439,78 +439,86 @@ function __wbg_get_imports() {
439
439
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
440
440
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
441
441
  },
442
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
442
+ __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
443
443
  throw new Error(getStringFromWasm0(arg0, arg1));
444
444
  },
445
- __wbg__wbg_cb_unref_d9b87ff7982e3b21: function(arg0) {
445
+ __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
446
446
  arg0._wbg_cb_unref();
447
447
  },
448
- __wbg_apply_ada2ee1a60ac7b3c: function() { return handleError(function (arg0, arg1, arg2) {
448
+ __wbg_apply_ac9afb97ca32f169: function() { return handleError(function (arg0, arg1, arg2) {
449
449
  const ret = arg0.apply(arg1, arg2);
450
450
  return ret;
451
451
  }, arguments); },
452
- __wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
453
- const ret = arg0.call(arg1);
454
- return ret;
455
- }, arguments); },
456
- __wbg_call_4708e0c13bdc8e95: function() { return handleError(function (arg0, arg1, arg2) {
452
+ __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
457
453
  const ret = arg0.call(arg1, arg2);
458
454
  return ret;
459
455
  }, arguments); },
460
- __wbg_call_812d25f1510c13c8: function() { return handleError(function (arg0, arg1, arg2, arg3) {
456
+ __wbg_call_dcc2662fa17a72cf: function() { return handleError(function (arg0, arg1, arg2, arg3) {
461
457
  const ret = arg0.call(arg1, arg2, arg3);
462
458
  return ret;
463
459
  }, arguments); },
464
- __wbg_call_e8c868596c950cf6: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
460
+ __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
461
+ const ret = arg0.call(arg1);
462
+ return ret;
463
+ }, arguments); },
464
+ __wbg_call_f858478a02f9600f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
465
465
  const ret = arg0.call(arg1, arg2, arg3, arg4);
466
466
  return ret;
467
467
  }, arguments); },
468
- __wbg_debug_46a93995fc6f8820: function(arg0, arg1, arg2, arg3) {
468
+ __wbg_debug_271c16e6de0bc226: function(arg0, arg1, arg2, arg3) {
469
469
  console.debug(arg0, arg1, arg2, arg3);
470
470
  },
471
471
  __wbg_diaryxbackend_new: function(arg0) {
472
472
  const ret = DiaryxBackend.__wrap(arg0);
473
473
  return ret;
474
474
  },
475
- __wbg_done_57b39ecd9addfe81: function(arg0) {
475
+ __wbg_done_08ce71ee07e3bd17: function(arg0) {
476
476
  const ret = arg0.done;
477
477
  return ret;
478
478
  },
479
- __wbg_entries_58c7934c745daac7: function(arg0) {
479
+ __wbg_entries_e8a20ff8c9757101: function(arg0) {
480
480
  const ret = Object.entries(arg0);
481
481
  return ret;
482
482
  },
483
- __wbg_error_794d0ffc9d00d5c3: function(arg0, arg1, arg2, arg3) {
483
+ __wbg_error_1eece6b0039034ce: function(arg0, arg1, arg2, arg3) {
484
484
  console.error(arg0, arg1, arg2, arg3);
485
485
  },
486
- __wbg_fromCodePoint_22365db7b7d6ac39: function() { return handleError(function (arg0) {
486
+ __wbg_fromCodePoint_4a02c6dcced1d233: function() { return handleError(function (arg0) {
487
487
  const ret = String.fromCodePoint(arg0 >>> 0);
488
488
  return ret;
489
489
  }, arguments); },
490
- __wbg_getTime_1e3cd1391c5c3995: function(arg0) {
490
+ __wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
491
491
  const ret = arg0.getTime();
492
492
  return ret;
493
493
  },
494
- __wbg_getTimezoneOffset_81776d10a4ec18a8: function(arg0) {
494
+ __wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
495
495
  const ret = arg0.getTimezoneOffset();
496
496
  return ret;
497
497
  },
498
- __wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
499
- const ret = arg0[arg1 >>> 0];
498
+ __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
499
+ const ret = Reflect.get(arg0, arg1);
500
500
  return ret;
501
- },
502
- __wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
501
+ }, arguments); },
502
+ __wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
503
503
  const ret = Reflect.get(arg0, arg1);
504
504
  return ret;
505
505
  }, arguments); },
506
- __wbg_get_with_ref_key_1dc361bd10053bfe: function(arg0, arg1) {
506
+ __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
507
+ const ret = arg0[arg1 >>> 0];
508
+ return ret;
509
+ },
510
+ __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
511
+ const ret = arg0[arg1 >>> 0];
512
+ return ret;
513
+ },
514
+ __wbg_get_with_ref_key_6412cf3094599694: function(arg0, arg1) {
507
515
  const ret = arg0[arg1];
508
516
  return ret;
509
517
  },
510
- __wbg_info_9e602cf10c5c690b: function(arg0, arg1, arg2, arg3) {
518
+ __wbg_info_0194681687b5ab04: function(arg0, arg1, arg2, arg3) {
511
519
  console.info(arg0, arg1, arg2, arg3);
512
520
  },
513
- __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
521
+ __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
514
522
  let result;
515
523
  try {
516
524
  result = arg0 instanceof ArrayBuffer;
@@ -520,7 +528,7 @@ function __wbg_get_imports() {
520
528
  const ret = result;
521
529
  return ret;
522
530
  },
523
- __wbg_instanceof_Map_53af74335dec57f4: function(arg0) {
531
+ __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
524
532
  let result;
525
533
  try {
526
534
  result = arg0 instanceof Map;
@@ -530,7 +538,7 @@ function __wbg_get_imports() {
530
538
  const ret = result;
531
539
  return ret;
532
540
  },
533
- __wbg_instanceof_Object_1c6af87502b733ed: function(arg0) {
541
+ __wbg_instanceof_Object_be1962063fcc0c9f: function(arg0) {
534
542
  let result;
535
543
  try {
536
544
  result = arg0 instanceof Object;
@@ -540,7 +548,7 @@ function __wbg_get_imports() {
540
548
  const ret = result;
541
549
  return ret;
542
550
  },
543
- __wbg_instanceof_Promise_0094681e3519d6ec: function(arg0) {
551
+ __wbg_instanceof_Promise_7c3bdd7805c2c6e6: function(arg0) {
544
552
  let result;
545
553
  try {
546
554
  result = arg0 instanceof Promise;
@@ -550,7 +558,7 @@ function __wbg_get_imports() {
550
558
  const ret = result;
551
559
  return ret;
552
560
  },
553
- __wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
561
+ __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
554
562
  let result;
555
563
  try {
556
564
  result = arg0 instanceof Uint8Array;
@@ -560,53 +568,65 @@ function __wbg_get_imports() {
560
568
  const ret = result;
561
569
  return ret;
562
570
  },
563
- __wbg_isArray_d314bb98fcf08331: function(arg0) {
571
+ __wbg_isArray_33b91feb269ff46e: function(arg0) {
564
572
  const ret = Array.isArray(arg0);
565
573
  return ret;
566
574
  },
567
- __wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
575
+ __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
568
576
  const ret = Number.isSafeInteger(arg0);
569
577
  return ret;
570
578
  },
571
- __wbg_iterator_6ff6560ca1568e55: function() {
579
+ __wbg_iterator_d8f549ec8fb061b1: function() {
572
580
  const ret = Symbol.iterator;
573
581
  return ret;
574
582
  },
575
- __wbg_length_32ed9a279acd054c: function(arg0) {
583
+ __wbg_length_b3416cf66a5452c8: function(arg0) {
576
584
  const ret = arg0.length;
577
585
  return ret;
578
586
  },
579
- __wbg_length_35a7bace40f36eac: function(arg0) {
587
+ __wbg_length_ea16607d7b61445b: function(arg0) {
580
588
  const ret = arg0.length;
581
589
  return ret;
582
590
  },
583
- __wbg_log_24aba2a6d8990b35: function(arg0, arg1, arg2, arg3) {
591
+ __wbg_log_70972330cfc941dd: function(arg0, arg1, arg2, arg3) {
584
592
  console.log(arg0, arg1, arg2, arg3);
585
593
  },
586
- __wbg_new_0_73afc35eb544e539: function() {
594
+ __wbg_new_0_1dcafdf5e786e876: function() {
587
595
  const ret = new Date();
588
596
  return ret;
589
597
  },
590
- __wbg_new_245cd5c49157e602: function(arg0) {
591
- const ret = new Date(arg0);
598
+ __wbg_new_49d5571bd3f0c4d4: function() {
599
+ const ret = new Map();
592
600
  return ret;
593
601
  },
594
- __wbg_new_361308b2356cecd0: function() {
595
- const ret = new Object();
602
+ __wbg_new_5f486cdf45a04d78: function(arg0) {
603
+ const ret = new Uint8Array(arg0);
596
604
  return ret;
597
605
  },
598
- __wbg_new_3eb36ae241fe6f44: function() {
606
+ __wbg_new_a70fbab9066b301f: function() {
599
607
  const ret = new Array();
600
608
  return ret;
601
609
  },
602
- __wbg_new_b5d9e2fb389fef91: function(arg0, arg1) {
610
+ __wbg_new_ab79df5bd7c26067: function() {
611
+ const ret = new Object();
612
+ return ret;
613
+ },
614
+ __wbg_new_fd94ca5c9639abd2: function(arg0) {
615
+ const ret = new Date(arg0);
616
+ return ret;
617
+ },
618
+ __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
619
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
620
+ return ret;
621
+ },
622
+ __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
603
623
  try {
604
624
  var state0 = {a: arg0, b: arg1};
605
625
  var cb0 = (arg0, arg1) => {
606
626
  const a = state0.a;
607
627
  state0.a = 0;
608
628
  try {
609
- return wasm_bindgen__convert__closures_____invoke__h0d59e9d6e6af2fb0(a, state0.b, arg0, arg1);
629
+ return wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440(a, state0.b, arg0, arg1);
610
630
  } finally {
611
631
  state0.a = a;
612
632
  }
@@ -617,111 +637,95 @@ function __wbg_get_imports() {
617
637
  state0.a = state0.b = 0;
618
638
  }
619
639
  },
620
- __wbg_new_dca287b076112a51: function() {
621
- const ret = new Map();
622
- return ret;
623
- },
624
- __wbg_new_dd2b680c8bf6ae29: function(arg0) {
625
- const ret = new Uint8Array(arg0);
626
- return ret;
627
- },
628
- __wbg_new_from_slice_a3d2629dc1826784: function(arg0, arg1) {
629
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
630
- return ret;
631
- },
632
- __wbg_new_no_args_1c7c842f08d00ebb: function(arg0, arg1) {
633
- const ret = new Function(getStringFromWasm0(arg0, arg1));
634
- return ret;
635
- },
636
- __wbg_new_with_length_a2c39cbe88fd8ff1: function(arg0) {
640
+ __wbg_new_with_length_825018a1616e9e55: function(arg0) {
637
641
  const ret = new Uint8Array(arg0 >>> 0);
638
642
  return ret;
639
643
  },
640
- __wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
644
+ __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
641
645
  const ret = arg0.next();
642
646
  return ret;
643
647
  }, arguments); },
644
- __wbg_next_418f80d8f5303233: function(arg0) {
648
+ __wbg_next_e01a967809d1aa68: function(arg0) {
645
649
  const ret = arg0.next;
646
650
  return ret;
647
651
  },
648
- __wbg_parse_708461a1feddfb38: function() { return handleError(function (arg0, arg1) {
652
+ __wbg_parse_e9eddd2a82c706eb: function() { return handleError(function (arg0, arg1) {
649
653
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
650
654
  return ret;
651
655
  }, arguments); },
652
- __wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
656
+ __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
653
657
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
654
658
  },
655
- __wbg_push_8ffdcb2063340ba5: function(arg0, arg1) {
659
+ __wbg_push_e87b0e732085a946: function(arg0, arg1) {
656
660
  const ret = arg0.push(arg1);
657
661
  return ret;
658
662
  },
659
- __wbg_queueMicrotask_0aa0a927f78f5d98: function(arg0) {
663
+ __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
660
664
  const ret = arg0.queueMicrotask;
661
665
  return ret;
662
666
  },
663
- __wbg_queueMicrotask_5bb536982f78a56f: function(arg0) {
667
+ __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
664
668
  queueMicrotask(arg0);
665
669
  },
666
- __wbg_resolve_002c4b7d9d8f6b64: function(arg0) {
670
+ __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
667
671
  const ret = Promise.resolve(arg0);
668
672
  return ret;
669
673
  },
670
- __wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
671
- const ret = arg0.set(arg1, arg2);
672
- return ret;
674
+ __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
675
+ arg0[arg1 >>> 0] = arg2;
673
676
  },
674
- __wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
677
+ __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
675
678
  arg0[arg1] = arg2;
676
679
  },
677
- __wbg_set_cc56eefd2dd91957: function(arg0, arg1, arg2) {
680
+ __wbg_set_8c0b3ffcf05d61c2: function(arg0, arg1, arg2) {
678
681
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
679
682
  },
680
- __wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
681
- arg0[arg1 >>> 0] = arg2;
683
+ __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
684
+ const ret = arg0.set(arg1, arg2);
685
+ return ret;
682
686
  },
683
- __wbg_static_accessor_GLOBAL_12837167ad935116: function() {
687
+ __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
684
688
  const ret = typeof global === 'undefined' ? null : global;
685
689
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
686
690
  },
687
- __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f: function() {
691
+ __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
688
692
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
689
693
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
690
694
  },
691
- __wbg_static_accessor_SELF_a621d3dfbb60d0ce: function() {
695
+ __wbg_static_accessor_SELF_f207c857566db248: function() {
692
696
  const ret = typeof self === 'undefined' ? null : self;
693
697
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
694
698
  },
695
- __wbg_static_accessor_WINDOW_f8727f0cf888e0bd: function() {
699
+ __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
696
700
  const ret = typeof window === 'undefined' ? null : window;
697
701
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
698
702
  },
699
- __wbg_stringify_8d1cc6ff383e8bae: function() { return handleError(function (arg0) {
703
+ __wbg_stringify_5ae93966a84901ac: function() { return handleError(function (arg0) {
700
704
  const ret = JSON.stringify(arg0);
701
705
  return ret;
702
706
  }, arguments); },
703
- __wbg_then_0d9fe2c7b1857d32: function(arg0, arg1, arg2) {
704
- const ret = arg0.then(arg1, arg2);
707
+ __wbg_then_098abe61755d12f6: function(arg0, arg1) {
708
+ const ret = arg0.then(arg1);
705
709
  return ret;
706
710
  },
707
- __wbg_then_b9e7b3b5f1a9e1b5: function(arg0, arg1) {
708
- const ret = arg0.then(arg1);
711
+ __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
712
+ const ret = arg0.then(arg1, arg2);
709
713
  return ret;
710
714
  },
711
- __wbg_toString_964ff7fe6eca8362: function(arg0) {
715
+ __wbg_toString_3272fa0dfd05dd87: function(arg0) {
712
716
  const ret = arg0.toString();
713
717
  return ret;
714
718
  },
715
- __wbg_value_0546255b415e96c1: function(arg0) {
719
+ __wbg_value_21fc78aab0322612: function(arg0) {
716
720
  const ret = arg0.value;
717
721
  return ret;
718
722
  },
719
- __wbg_warn_a40b971467b219c7: function(arg0, arg1, arg2, arg3) {
723
+ __wbg_warn_809cad1bfc2b3a42: function(arg0, arg1, arg2, arg3) {
720
724
  console.warn(arg0, arg1, arg2, arg3);
721
725
  },
722
726
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
723
- // Cast intrinsic for `Closure(Closure { dtor_idx: 395, function: Function { arguments: [Externref], shim_idx: 396, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
724
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h88c09826c7bdcc04, wasm_bindgen__convert__closures_____invoke__h225c842405c0a80f);
727
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 407, function: Function { arguments: [Externref], shim_idx: 408, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
728
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h89cb80d21d3bc312, wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8);
725
729
  return ret;
726
730
  },
727
731
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -760,12 +764,15 @@ function __wbg_get_imports() {
760
764
  };
761
765
  }
762
766
 
763
- function wasm_bindgen__convert__closures_____invoke__h225c842405c0a80f(arg0, arg1, arg2) {
764
- wasm.wasm_bindgen__convert__closures_____invoke__h225c842405c0a80f(arg0, arg1, arg2);
767
+ function wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8(arg0, arg1, arg2) {
768
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8(arg0, arg1, arg2);
769
+ if (ret[1]) {
770
+ throw takeFromExternrefTable0(ret[0]);
771
+ }
765
772
  }
766
773
 
767
- function wasm_bindgen__convert__closures_____invoke__h0d59e9d6e6af2fb0(arg0, arg1, arg2, arg3) {
768
- wasm.wasm_bindgen__convert__closures_____invoke__h0d59e9d6e6af2fb0(arg0, arg1, arg2, arg3);
774
+ function wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440(arg0, arg1, arg2, arg3) {
775
+ wasm.wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440(arg0, arg1, arg2, arg3);
769
776
  }
770
777
 
771
778
  const DiaryxBackendFinalization = (typeof FinalizationRegistry === 'undefined')
Binary file
@@ -24,9 +24,9 @@ export const now_timestamp: () => [number, number];
24
24
  export const today_formatted: (a: number, b: number) => [number, number];
25
25
  export const diaryxbackend_isCrdtEnabled: (a: number) => number;
26
26
  export const init: () => void;
27
- export const wasm_bindgen__closure__destroy__h88c09826c7bdcc04: (a: number, b: number) => void;
28
- export const wasm_bindgen__convert__closures_____invoke__h0d59e9d6e6af2fb0: (a: number, b: number, c: any, d: any) => void;
29
- export const wasm_bindgen__convert__closures_____invoke__h225c842405c0a80f: (a: number, b: number, c: any) => void;
27
+ export const wasm_bindgen__closure__destroy__h89cb80d21d3bc312: (a: number, b: number) => void;
28
+ export const wasm_bindgen__convert__closures_____invoke__hb75d489a2bc688e8: (a: number, b: number, c: any) => [number, number];
29
+ export const wasm_bindgen__convert__closures_____invoke__h55dce5d4a3a71440: (a: number, b: number, c: any, d: any) => void;
30
30
  export const __wbindgen_malloc: (a: number, b: number) => number;
31
31
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
32
32
  export const __wbindgen_exn_store: (a: number) => void;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@diaryx/wasm-node",
3
3
  "type": "module",
4
4
  "description": "WebAssembly bindings for Diaryx core functionality",
5
- "version": "1.3.0",
5
+ "version": "1.3.2-dev.45897a6",
6
6
  "license": "SEE LICENSE IN ../../LICENSE.md",
7
7
  "repository": {
8
8
  "type": "git",