@learncard/didkit-plugin 1.5.21 → 1.5.23

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.
@@ -3,12 +3,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
3
3
 
4
4
  // src/didkit/pkg/didkit_wasm.js
5
5
  var wasm;
6
- var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
7
- throw Error("TextDecoder not available");
8
- } };
9
- if (typeof TextDecoder !== "undefined") {
10
- cachedTextDecoder.decode();
11
- }
6
+ var WASM_VECTOR_LEN = 0;
12
7
  var cachedUint8ArrayMemory0 = null;
13
8
  function getUint8ArrayMemory0() {
14
9
  if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
@@ -17,36 +12,6 @@ function getUint8ArrayMemory0() {
17
12
  return cachedUint8ArrayMemory0;
18
13
  }
19
14
  __name(getUint8ArrayMemory0, "getUint8ArrayMemory0");
20
- function getStringFromWasm0(ptr, len) {
21
- ptr = ptr >>> 0;
22
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
23
- }
24
- __name(getStringFromWasm0, "getStringFromWasm0");
25
- function addToExternrefTable0(obj) {
26
- const idx = wasm.__externref_table_alloc();
27
- wasm.__wbindgen_export_2.set(idx, obj);
28
- return idx;
29
- }
30
- __name(addToExternrefTable0, "addToExternrefTable0");
31
- function handleError(f, args) {
32
- try {
33
- return f.apply(this, args);
34
- } catch (e) {
35
- const idx = addToExternrefTable0(e);
36
- wasm.__wbindgen_exn_store(idx);
37
- }
38
- }
39
- __name(handleError, "handleError");
40
- function getArrayU8FromWasm0(ptr, len) {
41
- ptr = ptr >>> 0;
42
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
43
- }
44
- __name(getArrayU8FromWasm0, "getArrayU8FromWasm0");
45
- function isLikeNone(x) {
46
- return x === void 0 || x === null;
47
- }
48
- __name(isLikeNone, "isLikeNone");
49
- var WASM_VECTOR_LEN = 0;
50
15
  var cachedTextEncoder = typeof TextEncoder !== "undefined" ? new TextEncoder("utf-8") : { encode: () => {
51
16
  throw Error("TextEncoder not available");
52
17
  } };
@@ -100,6 +65,41 @@ function getDataViewMemory0() {
100
65
  return cachedDataViewMemory0;
101
66
  }
102
67
  __name(getDataViewMemory0, "getDataViewMemory0");
68
+ var cachedTextDecoder = typeof TextDecoder !== "undefined" ? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true }) : { decode: () => {
69
+ throw Error("TextDecoder not available");
70
+ } };
71
+ if (typeof TextDecoder !== "undefined") {
72
+ cachedTextDecoder.decode();
73
+ }
74
+ function getStringFromWasm0(ptr, len) {
75
+ ptr = ptr >>> 0;
76
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
77
+ }
78
+ __name(getStringFromWasm0, "getStringFromWasm0");
79
+ function addToExternrefTable0(obj) {
80
+ const idx = wasm.__externref_table_alloc();
81
+ wasm.__wbindgen_export_4.set(idx, obj);
82
+ return idx;
83
+ }
84
+ __name(addToExternrefTable0, "addToExternrefTable0");
85
+ function handleError(f, args) {
86
+ try {
87
+ return f.apply(this, args);
88
+ } catch (e) {
89
+ const idx = addToExternrefTable0(e);
90
+ wasm.__wbindgen_exn_store(idx);
91
+ }
92
+ }
93
+ __name(handleError, "handleError");
94
+ function getArrayU8FromWasm0(ptr, len) {
95
+ ptr = ptr >>> 0;
96
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
97
+ }
98
+ __name(getArrayU8FromWasm0, "getArrayU8FromWasm0");
99
+ function isLikeNone(x) {
100
+ return x === void 0 || x === null;
101
+ }
102
+ __name(isLikeNone, "isLikeNone");
103
103
  var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {
104
104
  }, unregister: () => {
105
105
  } } : new FinalizationRegistry((state) => {
@@ -208,7 +208,7 @@ function resolveDID(did, input_metadata) {
208
208
  }
209
209
  __name(resolveDID, "resolveDID");
210
210
  function takeFromExternrefTable0(idx) {
211
- const value = wasm.__wbindgen_export_2.get(idx);
211
+ const value = wasm.__wbindgen_export_4.get(idx);
212
212
  wasm.__externref_table_dealloc(idx);
213
213
  return value;
214
214
  }
@@ -403,14 +403,14 @@ function contextLoader(url) {
403
403
  return ret;
404
404
  }
405
405
  __name(contextLoader, "contextLoader");
406
- function __wbg_adapter_52(arg0, arg1, arg2) {
407
- wasm.closure4177_externref_shim(arg0, arg1, arg2);
406
+ function __wbg_adapter_54(arg0, arg1, arg2) {
407
+ wasm.closure4174_externref_shim(arg0, arg1, arg2);
408
408
  }
409
- __name(__wbg_adapter_52, "__wbg_adapter_52");
410
- function __wbg_adapter_214(arg0, arg1, arg2, arg3) {
411
- wasm.closure4579_externref_shim(arg0, arg1, arg2, arg3);
409
+ __name(__wbg_adapter_54, "__wbg_adapter_54");
410
+ function __wbg_adapter_222(arg0, arg1, arg2, arg3) {
411
+ wasm.closure4576_externref_shim(arg0, arg1, arg2, arg3);
412
412
  }
413
- __name(__wbg_adapter_214, "__wbg_adapter_214");
413
+ __name(__wbg_adapter_222, "__wbg_adapter_222");
414
414
  var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
415
415
  var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
416
416
  async function __wbg_load(module2, imports) {
@@ -441,6 +441,13 @@ __name(__wbg_load, "__wbg_load");
441
441
  function __wbg_get_imports() {
442
442
  const imports = {};
443
443
  imports.wbg = {};
444
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
445
+ const ret = String(arg1);
446
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
447
+ const len1 = WASM_VECTOR_LEN;
448
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
449
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
450
+ };
444
451
  imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
445
452
  arg0.abort();
446
453
  };
@@ -592,6 +599,10 @@ function __wbg_get_imports() {
592
599
  const ret = Symbol.iterator;
593
600
  return ret;
594
601
  };
602
+ imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
603
+ const ret = Object.keys(arg0);
604
+ return ret;
605
+ };
595
606
  imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
596
607
  const ret = arg0.length;
597
608
  return ret;
@@ -625,7 +636,7 @@ function __wbg_get_imports() {
625
636
  const a = state0.a;
626
637
  state0.a = 0;
627
638
  try {
628
- return __wbg_adapter_214(a, state0.b, arg02, arg12);
639
+ return __wbg_adapter_222(a, state0.b, arg02, arg12);
629
640
  } finally {
630
641
  state0.a = a;
631
642
  }
@@ -698,6 +709,10 @@ function __wbg_get_imports() {
698
709
  const ret = arg0.process;
699
710
  return ret;
700
711
  };
712
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
713
+ const ret = arg0.push(arg1);
714
+ return ret;
715
+ };
701
716
  imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
702
717
  queueMicrotask(arg0);
703
718
  };
@@ -746,6 +761,12 @@ function __wbg_get_imports() {
746
761
  const ret = arg0.set(arg1, arg2);
747
762
  return ret;
748
763
  };
764
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() {
765
+ return handleError(function(arg0, arg1, arg2) {
766
+ const ret = Reflect.set(arg0, arg1, arg2);
767
+ return ret;
768
+ }, arguments);
769
+ };
749
770
  imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
750
771
  arg0.body = arg1;
751
772
  };
@@ -857,8 +878,8 @@ function __wbg_get_imports() {
857
878
  const ret = false;
858
879
  return ret;
859
880
  };
860
- imports.wbg.__wbindgen_closure_wrapper12246 = function(arg0, arg1, arg2) {
861
- const ret = makeMutClosure(arg0, arg1, 4178, __wbg_adapter_52);
881
+ imports.wbg.__wbindgen_closure_wrapper12252 = function(arg0, arg1, arg2) {
882
+ const ret = makeMutClosure(arg0, arg1, 4175, __wbg_adapter_54);
862
883
  return ret;
863
884
  };
864
885
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -877,7 +898,7 @@ function __wbg_get_imports() {
877
898
  return ret;
878
899
  };
879
900
  imports.wbg.__wbindgen_init_externref_table = function() {
880
- const table = wasm.__wbindgen_export_2;
901
+ const table = wasm.__wbindgen_export_4;
881
902
  const offset = table.grow(4);
882
903
  table.set(0, void 0);
883
904
  table.set(offset + 0, void 0);
@@ -894,6 +915,10 @@ function __wbg_get_imports() {
894
915
  const ret = typeof arg0 === "function";
895
916
  return ret;
896
917
  };
918
+ imports.wbg.__wbindgen_is_null = function(arg0) {
919
+ const ret = arg0 === null;
920
+ return ret;
921
+ };
897
922
  imports.wbg.__wbindgen_is_object = function(arg0) {
898
923
  const val = arg0;
899
924
  const ret = typeof val === "object" && val !== null;
@@ -986,7 +1011,7 @@ var didkit_wasm_default = __wbg_init;
986
1011
  // src/didkit/index.ts
987
1012
  var initialized = false;
988
1013
  var generating = false;
989
- var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/ivsAQbs6REaprmu9BsRF") => {
1014
+ var init = /* @__PURE__ */ __name(async (arg = "https://cdn.filestackcontent.com/HtQSwGymRJ2gCQsvhyC6") => {
990
1015
  while (generating)
991
1016
  await new Promise((res) => setTimeout(res, 250));
992
1017
  if (initialized)