chore(web-chat): bump js-waku to 0.30.0

This commit is contained in:
fryorcraken.eth 2022-10-28 11:48:19 +11:00
parent 1e133a27e2
commit 242b162e73
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
4 changed files with 7 additions and 8 deletions

View File

@ -6,7 +6,7 @@
"dependencies": {
"@livechat/ui-kit": "^0.5.0-20",
"@multiformats/multiaddr": "^10.4.0",
"js-waku": "0.29.0",
"js-waku": "0.30.0",
"process": "^0.11.10",
"protons-runtime": "^3.1.0",
"react": "^17.0.2",

View File

@ -9,7 +9,7 @@ specifiers:
'@types/react-dom': ^17.0.11
cspell: ^6.0.0
gh-pages: ^4.0.0
js-waku: 0.29.0
js-waku: 0.30.0
npm-run-all: ^4.1.5
prettier: ^2.6.2
process: ^0.11.10
@ -26,7 +26,7 @@ specifiers:
dependencies:
'@livechat/ui-kit': 0.5.0-20_ibvs32p3vr2bbtbo3dwziny444
'@multiformats/multiaddr': 10.4.0
js-waku: 0.29.0
js-waku: 0.30.0
process: 0.11.10
protons-runtime: 3.1.0_uint8arraylist@2.3.2
react: 17.0.2
@ -8382,8 +8382,8 @@ packages:
/js-tokens/4.0.0:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
/js-waku/0.29.0:
resolution: {integrity: sha512-44GOpNbkFt/1/bDZ3tcaeemehaZaxw404QmTvHw7FUwY6dtvGsDEERLEw1TERUljDESFjvEOcJjYnLcNDY1MHg==}
/js-waku/0.30.0:
resolution: {integrity: sha512-CcPsPXbuIIoaMwRU/jw+U4pVCqRPbt4h/tjpk4skXnlTLTSGDOkfpvQ45Aj5tS0yXgwKdAjOMziV14OwfeZw/w==}
engines: {node: '>=16'}
dependencies:
'@chainsafe/libp2p-gossipsub': 4.1.1

View File

@ -219,8 +219,7 @@ async function initWaku(setter: (waku: WakuLight) => void) {
function selectFleetEnv() {
// Works with react-scripts
// TODO: Re-enable the switch once nwaku v0.12 is deployed
if (true || process?.env?.NODE_ENV === "development") {
if (process?.env?.NODE_ENV === "development") {
return Fleet.Test;
} else {
return Fleet.Prod;

View File

@ -76,7 +76,7 @@ async function handleMessage(
message: string,
nick: string,
commandHandler: (cmd: string) => void,
sender: (wakuMsg: WakuMessage) => Promise<void>
sender: (wakuMsg: Partial<WakuMessage>) => Promise<void>
) {
if (message.startsWith("/")) {
commandHandler(message);