@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.
@@ -1,8 +1,6 @@
1
1
  let wasm;
2
2
 
3
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
4
-
5
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
3
+ let WASM_VECTOR_LEN = 0;
6
4
 
7
5
  let cachedUint8ArrayMemory0 = null;
8
6
 
@@ -13,37 +11,6 @@ function getUint8ArrayMemory0() {
13
11
  return cachedUint8ArrayMemory0;
14
12
  }
15
13
 
16
- function getStringFromWasm0(ptr, len) {
17
- ptr = ptr >>> 0;
18
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
19
- }
20
-
21
- function addToExternrefTable0(obj) {
22
- const idx = wasm.__externref_table_alloc();
23
- wasm.__wbindgen_export_2.set(idx, obj);
24
- return idx;
25
- }
26
-
27
- function handleError(f, args) {
28
- try {
29
- return f.apply(this, args);
30
- } catch (e) {
31
- const idx = addToExternrefTable0(e);
32
- wasm.__wbindgen_exn_store(idx);
33
- }
34
- }
35
-
36
- function getArrayU8FromWasm0(ptr, len) {
37
- ptr = ptr >>> 0;
38
- return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
39
- }
40
-
41
- function isLikeNone(x) {
42
- return x === undefined || x === null;
43
- }
44
-
45
- let WASM_VECTOR_LEN = 0;
46
-
47
14
  const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
48
15
 
49
16
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
@@ -107,6 +74,39 @@ function getDataViewMemory0() {
107
74
  return cachedDataViewMemory0;
108
75
  }
109
76
 
77
+ const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
78
+
79
+ if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
80
+
81
+ function getStringFromWasm0(ptr, len) {
82
+ ptr = ptr >>> 0;
83
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
84
+ }
85
+
86
+ function addToExternrefTable0(obj) {
87
+ const idx = wasm.__externref_table_alloc();
88
+ wasm.__wbindgen_export_4.set(idx, obj);
89
+ return idx;
90
+ }
91
+
92
+ function handleError(f, args) {
93
+ try {
94
+ return f.apply(this, args);
95
+ } catch (e) {
96
+ const idx = addToExternrefTable0(e);
97
+ wasm.__wbindgen_exn_store(idx);
98
+ }
99
+ }
100
+
101
+ function getArrayU8FromWasm0(ptr, len) {
102
+ ptr = ptr >>> 0;
103
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
104
+ }
105
+
106
+ function isLikeNone(x) {
107
+ return x === undefined || x === null;
108
+ }
109
+
110
110
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
111
111
  ? { register: () => {}, unregister: () => {} }
112
112
  : new FinalizationRegistry(state => {
@@ -255,7 +255,7 @@ export function resolveDID(did, input_metadata) {
255
255
  }
256
256
 
257
257
  function takeFromExternrefTable0(idx) {
258
- const value = wasm.__wbindgen_export_2.get(idx);
258
+ const value = wasm.__wbindgen_export_4.get(idx);
259
259
  wasm.__externref_table_dealloc(idx);
260
260
  return value;
261
261
  }
@@ -809,12 +809,12 @@ export function contextLoader(url) {
809
809
  return ret;
810
810
  }
811
811
 
812
- function __wbg_adapter_52(arg0, arg1, arg2) {
813
- wasm.closure4177_externref_shim(arg0, arg1, arg2);
812
+ function __wbg_adapter_54(arg0, arg1, arg2) {
813
+ wasm.closure4174_externref_shim(arg0, arg1, arg2);
814
814
  }
815
815
 
816
- function __wbg_adapter_214(arg0, arg1, arg2, arg3) {
817
- wasm.closure4579_externref_shim(arg0, arg1, arg2, arg3);
816
+ function __wbg_adapter_222(arg0, arg1, arg2, arg3) {
817
+ wasm.closure4576_externref_shim(arg0, arg1, arg2, arg3);
818
818
  }
819
819
 
820
820
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -855,6 +855,13 @@ async function __wbg_load(module, imports) {
855
855
  function __wbg_get_imports() {
856
856
  const imports = {};
857
857
  imports.wbg = {};
858
+ imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
859
+ const ret = String(arg1);
860
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
861
+ const len1 = WASM_VECTOR_LEN;
862
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
863
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
864
+ };
858
865
  imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
859
866
  arg0.abort();
860
867
  };
@@ -990,6 +997,10 @@ function __wbg_get_imports() {
990
997
  const ret = Symbol.iterator;
991
998
  return ret;
992
999
  };
1000
+ imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
1001
+ const ret = Object.keys(arg0);
1002
+ return ret;
1003
+ };
993
1004
  imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
994
1005
  const ret = arg0.length;
995
1006
  return ret;
@@ -1021,7 +1032,7 @@ function __wbg_get_imports() {
1021
1032
  const a = state0.a;
1022
1033
  state0.a = 0;
1023
1034
  try {
1024
- return __wbg_adapter_214(a, state0.b, arg0, arg1);
1035
+ return __wbg_adapter_222(a, state0.b, arg0, arg1);
1025
1036
  } finally {
1026
1037
  state0.a = a;
1027
1038
  }
@@ -1088,6 +1099,10 @@ function __wbg_get_imports() {
1088
1099
  const ret = arg0.process;
1089
1100
  return ret;
1090
1101
  };
1102
+ imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
1103
+ const ret = arg0.push(arg1);
1104
+ return ret;
1105
+ };
1091
1106
  imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
1092
1107
  queueMicrotask(arg0);
1093
1108
  };
@@ -1130,6 +1145,10 @@ function __wbg_get_imports() {
1130
1145
  const ret = arg0.set(arg1, arg2);
1131
1146
  return ret;
1132
1147
  };
1148
+ imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
1149
+ const ret = Reflect.set(arg0, arg1, arg2);
1150
+ return ret;
1151
+ }, arguments) };
1133
1152
  imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
1134
1153
  arg0.body = arg1;
1135
1154
  };
@@ -1239,8 +1258,8 @@ function __wbg_get_imports() {
1239
1258
  const ret = false;
1240
1259
  return ret;
1241
1260
  };
1242
- imports.wbg.__wbindgen_closure_wrapper12246 = function(arg0, arg1, arg2) {
1243
- const ret = makeMutClosure(arg0, arg1, 4178, __wbg_adapter_52);
1261
+ imports.wbg.__wbindgen_closure_wrapper12252 = function(arg0, arg1, arg2) {
1262
+ const ret = makeMutClosure(arg0, arg1, 4175, __wbg_adapter_54);
1244
1263
  return ret;
1245
1264
  };
1246
1265
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
@@ -1259,7 +1278,7 @@ function __wbg_get_imports() {
1259
1278
  return ret;
1260
1279
  };
1261
1280
  imports.wbg.__wbindgen_init_externref_table = function() {
1262
- const table = wasm.__wbindgen_export_2;
1281
+ const table = wasm.__wbindgen_export_4;
1263
1282
  const offset = table.grow(4);
1264
1283
  table.set(0, undefined);
1265
1284
  table.set(offset + 0, undefined);
@@ -1276,6 +1295,10 @@ function __wbg_get_imports() {
1276
1295
  const ret = typeof(arg0) === 'function';
1277
1296
  return ret;
1278
1297
  };
1298
+ imports.wbg.__wbindgen_is_null = function(arg0) {
1299
+ const ret = arg0 === null;
1300
+ return ret;
1301
+ };
1279
1302
  imports.wbg.__wbindgen_is_object = function(arg0) {
1280
1303
  const val = arg0;
1281
1304
  const ret = typeof(val) === 'object' && val !== null;
Binary file
@@ -38,14 +38,14 @@ export const verifyInvocation: (a: number, b: number, c: number, d: number) => a
38
38
  export const contextLoader: (a: number, b: number) => any;
39
39
  export const didkit_error_message: () => number;
40
40
  export const didkit_error_code: () => number;
41
- export const __wbindgen_exn_store: (a: number) => void;
42
- export const __externref_table_alloc: () => number;
43
- export const __wbindgen_export_2: WebAssembly.Table;
44
41
  export const __wbindgen_malloc: (a: number, b: number) => number;
45
42
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
43
+ export const __wbindgen_exn_store: (a: number) => void;
44
+ export const __externref_table_alloc: () => number;
45
+ export const __wbindgen_export_4: WebAssembly.Table;
46
46
  export const __wbindgen_export_5: WebAssembly.Table;
47
47
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
48
48
  export const __externref_table_dealloc: (a: number) => void;
49
- export const closure4177_externref_shim: (a: number, b: number, c: any) => void;
50
- export const closure4579_externref_shim: (a: number, b: number, c: any, d: any) => void;
49
+ export const closure4174_externref_shim: (a: number, b: number, c: any) => void;
50
+ export const closure4576_externref_shim: (a: number, b: number, c: any, d: any) => void;
51
51
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/didkit-plugin",
3
- "version": "1.5.21",
3
+ "version": "1.5.23",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/didkit-plugin.esm.js",
@@ -31,8 +31,8 @@
31
31
  },
32
32
  "types": "./dist/index.d.ts",
33
33
  "dependencies": {
34
- "@learncard/core": "9.3.32",
35
- "@learncard/types": "5.8.0"
34
+ "@learncard/core": "9.3.33",
35
+ "@learncard/types": "5.8.1"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json",