@libp2p/mdns 9.0.6 → 9.0.7-88c47f51

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.
package/README.md CHANGED
@@ -48,30 +48,30 @@ async function start () {
48
48
  - options
49
49
  - `peerName` - Peer name to announce (should not be peeer id), default random string
50
50
  - `multiaddrs` - multiaddrs to announce
51
- - `broadcast` - (true/false) announce our presence through mDNS, default `false`
51
+ - `broadcast` - (true/false) announce our presence through mDNS, default `true`
52
52
  - `interval` - query interval, default 10 \* 1000 (10 seconds)
53
- - `serviceTag` - name of the service announce , default 'ipfs.local\`
53
+ - `serviceTag` - name of the service announce , default '_p2p._udp.local\`
54
54
 
55
55
  ## MDNS messages
56
56
 
57
- A query is sent to discover the IPFS nodes on the local network
57
+ A query is sent to discover the libp2p nodes on the local network
58
58
 
59
59
  ```js
60
60
  {
61
61
  type: 'query',
62
- questions: [ { name: 'ipfs.local', type: 'PTR' } ]
62
+ questions: [ { name: '_p2p._udp.local', type: 'PTR' } ]
63
63
  }
64
64
  ```
65
65
 
66
- When a query is detected, each IPFS node sends an answer about itself
66
+ When a query is detected, each libp2p node sends an answer about itself
67
67
 
68
68
  ```js
69
- [ { name: 'ipfs.local',
69
+ [ { name: '_p2p._udp.local',
70
70
  type: 'PTR',
71
71
  class: 'IN',
72
72
  ttl: 120,
73
- data: 'QmNPubsDWATVngE3d5WDSNe7eVrFLuk38qb9t6vdLnu2aK.ipfs.local' },
74
- { name: 'QmNPubsDWATVngE3d5WDSNe7eVrFLuk38qb9t6vdLnu2aK.ipfs.local',
73
+ data: 'QmNPubsDWATVngE3d5WDSNe7eVrFLuk38qb9t6vdLnu2aK._p2p._udp.local' },
74
+ { name: 'QmNPubsDWATVngE3d5WDSNe7eVrFLuk38qb9t6vdLnu2aK._p2p._udp.local',
75
75
  type: 'SRV',
76
76
  class: 'IN',
77
77
  ttl: 120,
@@ -80,7 +80,7 @@ When a query is detected, each IPFS node sends an answer about itself
80
80
  weight: 1,
81
81
  port: '20002',
82
82
  target: 'LAPTOP-G5LJ7VN9' } },
83
- { name: 'QmNPubsDWATVngE3d5WDSNe7eVrFLuk38qb9t6vdLnu2aK.ipfs.local',
83
+ { name: 'QmNPubsDWATVngE3d5WDSNe7eVrFLuk38qb9t6vdLnu2aK._p2p._udp.local',
84
84
  type: 'TXT',
85
85
  class: 'IN',
86
86
  ttl: 120,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/mdns",
3
- "version": "9.0.6",
3
+ "version": "9.0.7-88c47f51",
4
4
  "description": "Node.js libp2p mDNS discovery implementation for peer discovery",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "homepage": "https://github.com/libp2p/js-libp2p/tree/master/packages/peer-discovery-mdns#readme",
@@ -44,19 +44,19 @@
44
44
  "test:electron-main": "aegir test -t electron-main"
45
45
  },
46
46
  "dependencies": {
47
- "@libp2p/interface": "^0.1.2",
48
- "@libp2p/logger": "^3.0.2",
49
- "@libp2p/peer-id": "^3.0.2",
50
- "@libp2p/utils": "^4.0.2",
47
+ "@libp2p/interface": "0.1.2-88c47f51",
48
+ "@libp2p/logger": "3.0.2-88c47f51",
49
+ "@libp2p/peer-id": "3.0.2-88c47f51",
50
+ "@libp2p/utils": "4.0.3-88c47f51",
51
51
  "@multiformats/multiaddr": "^12.1.5",
52
52
  "@types/multicast-dns": "^7.2.1",
53
53
  "dns-packet": "^5.4.0",
54
54
  "multicast-dns": "^7.2.5"
55
55
  },
56
56
  "devDependencies": {
57
- "@libp2p/interface-compliance-tests": "^4.0.5",
58
- "@libp2p/interface-internal": "^0.1.4",
59
- "@libp2p/peer-id-factory": "^3.0.3",
57
+ "@libp2p/interface-compliance-tests": "4.0.5-88c47f51",
58
+ "@libp2p/interface-internal": "0.1.4-88c47f51",
59
+ "@libp2p/peer-id-factory": "3.0.3-88c47f51",
60
60
  "aegir": "^40.0.8",
61
61
  "p-wait-for": "^5.0.2",
62
62
  "ts-sinon": "^2.0.2"
@@ -1,5 +0,0 @@
1
- {
2
- "MulticastDNSComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_mdns.MulticastDNSComponents.html",
3
- "MulticastDNSInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_mdns.MulticastDNSInit.html",
4
- "mdns": "https://libp2p.github.io/js-libp2p/functions/_libp2p_mdns.mdns.html"
5
- }