@libp2p/autonat 3.0.15 → 3.0.17-20bfcb3f9
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/dist/index.min.js +1 -4
- package/dist/index.min.js.map +4 -4
- package/dist/src/autonat.d.ts +1 -1
- package/dist/src/autonat.js +2 -2
- package/dist/src/index.js +1 -1
- package/package.json +11 -10
- package/src/autonat.ts +3 -3
- package/src/index.ts +1 -1
- package/dist/typedoc-urls.json +0 -8
package/dist/src/autonat.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { serviceCapabilities, serviceDependencies } from '@libp2p/interface';
|
|
2
|
-
import type { AutoNATComponents, AutoNATServiceInit } from './index.
|
|
2
|
+
import type { AutoNATComponents, AutoNATServiceInit } from './index.ts';
|
|
3
3
|
import type { Connection, Startable, AbortOptions, Stream } from '@libp2p/interface';
|
|
4
4
|
export declare class AutoNATService implements Startable {
|
|
5
5
|
private readonly components;
|
package/dist/src/autonat.js
CHANGED
|
@@ -6,8 +6,8 @@ import { CODE_P2P, multiaddr } from '@multiformats/multiaddr';
|
|
|
6
6
|
import { anySignal } from 'any-signal';
|
|
7
7
|
import { setMaxListeners } from 'main-event';
|
|
8
8
|
import * as Digest from 'multiformats/hashes/digest';
|
|
9
|
-
import { DEFAULT_CONNECTION_THRESHOLD, MAX_INBOUND_STREAMS, MAX_MESSAGE_SIZE, MAX_OUTBOUND_STREAMS, PROTOCOL_NAME, PROTOCOL_PREFIX, PROTOCOL_VERSION, TIMEOUT } from
|
|
10
|
-
import { Message } from
|
|
9
|
+
import { DEFAULT_CONNECTION_THRESHOLD, MAX_INBOUND_STREAMS, MAX_MESSAGE_SIZE, MAX_OUTBOUND_STREAMS, PROTOCOL_NAME, PROTOCOL_PREFIX, PROTOCOL_VERSION, TIMEOUT } from "./constants.js";
|
|
10
|
+
import { Message } from "./pb/index.js";
|
|
11
11
|
// if more than 3 peers manage to dial us on what we believe to be our external
|
|
12
12
|
// IP then we are convinced that it is, in fact, our external IP
|
|
13
13
|
// https://github.com/libp2p/specs/blob/master/autonat/autonat-v1.md#autonat-protocol
|
package/dist/src/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/autonat",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.17-20bfcb3f9",
|
|
4
4
|
"description": "Implementation of Autonat Protocol",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/protocol-autonat#readme",
|
|
@@ -26,7 +26,8 @@
|
|
|
26
26
|
"exports": {
|
|
27
27
|
".": {
|
|
28
28
|
"types": "./dist/src/index.d.ts",
|
|
29
|
-
"import": "./dist/src/index.js"
|
|
29
|
+
"import": "./dist/src/index.js",
|
|
30
|
+
"module-sync": "./dist/src/index.js"
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
@@ -45,11 +46,11 @@
|
|
|
45
46
|
"doc-check": "aegir doc-check"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"@libp2p/interface": "
|
|
49
|
-
"@libp2p/interface-internal": "
|
|
50
|
-
"@libp2p/peer-collections": "
|
|
51
|
-
"@libp2p/peer-id": "
|
|
52
|
-
"@libp2p/utils": "
|
|
49
|
+
"@libp2p/interface": "3.2.2-20bfcb3f9",
|
|
50
|
+
"@libp2p/interface-internal": "3.1.2-20bfcb3f9",
|
|
51
|
+
"@libp2p/peer-collections": "7.0.17-20bfcb3f9",
|
|
52
|
+
"@libp2p/peer-id": "6.0.8-20bfcb3f9",
|
|
53
|
+
"@libp2p/utils": "7.0.17-20bfcb3f9",
|
|
53
54
|
"@multiformats/multiaddr": "^13.0.1",
|
|
54
55
|
"any-signal": "^4.1.1",
|
|
55
56
|
"main-event": "^1.0.1",
|
|
@@ -58,14 +59,14 @@
|
|
|
58
59
|
"uint8arraylist": "^2.4.8"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
61
|
-
"@libp2p/crypto": "
|
|
62
|
-
"@libp2p/logger": "
|
|
62
|
+
"@libp2p/crypto": "5.1.17-20bfcb3f9",
|
|
63
|
+
"@libp2p/logger": "6.2.6-20bfcb3f9",
|
|
63
64
|
"aegir": "^47.0.22",
|
|
64
65
|
"delay": "^7.0.0",
|
|
65
66
|
"it-all": "^3.0.9",
|
|
66
67
|
"it-length-prefixed": "^10.0.1",
|
|
67
68
|
"it-pipe": "^3.0.1",
|
|
68
|
-
"p-retry": "^
|
|
69
|
+
"p-retry": "^8.0.0",
|
|
69
70
|
"protons": "^8.1.1",
|
|
70
71
|
"sinon": "^21.0.0",
|
|
71
72
|
"sinon-ts": "^2.0.0"
|
package/src/autonat.ts
CHANGED
|
@@ -6,9 +6,9 @@ import { CODE_P2P, multiaddr } from '@multiformats/multiaddr'
|
|
|
6
6
|
import { anySignal } from 'any-signal'
|
|
7
7
|
import { setMaxListeners } from 'main-event'
|
|
8
8
|
import * as Digest from 'multiformats/hashes/digest'
|
|
9
|
-
import { DEFAULT_CONNECTION_THRESHOLD, MAX_INBOUND_STREAMS, MAX_MESSAGE_SIZE, MAX_OUTBOUND_STREAMS, PROTOCOL_NAME, PROTOCOL_PREFIX, PROTOCOL_VERSION, TIMEOUT } from './constants.
|
|
10
|
-
import { Message } from './pb/index.
|
|
11
|
-
import type { AutoNATComponents, AutoNATServiceInit } from './index.
|
|
9
|
+
import { DEFAULT_CONNECTION_THRESHOLD, MAX_INBOUND_STREAMS, MAX_MESSAGE_SIZE, MAX_OUTBOUND_STREAMS, PROTOCOL_NAME, PROTOCOL_PREFIX, PROTOCOL_VERSION, TIMEOUT } from './constants.ts'
|
|
10
|
+
import { Message } from './pb/index.ts'
|
|
11
|
+
import type { AutoNATComponents, AutoNATServiceInit } from './index.ts'
|
|
12
12
|
import type { Logger, Connection, PeerId, Startable, AbortOptions, Stream } from '@libp2p/interface'
|
|
13
13
|
import type { AddressType } from '@libp2p/interface-internal'
|
|
14
14
|
import type { PeerSet } from '@libp2p/peer-collections'
|
package/src/index.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
28
|
|
|
29
|
-
import { AutoNATService } from './autonat.
|
|
29
|
+
import { AutoNATService } from './autonat.ts'
|
|
30
30
|
import type { ComponentLogger, Libp2pEvents, Metrics, PeerId, PeerStore } from '@libp2p/interface'
|
|
31
31
|
import type { AddressManager, ConnectionManager, RandomWalk, Registrar, TransportManager } from '@libp2p/interface-internal'
|
|
32
32
|
import type { TypedEventTarget } from 'main-event'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AutoNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_autonat.AutoNATComponents.html",
|
|
3
|
-
".:AutoNATComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_autonat.AutoNATComponents.html",
|
|
4
|
-
"AutoNATServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_autonat.AutoNATServiceInit.html",
|
|
5
|
-
".:AutoNATServiceInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_autonat.AutoNATServiceInit.html",
|
|
6
|
-
"autoNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_autonat.autoNAT.html",
|
|
7
|
-
".:autoNAT": "https://libp2p.github.io/js-libp2p/functions/_libp2p_autonat.autoNAT.html"
|
|
8
|
-
}
|