chore(web-chat): bump js-waku to 0.30.0
This commit is contained in:
parent
1e133a27e2
commit
242b162e73
|
@ -6,7 +6,7 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@livechat/ui-kit": "^0.5.0-20",
|
"@livechat/ui-kit": "^0.5.0-20",
|
||||||
"@multiformats/multiaddr": "^10.4.0",
|
"@multiformats/multiaddr": "^10.4.0",
|
||||||
"js-waku": "0.29.0",
|
"js-waku": "0.30.0",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"protons-runtime": "^3.1.0",
|
"protons-runtime": "^3.1.0",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
|
|
|
@ -9,7 +9,7 @@ specifiers:
|
||||||
'@types/react-dom': ^17.0.11
|
'@types/react-dom': ^17.0.11
|
||||||
cspell: ^6.0.0
|
cspell: ^6.0.0
|
||||||
gh-pages: ^4.0.0
|
gh-pages: ^4.0.0
|
||||||
js-waku: 0.29.0
|
js-waku: 0.30.0
|
||||||
npm-run-all: ^4.1.5
|
npm-run-all: ^4.1.5
|
||||||
prettier: ^2.6.2
|
prettier: ^2.6.2
|
||||||
process: ^0.11.10
|
process: ^0.11.10
|
||||||
|
@ -26,7 +26,7 @@ specifiers:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@livechat/ui-kit': 0.5.0-20_ibvs32p3vr2bbtbo3dwziny444
|
'@livechat/ui-kit': 0.5.0-20_ibvs32p3vr2bbtbo3dwziny444
|
||||||
'@multiformats/multiaddr': 10.4.0
|
'@multiformats/multiaddr': 10.4.0
|
||||||
js-waku: 0.29.0
|
js-waku: 0.30.0
|
||||||
process: 0.11.10
|
process: 0.11.10
|
||||||
protons-runtime: 3.1.0_uint8arraylist@2.3.2
|
protons-runtime: 3.1.0_uint8arraylist@2.3.2
|
||||||
react: 17.0.2
|
react: 17.0.2
|
||||||
|
@ -8382,8 +8382,8 @@ packages:
|
||||||
/js-tokens/4.0.0:
|
/js-tokens/4.0.0:
|
||||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||||
|
|
||||||
/js-waku/0.29.0:
|
/js-waku/0.30.0:
|
||||||
resolution: {integrity: sha512-44GOpNbkFt/1/bDZ3tcaeemehaZaxw404QmTvHw7FUwY6dtvGsDEERLEw1TERUljDESFjvEOcJjYnLcNDY1MHg==}
|
resolution: {integrity: sha512-CcPsPXbuIIoaMwRU/jw+U4pVCqRPbt4h/tjpk4skXnlTLTSGDOkfpvQ45Aj5tS0yXgwKdAjOMziV14OwfeZw/w==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@chainsafe/libp2p-gossipsub': 4.1.1
|
'@chainsafe/libp2p-gossipsub': 4.1.1
|
||||||
|
|
|
@ -219,8 +219,7 @@ async function initWaku(setter: (waku: WakuLight) => void) {
|
||||||
|
|
||||||
function selectFleetEnv() {
|
function selectFleetEnv() {
|
||||||
// Works with react-scripts
|
// Works with react-scripts
|
||||||
// TODO: Re-enable the switch once nwaku v0.12 is deployed
|
if (process?.env?.NODE_ENV === "development") {
|
||||||
if (true || process?.env?.NODE_ENV === "development") {
|
|
||||||
return Fleet.Test;
|
return Fleet.Test;
|
||||||
} else {
|
} else {
|
||||||
return Fleet.Prod;
|
return Fleet.Prod;
|
||||||
|
|
|
@ -76,7 +76,7 @@ async function handleMessage(
|
||||||
message: string,
|
message: string,
|
||||||
nick: string,
|
nick: string,
|
||||||
commandHandler: (cmd: string) => void,
|
commandHandler: (cmd: string) => void,
|
||||||
sender: (wakuMsg: WakuMessage) => Promise<void>
|
sender: (wakuMsg: Partial<WakuMessage>) => Promise<void>
|
||||||
) {
|
) {
|
||||||
if (message.startsWith("/")) {
|
if (message.startsWith("/")) {
|
||||||
commandHandler(message);
|
commandHandler(message);
|
||||||
|
|
Loading…
Reference in New Issue