@libp2p/interface-internal 2.3.4 → 2.3.5
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.
|
@@ -75,7 +75,7 @@ export interface AddressManager {
|
|
|
75
75
|
getObservedAddrs(): Multiaddr[];
|
|
76
76
|
/**
|
|
77
77
|
* Signal that we have confidence an observed multiaddr is publicly dialable -
|
|
78
|
-
* this will make it appear in the output of getAddresses()
|
|
78
|
+
* this will make it appear in the output of `getAddresses()`
|
|
79
79
|
*
|
|
80
80
|
* @param addr - The observed address.
|
|
81
81
|
* @param options - Additional options for confirmation.
|
|
@@ -83,14 +83,14 @@ export interface AddressManager {
|
|
|
83
83
|
confirmObservedAddr(addr: Multiaddr, options?: ConfirmAddressOptions): void;
|
|
84
84
|
/**
|
|
85
85
|
* Signal that we do not have confidence an observed multiaddr is publicly dialable -
|
|
86
|
-
* this will remove it from the output of getObservedAddrs()
|
|
86
|
+
* this will remove it from the output of `getObservedAddrs()`
|
|
87
87
|
*
|
|
88
88
|
* @param addr - The observed address to remove.
|
|
89
89
|
*/
|
|
90
90
|
removeObservedAddr(addr: Multiaddr): void;
|
|
91
91
|
/**
|
|
92
|
-
* Add peer observed addresses. These will then appear in the output of getObservedAddrs
|
|
93
|
-
* but not getAddresses() until their dialability has been confirmed via a call to
|
|
92
|
+
* Add peer observed addresses. These will then appear in the output of `getObservedAddrs()`
|
|
93
|
+
* but not `getAddresses()` until their dialability has been confirmed via a call to
|
|
94
94
|
* confirmObservedAddr.
|
|
95
95
|
*
|
|
96
96
|
* @param addr - The observed address to add.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-internal",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.5",
|
|
4
4
|
"description": "Interfaces implemented by internal libp2p components",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/interface-internal#readme",
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
"build": "aegir build"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@libp2p/interface": "^2.6.
|
|
52
|
-
"@libp2p/peer-collections": "^6.0.
|
|
51
|
+
"@libp2p/interface": "^2.6.1",
|
|
52
|
+
"@libp2p/peer-collections": "^6.0.21",
|
|
53
53
|
"@multiformats/multiaddr": "^12.3.3",
|
|
54
54
|
"progress-events": "^1.0.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"aegir": "^45.
|
|
57
|
+
"aegir": "^45.1.1"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false
|
|
60
60
|
}
|
package/src/address-manager.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface AddressManager {
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Signal that we have confidence an observed multiaddr is publicly dialable -
|
|
90
|
-
* this will make it appear in the output of getAddresses()
|
|
90
|
+
* this will make it appear in the output of `getAddresses()`
|
|
91
91
|
*
|
|
92
92
|
* @param addr - The observed address.
|
|
93
93
|
* @param options - Additional options for confirmation.
|
|
@@ -96,15 +96,15 @@ export interface AddressManager {
|
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Signal that we do not have confidence an observed multiaddr is publicly dialable -
|
|
99
|
-
* this will remove it from the output of getObservedAddrs()
|
|
99
|
+
* this will remove it from the output of `getObservedAddrs()`
|
|
100
100
|
*
|
|
101
101
|
* @param addr - The observed address to remove.
|
|
102
102
|
*/
|
|
103
103
|
removeObservedAddr(addr: Multiaddr): void
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* Add peer observed addresses. These will then appear in the output of getObservedAddrs
|
|
107
|
-
* but not getAddresses() until their dialability has been confirmed via a call to
|
|
106
|
+
* Add peer observed addresses. These will then appear in the output of `getObservedAddrs()`
|
|
107
|
+
* but not `getAddresses()` until their dialability has been confirmed via a call to
|
|
108
108
|
* confirmObservedAddr.
|
|
109
109
|
*
|
|
110
110
|
* @param addr - The observed address to add.
|