@libp2p/interface-internal 2.0.10-d30d07e6f → 2.0.10-eee97c7d4
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.
|
@@ -33,5 +33,16 @@ export interface AddressManager {
|
|
|
33
33
|
* Get the current node's addresses
|
|
34
34
|
*/
|
|
35
35
|
getAddresses(): Multiaddr[];
|
|
36
|
+
/**
|
|
37
|
+
* Adds a mapping between one or more IP addresses and a domain name - when
|
|
38
|
+
* `getAddresses` is invoked, where the IP addresses are present in a
|
|
39
|
+
* multiaddr, an additional multiaddr will be added with `ip4` and `ip6`
|
|
40
|
+
* tuples replaced with `dns4` and `dns6 ones respectively.
|
|
41
|
+
*/
|
|
42
|
+
addDNSMapping(domain: string, ipAddresses: string[]): void;
|
|
43
|
+
/**
|
|
44
|
+
* Remove a mapping previously added with `addDNSMapping`.
|
|
45
|
+
*/
|
|
46
|
+
removeDNSMapping(domain: string): void;
|
|
36
47
|
}
|
|
37
48
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/address-manager/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,cAAc,IAAI,SAAS,EAAE,CAAA;IAE7B;;OAEG;IACH,gBAAgB,IAAI,SAAS,EAAE,CAAA;IAE/B;;;OAGG;IACH,gBAAgB,IAAI,SAAS,EAAE,CAAA;IAE/B;;;OAGG;IACH,mBAAmB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IAE1C;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IAEzC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IAEtC;;OAEG;IACH,YAAY,IAAI,SAAS,EAAE,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/address-manager/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,cAAc,IAAI,SAAS,EAAE,CAAA;IAE7B;;OAEG;IACH,gBAAgB,IAAI,SAAS,EAAE,CAAA;IAE/B;;;OAGG;IACH,gBAAgB,IAAI,SAAS,EAAE,CAAA;IAE/B;;;OAGG;IACH,mBAAmB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IAE1C;;;OAGG;IACH,kBAAkB,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IAEzC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,SAAS,GAAG,IAAI,CAAA;IAEtC;;OAEG;IACH,YAAY,IAAI,SAAS,EAAE,CAAA;IAE3B;;;;;OAKG;IACH,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAE1D;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;CACvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/interface-internal",
|
|
3
|
-
"version": "2.0.10-
|
|
3
|
+
"version": "2.0.10-eee97c7d4",
|
|
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,8 +48,8 @@
|
|
|
48
48
|
"build": "aegir build"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@libp2p/interface": "2.2.0-
|
|
52
|
-
"@libp2p/peer-collections": "6.0.10-
|
|
51
|
+
"@libp2p/interface": "2.2.0-eee97c7d4",
|
|
52
|
+
"@libp2p/peer-collections": "6.0.10-eee97c7d4",
|
|
53
53
|
"@multiformats/multiaddr": "^12.2.3",
|
|
54
54
|
"progress-events": "^1.0.0",
|
|
55
55
|
"uint8arraylist": "^2.4.8"
|
|
@@ -40,4 +40,17 @@ export interface AddressManager {
|
|
|
40
40
|
* Get the current node's addresses
|
|
41
41
|
*/
|
|
42
42
|
getAddresses(): Multiaddr[]
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Adds a mapping between one or more IP addresses and a domain name - when
|
|
46
|
+
* `getAddresses` is invoked, where the IP addresses are present in a
|
|
47
|
+
* multiaddr, an additional multiaddr will be added with `ip4` and `ip6`
|
|
48
|
+
* tuples replaced with `dns4` and `dns6 ones respectively.
|
|
49
|
+
*/
|
|
50
|
+
addDNSMapping(domain: string, ipAddresses: string[]): void
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Remove a mapping previously added with `addDNSMapping`.
|
|
54
|
+
*/
|
|
55
|
+
removeDNSMapping(domain: string): void
|
|
43
56
|
}
|