@libp2p/circuit-relay-v2 3.1.9-7a1665cd8 → 3.1.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.min.js +3 -3
- package/dist/src/server/index.d.ts.map +1 -1
- package/dist/src/transport/transport.d.ts +2 -1
- package/dist/src/transport/transport.d.ts.map +1 -1
- package/dist/typedoc-urls.json +23 -0
- package/package.json +10 -10
- package/src/server/index.ts +2 -2
- package/src/transport/transport.ts +2 -2
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAWlE,OAAO,EAAE,UAAU,EAA4B,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAElF,OAAO,EAAoB,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAU,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAa,UAAU,EAAE,OAAO,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/server/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAWlE,OAAO,EAAE,UAAU,EAA4B,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAElF,OAAO,EAAoB,KAAK,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAEpF,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACxE,OAAO,KAAK,EAAE,eAAe,EAAU,UAAU,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAa,UAAU,EAAE,OAAO,EAAgB,MAAM,mBAAmB,CAAA;AACtK,OAAO,KAAK,EAAE,cAAc,EAAE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viceDependencies, transportSymbol } from '@libp2p/interface';
|
2
2
|
import { ReservationStore } from './reservation-store.js';
|
3
3
|
import type { CircuitRelayTransportComponents, CircuitRelayTransportInit } from './index.js';
|
4
|
-
import type { Transport, CreateListenerOptions, Listener, Connection, OutboundConnectionUpgradeEvents, DialTransportOptions, OpenConnectionProgressEvents
|
4
|
+
import type { Transport, CreateListenerOptions, Listener, Connection, OutboundConnectionUpgradeEvents, DialTransportOptions, OpenConnectionProgressEvents } from '@libp2p/interface';
|
5
|
+
import type { IncomingStreamData } from '@libp2p/interface-internal';
|
5
6
|
import type { Multiaddr } from '@multiformats/multiaddr';
|
6
7
|
import type { ProgressEvent } from 'progress-events';
|
7
8
|
export type CircuitRelayDialEvents = OutboundConnectionUpgradeEvents | OpenConnectionProgressEvents | ProgressEvent<'circuit-relay:open-connection'> | ProgressEvent<'circuit-relay:reuse-connection'> | ProgressEvent<'circuit-relay:open-hop-stream'> | ProgressEvent<'circuit-relay:write-connect-message'> | ProgressEvent<'circuit-relay:read-connect-response'>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/transport/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,mBAAmB,EAAE,mBAAmB,EAAe,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAc1I,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,KAAK,EAAE,+BAA+B,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAC5F,OAAO,KAAK,EAAE,SAAS,EAAE,qBAAqB,EAAE,QAAQ,EAAqC,UAAU,EAA8C,+BAA+B,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,kBAAkB,
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../../src/transport/transport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,mBAAmB,EAAE,mBAAmB,EAAe,eAAe,EAAE,MAAM,mBAAmB,CAA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_v2.Limit.decode.html",
|
4
|
+
"encode": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit_relay_v2.Limit.encode.html",
|
5
|
+
"CircuitRelayServerComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayServerComponents.html",
|
6
|
+
"CircuitRelayServerInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayServerInit.html",
|
7
|
+
"CircuitRelayService": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayService.html",
|
8
|
+
".:CircuitRelayService": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayService.html",
|
9
|
+
"CircuitRelayServiceEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayServiceEvents.html",
|
10
|
+
".:CircuitRelayServiceEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayServiceEvents.html",
|
11
|
+
"CircuitRelayTransportComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayTransportComponents.html",
|
12
|
+
"CircuitRelayTransportInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.CircuitRelayTransportInit.html",
|
13
|
+
"Limit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.Limit-1.html",
|
14
|
+
"RelayDiscoveryComponents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.RelayDiscoveryComponents.html",
|
15
|
+
"RelayReservation": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.RelayReservation.html",
|
16
|
+
".:RelayReservation": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.RelayReservation.html",
|
17
|
+
"ServerReservationStoreInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.ServerReservationStoreInit.html",
|
18
|
+
"TransportReservationStoreInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_circuit_relay_v2.TransportReservationStoreInit.html",
|
19
|
+
"RELAY_V2_HOP_CODEC": "https://libp2p.github.io/js-libp2p/variables/_libp2p_circuit_relay_v2.RELAY_V2_HOP_CODEC.html",
|
20
|
+
"RELAY_V2_STOP_CODEC": "https://libp2p.github.io/js-libp2p/variables/_libp2p_circuit_relay_v2.RELAY_V2_STOP_CODEC.html",
|
21
|
+
"circuitRelayServer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit_relay_v2.circuitRelayServer.html",
|
22
|
+
"circuitRelayTransport": "https://libp2p.github.io/js-libp2p/functions/_libp2p_circuit_relay_v2.circuitRelayTransport.html"
|
23
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@libp2p/circuit-relay-v2",
|
3
|
-
"version": "3.1.9
|
3
|
+
"version": "3.1.9",
|
4
4
|
"description": "Implementation of Circuit Relay v2",
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/transport-circuit-relay-v2#readme",
|
@@ -52,13 +52,13 @@
|
|
52
52
|
"doc-check": "aegir doc-check"
|
53
53
|
},
|
54
54
|
"dependencies": {
|
55
|
-
"@libp2p/crypto": "5.0.10
|
56
|
-
"@libp2p/interface": "2.4.1
|
57
|
-
"@libp2p/interface-internal": "2.2.4
|
58
|
-
"@libp2p/peer-collections": "6.0.16
|
59
|
-
"@libp2p/peer-id": "5.0.11
|
60
|
-
"@libp2p/peer-record": "8.0.16
|
61
|
-
"@libp2p/utils": "6.5.0
|
55
|
+
"@libp2p/crypto": "^5.0.10",
|
56
|
+
"@libp2p/interface": "^2.4.1",
|
57
|
+
"@libp2p/interface-internal": "^2.2.4",
|
58
|
+
"@libp2p/peer-collections": "^6.0.16",
|
59
|
+
"@libp2p/peer-id": "^5.0.11",
|
60
|
+
"@libp2p/peer-record": "^8.0.16",
|
61
|
+
"@libp2p/utils": "^6.5.0",
|
62
62
|
"@multiformats/multiaddr": "^12.3.3",
|
63
63
|
"@multiformats/multiaddr-matcher": "^1.6.0",
|
64
64
|
"any-signal": "^4.1.1",
|
@@ -73,8 +73,8 @@
|
|
73
73
|
"uint8arrays": "^5.1.0"
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
|
-
"@libp2p/interface-compliance-tests": "6.2.5
|
77
|
-
"@libp2p/logger": "5.1.7
|
76
|
+
"@libp2p/interface-compliance-tests": "^6.2.5",
|
77
|
+
"@libp2p/logger": "^5.1.7",
|
78
78
|
"aegir": "^45.0.5",
|
79
79
|
"delay": "^6.0.0",
|
80
80
|
"it-drain": "^3.0.7",
|
package/src/server/index.ts
CHANGED
@@ -19,8 +19,8 @@ import { createLimitedRelay } from '../utils.js'
|
|
19
19
|
import { ReservationStore, type ReservationStoreInit } from './reservation-store.js'
|
20
20
|
import { ReservationVoucherRecord } from './reservation-voucher.js'
|
21
21
|
import type { CircuitRelayService, RelayReservation } from '../index.js'
|
22
|
-
import type { ComponentLogger, Logger, Connection, Stream, ConnectionGater, PeerId, PeerStore, Startable, PrivateKey, Metrics, AbortOptions
|
23
|
-
import type { AddressManager, ConnectionManager, Registrar } from '@libp2p/interface-internal'
|
22
|
+
import type { ComponentLogger, Logger, Connection, Stream, ConnectionGater, PeerId, PeerStore, Startable, PrivateKey, Metrics, AbortOptions } from '@libp2p/interface'
|
23
|
+
import type { AddressManager, ConnectionManager, IncomingStreamData, Registrar } from '@libp2p/interface-internal'
|
24
24
|
import type { PeerMap } from '@libp2p/peer-collections'
|
25
25
|
|
26
26
|
const isRelayAddr = (ma: Multiaddr): boolean => ma.protoCodes().includes(CIRCUIT_PROTO_CODE)
|
@@ -14,8 +14,8 @@ import { RelayDiscovery } from './discovery.js'
|
|
14
14
|
import { createListener } from './listener.js'
|
15
15
|
import { ReservationStore } from './reservation-store.js'
|
16
16
|
import type { CircuitRelayTransportComponents, CircuitRelayTransportInit } from './index.js'
|
17
|
-
import type { Transport, CreateListenerOptions, Listener, Upgrader, ComponentLogger, Logger, Connection, Stream, ConnectionGater, PeerId, PeerStore, OutboundConnectionUpgradeEvents, DialTransportOptions, OpenConnectionProgressEvents
|
18
|
-
import type { AddressManager, ConnectionManager, Registrar, TransportManager } from '@libp2p/interface-internal'
|
17
|
+
import type { Transport, CreateListenerOptions, Listener, Upgrader, ComponentLogger, Logger, Connection, Stream, ConnectionGater, PeerId, PeerStore, OutboundConnectionUpgradeEvents, DialTransportOptions, OpenConnectionProgressEvents } from '@libp2p/interface'
|
18
|
+
import type { AddressManager, ConnectionManager, IncomingStreamData, Registrar, TransportManager } from '@libp2p/interface-internal'
|
19
19
|
import type { Multiaddr } from '@multiformats/multiaddr'
|
20
20
|
import type { ProgressEvent } from 'progress-events'
|
21
21
|
|