@libp2p/upnp-nat 3.1.14 → 3.1.15

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.
@@ -3,7 +3,7 @@ import type { UPnPNATComponents, UPnPNATInit, UPnPNAT as UPnPNATInterface } from
3
3
  import type { Gateway, UPnPNAT as UPnPNATClient } from '@achingbrain/nat-port-mapper';
4
4
  import type { Startable, TypedEventTarget } from '@libp2p/interface';
5
5
  export interface GatewayFinderEvents {
6
- 'gateway': CustomEvent<Gateway>;
6
+ gateway: CustomEvent<Gateway>;
7
7
  }
8
8
  export interface GatewayFinder extends TypedEventTarget<GatewayFinderEvents> {
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"upnp-nat.d.ts","sourceRoot":"","sources":["../../src/upnp-nat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAgC,MAAM,mBAAmB,CAAA;AAK1G,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAC7F,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,KAAK,EAAU,SAAS,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AAG5E,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAChC;AAED,MAAM,WAAW,aAAc,SAAQ,gBAAgB,CAAC,mBAAmB,CAAC;CAE3E;AAED,qBAAa,OAAQ,YAAW,SAAS,EAAE,gBAAgB;IACzD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAQ;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,OAAO,CAAS;IACjB,iBAAiB,EAAE,aAAa,CAAA;IACvC,O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CAE3E;AAED,qBAAa,OAAQ,YAAW,SAAS,EAAE,gBAAgB;IACzD,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAQ;IAC5B,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAmB;IAC9C,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,OAAO,CAAS;IACjB,iBAAiB,EAAE,aAAa,CAAA;IACvC,OAAO,CAAC,kBAAkB,CAAC,CAAiB;IAC5C,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAmB;IAC3D,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAC7C,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkB;IAC9C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAS;gBAE/B,UAAU,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW;IA6C7D,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,sBAAqB;IAElD,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAEvC;IAED,IAAI,CAAC,mBAAmB,CAAC,IAAK,MAAM,EAAE,CAQrC;IAED,SAAS,IAAK,OAAO;IAIf,KAAK,IAAK,OAAO,CAAC,IAAI,CAAC;IAa7B;;OAEG;IACG,IAAI,IAAK,OAAO,CAAC,IAAI,CAAC;IAQ5B,mBAAmB,CAAE,KAAK,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAejD,cAAc,IAAK,OAAO,CAAC,IAAI,CAAC;CAWvC"}
@@ -1,12 +1,12 @@
1
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
- "UPnPNAT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNAT.html",
5
- ".:UPnPNAT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNAT.html",
6
- "UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATComponents.html",
7
- ".:UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATComponents.html",
8
- "UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATInit.html",
9
- ".:UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp_nat.UPnPNATInit.html",
10
- "uPnPNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_upnp_nat.uPnPNAT-1.html",
11
- ".:uPnPNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_upnp_nat.uPnPNAT-1.html"
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
+ "UPnPNAT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp-nat.UPnPNAT.html",
5
+ ".:UPnPNAT": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp-nat.UPnPNAT.html",
6
+ "UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp-nat.UPnPNATComponents.html",
7
+ ".:UPnPNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp-nat.UPnPNATComponents.html",
8
+ "UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp-nat.UPnPNATInit.html",
9
+ ".:UPnPNATInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_upnp-nat.UPnPNATInit.html",
10
+ "uPnPNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_upnp-nat.uPnPNAT.html",
11
+ ".:uPnPNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_upnp-nat.uPnPNAT.html"
12
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@libp2p/upnp-nat",
3
- "version": "3.1.14",
3
+ "version": "3.1.15",
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",
@@ -32,13 +32,6 @@
32
32
  "import": "./dist/src/index.js"
33
33
  }
34
34
  },
35
- "eslintConfig": {
36
- "extends": "ipfs",
37
- "parserOptions": {
38
- "project": true,
39
- "sourceType": "module"
40
- }
41
- },
42
35
  "scripts": {
43
36
  "clean": "aegir clean",
44
37
  "lint": "aegir lint",
@@ -54,21 +47,21 @@
54
47
  "test:electron-main": "aegir test -t electron-main"
55
48
  },
56
49
  "dependencies": {
57
- "@achingbrain/nat-port-mapper": "^4.0.0",
58
- "@chainsafe/is-ip": "^2.0.2",
59
- "@libp2p/interface": "^2.10.0",
60
- "@libp2p/interface-internal": "^2.3.12",
61
- "@libp2p/utils": "^6.6.3",
62
- "@multiformats/multiaddr": "^12.3.3",
63
- "@multiformats/multiaddr-matcher": "^1.6.0",
50
+ "@achingbrain/nat-port-mapper": "^4.0.2",
51
+ "@chainsafe/is-ip": "^2.1.0",
52
+ "@libp2p/interface": "^2.10.1",
53
+ "@libp2p/interface-internal": "^2.3.13",
54
+ "@libp2p/utils": "^6.6.4",
55
+ "@multiformats/multiaddr": "^12.4.0",
56
+ "@multiformats/multiaddr-matcher": "^1.7.2",
64
57
  "p-defer": "^4.0.1",
65
- "race-signal": "^1.1.2"
58
+ "race-signal": "^1.1.3"
66
59
  },
67
60
  "devDependencies": {
68
- "@libp2p/crypto": "^5.1.2",
69
- "@libp2p/logger": "^5.1.16",
70
- "@libp2p/peer-id": "^5.1.3",
71
- "aegir": "^45.1.1",
61
+ "@libp2p/crypto": "^5.1.3",
62
+ "@libp2p/logger": "^5.1.17",
63
+ "@libp2p/peer-id": "^5.1.4",
64
+ "aegir": "^47.0.6",
72
65
  "sinon-ts": "^2.0.0",
73
66
  "wherearewe": "^2.0.1"
74
67
  },
package/src/upnp-nat.ts CHANGED
@@ -10,7 +10,7 @@ import type { Logger, Startable, TypedEventTarget } from '@libp2p/interface'
10
10
  import type { DebouncedFunction } from '@libp2p/utils/debounce'
11
11
 
12
12
  export interface GatewayFinderEvents {
13
- 'gateway': CustomEvent<Gateway>
13
+ gateway: CustomEvent<Gateway>
14
14
  }
15
15
 
16
16
  export interface GatewayFinder extends TypedEventTarget<GatewayFinderEvents> {