claim169 0.2.0-alpha → 0.3.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.
@@ -125,6 +125,15 @@ export class WasmDecoder {
125
125
  const ret = wasm.wasmdecoder_skipBiometrics(ptr);
126
126
  return WasmDecoder.__wrap(ret);
127
127
  }
128
+ /**
129
+ * Require spec-compliant zlib compression; reject other formats
130
+ * @returns {WasmDecoder}
131
+ */
132
+ strictCompression() {
133
+ const ptr = this.__destroy_into_raw();
134
+ const ret = wasm.wasmdecoder_strictCompression(ptr);
135
+ return WasmDecoder.__wrap(ret);
136
+ }
128
137
  /**
129
138
  * Verify with a custom verifier callback.
130
139
  *
@@ -245,27 +254,32 @@ export class WasmEncoder {
245
254
  return WasmEncoder.__wrap(ret);
246
255
  }
247
256
  /**
248
- * Encode the credential to a Base45 QR string
249
- * @returns {string}
257
+ * Set compression mode: "zlib" (default), "none", "adaptive",
258
+ * "brotli:N" (0-11), or "adaptive-brotli:N" (requires compression-brotli feature)
259
+ * @param {string} mode
260
+ * @returns {WasmEncoder}
261
+ */
262
+ compression(mode) {
263
+ const ptr = this.__destroy_into_raw();
264
+ const ptr0 = passStringToWasm0(mode, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
265
+ const len0 = WASM_VECTOR_LEN;
266
+ const ret = wasm.wasmencoder_compression(ptr, ptr0, len0);
267
+ if (ret[2]) {
268
+ throw takeFromExternrefTable0(ret[1]);
269
+ }
270
+ return WasmEncoder.__wrap(ret[0]);
271
+ }
272
+ /**
273
+ * Encode the credential to a QR-ready result object
274
+ * @returns {any}
250
275
  */
251
276
  encode() {
252
- let deferred2_0;
253
- let deferred2_1;
254
- try {
255
- const ptr = this.__destroy_into_raw();
256
- const ret = wasm.wasmencoder_encode(ptr);
257
- var ptr1 = ret[0];
258
- var len1 = ret[1];
259
- if (ret[3]) {
260
- ptr1 = 0; len1 = 0;
261
- throw takeFromExternrefTable0(ret[2]);
262
- }
263
- deferred2_0 = ptr1;
264
- deferred2_1 = len1;
265
- return getStringFromWasm0(ptr1, len1);
266
- } finally {
267
- wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
277
+ const ptr = this.__destroy_into_raw();
278
+ const ret = wasm.wasmencoder_encode(ptr);
279
+ if (ret[2]) {
280
+ throw takeFromExternrefTable0(ret[1]);
268
281
  }
282
+ return takeFromExternrefTable0(ret[0]);
269
283
  }
270
284
  /**
271
285
  * Encrypt with a custom encryptor callback.
@@ -429,6 +443,24 @@ export function init_panic_hook() {
429
443
  wasm.init_panic_hook();
430
444
  }
431
445
 
446
+ /**
447
+ * Inspect credential metadata without full decoding or verification.
448
+ *
449
+ * Extracts metadata (issuer, key ID, algorithm, expiration) from a QR code
450
+ * without verifying the signature. Useful for multi-issuer key lookup.
451
+ * @param {string} qr_text
452
+ * @returns {any}
453
+ */
454
+ export function inspect(qr_text) {
455
+ const ptr0 = passStringToWasm0(qr_text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
456
+ const len0 = WASM_VECTOR_LEN;
457
+ const ret = wasm.inspect(ptr0, len0);
458
+ if (ret[2]) {
459
+ throw takeFromExternrefTable0(ret[1]);
460
+ }
461
+ return takeFromExternrefTable0(ret[0]);
462
+ }
463
+
432
464
  /**
433
465
  * Check if the WASM module is loaded correctly
434
466
  * @returns {boolean}
@@ -454,79 +486,79 @@ export function version() {
454
486
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
455
487
  }
456
488
  }
457
- export function __wbg_Error_8c4e43fe74559d73(arg0, arg1) {
489
+ export function __wbg_Error_83742b46f01ce22d(arg0, arg1) {
458
490
  const ret = Error(getStringFromWasm0(arg0, arg1));
459
491
  return ret;
460
492
  }
461
- export function __wbg_Number_04624de7d0e8332d(arg0) {
493
+ export function __wbg_Number_a5a435bd7bbec835(arg0) {
462
494
  const ret = Number(arg0);
463
495
  return ret;
464
496
  }
465
- export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
497
+ export function __wbg_String_8564e559799eccda(arg0, arg1) {
466
498
  const ret = String(arg1);
467
499
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
468
500
  const len1 = WASM_VECTOR_LEN;
469
501
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
470
502
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
471
503
  }
472
- export function __wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2(arg0, arg1) {
504
+ export function __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda(arg0, arg1) {
473
505
  const v = arg1;
474
506
  const ret = typeof(v) === 'bigint' ? v : undefined;
475
507
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
476
508
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
477
509
  }
478
- export function __wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25(arg0) {
510
+ export function __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1(arg0) {
479
511
  const v = arg0;
480
512
  const ret = typeof(v) === 'boolean' ? v : undefined;
481
513
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
482
514
  }
483
- export function __wbg___wbindgen_debug_string_0bc8482c6e3508ae(arg0, arg1) {
515
+ export function __wbg___wbindgen_debug_string_5398f5bb970e0daa(arg0, arg1) {
484
516
  const ret = debugString(arg1);
485
517
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
486
518
  const len1 = WASM_VECTOR_LEN;
487
519
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
488
520
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
489
521
  }
490
- export function __wbg___wbindgen_in_47fa6863be6f2f25(arg0, arg1) {
522
+ export function __wbg___wbindgen_in_41dbb8413020e076(arg0, arg1) {
491
523
  const ret = arg0 in arg1;
492
524
  return ret;
493
525
  }
494
- export function __wbg___wbindgen_is_bigint_31b12575b56f32fc(arg0) {
526
+ export function __wbg___wbindgen_is_bigint_e2141d4f045b7eda(arg0) {
495
527
  const ret = typeof(arg0) === 'bigint';
496
528
  return ret;
497
529
  }
498
- export function __wbg___wbindgen_is_function_0095a73b8b156f76(arg0) {
530
+ export function __wbg___wbindgen_is_function_3c846841762788c1(arg0) {
499
531
  const ret = typeof(arg0) === 'function';
500
532
  return ret;
501
533
  }
502
- export function __wbg___wbindgen_is_object_5ae8e5880f2c1fbd(arg0) {
534
+ export function __wbg___wbindgen_is_object_781bc9f159099513(arg0) {
503
535
  const val = arg0;
504
536
  const ret = typeof(val) === 'object' && val !== null;
505
537
  return ret;
506
538
  }
507
- export function __wbg___wbindgen_is_string_cd444516edc5b180(arg0) {
539
+ export function __wbg___wbindgen_is_string_7ef6b97b02428fae(arg0) {
508
540
  const ret = typeof(arg0) === 'string';
509
541
  return ret;
510
542
  }
511
- export function __wbg___wbindgen_is_undefined_9e4d92534c42d778(arg0) {
543
+ export function __wbg___wbindgen_is_undefined_52709e72fb9f179c(arg0) {
512
544
  const ret = arg0 === undefined;
513
545
  return ret;
514
546
  }
515
- export function __wbg___wbindgen_jsval_eq_11888390b0186270(arg0, arg1) {
547
+ export function __wbg___wbindgen_jsval_eq_ee31bfad3e536463(arg0, arg1) {
516
548
  const ret = arg0 === arg1;
517
549
  return ret;
518
550
  }
519
- export function __wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811(arg0, arg1) {
551
+ export function __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b(arg0, arg1) {
520
552
  const ret = arg0 == arg1;
521
553
  return ret;
522
554
  }
523
- export function __wbg___wbindgen_number_get_8ff4255516ccad3e(arg0, arg1) {
555
+ export function __wbg___wbindgen_number_get_34bb9d9dcfa21373(arg0, arg1) {
524
556
  const obj = arg1;
525
557
  const ret = typeof(obj) === 'number' ? obj : undefined;
526
558
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
527
559
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
528
560
  }
529
- export function __wbg___wbindgen_string_get_72fb696202c56729(arg0, arg1) {
561
+ export function __wbg___wbindgen_string_get_395e606bd0ee4427(arg0, arg1) {
530
562
  const obj = arg1;
531
563
  const ret = typeof(obj) === 'string' ? obj : undefined;
532
564
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -534,38 +566,38 @@ export function __wbg___wbindgen_string_get_72fb696202c56729(arg0, arg1) {
534
566
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
535
567
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
536
568
  }
537
- export function __wbg___wbindgen_throw_be289d5034ed271b(arg0, arg1) {
569
+ export function __wbg___wbindgen_throw_6ddd609b62940d55(arg0, arg1) {
538
570
  throw new Error(getStringFromWasm0(arg0, arg1));
539
571
  }
540
- export function __wbg_call_389efe28435a9388() { return handleError(function (arg0, arg1) {
541
- const ret = arg0.call(arg1);
572
+ export function __wbg_call_2204be6d562e92a5() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
573
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6);
542
574
  return ret;
543
575
  }, arguments); }
544
- export function __wbg_call_41bedb84c3e5c0c9() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
545
- const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
576
+ export function __wbg_call_2d781c1f4d5c0ef8() { return handleError(function (arg0, arg1, arg2) {
577
+ const ret = arg0.call(arg1, arg2);
546
578
  return ret;
547
579
  }, arguments); }
548
- export function __wbg_call_4708e0c13bdc8e95() { return handleError(function (arg0, arg1, arg2) {
549
- const ret = arg0.call(arg1, arg2);
580
+ export function __wbg_call_89797ac1adb21543() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
581
+ const ret = arg0.call(arg1, arg2, arg3, arg4, arg5);
550
582
  return ret;
551
583
  }, arguments); }
552
- export function __wbg_call_9e2435421fd1e0cb() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5, arg6) {
553
- const ret = arg0.call(arg1, arg2, arg3, arg4, arg5, arg6);
584
+ export function __wbg_call_e133b57c9155d22c() { return handleError(function (arg0, arg1) {
585
+ const ret = arg0.call(arg1);
554
586
  return ret;
555
587
  }, arguments); }
556
- export function __wbg_call_e8c868596c950cf6() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
588
+ export function __wbg_call_f858478a02f9600f() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
557
589
  const ret = arg0.call(arg1, arg2, arg3, arg4);
558
590
  return ret;
559
591
  }, arguments); }
560
- export function __wbg_crypto_86f2631e91b51511(arg0) {
592
+ export function __wbg_crypto_38df2bab126b63dc(arg0) {
561
593
  const ret = arg0.crypto;
562
594
  return ret;
563
595
  }
564
- export function __wbg_done_57b39ecd9addfe81(arg0) {
596
+ export function __wbg_done_08ce71ee07e3bd17(arg0) {
565
597
  const ret = arg0.done;
566
598
  return ret;
567
599
  }
568
- export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
600
+ export function __wbg_error_a6fa202b58aa1cd3(arg0, arg1) {
569
601
  let deferred0_0;
570
602
  let deferred0_1;
571
603
  try {
@@ -576,22 +608,22 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
576
608
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
577
609
  }
578
610
  }
579
- export function __wbg_getRandomValues_b3f15fcbfabb0f8b() { return handleError(function (arg0, arg1) {
611
+ export function __wbg_getRandomValues_c44a50d8cfdaebeb() { return handleError(function (arg0, arg1) {
580
612
  arg0.getRandomValues(arg1);
581
613
  }, arguments); }
582
- export function __wbg_get_9b94d73e6221f75c(arg0, arg1) {
583
- const ret = arg0[arg1 >>> 0];
584
- return ret;
585
- }
586
- export function __wbg_get_b3ed3ad4be2bc8ac() { return handleError(function (arg0, arg1) {
614
+ export function __wbg_get_326e41e095fb2575() { return handleError(function (arg0, arg1) {
587
615
  const ret = Reflect.get(arg0, arg1);
588
616
  return ret;
589
617
  }, arguments); }
590
- export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
618
+ export function __wbg_get_unchecked_329cfe50afab7352(arg0, arg1) {
619
+ const ret = arg0[arg1 >>> 0];
620
+ return ret;
621
+ }
622
+ export function __wbg_get_with_ref_key_6412cf3094599694(arg0, arg1) {
591
623
  const ret = arg0[arg1];
592
624
  return ret;
593
625
  }
594
- export function __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04(arg0) {
626
+ export function __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6(arg0) {
595
627
  let result;
596
628
  try {
597
629
  result = arg0 instanceof ArrayBuffer;
@@ -601,7 +633,7 @@ export function __wbg_instanceof_ArrayBuffer_c367199e2fa2aa04(arg0) {
601
633
  const ret = result;
602
634
  return ret;
603
635
  }
604
- export function __wbg_instanceof_Uint8Array_9b9075935c74707c(arg0) {
636
+ export function __wbg_instanceof_Uint8Array_740438561a5b956d(arg0) {
605
637
  let result;
606
638
  try {
607
639
  result = arg0 instanceof Uint8Array;
@@ -611,122 +643,118 @@ export function __wbg_instanceof_Uint8Array_9b9075935c74707c(arg0) {
611
643
  const ret = result;
612
644
  return ret;
613
645
  }
614
- export function __wbg_isArray_d314bb98fcf08331(arg0) {
646
+ export function __wbg_isArray_33b91feb269ff46e(arg0) {
615
647
  const ret = Array.isArray(arg0);
616
648
  return ret;
617
649
  }
618
- export function __wbg_isSafeInteger_bfbc7332a9768d2a(arg0) {
650
+ export function __wbg_isSafeInteger_ecd6a7f9c3e053cd(arg0) {
619
651
  const ret = Number.isSafeInteger(arg0);
620
652
  return ret;
621
653
  }
622
- export function __wbg_iterator_6ff6560ca1568e55() {
654
+ export function __wbg_iterator_d8f549ec8fb061b1() {
623
655
  const ret = Symbol.iterator;
624
656
  return ret;
625
657
  }
626
- export function __wbg_length_32ed9a279acd054c(arg0) {
658
+ export function __wbg_length_b3416cf66a5452c8(arg0) {
627
659
  const ret = arg0.length;
628
660
  return ret;
629
661
  }
630
- export function __wbg_length_35a7bace40f36eac(arg0) {
662
+ export function __wbg_length_ea16607d7b61445b(arg0) {
631
663
  const ret = arg0.length;
632
664
  return ret;
633
665
  }
634
- export function __wbg_msCrypto_d562bbe83e0d4b91(arg0) {
666
+ export function __wbg_msCrypto_bd5a034af96bcba6(arg0) {
635
667
  const ret = arg0.msCrypto;
636
668
  return ret;
637
669
  }
638
- export function __wbg_new_361308b2356cecd0() {
639
- const ret = new Object();
670
+ export function __wbg_new_227d7c05414eb861() {
671
+ const ret = new Error();
640
672
  return ret;
641
673
  }
642
- export function __wbg_new_3eb36ae241fe6f44() {
643
- const ret = new Array();
674
+ export function __wbg_new_5f486cdf45a04d78(arg0) {
675
+ const ret = new Uint8Array(arg0);
644
676
  return ret;
645
677
  }
646
- export function __wbg_new_8a6f238a6ece86ea() {
647
- const ret = new Error();
678
+ export function __wbg_new_a70fbab9066b301f() {
679
+ const ret = new Array();
648
680
  return ret;
649
681
  }
650
- export function __wbg_new_dd2b680c8bf6ae29(arg0) {
651
- const ret = new Uint8Array(arg0);
682
+ export function __wbg_new_ab79df5bd7c26067() {
683
+ const ret = new Object();
652
684
  return ret;
653
685
  }
654
- export function __wbg_new_from_slice_a3d2629dc1826784(arg0, arg1) {
686
+ export function __wbg_new_from_slice_22da9388ac046e50(arg0, arg1) {
655
687
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
656
688
  return ret;
657
689
  }
658
- export function __wbg_new_no_args_1c7c842f08d00ebb(arg0, arg1) {
659
- const ret = new Function(getStringFromWasm0(arg0, arg1));
660
- return ret;
661
- }
662
- export function __wbg_new_with_length_a2c39cbe88fd8ff1(arg0) {
690
+ export function __wbg_new_with_length_825018a1616e9e55(arg0) {
663
691
  const ret = new Uint8Array(arg0 >>> 0);
664
692
  return ret;
665
693
  }
666
- export function __wbg_next_3482f54c49e8af19() { return handleError(function (arg0) {
694
+ export function __wbg_next_11b99ee6237339e3() { return handleError(function (arg0) {
667
695
  const ret = arg0.next();
668
696
  return ret;
669
697
  }, arguments); }
670
- export function __wbg_next_418f80d8f5303233(arg0) {
698
+ export function __wbg_next_e01a967809d1aa68(arg0) {
671
699
  const ret = arg0.next;
672
700
  return ret;
673
701
  }
674
- export function __wbg_node_e1f24f89a7336c2e(arg0) {
702
+ export function __wbg_node_84ea875411254db1(arg0) {
675
703
  const ret = arg0.node;
676
704
  return ret;
677
705
  }
678
- export function __wbg_process_3975fd6c72f520aa(arg0) {
706
+ export function __wbg_process_44c7a14e11e9f69e(arg0) {
679
707
  const ret = arg0.process;
680
708
  return ret;
681
709
  }
682
- export function __wbg_prototypesetcall_bdcdcc5842e4d77d(arg0, arg1, arg2) {
710
+ export function __wbg_prototypesetcall_d62e5099504357e6(arg0, arg1, arg2) {
683
711
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
684
712
  }
685
- export function __wbg_randomFillSync_f8c153b79f285817() { return handleError(function (arg0, arg1) {
713
+ export function __wbg_randomFillSync_6c25eac9869eb53c() { return handleError(function (arg0, arg1) {
686
714
  arg0.randomFillSync(arg1);
687
715
  }, arguments); }
688
- export function __wbg_require_b74f47fc2d022fd6() { return handleError(function () {
716
+ export function __wbg_require_b4edbdcf3e2a1ef0() { return handleError(function () {
689
717
  const ret = module.require;
690
718
  return ret;
691
719
  }, arguments); }
692
- export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
693
- arg0[arg1] = arg2;
694
- }
695
- export function __wbg_set_f43e577aea94465b(arg0, arg1, arg2) {
720
+ export function __wbg_set_282384002438957f(arg0, arg1, arg2) {
696
721
  arg0[arg1 >>> 0] = arg2;
697
722
  }
698
- export function __wbg_stack_0ed75d68575b0f3c(arg0, arg1) {
723
+ export function __wbg_set_6be42768c690e380(arg0, arg1, arg2) {
724
+ arg0[arg1] = arg2;
725
+ }
726
+ export function __wbg_stack_3b0d974bbf31e44f(arg0, arg1) {
699
727
  const ret = arg1.stack;
700
728
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
701
729
  const len1 = WASM_VECTOR_LEN;
702
730
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
703
731
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
704
732
  }
705
- export function __wbg_static_accessor_GLOBAL_12837167ad935116() {
733
+ export function __wbg_static_accessor_GLOBAL_8adb955bd33fac2f() {
706
734
  const ret = typeof global === 'undefined' ? null : global;
707
735
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
708
736
  }
709
- export function __wbg_static_accessor_GLOBAL_THIS_e628e89ab3b1c95f() {
737
+ export function __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913() {
710
738
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
711
739
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
712
740
  }
713
- export function __wbg_static_accessor_SELF_a621d3dfbb60d0ce() {
741
+ export function __wbg_static_accessor_SELF_f207c857566db248() {
714
742
  const ret = typeof self === 'undefined' ? null : self;
715
743
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
716
744
  }
717
- export function __wbg_static_accessor_WINDOW_f8727f0cf888e0bd() {
745
+ export function __wbg_static_accessor_WINDOW_bb9f1ba69d61b386() {
718
746
  const ret = typeof window === 'undefined' ? null : window;
719
747
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
720
748
  }
721
- export function __wbg_subarray_a96e1fef17ed23cb(arg0, arg1, arg2) {
749
+ export function __wbg_subarray_a068d24e39478a8a(arg0, arg1, arg2) {
722
750
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
723
751
  return ret;
724
752
  }
725
- export function __wbg_value_0546255b415e96c1(arg0) {
753
+ export function __wbg_value_21fc78aab0322612(arg0) {
726
754
  const ret = arg0.value;
727
755
  return ret;
728
756
  }
729
- export function __wbg_versions_4e31226f5e8dc909(arg0) {
757
+ export function __wbg_versions_276b2795b1c6a219(arg0) {
730
758
  const ret = arg0.versions;
731
759
  return ret;
732
760
  }
Binary file
@@ -4,6 +4,7 @@ export const memory: WebAssembly.Memory;
4
4
  export const __wbg_wasmdecoder_free: (a: number, b: number) => void;
5
5
  export const __wbg_wasmencoder_free: (a: number, b: number) => void;
6
6
  export const generateNonce: () => [number, number];
7
+ export const inspect: (a: number, b: number) => [number, number, number];
7
8
  export const isLoaded: () => number;
8
9
  export const version: () => [number, number];
9
10
  export const wasmdecoder_allowUnverified: (a: number) => number;
@@ -15,6 +16,7 @@ export const wasmdecoder_decryptWithAes256: (a: number, b: number, c: number) =>
15
16
  export const wasmdecoder_maxDecompressedBytes: (a: number, b: number) => number;
16
17
  export const wasmdecoder_new: (a: number, b: number) => number;
17
18
  export const wasmdecoder_skipBiometrics: (a: number) => number;
19
+ export const wasmdecoder_strictCompression: (a: number) => number;
18
20
  export const wasmdecoder_verifyWith: (a: number, b: any) => number;
19
21
  export const wasmdecoder_verifyWithEcdsaP256: (a: number, b: number, c: number) => [number, number, number];
20
22
  export const wasmdecoder_verifyWithEcdsaP256Pem: (a: number, b: number, c: number) => [number, number, number];
@@ -22,7 +24,8 @@ export const wasmdecoder_verifyWithEd25519: (a: number, b: number, c: number) =>
22
24
  export const wasmdecoder_verifyWithEd25519Pem: (a: number, b: number, c: number) => [number, number, number];
23
25
  export const wasmdecoder_withTimestampValidation: (a: number) => number;
24
26
  export const wasmencoder_allowUnsigned: (a: number) => number;
25
- export const wasmencoder_encode: (a: number) => [number, number, number, number];
27
+ export const wasmencoder_compression: (a: number, b: number, c: number) => [number, number, number];
28
+ export const wasmencoder_encode: (a: number) => [number, number, number];
26
29
  export const wasmencoder_encryptWith: (a: number, b: any, c: number, d: number) => [number, number, number];
27
30
  export const wasmencoder_encryptWithAes128: (a: number, b: number, c: number) => [number, number, number];
28
31
  export const wasmencoder_encryptWithAes256: (a: number, b: number, c: number) => [number, number, number];
package/wasm/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "claim169-wasm",
3
3
  "type": "module",
4
4
  "description": "WASM/TypeScript bindings for MOSIP Claim 169 QR decoder",
5
- "version": "0.2.0-alpha",
5
+ "version": "0.3.0",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "claim169_wasm_bg.wasm",