docs: update examples for 0.29 (#742)

* docs: update examples for 0.29

* fix: update examples/libp2p-in-the-browser/package.json

Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>

Co-authored-by: Vasco Santos <vasco.santos@moxy.studio>
This commit is contained in:
Jacob Heun
2020-08-27 18:13:38 +02:00
committed by GitHub
parent bbf8ef7065
commit 3c2a45a9d2
4 changed files with 8 additions and 32 deletions

View File

@ -29,7 +29,7 @@ function streamToConsole(stream) {
// For each chunk of data
for await (const msg of source) {
// Output the data as a utf8 string
console.log('> ' + uint8ArrayToString(msg).replace('\n', ''))
console.log('> ' + msg.toString().replace('\n', ''))
}
}
)