@libp2p/kad-dht 1.0.4 → 1.0.5
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.
|
@@ -6,7 +6,7 @@ export interface Record {
|
|
|
6
6
|
timeReceived?: string;
|
|
7
7
|
}
|
|
8
8
|
export declare namespace Record {
|
|
9
|
-
const codec: () => import("protons-runtime
|
|
9
|
+
const codec: () => import("protons-runtime").Codec<Record>;
|
|
10
10
|
const encode: (obj: Record) => Uint8Array;
|
|
11
11
|
const decode: (buf: Uint8Array) => Record;
|
|
12
12
|
}
|
|
@@ -28,7 +28,7 @@ export declare namespace Message {
|
|
|
28
28
|
PING = "PING"
|
|
29
29
|
}
|
|
30
30
|
namespace MessageType {
|
|
31
|
-
const codec: () => import("protons-runtime
|
|
31
|
+
const codec: () => import("protons-runtime").Codec<typeof MessageType>;
|
|
32
32
|
}
|
|
33
33
|
enum ConnectionType {
|
|
34
34
|
NOT_CONNECTED = "NOT_CONNECTED",
|
|
@@ -37,7 +37,7 @@ export declare namespace Message {
|
|
|
37
37
|
CANNOT_CONNECT = "CANNOT_CONNECT"
|
|
38
38
|
}
|
|
39
39
|
namespace ConnectionType {
|
|
40
|
-
const codec: () => import("protons-runtime
|
|
40
|
+
const codec: () => import("protons-runtime").Codec<typeof ConnectionType>;
|
|
41
41
|
}
|
|
42
42
|
interface Peer {
|
|
43
43
|
id?: Uint8Array;
|
|
@@ -45,11 +45,11 @@ export declare namespace Message {
|
|
|
45
45
|
connection?: Message.ConnectionType;
|
|
46
46
|
}
|
|
47
47
|
namespace Peer {
|
|
48
|
-
const codec: () => import("protons-runtime
|
|
48
|
+
const codec: () => import("protons-runtime").Codec<Peer>;
|
|
49
49
|
const encode: (obj: Peer) => Uint8Array;
|
|
50
50
|
const decode: (buf: Uint8Array) => Peer;
|
|
51
51
|
}
|
|
52
|
-
const codec: () => import("protons-runtime
|
|
52
|
+
const codec: () => import("protons-runtime").Codec<Message>;
|
|
53
53
|
const encode: (obj: Message) => Uint8Array;
|
|
54
54
|
const decode: (buf: Uint8Array) => Message;
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dht.d.ts","sourceRoot":"","sources":["../../../src/message/dht.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,yBAAiB,MAAM,CAAC;IACf,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"dht.d.ts","sourceRoot":"","sources":["../../../src/message/dht.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,MAAM;IACrB,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,yBAAiB,MAAM,CAAC;IACf,MAAM,KAAK,+CAQjB,CAAA;IAEM,MAAM,MAAM,QAAS,MAAM,KAAG,UAEpC,CAAA;IAEM,MAAM,MAAM,QAAS,UAAU,KAAG,MAExC,CAAA;CACF;AAED,MAAM,WAAW,OAAO;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC,WAAW,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,GAAG,CAAC,EAAE,UAAU,CAAA;IAChB,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,WAAW,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAC,IAAI,EAAE,CAAA;CAC9B;AAED,yBAAiB,OAAO,CAAC;IACvB,KAAY,WAAW;QACrB,SAAS,cAAc;QACvB,SAAS,cAAc;QACvB,YAAY,iBAAiB;QAC7B,aAAa,kBAAkB;QAC/B,SAAS,cAAc;QACvB,IAAI,SAAS;KACd;IAED,UAAiB,WAAW,CAAC;QACpB,MAAM,KAAK,2DAEjB,CAAA;KACF;IACD,KAAY,cAAc;QACxB,aAAa,kBAAkB;QAC/B,SAAS,cAAc;QACvB,WAAW,gBAAgB;QAC3B,cAAc,mBAAmB;KAClC;IAED,UAAiB,cAAc,CAAC;QACvB,MAAM,KAAK,8DAEjB,CAAA;KACF;IACD,UAAiB,IAAI;QACnB,EAAE,CAAC,EAAE,UAAU,CAAA;QACf,KAAK,EAAE,UAAU,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC,cAAc,CAAA;KACpC;IAED,UAAiB,IAAI,CAAC;QACb,MAAM,KAAK,6CAMjB,CAAA;QAEM,MAAM,MAAM,QAAS,IAAI,KAAG,UAElC,CAAA;QAEM,MAAM,MAAM,QAAS,UAAU,KAAG,IAExC,CAAA;KACF;IAEM,MAAM,KAAK,gDASjB,CAAA;IAEM,MAAM,MAAM,QAAS,OAAO,KAAG,UAErC,CAAA;IAEM,MAAM,MAAM,QAAS,UAAU,KAAG,OAExC,CAAA;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/kad-dht",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "JavaScript implementation of the Kad-DHT for libp2p",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p-kad-dht#readme",
|
|
@@ -132,11 +132,11 @@
|
|
|
132
132
|
"release": "aegir release"
|
|
133
133
|
},
|
|
134
134
|
"dependencies": {
|
|
135
|
-
"@libp2p/crypto": "^0.22.
|
|
136
|
-
"@libp2p/interfaces": "^1.3.
|
|
135
|
+
"@libp2p/crypto": "^0.22.10",
|
|
136
|
+
"@libp2p/interfaces": "^1.3.21",
|
|
137
137
|
"@libp2p/logger": "^1.1.3",
|
|
138
138
|
"@libp2p/peer-id": "^1.1.9",
|
|
139
|
-
"@libp2p/record": "^1.0.
|
|
139
|
+
"@libp2p/record": "^1.0.3",
|
|
140
140
|
"@libp2p/topology": "^1.1.7",
|
|
141
141
|
"@multiformats/multiaddr": "^10.1.5",
|
|
142
142
|
"any-signal": "^3.0.0",
|