@libp2p/upnp-nat 1.0.13-fb7c51c3c → 1.0.14
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 +19 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +2 -2
- package/dist/typedoc-urls.json +10 -0
- package/package.json +8 -7
- package/src/index.ts +2 -2
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# @libp2p/upnp-nat
|
|
2
|
+
|
|
1
3
|
[](http://libp2p.io/)
|
|
2
4
|
[](https://discuss.libp2p.io)
|
|
3
5
|
[](https://codecov.io/gh/libp2p/js-libp2p)
|
|
@@ -7,6 +9,21 @@
|
|
|
7
9
|
|
|
8
10
|
# About
|
|
9
11
|
|
|
12
|
+
<!--
|
|
13
|
+
|
|
14
|
+
!IMPORTANT!
|
|
15
|
+
|
|
16
|
+
Everything in this README between "# About" and "# Install" is automatically
|
|
17
|
+
generated and will be overwritten the next time the doc generator is run.
|
|
18
|
+
|
|
19
|
+
To make changes to this section, please update the @packageDocumentation section
|
|
20
|
+
of src/index.js or src/index.ts
|
|
21
|
+
|
|
22
|
+
To experiment with formatting, please run "npm run docs" from the root of this
|
|
23
|
+
repo and examine the changes made.
|
|
24
|
+
|
|
25
|
+
-->
|
|
26
|
+
|
|
10
27
|
The service exported by this module attempts to configure NAT hole punching
|
|
11
28
|
via UPnP.
|
|
12
29
|
|
|
@@ -26,11 +43,11 @@ import { tcp } from '@libp2p/tcp'
|
|
|
26
43
|
import { uPnPNAT } from '@libp2p/upnp-nat'
|
|
27
44
|
|
|
28
45
|
const node = await createLibp2p({
|
|
29
|
-
addresses:
|
|
46
|
+
addresses: {
|
|
30
47
|
listen: [
|
|
31
48
|
'/ip4/0.0.0.0/tcp/0'
|
|
32
49
|
]
|
|
33
|
-
|
|
50
|
+
},
|
|
34
51
|
transports: [
|
|
35
52
|
tcp()
|
|
36
53
|
],
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"PMPOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.PMPOptions.html",
|
|
3
|
+
".:PMPOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.PMPOptions.html",
|
|
4
|
+
"UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATComponents.html",
|
|
5
|
+
".:UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATComponents.html",
|
|
6
|
+
"UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATInit.html",
|
|
7
|
+
".:UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATInit.html",
|
|
8
|
+
"uPnPNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_upnp_nat.uPnPNAT.html",
|
|
9
|
+
".:uPnPNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_upnp_nat.uPnPNAT.html"
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/upnp-nat",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "UPnP NAT hole punching",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/upnp-nat#readme",
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"clean": "aegir clean",
|
|
44
44
|
"lint": "aegir lint",
|
|
45
45
|
"dep-check": "aegir dep-check",
|
|
46
|
+
"doc-check": "aegir doc-check",
|
|
46
47
|
"build": "aegir build --no-bundle",
|
|
47
48
|
"test": "aegir test -t node -t electron-main",
|
|
48
49
|
"test:node": "aegir test -t node --cov",
|
|
@@ -50,16 +51,16 @@
|
|
|
50
51
|
},
|
|
51
52
|
"dependencies": {
|
|
52
53
|
"@achingbrain/nat-port-mapper": "^1.0.13",
|
|
53
|
-
"@libp2p/interface": "1.1.
|
|
54
|
-
"@libp2p/interface-internal": "1.0.
|
|
55
|
-
"@libp2p/utils": "5.2.
|
|
54
|
+
"@libp2p/interface": "^1.1.4",
|
|
55
|
+
"@libp2p/interface-internal": "^1.0.9",
|
|
56
|
+
"@libp2p/utils": "^5.2.6",
|
|
56
57
|
"@multiformats/multiaddr": "^12.1.14",
|
|
57
58
|
"wherearewe": "^2.0.1"
|
|
58
59
|
},
|
|
59
60
|
"devDependencies": {
|
|
60
|
-
"@libp2p/logger": "4.0.
|
|
61
|
-
"@libp2p/peer-id-factory": "4.0.
|
|
62
|
-
"aegir": "^42.2.
|
|
61
|
+
"@libp2p/logger": "^4.0.7",
|
|
62
|
+
"@libp2p/peer-id-factory": "^4.0.7",
|
|
63
|
+
"aegir": "^42.2.4",
|
|
63
64
|
"sinon-ts": "^2.0.0"
|
|
64
65
|
},
|
|
65
66
|
"sideEffects": false
|
package/src/index.ts
CHANGED