Fix spelling

This commit is contained in:
Franck Royer 2021-04-23 15:21:51 +10:00
parent b8434dcaa1
commit 928ae5128e
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 7 additions and 6 deletions

View File

@ -57,6 +57,7 @@
"upgrader", "upgrader",
"waku", "waku",
"wakunode", "wakunode",
"webfonts",
"websockets" "websockets"
], ],
"flagWords": [], "flagWords": [],

View File

@ -30,7 +30,7 @@
"test": "run-s build test:*", "test": "run-s build test:*",
"test:lint": "eslint src --ext .ts --ext .tsx", "test:lint": "eslint src --ext .ts --ext .tsx",
"test:prettier": "prettier \"src/**/*.{ts,tsx}\" --list-different", "test:prettier": "prettier \"src/**/*.{ts,tsx}\" --list-different",
"test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.{ts,tsx},public/**/*.html}\"",
"fix:prettier": "prettier \"src/**/*.{ts,tsx}\" --write", "fix:prettier": "prettier \"src/**/*.{ts,tsx}\" --write",
"fix:lint": "eslint src --ext .ts --ext .tsx --fix", "fix:lint": "eslint src --ext .ts --ext .tsx --fix",
"js-waku:install": "cd ../; npm install", "js-waku:install": "cd ../; npm install",

View File

@ -123,7 +123,7 @@ export default function App() {
); );
} }
} catch (e) { } catch (e) {
commandResponses.push('Invalid multaddr: ' + e); commandResponses.push('Invalid multiaddr: ' + e);
} }
} }
break; break;
@ -137,10 +137,10 @@ export default function App() {
addresses = addresses.replace(/,$/, ''); addresses = addresses.replace(/,$/, '');
addresses += ']'; addresses += ']';
commandResponses.push(addresses); commandResponses.push(addresses);
let protos = ' protos: ['; let protocols = ' protocols: [';
protos += peer.protocols; protocols += peer.protocols;
protos += ']'; protocols += ']';
commandResponses.push(protos); commandResponses.push(protocols);
}); });
break; break;
default: default: