@libp2p/tcp 11.0.15 → 11.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 -1
- package/dist/index.min.js.map +3 -3
- package/dist/src/index.js +1 -1
- package/dist/src/listener.d.ts +1 -1
- package/dist/src/listener.js +2 -2
- package/dist/src/tcp.browser.d.ts +1 -1
- package/dist/src/tcp.d.ts +1 -1
- package/dist/src/tcp.js +3 -3
- package/package.json +7 -6
- package/src/index.ts +1 -1
- package/src/listener.ts +4 -4
- package/src/tcp.browser.ts +1 -1
- package/src/tcp.ts +4 -4
- package/dist/typedoc-urls.json +0 -20
package/dist/src/index.js
CHANGED
package/dist/src/listener.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TypedEventEmitter } from 'main-event';
|
|
2
|
-
import type { CloseServerOnMaxConnectionsOpts, TCPCreateListenerOptions } from './index.
|
|
2
|
+
import type { CloseServerOnMaxConnectionsOpts, TCPCreateListenerOptions } from './index.ts';
|
|
3
3
|
import type { ComponentLogger, Metrics, Listener, ListenerEvents, Upgrader, AbortOptions } from '@libp2p/interface';
|
|
4
4
|
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
5
5
|
interface Context extends TCPCreateListenerOptions {
|
package/dist/src/listener.js
CHANGED
|
@@ -4,8 +4,8 @@ import { getThinWaistAddresses } from '@libp2p/utils';
|
|
|
4
4
|
import { multiaddr } from '@multiformats/multiaddr';
|
|
5
5
|
import { TypedEventEmitter, setMaxListeners } from 'main-event';
|
|
6
6
|
import { pEvent } from 'p-event';
|
|
7
|
-
import { toMultiaddrConnection } from
|
|
8
|
-
import { multiaddrToNetConfig } from
|
|
7
|
+
import { toMultiaddrConnection } from "./socket-to-conn.js";
|
|
8
|
+
import { multiaddrToNetConfig } from "./utils.js";
|
|
9
9
|
var TCPListenerStatusCode;
|
|
10
10
|
(function (TCPListenerStatusCode) {
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { serviceCapabilities, transportSymbol } from '@libp2p/interface';
|
|
2
|
-
import type { TCPDialEvents } from './index.
|
|
2
|
+
import type { TCPDialEvents } from './index.ts';
|
|
3
3
|
import type { Connection, Transport, Listener } from '@libp2p/interface';
|
|
4
4
|
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
5
5
|
export declare class TCP implements Transport<TCPDialEvents> {
|
package/dist/src/tcp.d.ts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
import { serviceCapabilities, transportSymbol } from '@libp2p/interface';
|
|
30
|
-
import type { TCPComponents, TCPCreateListenerOptions, TCPDialEvents, TCPDialOptions, TCPOptions } from './index.
|
|
30
|
+
import type { TCPComponents, TCPCreateListenerOptions, TCPDialEvents, TCPDialOptions, TCPOptions } from './index.ts';
|
|
31
31
|
import type { Connection, Transport, Listener } from '@libp2p/interface';
|
|
32
32
|
import type { Multiaddr } from '@multiformats/multiaddr';
|
|
33
33
|
import type { Socket } from 'net';
|
package/dist/src/tcp.js
CHANGED
|
@@ -30,9 +30,9 @@ import net from 'net';
|
|
|
30
30
|
import { AbortError, TimeoutError, serviceCapabilities, transportSymbol } from '@libp2p/interface';
|
|
31
31
|
import { TCP as TCPMatcher } from '@multiformats/multiaddr-matcher';
|
|
32
32
|
import { CustomProgressEvent } from 'progress-events';
|
|
33
|
-
import { TCPListener } from
|
|
34
|
-
import { toMultiaddrConnection } from
|
|
35
|
-
import { multiaddrToNetConfig } from
|
|
33
|
+
import { TCPListener } from "./listener.js";
|
|
34
|
+
import { toMultiaddrConnection } from "./socket-to-conn.js";
|
|
35
|
+
import { multiaddrToNetConfig } from "./utils.js";
|
|
36
36
|
export class TCP {
|
|
37
37
|
opts;
|
|
38
38
|
metrics;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/tcp",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.17-20bfcb3f9",
|
|
4
4
|
"description": "A TCP transport for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-tcp#readme",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"exports": {
|
|
36
36
|
".": {
|
|
37
37
|
"types": "./dist/src/index.d.ts",
|
|
38
|
-
"import": "./dist/src/index.js"
|
|
38
|
+
"import": "./dist/src/index.js",
|
|
39
|
+
"module-sync": "./dist/src/index.js"
|
|
39
40
|
}
|
|
40
41
|
},
|
|
41
42
|
"scripts": {
|
|
@@ -53,18 +54,18 @@
|
|
|
53
54
|
"test:electron-main": "aegir test -t electron-main"
|
|
54
55
|
},
|
|
55
56
|
"dependencies": {
|
|
56
|
-
"@libp2p/interface": "
|
|
57
|
-
"@libp2p/utils": "
|
|
57
|
+
"@libp2p/interface": "3.2.2-20bfcb3f9",
|
|
58
|
+
"@libp2p/utils": "7.0.17-20bfcb3f9",
|
|
58
59
|
"@multiformats/multiaddr": "^13.0.1",
|
|
59
60
|
"@multiformats/multiaddr-matcher": "^3.0.1",
|
|
60
|
-
"@types/sinon": "^20.0.0",
|
|
61
61
|
"main-event": "^1.0.1",
|
|
62
62
|
"p-event": "^7.0.0",
|
|
63
63
|
"progress-events": "^1.0.1",
|
|
64
64
|
"uint8arraylist": "^2.4.8"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@libp2p/logger": "
|
|
67
|
+
"@libp2p/logger": "6.2.6-20bfcb3f9",
|
|
68
|
+
"@types/sinon": "^21.0.1",
|
|
68
69
|
"aegir": "^47.0.22",
|
|
69
70
|
"delay": "^7.0.0",
|
|
70
71
|
"p-defer": "^4.0.1",
|
package/src/index.ts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
import { TCP } from './tcp.
|
|
30
|
+
import { TCP } from './tcp.ts'
|
|
31
31
|
import type { ComponentLogger, CounterGroup, Metrics, CreateListenerOptions, DialTransportOptions, Transport, OutboundConnectionUpgradeEvents } from '@libp2p/interface'
|
|
32
32
|
import type { ProgressEvent } from 'progress-events'
|
|
33
33
|
|
package/src/listener.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { getThinWaistAddresses } from '@libp2p/utils'
|
|
|
4
4
|
import { multiaddr } from '@multiformats/multiaddr'
|
|
5
5
|
import { TypedEventEmitter, setMaxListeners } from 'main-event'
|
|
6
6
|
import { pEvent } from 'p-event'
|
|
7
|
-
import { toMultiaddrConnection } from './socket-to-conn.
|
|
8
|
-
import { multiaddrToNetConfig } from './utils.
|
|
9
|
-
import type { CloseServerOnMaxConnectionsOpts, TCPCreateListenerOptions } from './index.
|
|
10
|
-
import type { NetConfig } from './utils.
|
|
7
|
+
import { toMultiaddrConnection } from './socket-to-conn.ts'
|
|
8
|
+
import { multiaddrToNetConfig } from './utils.ts'
|
|
9
|
+
import type { CloseServerOnMaxConnectionsOpts, TCPCreateListenerOptions } from './index.ts'
|
|
10
|
+
import type { NetConfig } from './utils.ts'
|
|
11
11
|
import type { ComponentLogger, Logger, MultiaddrConnection, CounterGroup, MetricGroup, Metrics, Listener, ListenerEvents, Upgrader, AbortOptions } from '@libp2p/interface'
|
|
12
12
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
13
13
|
|
package/src/tcp.browser.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { serviceCapabilities, transportSymbol } from '@libp2p/interface'
|
|
2
|
-
import type { TCPDialEvents } from './index.
|
|
2
|
+
import type { TCPDialEvents } from './index.ts'
|
|
3
3
|
import type { Connection, Transport, Listener } from '@libp2p/interface'
|
|
4
4
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
5
5
|
|
package/src/tcp.ts
CHANGED
|
@@ -31,10 +31,10 @@ import net from 'net'
|
|
|
31
31
|
import { AbortError, TimeoutError, serviceCapabilities, transportSymbol } from '@libp2p/interface'
|
|
32
32
|
import { TCP as TCPMatcher } from '@multiformats/multiaddr-matcher'
|
|
33
33
|
import { CustomProgressEvent } from 'progress-events'
|
|
34
|
-
import { TCPListener } from './listener.
|
|
35
|
-
import { toMultiaddrConnection } from './socket-to-conn.
|
|
36
|
-
import { multiaddrToNetConfig } from './utils.
|
|
37
|
-
import type { TCPComponents, TCPCreateListenerOptions, TCPDialEvents, TCPDialOptions, TCPMetrics, TCPOptions } from './index.
|
|
34
|
+
import { TCPListener } from './listener.ts'
|
|
35
|
+
import { toMultiaddrConnection } from './socket-to-conn.ts'
|
|
36
|
+
import { multiaddrToNetConfig } from './utils.ts'
|
|
37
|
+
import type { TCPComponents, TCPCreateListenerOptions, TCPDialEvents, TCPDialOptions, TCPMetrics, TCPOptions } from './index.ts'
|
|
38
38
|
import type { Logger, Connection, Transport, Listener, MultiaddrConnection } from '@libp2p/interface'
|
|
39
39
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
40
40
|
import type { Socket, IpcSocketConnectOpts, TcpSocketConnectOpts } from 'net'
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"CloseServerOnMaxConnectionsOpts": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.CloseServerOnMaxConnectionsOpts.html",
|
|
3
|
-
".:CloseServerOnMaxConnectionsOpts": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.CloseServerOnMaxConnectionsOpts.html",
|
|
4
|
-
"TCPComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPComponents.html",
|
|
5
|
-
".:TCPComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPComponents.html",
|
|
6
|
-
"TCPCreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPCreateListenerOptions.html",
|
|
7
|
-
".:TCPCreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPCreateListenerOptions.html",
|
|
8
|
-
"TCPDialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPDialOptions.html",
|
|
9
|
-
".:TCPDialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPDialOptions.html",
|
|
10
|
-
"TCPMetrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPMetrics.html",
|
|
11
|
-
".:TCPMetrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPMetrics.html",
|
|
12
|
-
"TCPOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPOptions.html",
|
|
13
|
-
".:TCPOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPOptions.html",
|
|
14
|
-
"TCPSocketOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPSocketOptions.html",
|
|
15
|
-
".:TCPSocketOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPSocketOptions.html",
|
|
16
|
-
"TCPDialEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_tcp.TCPDialEvents.html",
|
|
17
|
-
".:TCPDialEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_tcp.TCPDialEvents.html",
|
|
18
|
-
"tcp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_tcp.tcp.html",
|
|
19
|
-
".:tcp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_tcp.tcp.html"
|
|
20
|
-
}
|