@agentcontextdistributionprotocol/acdp-wasm 0.7.0 → 0.8.1
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/acdp_wasm.js +9 -5
- package/acdp_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/acdp_wasm.js
CHANGED
|
@@ -898,18 +898,18 @@ export function verifyWitnessCosignature(cosig_json, witness_did_doc_json, expec
|
|
|
898
898
|
function __wbg_get_imports() {
|
|
899
899
|
const import0 = {
|
|
900
900
|
__proto__: null,
|
|
901
|
-
|
|
901
|
+
__wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
|
|
902
902
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
903
903
|
return addHeapObject(ret);
|
|
904
904
|
},
|
|
905
|
-
|
|
905
|
+
__wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
|
|
906
906
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
907
907
|
},
|
|
908
|
-
|
|
908
|
+
__wbg_getTime_63fb0332e6c4ec17: function(arg0) {
|
|
909
909
|
const ret = getObject(arg0).getTime();
|
|
910
910
|
return ret;
|
|
911
911
|
},
|
|
912
|
-
|
|
912
|
+
__wbg_new_0_f117d868b403dc07: function() {
|
|
913
913
|
const ret = new Date();
|
|
914
914
|
return addHeapObject(ret);
|
|
915
915
|
},
|
|
@@ -1053,11 +1053,15 @@ function __wbg_finalize_init(instance, module) {
|
|
|
1053
1053
|
|
|
1054
1054
|
async function __wbg_load(module, imports) {
|
|
1055
1055
|
if (typeof Response === 'function' && module instanceof Response) {
|
|
1056
|
+
if (!module.ok) {
|
|
1057
|
+
throw new Error(`failed to fetch Wasm: ${module.status} ${module.statusText} fetching '${module.url}'`);
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1056
1060
|
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1057
1061
|
try {
|
|
1058
1062
|
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1059
1063
|
} catch (e) {
|
|
1060
|
-
const validResponse =
|
|
1064
|
+
const validResponse = expectedResponseType(module.type);
|
|
1061
1065
|
|
|
1062
1066
|
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1063
1067
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
package/acdp_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@agentcontextdistributionprotocol/acdp-wasm",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Agent Context Distribution Protocol — WebAssembly verification core",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.8.1",
|
|
6
6
|
"license": "MIT OR Apache-2.0",
|
|
7
7
|
"files": [
|
|
8
8
|
"acdp_wasm_bg.wasm",
|