@libp2p/daemon-client 10.0.17 → 10.0.19-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 +7 -10
- package/dist/index.min.js.map +4 -4
- package/dist/src/dht.d.ts +1 -1
- package/dist/src/dht.js +1 -1
- package/dist/src/index.js +2 -2
- package/dist/src/pubsub.d.ts +1 -1
- package/dist/src/pubsub.js +1 -1
- package/package.json +12 -11
- package/src/dht.ts +2 -2
- package/src/index.ts +2 -2
- package/src/pubsub.ts +2 -2
- package/dist/typedoc-urls.json +0 -18
package/dist/src/dht.d.ts
CHANGED
package/dist/src/dht.js
CHANGED
|
@@ -5,7 +5,7 @@ import { peerIdFromMultihash } from '@libp2p/peer-id';
|
|
|
5
5
|
import { multiaddr } from '@multiformats/multiaddr';
|
|
6
6
|
import { CID } from 'multiformats/cid';
|
|
7
7
|
import * as Digest from 'multiformats/hashes/digest';
|
|
8
|
-
import { OperationFailedError } from
|
|
8
|
+
import { OperationFailedError } from "./index.js";
|
|
9
9
|
const log = logger('libp2p:daemon-client:dht');
|
|
10
10
|
export class DHT {
|
|
11
11
|
client;
|
package/dist/src/index.js
CHANGED
|
@@ -7,8 +7,8 @@ import { tcp } from '@libp2p/tcp';
|
|
|
7
7
|
import { pbStream } from '@libp2p/utils';
|
|
8
8
|
import { multiaddr, isMultiaddr } from '@multiformats/multiaddr';
|
|
9
9
|
import * as Digest from 'multiformats/hashes/digest';
|
|
10
|
-
import { DHT } from
|
|
11
|
-
import { Pubsub } from
|
|
10
|
+
import { DHT } from "./dht.js";
|
|
11
|
+
import { Pubsub } from "./pubsub.js";
|
|
12
12
|
const log = logger('libp2p:daemon-client');
|
|
13
13
|
export class OperationFailedError extends Error {
|
|
14
14
|
constructor(message = 'Operation failed') {
|
package/dist/src/pubsub.d.ts
CHANGED
package/dist/src/pubsub.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Request, Response, PSRequest, PSMessage } from '@libp2p/daemon-protocol
|
|
|
2
2
|
import { InvalidParametersError } from '@libp2p/interface';
|
|
3
3
|
import { peerIdFromMultihash } from '@libp2p/peer-id';
|
|
4
4
|
import * as Digest from 'multiformats/hashes/digest';
|
|
5
|
-
import { OperationFailedError } from
|
|
5
|
+
import { OperationFailedError } from "./index.js";
|
|
6
6
|
export class Pubsub {
|
|
7
7
|
client;
|
|
8
8
|
constructor(client) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/daemon-client",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.19-20bfcb3f9",
|
|
4
4
|
"description": "libp2p-daemon client implementation",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/libp2p-daemon-client#readme",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"exports": {
|
|
30
30
|
".": {
|
|
31
31
|
"types": "./src/index.d.ts",
|
|
32
|
-
"import": "./dist/src/index.js"
|
|
32
|
+
"import": "./dist/src/index.js",
|
|
33
|
+
"module-sync": "./dist/src/index.js"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
36
|
"scripts": {
|
|
@@ -42,19 +43,19 @@
|
|
|
42
43
|
"test:node": "aegir test -t node"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@libp2p/daemon-protocol": "
|
|
46
|
-
"@libp2p/interface": "
|
|
47
|
-
"@libp2p/logger": "
|
|
48
|
-
"@libp2p/peer-id": "
|
|
49
|
-
"@libp2p/tcp": "
|
|
50
|
-
"@libp2p/utils": "
|
|
46
|
+
"@libp2p/daemon-protocol": "8.0.7-20bfcb3f9",
|
|
47
|
+
"@libp2p/interface": "3.2.2-20bfcb3f9",
|
|
48
|
+
"@libp2p/logger": "6.2.6-20bfcb3f9",
|
|
49
|
+
"@libp2p/peer-id": "6.0.8-20bfcb3f9",
|
|
50
|
+
"@libp2p/tcp": "11.0.17-20bfcb3f9",
|
|
51
|
+
"@libp2p/utils": "7.0.17-20bfcb3f9",
|
|
51
52
|
"@multiformats/multiaddr": "^13.0.1",
|
|
52
53
|
"multiformats": "^13.4.0"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
|
-
"@libp2p/
|
|
56
|
-
"@libp2p/
|
|
57
|
-
"@libp2p/kad-dht": "
|
|
56
|
+
"@libp2p/daemon-server": "9.0.19-20bfcb3f9",
|
|
57
|
+
"@libp2p/gossipsub": "15.0.19-20bfcb3f9",
|
|
58
|
+
"@libp2p/kad-dht": "16.2.2-20bfcb3f9",
|
|
58
59
|
"aegir": "^47.0.22",
|
|
59
60
|
"it-all": "^3.0.9",
|
|
60
61
|
"p-event": "^7.0.0",
|
package/src/dht.ts
CHANGED
|
@@ -10,8 +10,8 @@ import { peerIdFromMultihash } from '@libp2p/peer-id'
|
|
|
10
10
|
import { multiaddr } from '@multiformats/multiaddr'
|
|
11
11
|
import { CID } from 'multiformats/cid'
|
|
12
12
|
import * as Digest from 'multiformats/hashes/digest'
|
|
13
|
-
import { OperationFailedError } from './index.
|
|
14
|
-
import type { DaemonClient } from './index.
|
|
13
|
+
import { OperationFailedError } from './index.ts'
|
|
14
|
+
import type { DaemonClient } from './index.ts'
|
|
15
15
|
import type { PeerId, PeerInfo } from '@libp2p/interface'
|
|
16
16
|
|
|
17
17
|
const log = logger('libp2p:daemon-client:dht')
|
package/src/index.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { tcp } from '@libp2p/tcp'
|
|
|
7
7
|
import { pbStream } from '@libp2p/utils'
|
|
8
8
|
import { multiaddr, isMultiaddr } from '@multiformats/multiaddr'
|
|
9
9
|
import * as Digest from 'multiformats/hashes/digest'
|
|
10
|
-
import { DHT } from './dht.
|
|
11
|
-
import { Pubsub } from './pubsub.
|
|
10
|
+
import { DHT } from './dht.ts'
|
|
11
|
+
import { Pubsub } from './pubsub.ts'
|
|
12
12
|
import type { PSMessage } from '@libp2p/daemon-protocol'
|
|
13
13
|
import type { Stream, PeerId, MultiaddrConnection, PeerInfo, Transport, Listener } from '@libp2p/interface'
|
|
14
14
|
import type { ProtobufStream } from '@libp2p/utils'
|
package/src/pubsub.ts
CHANGED
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
import { InvalidParametersError } from '@libp2p/interface'
|
|
8
8
|
import { peerIdFromMultihash } from '@libp2p/peer-id'
|
|
9
9
|
import * as Digest from 'multiformats/hashes/digest'
|
|
10
|
-
import { OperationFailedError } from './index.
|
|
11
|
-
import type { DaemonClient, Subscription } from './index.
|
|
10
|
+
import { OperationFailedError } from './index.ts'
|
|
11
|
+
import type { DaemonClient, Subscription } from './index.ts'
|
|
12
12
|
import type { PeerId } from '@libp2p/interface'
|
|
13
13
|
|
|
14
14
|
export class Pubsub {
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"OperationFailedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_daemon-client.OperationFailedError.html",
|
|
3
|
-
".:OperationFailedError": "https://libp2p.github.io/js-libp2p/classes/_libp2p_daemon-client.OperationFailedError.html",
|
|
4
|
-
"DaemonClient": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.DaemonClient.html",
|
|
5
|
-
".:DaemonClient": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.DaemonClient.html",
|
|
6
|
-
"DHTClient": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.DHTClient.html",
|
|
7
|
-
".:DHTClient": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.DHTClient.html",
|
|
8
|
-
"IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.IdentifyResult.html",
|
|
9
|
-
".:IdentifyResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.IdentifyResult.html",
|
|
10
|
-
"PubSubClient": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.PubSubClient.html",
|
|
11
|
-
".:PubSubClient": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.PubSubClient.html",
|
|
12
|
-
"StreamHandlerFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.StreamHandlerFunction.html",
|
|
13
|
-
".:StreamHandlerFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.StreamHandlerFunction.html",
|
|
14
|
-
"Subscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.Subscription.html",
|
|
15
|
-
".:Subscription": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-client.Subscription.html",
|
|
16
|
-
"createClient": "https://libp2p.github.io/js-libp2p/functions/_libp2p_daemon-client.createClient.html",
|
|
17
|
-
".:createClient": "https://libp2p.github.io/js-libp2p/functions/_libp2p_daemon-client.createClient.html"
|
|
18
|
-
}
|