From e3a488bbf5f2725427dba41806f02f20689cdd7c Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Mon, 15 Mar 2021 15:45:41 +1100 Subject: [PATCH] Fix spelling --- .cspell.json | 16 +++++++++++++++- src/lib/waku_message.spec.ts | 4 ++-- src/lib/waku_message.ts | 2 +- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.cspell.json b/.cspell.json index 2684ee8f47..2a7ccebd33 100644 --- a/.cspell.json +++ b/.cspell.json @@ -15,13 +15,25 @@ "execa", "exponentiate", "globby", + "gossipsub", "libauth", + "libp", "mkdir", + "multiaddr", + "multiaddrs", + "multicodecs", + "mplex", + "muxer", + "nodekey", "prettierignore", + "protobuf", "sandboxed", + "secio", + "staticnode", "transpiled", "typedoc", "untracked", + "upgrader", "waku" ], "flagWords": [], @@ -30,6 +42,8 @@ "package-lock.json", "yarn.lock", "tsconfig.json", - "node_modules/**" + "node_modules/**", + "build", + "gen" ] } diff --git a/src/lib/waku_message.spec.ts b/src/lib/waku_message.spec.ts index 6f6f43125f..5479feeb45 100644 --- a/src/lib/waku_message.spec.ts +++ b/src/lib/waku_message.spec.ts @@ -5,7 +5,7 @@ import { WakuMessage } from '../gen/proto/waku/v2/waku_pb'; import { Message } from './waku_message'; // This test is more about documenting how protobuf library works than testing it -testProp('Protobuf round trip binary serialisation', [fc.string()], (t, s) => { +testProp('Protobuf round trip binary serialization', [fc.string()], (t, s) => { const wakuMsg = new WakuMessage(); wakuMsg.setPayload(Buffer.from(s, 'utf-8')); @@ -25,7 +25,7 @@ testProp('Protobuf round trip binary serialisation', [fc.string()], (t, s) => { }); testProp( - 'Waku message round trip binary serialisation', + 'Waku message round trip binary serialization', [fc.string()], (t, s) => { const msg = Message.fromUtf8String(s); diff --git a/src/lib/waku_message.ts b/src/lib/waku_message.ts index 778d5f3faf..b2303abc93 100644 --- a/src/lib/waku_message.ts +++ b/src/lib/waku_message.ts @@ -33,7 +33,7 @@ export class Message { const wakuMsg = new WakuMessage(); // Only Version 0 is implemented in Waku 2. - // 0: payload SHOULD be either unencrypted or that encryption is done at a separate layer outside of Waku. + // 0: payload SHOULD be either plain or that encryption is done at a separate layer outside of Waku. wakuMsg.setVersion(0); // This is the content topic commonly used at this time