mirror of
https://github.com/status-im/status-web.git
synced 2026-08-30 05:41:09 +00:00
* chore: update waku dependencies => update to node 22 * chore: add changeset * chore(ci.yml): update node version * fix(build): use jsx runtime for rehype-react in production * chore(release.yml): update node version * fix(build): handle CoinGecko API failures in exchanges page * chore(status-js): update waku dependencies * fix(status-js): resolve Uint8Array ArrayBufferLike type errors * feat(status-js): make package compatible with ethers v5 & v6 * fix(status-js): fix ethers v6 API compatibility * chore(ethers): prevent webpack from analyzing ethers v5 & v6 compatible calls at build time to avoid false positive errors * chore(preview-page): add console logs for debugging in vercel preview * chore(status-js): add console log to ethereum client to debug on preview * chore(status-js): add extra logs to request-client to debug in preview * chore(status-js): add extra logs to debug in preview * chore(status.app): remove unnecessary guard * patch crypto deps * chore(status.app): type rehype-react options in jobs and blog pages * remove logs * update readme * remove nested resolutions * c * add node networkConfig * refactor(status-js): migrate to @bufbuild/protobuf v2 API * chore(status-js): remove console logs * chore(status-js): revert compatibility update for ethers v5 & v6 * chore(status-js): update waku packages to latest version * fix(apps/wallet): react-router-dom version mismatch * chore(packages/wallet): remove useless peer dependency * fix(status.app): upgrade remark packages to unified 11 for mdx compatibility --------- Co-authored-by: Felicio <felicio@users.noreply.github.com>
14 lines
569 B
Diff
14 lines
569 B
Diff
diff --git a/dist/crypto/utils.js b/dist/crypto/utils.js
|
|
index 24fe178c408f7bfec7f99c775b6411ad939efa27..eb47fd218c81e45bb2c351058357be2def4f5471 100644
|
|
--- a/dist/crypto/utils.js
|
|
+++ b/dist/crypto/utils.js
|
|
@@ -4,7 +4,7 @@ import { concat } from "@waku/utils/bytes";
|
|
import sha3 from "js-sha3";
|
|
import { Asymmetric, Symmetric } from "../misc.js";
|
|
const crypto = {
|
|
- node: nodeCrypto,
|
|
+ node: typeof require === 'function' && require('crypto'),
|
|
web: typeof self === "object" && "crypto" in self ? self.crypto : undefined
|
|
};
|
|
export function getSubtle() {
|