@libp2p/autonat 2.0.12-b248eefc0 → 2.0.12-d19974d93

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/src/constants.ts CHANGED
@@ -13,7 +13,5 @@ export const PROTOCOL_NAME = 'autonat'
13
13
  */
14
14
  export const PROTOCOL_VERSION = '1.0.0'
15
15
  export const TIMEOUT = 30000
16
- export const STARTUP_DELAY = 5000
17
- export const REFRESH_INTERVAL = 60000
18
16
  export const MAX_INBOUND_STREAMS = 1
19
17
  export const MAX_OUTBOUND_STREAMS = 1
package/src/index.ts CHANGED
@@ -31,7 +31,7 @@
31
31
  */
32
32
 
33
33
  import { AutoNATService } from './autonat.js'
34
- import type { ComponentLogger, PeerId } from '@libp2p/interface'
34
+ import type { ComponentLogger, Libp2pEvents, PeerId, TypedEventTarget } from '@libp2p/interface'
35
35
  import type { AddressManager, ConnectionManager, RandomWalk, Registrar, TransportManager } from '@libp2p/interface-internal'
36
36
 
37
37
  export interface AutoNATServiceInit {
@@ -74,6 +74,7 @@ export interface AutoNATComponents {
74
74
  connectionManager: ConnectionManager
75
75
  logger: ComponentLogger
76
76
  randomWalk: RandomWalk
77
+ events: TypedEventTarget<Libp2pEvents>
77
78
  }
78
79
 
79
80
  export function autoNAT (init: AutoNATServiceInit = {}): (components: AutoNATComponents) => unknown {
package/LICENSE DELETED
@@ -1,4 +0,0 @@
1
- This project is dual licensed under MIT and Apache-2.0.
2
-
3
- MIT: https://www.opensource.org/licenses/mit
4
- Apache-2.0: https://www.apache.org/licenses/license-2.0