@libp2p/peer-record 7.0.1-01e9a5fe4 → 7.0.1-07f3afe2d

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -17,7 +17,7 @@ This envelope stores a marshaled record implementing the [interface-record](http
17
17
 
18
18
  You can read further about the envelope in [libp2p/specs#217](https://github.com/libp2p/specs/pull/217).
19
19
 
20
- ## Example
20
+ ## Example - Creating a peer record
21
21
 
22
22
  Create an envelope with an instance of an [interface-record](https://github.com/libp2p/js-libp2p/blob/main/packages/interface/src/record/index.ts) implementation and prepare it for being exchanged:
23
23
 
@@ -48,7 +48,7 @@ const e = await PeerEnvelope.seal(rec, peerId)
48
48
  const wireData = e.marshal()
49
49
  ```
50
50
 
51
- ## Example
51
+ ## Example - Consuming a peer record
52
52
 
53
53
  Consume a received envelope (`wireData`) and transform it back to a record:
54
54
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/peer-record",
3
- "version": "7.0.1-01e9a5fe4",
3
+ "version": "7.0.1-07f3afe2d",
4
4
  "description": "Used to transfer signed peer data across the network",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/peer-record#readme",
@@ -60,10 +60,10 @@
60
60
  "test:electron-main": "aegir test -t electron-main"
61
61
  },
62
62
  "dependencies": {
63
- "@libp2p/crypto": "3.0.2-01e9a5fe4",
64
- "@libp2p/interface": "1.0.2-01e9a5fe4",
65
- "@libp2p/peer-id": "4.0.2-01e9a5fe4",
66
- "@libp2p/utils": "5.0.3-01e9a5fe4",
63
+ "@libp2p/crypto": "3.0.2-07f3afe2d",
64
+ "@libp2p/interface": "1.0.2-07f3afe2d",
65
+ "@libp2p/peer-id": "4.0.2-07f3afe2d",
66
+ "@libp2p/utils": "5.0.3-07f3afe2d",
67
67
  "@multiformats/multiaddr": "^12.1.10",
68
68
  "protons-runtime": "^5.0.0",
69
69
  "uint8-varint": "^2.0.0",
@@ -71,7 +71,7 @@
71
71
  "uint8arrays": "^5.0.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@libp2p/peer-id-factory": "4.0.1-01e9a5fe4",
74
+ "@libp2p/peer-id-factory": "4.0.1-07f3afe2d",
75
75
  "aegir": "^41.0.2",
76
76
  "protons": "^7.3.0"
77
77
  }