mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 14:57:56 +00:00
chore: update to version 14.0.11 and align website URLs
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.cryptoIsReady = void 0;
|
||||
exports.cryptoWaitReady = cryptoWaitReady;
|
||||
const wasm_crypto_1 = require("@pezkuwi/wasm-crypto");
|
||||
exports.cryptoIsReady = wasm_crypto_1.isReady;
|
||||
function cryptoWaitReady() {
|
||||
return (0, wasm_crypto_1.waitReady)()
|
||||
.then(() => {
|
||||
if (!(0, wasm_crypto_1.isReady)()) {
|
||||
throw new Error('Unable to initialize @pezkuwi/util-crypto');
|
||||
}
|
||||
return true;
|
||||
})
|
||||
.catch(() => false);
|
||||
}
|
||||
Reference in New Issue
Block a user