@learncard/didkit-plugin 1.9.11 → 1.9.13
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/dist/didkit/didkit_wasm.d.ts +3 -2
- package/dist/didkit/didkit_wasm.js +34 -39
- package/dist/didkit/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit/didkit_wasm_bg.wasm.d.ts +3 -2
- package/dist/didkit/index.d.ts +1 -1
- package/dist/didkit/index.d.ts.map +1 -1
- package/dist/didkit-plugin.cjs.development.cjs +34 -43
- package/dist/didkit-plugin.cjs.development.cjs.map +2 -2
- package/dist/didkit-plugin.cjs.production.min.cjs +2 -2
- package/dist/didkit-plugin.cjs.production.min.cjs.map +3 -3
- package/dist/didkit-plugin.esm.js +34 -43
- package/dist/didkit-plugin.esm.js.map +2 -2
- package/dist/didkit_wasm.d.ts +3 -2
- package/dist/didkit_wasm.js +34 -39
- package/dist/didkit_wasm_bg.wasm +0 -0
- package/dist/didkit_wasm_bg.wasm.d.ts +3 -2
- package/dist/helpers.d.ts.map +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/didkit/index.ts +1 -1
- package/src/didkit/pkg/didkit_wasm.d.ts +3 -2
- package/src/didkit/pkg/didkit_wasm.js +34 -39
- package/src/didkit/pkg/didkit_wasm_bg.wasm +0 -0
- package/src/didkit/pkg/didkit_wasm_bg.wasm.d.ts +3 -2
|
@@ -85,8 +85,9 @@ export interface InitOutput {
|
|
|
85
85
|
readonly __wbindgen_export_5: WebAssembly.Table;
|
|
86
86
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
87
87
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
88
|
-
readonly
|
|
89
|
-
readonly
|
|
88
|
+
readonly closure4278_externref_shim: (a: number, b: number, c: any) => void;
|
|
89
|
+
readonly wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
90
|
+
readonly closure4664_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
90
91
|
readonly __wbindgen_start: () => void;
|
|
91
92
|
}
|
|
92
93
|
|
|
@@ -822,14 +822,20 @@ export function decryptDagJwe(jwe, jwks) {
|
|
|
822
822
|
return ret;
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
function
|
|
826
|
-
wasm.
|
|
825
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
826
|
+
wasm.closure4278_externref_shim(arg0, arg1, arg2);
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
function
|
|
830
|
-
wasm.
|
|
829
|
+
function __wbg_adapter_15(arg0, arg1) {
|
|
830
|
+
wasm.wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______(arg0, arg1);
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
+
function __wbg_adapter_165(arg0, arg1, arg2, arg3) {
|
|
834
|
+
wasm.closure4664_externref_shim(arg0, arg1, arg2, arg3);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
838
|
+
|
|
833
839
|
const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
834
840
|
|
|
835
841
|
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
@@ -886,6 +892,9 @@ function __wbg_get_imports() {
|
|
|
886
892
|
imports.wbg.__wbg_abort_67e1b49bf6614565 = function(arg0) {
|
|
887
893
|
arg0.abort();
|
|
888
894
|
};
|
|
895
|
+
imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
|
|
896
|
+
arg0.abort(arg1);
|
|
897
|
+
};
|
|
889
898
|
imports.wbg.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
890
899
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
891
900
|
}, arguments) };
|
|
@@ -901,8 +910,8 @@ function __wbg_get_imports() {
|
|
|
901
910
|
const ret = arg0.call(arg1, arg2);
|
|
902
911
|
return ret;
|
|
903
912
|
}, arguments) };
|
|
904
|
-
imports.wbg.
|
|
905
|
-
const ret = arg0
|
|
913
|
+
imports.wbg.__wbg_clearTimeout_42d9ccd50822fd3a = function(arg0) {
|
|
914
|
+
const ret = clearTimeout(arg0);
|
|
906
915
|
return ret;
|
|
907
916
|
};
|
|
908
917
|
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
@@ -917,12 +926,12 @@ function __wbg_get_imports() {
|
|
|
917
926
|
const ret = Object.entries(arg0);
|
|
918
927
|
return ret;
|
|
919
928
|
};
|
|
920
|
-
imports.wbg.
|
|
921
|
-
const ret =
|
|
929
|
+
imports.wbg.__wbg_fetch_6bbc32f991730587 = function(arg0) {
|
|
930
|
+
const ret = fetch(arg0);
|
|
922
931
|
return ret;
|
|
923
932
|
};
|
|
924
|
-
imports.wbg.
|
|
925
|
-
const ret = fetch(
|
|
933
|
+
imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
|
|
934
|
+
const ret = arg0.fetch(arg1);
|
|
926
935
|
return ret;
|
|
927
936
|
};
|
|
928
937
|
imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) {
|
|
@@ -932,13 +941,6 @@ function __wbg_get_imports() {
|
|
|
932
941
|
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
933
942
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
934
943
|
}, arguments) };
|
|
935
|
-
imports.wbg.__wbg_getRandomValues_371e7ade8bd92088 = function(arg0, arg1) {
|
|
936
|
-
arg0.getRandomValues(arg1);
|
|
937
|
-
};
|
|
938
|
-
imports.wbg.__wbg_getRandomValues_7dfe5bd1b67c9ca1 = function(arg0) {
|
|
939
|
-
const ret = arg0.getRandomValues;
|
|
940
|
-
return ret;
|
|
941
|
-
};
|
|
942
944
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
943
945
|
arg0.getRandomValues(arg1);
|
|
944
946
|
}, arguments) };
|
|
@@ -1030,10 +1032,6 @@ function __wbg_get_imports() {
|
|
|
1030
1032
|
const ret = arg0.msCrypto;
|
|
1031
1033
|
return ret;
|
|
1032
1034
|
};
|
|
1033
|
-
imports.wbg.__wbg_msCrypto_ff35fce085fab2a3 = function(arg0) {
|
|
1034
|
-
const ret = arg0.msCrypto;
|
|
1035
|
-
return ret;
|
|
1036
|
-
};
|
|
1037
1035
|
imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
1038
1036
|
const ret = new Date();
|
|
1039
1037
|
return ret;
|
|
@@ -1053,7 +1051,7 @@ function __wbg_get_imports() {
|
|
|
1053
1051
|
const a = state0.a;
|
|
1054
1052
|
state0.a = 0;
|
|
1055
1053
|
try {
|
|
1056
|
-
return
|
|
1054
|
+
return __wbg_adapter_165(a, state0.b, arg0, arg1);
|
|
1057
1055
|
} finally {
|
|
1058
1056
|
state0.a = a;
|
|
1059
1057
|
}
|
|
@@ -1130,16 +1128,9 @@ function __wbg_get_imports() {
|
|
|
1130
1128
|
const ret = arg0.queueMicrotask;
|
|
1131
1129
|
return ret;
|
|
1132
1130
|
};
|
|
1133
|
-
imports.wbg.__wbg_randomFillSync_994ac6d9ade7a695 = function(arg0, arg1, arg2) {
|
|
1134
|
-
arg0.randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
1135
|
-
};
|
|
1136
1131
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1137
1132
|
arg0.randomFillSync(arg1);
|
|
1138
1133
|
}, arguments) };
|
|
1139
|
-
imports.wbg.__wbg_require_0d6aeaec3c042c88 = function(arg0, arg1, arg2) {
|
|
1140
|
-
const ret = arg0.require(getStringFromWasm0(arg1, arg2));
|
|
1141
|
-
return ret;
|
|
1142
|
-
};
|
|
1143
1134
|
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1144
1135
|
const ret = module.require;
|
|
1145
1136
|
return ret;
|
|
@@ -1148,10 +1139,10 @@ function __wbg_get_imports() {
|
|
|
1148
1139
|
const ret = Promise.resolve(arg0);
|
|
1149
1140
|
return ret;
|
|
1150
1141
|
};
|
|
1151
|
-
imports.wbg.
|
|
1152
|
-
const ret =
|
|
1142
|
+
imports.wbg.__wbg_setTimeout_4ec014681668a581 = function(arg0, arg1) {
|
|
1143
|
+
const ret = setTimeout(arg0, arg1);
|
|
1153
1144
|
return ret;
|
|
1154
|
-
}
|
|
1145
|
+
};
|
|
1155
1146
|
imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) {
|
|
1156
1147
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
1157
1148
|
};
|
|
@@ -1172,6 +1163,9 @@ function __wbg_get_imports() {
|
|
|
1172
1163
|
imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
|
|
1173
1164
|
arg0.body = arg1;
|
|
1174
1165
|
};
|
|
1166
|
+
imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
|
|
1167
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1168
|
+
};
|
|
1175
1169
|
imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
|
|
1176
1170
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1177
1171
|
};
|
|
@@ -1199,10 +1193,6 @@ function __wbg_get_imports() {
|
|
|
1199
1193
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1200
1194
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1201
1195
|
};
|
|
1202
|
-
imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function() {
|
|
1203
|
-
const ret = module;
|
|
1204
|
-
return ret;
|
|
1205
|
-
};
|
|
1206
1196
|
imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
1207
1197
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1208
1198
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -1347,9 +1337,9 @@ function __wbg_get_imports() {
|
|
|
1347
1337
|
const ret = arg0;
|
|
1348
1338
|
return ret;
|
|
1349
1339
|
};
|
|
1350
|
-
imports.wbg.
|
|
1351
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1352
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1340
|
+
imports.wbg.__wbindgen_cast_a80d8bd71297895c = function(arg0, arg1) {
|
|
1341
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4277, function: Function { arguments: [Externref], shim_idx: 4278, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1342
|
+
const ret = makeMutClosure(arg0, arg1, 4277, __wbg_adapter_6);
|
|
1353
1343
|
return ret;
|
|
1354
1344
|
};
|
|
1355
1345
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
@@ -1357,6 +1347,11 @@ function __wbg_get_imports() {
|
|
|
1357
1347
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1358
1348
|
return ret;
|
|
1359
1349
|
};
|
|
1350
|
+
imports.wbg.__wbindgen_cast_ce402fe3678a2ac0 = function(arg0, arg1) {
|
|
1351
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 4243, function: Function { arguments: [], shim_idx: 4244, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1352
|
+
const ret = makeMutClosure(arg0, arg1, 4243, __wbg_adapter_15);
|
|
1353
|
+
return ret;
|
|
1354
|
+
};
|
|
1360
1355
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1361
1356
|
// Cast intrinsic for `F64 -> Externref`.
|
|
1362
1357
|
const ret = arg0;
|
|
Binary file
|
|
@@ -46,6 +46,7 @@ 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
|
|
50
|
-
export const
|
|
49
|
+
export const closure4278_externref_shim: (a: number, b: number, c: any) => void;
|
|
50
|
+
export const wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______: (a: number, b: number) => void;
|
|
51
|
+
export const closure4664_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
51
52
|
export const __wbindgen_start: () => void;
|
package/dist/didkit/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export * from './pkg/didkit_wasm';
|
|
|
8
8
|
* Kept as a standalone constant so `scripts/set-default-wasm-url.mjs` can rewrite it regardless of
|
|
9
9
|
* how Prettier wraps the `init` signature. Do not inline it back into the parameter list.
|
|
10
10
|
*/
|
|
11
|
-
export declare const DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-
|
|
11
|
+
export declare const DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-38e9e39677846cfec7f0521cc23d707e2c9e87ae9981f988d78747f023bf64ee/didkit_wasm_bg.wasm";
|
|
12
12
|
export declare const init: (arg?: InitInput | Promise<InitInput>) => Promise<void>;
|
|
13
13
|
export default init;
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/didkit/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAErD,cAAc,mBAAmB,CAAC;AAElC;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,mIACgG,CAAC;AAKrI,eAAO,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/didkit/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAErD,cAAc,mBAAmB,CAAC;AAElC;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,mIACgG,CAAC;AAKrI,eAAO,MAAM,IAAI,GAAU,MAAK,SAAS,GAAG,OAAO,CAAC,SAAS,CAA2B,kBAmBvF,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -437,14 +437,19 @@ function decryptDagJwe(jwe, jwks) {
|
|
|
437
437
|
return ret;
|
|
438
438
|
}
|
|
439
439
|
__name(decryptDagJwe, "decryptDagJwe");
|
|
440
|
-
function
|
|
441
|
-
wasm.
|
|
440
|
+
function __wbg_adapter_6(arg0, arg1, arg2) {
|
|
441
|
+
wasm.closure4278_externref_shim(arg0, arg1, arg2);
|
|
442
442
|
}
|
|
443
|
-
__name(
|
|
444
|
-
function
|
|
445
|
-
wasm.
|
|
443
|
+
__name(__wbg_adapter_6, "__wbg_adapter_6");
|
|
444
|
+
function __wbg_adapter_15(arg0, arg1) {
|
|
445
|
+
wasm.wasm_bindgen_d32f3dfee079a7d6___convert__closures_____invoke______(arg0, arg1);
|
|
446
446
|
}
|
|
447
|
-
__name(
|
|
447
|
+
__name(__wbg_adapter_15, "__wbg_adapter_15");
|
|
448
|
+
function __wbg_adapter_165(arg0, arg1, arg2, arg3) {
|
|
449
|
+
wasm.closure4664_externref_shim(arg0, arg1, arg2, arg3);
|
|
450
|
+
}
|
|
451
|
+
__name(__wbg_adapter_165, "__wbg_adapter_165");
|
|
452
|
+
var __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
448
453
|
var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
449
454
|
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
450
455
|
var EXPECTED_RESPONSE_TYPES = /* @__PURE__ */ new Set(["basic", "cors", "default"]);
|
|
@@ -491,6 +496,9 @@ function __wbg_get_imports() {
|
|
|
491
496
|
imports.wbg.__wbg_abort_67e1b49bf6614565 = function(arg0) {
|
|
492
497
|
arg0.abort();
|
|
493
498
|
};
|
|
499
|
+
imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
|
|
500
|
+
arg0.abort(arg1);
|
|
501
|
+
};
|
|
494
502
|
imports.wbg.__wbg_append_72a3c0addd2bce38 = function() {
|
|
495
503
|
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
|
496
504
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
@@ -514,8 +522,8 @@ function __wbg_get_imports() {
|
|
|
514
522
|
return ret;
|
|
515
523
|
}, arguments);
|
|
516
524
|
};
|
|
517
|
-
imports.wbg.
|
|
518
|
-
const ret = arg0
|
|
525
|
+
imports.wbg.__wbg_clearTimeout_42d9ccd50822fd3a = function(arg0) {
|
|
526
|
+
const ret = clearTimeout(arg0);
|
|
519
527
|
return ret;
|
|
520
528
|
};
|
|
521
529
|
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
@@ -530,12 +538,12 @@ function __wbg_get_imports() {
|
|
|
530
538
|
const ret = Object.entries(arg0);
|
|
531
539
|
return ret;
|
|
532
540
|
};
|
|
533
|
-
imports.wbg.
|
|
534
|
-
const ret =
|
|
541
|
+
imports.wbg.__wbg_fetch_6bbc32f991730587 = function(arg0) {
|
|
542
|
+
const ret = fetch(arg0);
|
|
535
543
|
return ret;
|
|
536
544
|
};
|
|
537
|
-
imports.wbg.
|
|
538
|
-
const ret = fetch(
|
|
545
|
+
imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
|
|
546
|
+
const ret = arg0.fetch(arg1);
|
|
539
547
|
return ret;
|
|
540
548
|
};
|
|
541
549
|
imports.wbg.__wbg_from_88bc52ce20ba6318 = function(arg0) {
|
|
@@ -547,13 +555,6 @@ function __wbg_get_imports() {
|
|
|
547
555
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
548
556
|
}, arguments);
|
|
549
557
|
};
|
|
550
|
-
imports.wbg.__wbg_getRandomValues_371e7ade8bd92088 = function(arg0, arg1) {
|
|
551
|
-
arg0.getRandomValues(arg1);
|
|
552
|
-
};
|
|
553
|
-
imports.wbg.__wbg_getRandomValues_7dfe5bd1b67c9ca1 = function(arg0) {
|
|
554
|
-
const ret = arg0.getRandomValues;
|
|
555
|
-
return ret;
|
|
556
|
-
};
|
|
557
558
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() {
|
|
558
559
|
return handleError(function(arg0, arg1) {
|
|
559
560
|
arg0.getRandomValues(arg1);
|
|
@@ -651,10 +652,6 @@ function __wbg_get_imports() {
|
|
|
651
652
|
const ret = arg0.msCrypto;
|
|
652
653
|
return ret;
|
|
653
654
|
};
|
|
654
|
-
imports.wbg.__wbg_msCrypto_ff35fce085fab2a3 = function(arg0) {
|
|
655
|
-
const ret = arg0.msCrypto;
|
|
656
|
-
return ret;
|
|
657
|
-
};
|
|
658
655
|
imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
659
656
|
const ret = /* @__PURE__ */ new Date();
|
|
660
657
|
return ret;
|
|
@@ -674,7 +671,7 @@ function __wbg_get_imports() {
|
|
|
674
671
|
const a = state0.a;
|
|
675
672
|
state0.a = 0;
|
|
676
673
|
try {
|
|
677
|
-
return
|
|
674
|
+
return __wbg_adapter_165(a, state0.b, arg02, arg12);
|
|
678
675
|
} finally {
|
|
679
676
|
state0.a = a;
|
|
680
677
|
}
|
|
@@ -759,18 +756,11 @@ function __wbg_get_imports() {
|
|
|
759
756
|
const ret = arg0.queueMicrotask;
|
|
760
757
|
return ret;
|
|
761
758
|
};
|
|
762
|
-
imports.wbg.__wbg_randomFillSync_994ac6d9ade7a695 = function(arg0, arg1, arg2) {
|
|
763
|
-
arg0.randomFillSync(getArrayU8FromWasm0(arg1, arg2));
|
|
764
|
-
};
|
|
765
759
|
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() {
|
|
766
760
|
return handleError(function(arg0, arg1) {
|
|
767
761
|
arg0.randomFillSync(arg1);
|
|
768
762
|
}, arguments);
|
|
769
763
|
};
|
|
770
|
-
imports.wbg.__wbg_require_0d6aeaec3c042c88 = function(arg0, arg1, arg2) {
|
|
771
|
-
const ret = arg0.require(getStringFromWasm0(arg1, arg2));
|
|
772
|
-
return ret;
|
|
773
|
-
};
|
|
774
764
|
imports.wbg.__wbg_require_60cc747a6bc5215a = function() {
|
|
775
765
|
return handleError(function() {
|
|
776
766
|
const ret = module.require;
|
|
@@ -781,11 +771,9 @@ function __wbg_get_imports() {
|
|
|
781
771
|
const ret = Promise.resolve(arg0);
|
|
782
772
|
return ret;
|
|
783
773
|
};
|
|
784
|
-
imports.wbg.
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
return ret;
|
|
788
|
-
}, arguments);
|
|
774
|
+
imports.wbg.__wbg_setTimeout_4ec014681668a581 = function(arg0, arg1) {
|
|
775
|
+
const ret = setTimeout(arg0, arg1);
|
|
776
|
+
return ret;
|
|
789
777
|
};
|
|
790
778
|
imports.wbg.__wbg_set_1353b2a5e96bc48c = function(arg0, arg1, arg2) {
|
|
791
779
|
arg0.set(getArrayU8FromWasm0(arg1, arg2));
|
|
@@ -809,6 +797,9 @@ function __wbg_get_imports() {
|
|
|
809
797
|
imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
|
|
810
798
|
arg0.body = arg1;
|
|
811
799
|
};
|
|
800
|
+
imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
|
|
801
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
802
|
+
};
|
|
812
803
|
imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
|
|
813
804
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
814
805
|
};
|
|
@@ -836,10 +827,6 @@ function __wbg_get_imports() {
|
|
|
836
827
|
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
|
837
828
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
838
829
|
};
|
|
839
|
-
imports.wbg.__wbg_static_accessor_MODULE_ef3aa2eb251158a5 = function() {
|
|
840
|
-
const ret = module;
|
|
841
|
-
return ret;
|
|
842
|
-
};
|
|
843
830
|
imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
844
831
|
const ret = typeof self === "undefined" ? null : self;
|
|
845
832
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -982,14 +969,18 @@ function __wbg_get_imports() {
|
|
|
982
969
|
const ret = arg0;
|
|
983
970
|
return ret;
|
|
984
971
|
};
|
|
985
|
-
imports.wbg.
|
|
986
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
972
|
+
imports.wbg.__wbindgen_cast_a80d8bd71297895c = function(arg0, arg1) {
|
|
973
|
+
const ret = makeMutClosure(arg0, arg1, 4277, __wbg_adapter_6);
|
|
987
974
|
return ret;
|
|
988
975
|
};
|
|
989
976
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
990
977
|
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
991
978
|
return ret;
|
|
992
979
|
};
|
|
980
|
+
imports.wbg.__wbindgen_cast_ce402fe3678a2ac0 = function(arg0, arg1) {
|
|
981
|
+
const ret = makeMutClosure(arg0, arg1, 4243, __wbg_adapter_15);
|
|
982
|
+
return ret;
|
|
983
|
+
};
|
|
993
984
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
994
985
|
const ret = arg0;
|
|
995
986
|
return ret;
|
|
@@ -1043,7 +1034,7 @@ __name(__wbg_init, "__wbg_init");
|
|
|
1043
1034
|
var didkit_wasm_default = __wbg_init;
|
|
1044
1035
|
|
|
1045
1036
|
// src/didkit/index.ts
|
|
1046
|
-
var DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-
|
|
1037
|
+
var DEFAULT_DIDKIT_WASM_URL = "https://assets.learncard.ai/didkit/sha256-38e9e39677846cfec7f0521cc23d707e2c9e87ae9981f988d78747f023bf64ee/didkit_wasm_bg.wasm";
|
|
1047
1038
|
var initialized = false;
|
|
1048
1039
|
var generating = false;
|
|
1049
1040
|
var init = /* @__PURE__ */ __name(async (arg = DEFAULT_DIDKIT_WASM_URL) => {
|