@libp2p/interface 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -464,7 +464,7 @@ export interface Libp2p<T extends ServiceMap = ServiceMap> extends Startable, Ty
464
464
  * const conn = await libp2p.dial(remotePeerId)
465
465
  *
466
466
  * // create a new stream within the connection
467
- * const { stream, protocol } = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
467
+ * const stream = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
468
468
  *
469
469
  * // protocol negotiated: 'echo/1.0.0' means that the other party only supports the older version
470
470
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/interface",
3
- "version": "1.6.1",
3
+ "version": "1.6.2",
4
4
  "description": "The interface implemented by a libp2p node",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface#readme",
package/src/index.ts CHANGED
@@ -527,7 +527,7 @@ export interface Libp2p<T extends ServiceMap = ServiceMap> extends Startable, Ty
527
527
  * const conn = await libp2p.dial(remotePeerId)
528
528
  *
529
529
  * // create a new stream within the connection
530
- * const { stream, protocol } = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
530
+ * const stream = await conn.newStream(['/echo/1.1.0', '/echo/1.0.0'])
531
531
  *
532
532
  * // protocol negotiated: 'echo/1.0.0' means that the other party only supports the older version
533
533
  *