@wireapp/core-crypto 0.6.1 → 0.6.3
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/package.json
    CHANGED
    
    
    
        package/platforms/web/assets/{core_crypto_ffi-d45ab989.wasm → core_crypto_ffi-078cc57d.wasm}
    RENAMED
    
    | Binary file | 
| @@ -2417,6 +2417,14 @@ function getImports() { | |
| 2417 2417 | 
             
                    const ret = new Uint8Array(getObject(arg0));
         | 
| 2418 2418 | 
             
                    return addHeapObject(ret);
         | 
| 2419 2419 | 
             
                };
         | 
| 2420 | 
            +
                imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
         | 
| 2421 | 
            +
                    const ret = FfiWireE2EIdentity.__wrap(arg0);
         | 
| 2422 | 
            +
                    return addHeapObject(ret);
         | 
| 2423 | 
            +
                };
         | 
| 2424 | 
            +
                imports.wbg.__wbg_push_49c286f04dd3bf59 = function (arg0, arg1) {
         | 
| 2425 | 
            +
                    const ret = getObject(arg0).push(getObject(arg1));
         | 
| 2426 | 
            +
                    return ret;
         | 
| 2427 | 
            +
                };
         | 
| 2420 2428 | 
             
                imports.wbg.__wbg_new_9d3a9ce4282a18a8 = function (arg0, arg1) {
         | 
| 2421 2429 | 
             
                    try {
         | 
| 2422 2430 | 
             
                        var state0 = { a: arg0, b: arg1 };
         | 
| @@ -2437,12 +2445,8 @@ function getImports() { | |
| 2437 2445 | 
             
                        state0.a = state0.b = 0;
         | 
| 2438 2446 | 
             
                    }
         | 
| 2439 2447 | 
             
                };
         | 
| 2440 | 
            -
                imports.wbg. | 
| 2441 | 
            -
                    const ret =  | 
| 2442 | 
            -
                    return ret;
         | 
| 2443 | 
            -
                };
         | 
| 2444 | 
            -
                imports.wbg.__wbg_ffiwiree2eidentity_new = function (arg0) {
         | 
| 2445 | 
            -
                    const ret = FfiWireE2EIdentity.__wrap(arg0);
         | 
| 2448 | 
            +
                imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
         | 
| 2449 | 
            +
                    const ret = BigInt.asUintN(64, arg0);
         | 
| 2446 2450 | 
             
                    return addHeapObject(ret);
         | 
| 2447 2451 | 
             
                };
         | 
| 2448 2452 | 
             
                imports.wbg.__wbg_new_f841cc6f2098f4b5 = function () {
         | 
| @@ -2453,10 +2457,6 @@ function getImports() { | |
| 2453 2457 | 
             
                    const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
         | 
| 2454 2458 | 
             
                    return addHeapObject(ret);
         | 
| 2455 2459 | 
             
                };
         | 
| 2456 | 
            -
                imports.wbg.__wbindgen_bigint_from_u64 = function (arg0) {
         | 
| 2457 | 
            -
                    const ret = BigInt.asUintN(64, arg0);
         | 
| 2458 | 
            -
                    return addHeapObject(ret);
         | 
| 2459 | 
            -
                };
         | 
| 2460 2460 | 
             
                imports.wbg.__wbg_setonsuccess_925a7718d3f62bc1 = function (arg0, arg1) {
         | 
| 2461 2461 | 
             
                    getObject(arg0).onsuccess = getObject(arg1);
         | 
| 2462 2462 | 
             
                };
         | 
| @@ -3032,7 +3032,7 @@ function getImports() { | |
| 3032 3032 | 
             
                        return addHeapObject(ret);
         | 
| 3033 3033 | 
             
                    }, arguments);
         | 
| 3034 3034 | 
             
                };
         | 
| 3035 | 
            -
                imports.wbg. | 
| 3035 | 
            +
                imports.wbg.__wbindgen_closure_wrapper1524 = function (arg0, arg1, arg2) {
         | 
| 3036 3036 | 
             
                    const ret = makeMutClosure(arg0, arg1, 144, __wbg_adapter_52);
         | 
| 3037 3037 | 
             
                    return addHeapObject(ret);
         | 
| 3038 3038 | 
             
                };
         | 
| @@ -3097,7 +3097,7 @@ var exports = /*#__PURE__*/Object.freeze({ | |
| 3097 3097 | 
             
            var wasm = async (opt = {}) => {
         | 
| 3098 3098 | 
             
                            let {importHook, serverPath} = opt;
         | 
| 3099 3099 |  | 
| 3100 | 
            -
                            let path = "assets/core_crypto_ffi- | 
| 3100 | 
            +
                            let path = "assets/core_crypto_ffi-078cc57d.wasm";
         | 
| 3101 3101 |  | 
| 3102 3102 | 
             
                            if (serverPath != null) {
         | 
| 3103 3103 | 
             
                                path = serverPath + /[^\/\\]*$/.exec(path)[0];
         | 
| @@ -3489,9 +3489,11 @@ class CoreCrypto { | |
| 3489 3489 | 
             
                    }
         | 
| 3490 3490 | 
             
                    try {
         | 
| 3491 3491 | 
             
                        const ffiDecryptedMessage = await CoreCryptoError.asyncMapErr(__classPrivateFieldGet(this, _CoreCrypto_cc, "f").decrypt_message(conversationId, payload));
         | 
| 3492 | 
            -
                        const  | 
| 3493 | 
            -
             | 
| 3494 | 
            -
             | 
| 3492 | 
            +
                        const ffiCommitDelay = ffiDecryptedMessage.commit_delay;
         | 
| 3493 | 
            +
                        let commitDelay = undefined;
         | 
| 3494 | 
            +
                        if (typeof ffiCommitDelay === "number" && ffiCommitDelay >= 0) {
         | 
| 3495 | 
            +
                            commitDelay = ffiCommitDelay * 1000;
         | 
| 3496 | 
            +
                        }
         | 
| 3495 3497 | 
             
                        const ret = {
         | 
| 3496 3498 | 
             
                            message: ffiDecryptedMessage.message,
         | 
| 3497 3499 | 
             
                            proposals: ffiDecryptedMessage.proposals,
         |