@libp2p/tcp 10.0.18 → 10.0.19-23685db5e
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,10 +3,6 @@ import type { TCPDialEvents } from './index.js';
|
|
|
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> {
|
|
6
|
-
private readonly opts;
|
|
7
|
-
private readonly metrics?;
|
|
8
|
-
private readonly components;
|
|
9
|
-
private readonly log;
|
|
10
6
|
constructor();
|
|
11
7
|
readonly [transportSymbol] = true;
|
|
12
8
|
readonly [Symbol.toStringTag] = "@libp2p/tcp";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcp.browser.d.ts","sourceRoot":"","sources":["../../src/tcp.browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"tcp.browser.d.ts","sourceRoot":"","sources":["../../src/tcp.browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AAExD,qBAAa,GAAI,YAAW,SAAS,CAAC,aAAa,CAAC;;IAKlD,QAAQ,CAAC,CAAC,eAAe,CAAC,QAAO;IAEjC,QAAQ,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,iBAAgB;IAE7C,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAEvC;IAEK,IAAI,IAAK,OAAO,CAAC,UAAU,CAAC;IAIlC,cAAc,IAAK,QAAQ;IAI3B,YAAY,IAAK,SAAS,EAAE;IAI5B,UAAU,IAAK,SAAS,EAAE;CAG3B"}
|
package/dist/src/tcp.browser.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tcp.browser.js","sourceRoot":"","sources":["../../src/tcp.browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxE,MAAM,OAAO,GAAG;
|
|
1
|
+
{"version":3,"file":"tcp.browser.js","sourceRoot":"","sources":["../../src/tcp.browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAKxE,MAAM,OAAO,GAAG;IACd;QACE,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;IACjE,CAAC;IAEQ,CAAC,eAAe,CAAC,GAAG,IAAI,CAAA;IAExB,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,aAAa,CAAA;IAEpC,CAAC,mBAAmB,CAAC,GAAa;QACzC,mBAAmB;KACpB,CAAA;IAED,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;IACjE,CAAC;IAED,cAAc;QACZ,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAA;IACjE,CAAC;IAED,YAAY;QACV,OAAO,EAAE,CAAA;IACX,CAAC;IAED,UAAU;QACR,OAAO,EAAE,CAAA;IACX,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/tcp",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.19-23685db5e",
|
|
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",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"test:electron-main": "aegir test -t electron-main"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@libp2p/interface": "
|
|
64
|
-
"@libp2p/utils": "
|
|
63
|
+
"@libp2p/interface": "2.5.0-23685db5e",
|
|
64
|
+
"@libp2p/utils": "6.5.1-23685db5e",
|
|
65
65
|
"@multiformats/mafmt": "^12.1.6",
|
|
66
66
|
"@multiformats/multiaddr": "^12.3.3",
|
|
67
67
|
"@types/sinon": "^17.0.3",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"stream-to-it": "^1.0.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@libp2p/logger": "
|
|
75
|
+
"@libp2p/logger": "5.1.8-23685db5e",
|
|
76
76
|
"aegir": "^45.0.5",
|
|
77
77
|
"p-wait-for": "^5.0.2",
|
|
78
78
|
"sinon": "^19.0.2",
|
package/src/tcp.browser.ts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { serviceCapabilities, transportSymbol } from '@libp2p/interface'
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { TCPDialEvents } from './index.js'
|
|
3
|
+
import type { Connection, Transport, Listener } from '@libp2p/interface'
|
|
4
4
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
|
5
5
|
|
|
6
6
|
export class TCP implements Transport<TCPDialEvents> {
|
|
7
|
-
private readonly opts: TCPOptions
|
|
8
|
-
private readonly metrics?: TCPMetrics
|
|
9
|
-
private readonly components: TCPComponents
|
|
10
|
-
private readonly log: Logger
|
|
11
|
-
|
|
12
7
|
constructor () {
|
|
13
8
|
throw new Error('TCP connections are not possible in browsers')
|
|
14
9
|
}
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"CloseServerOnMaxConnectionsOpts": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.CloseServerOnMaxConnectionsOpts.html",
|
|
3
|
-
"TCPComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPComponents.html",
|
|
4
|
-
".:TCPComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPComponents.html",
|
|
5
|
-
"TCPCreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPCreateListenerOptions.html",
|
|
6
|
-
".:TCPCreateListenerOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPCreateListenerOptions.html",
|
|
7
|
-
"TCPDialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPDialOptions.html",
|
|
8
|
-
".:TCPDialOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPDialOptions.html",
|
|
9
|
-
"TCPMetrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPMetrics.html",
|
|
10
|
-
".:TCPMetrics": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPMetrics.html",
|
|
11
|
-
"TCPOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPOptions.html",
|
|
12
|
-
".:TCPOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPOptions.html",
|
|
13
|
-
"TCPSocketOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPSocketOptions.html",
|
|
14
|
-
".:TCPSocketOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_tcp.TCPSocketOptions.html",
|
|
15
|
-
"TCPDialEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_tcp.TCPDialEvents.html",
|
|
16
|
-
".:TCPDialEvents": "https://libp2p.github.io/js-libp2p/types/_libp2p_tcp.TCPDialEvents.html",
|
|
17
|
-
"tcp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_tcp.tcp.html",
|
|
18
|
-
".:tcp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_tcp.tcp.html"
|
|
19
|
-
}
|