chore(store-reactjs-chat): bump @waku/*
This commit is contained in:
parent
4fbdae63e1
commit
c4ef4d2893
|
@ -7,7 +7,9 @@
|
|||
"@testing-library/jest-dom": "^5.16.4",
|
||||
"@testing-library/react": "^13.2.0",
|
||||
"@testing-library/user-event": "^14.1.1",
|
||||
"js-waku": "0.30.0",
|
||||
"@waku/byte-utils": "^0.0.2",
|
||||
"@waku/core": "^0.0.6",
|
||||
"@waku/create": "^0.0.4",
|
||||
"protobufjs": "^7.1.0",
|
||||
"react": "^18.1.0",
|
||||
"react-dom": "^18.1.0",
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,9 +1,9 @@
|
|||
import { utils } from "js-waku";
|
||||
import * as React from "react";
|
||||
import protobuf from "protobufjs";
|
||||
import { createLightNode } from "js-waku/lib/create_waku";
|
||||
import { waitForRemotePeer } from "js-waku/lib/wait_for_remote_peer";
|
||||
import { DecoderV0 } from "js-waku/lib/waku_message/version_0";
|
||||
import {createLightNode} from "@waku/create";
|
||||
import {waitForRemotePeer} from "@waku/core/lib/wait_for_remote_peer";
|
||||
import {DecoderV0} from "@waku/core/lib/waku_message/version_0";
|
||||
import {bytesToUtf8} from "@waku/byte-utils"
|
||||
|
||||
const ContentTopic = "/toy-chat/2/huilong/proto";
|
||||
const Decoder = new DecoderV0(ContentTopic);
|
||||
|
@ -109,7 +109,7 @@ function decodeMessage(wakuMessage) {
|
|||
const time = new Date();
|
||||
time.setTime(Number(timestamp));
|
||||
|
||||
const utf8Text = utils.bytesToUtf8(text);
|
||||
const utf8Text = bytesToUtf8(text);
|
||||
|
||||
return {
|
||||
text: utf8Text,
|
||||
|
|
Loading…
Reference in New Issue