@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 CHANGED
@@ -1,3 +1,5 @@
1
+ # @libp2p/upnp-nat
2
+
1
3
  [![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)
2
4
  [![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)
3
5
  [![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](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
  ],
@@ -20,11 +20,11 @@
20
20
  * import { uPnPNAT } from '@libp2p/upnp-nat'
21
21
  *
22
22
  * const node = await createLibp2p({
23
- * addresses: [
23
+ * addresses: {
24
24
  * listen: [
25
25
  * '/ip4/0.0.0.0/tcp/0'
26
26
  * ]
27
- * ],
27
+ * },
28
28
  * transports: [
29
29
  * tcp()
30
30
  * ],
package/dist/src/index.js CHANGED
@@ -20,11 +20,11 @@
20
20
  * import { uPnPNAT } from '@libp2p/upnp-nat'
21
21
  *
22
22
  * const node = await createLibp2p({
23
- * addresses: [
23
+ * addresses: {
24
24
  * listen: [
25
25
  * '/ip4/0.0.0.0/tcp/0'
26
26
  * ]
27
- * ],
27
+ * },
28
28
  * transports: [
29
29
  * tcp()
30
30
  * ],
@@ -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.13-fb7c51c3c",
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.3-fb7c51c3c",
54
- "@libp2p/interface-internal": "1.0.8-fb7c51c3c",
55
- "@libp2p/utils": "5.2.5-fb7c51c3c",
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.6-fb7c51c3c",
61
- "@libp2p/peer-id-factory": "4.0.6-fb7c51c3c",
62
- "aegir": "^42.2.3",
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
@@ -20,11 +20,11 @@
20
20
  * import { uPnPNAT } from '@libp2p/upnp-nat'
21
21
  *
22
22
  * const node = await createLibp2p({
23
- * addresses: [
23
+ * addresses: {
24
24
  * listen: [
25
25
  * '/ip4/0.0.0.0/tcp/0'
26
26
  * ]
27
- * ],
27
+ * },
28
28
  * transports: [
29
29
  * tcp()
30
30
  * ],