@libp2p/daemon-server 9.0.17 → 9.0.19-8ddbb9e81
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.js +1 -1
- package/dist/src/index.js +3 -3
- package/dist/src/pubsub.js +1 -1
- package/package.json +12 -11
- package/src/dht.ts +1 -1
- package/src/index.ts +3 -3
- package/src/pubsub.ts +1 -1
- package/dist/typedoc-urls.json +0 -12
package/dist/src/dht.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DHTResponse } from '@libp2p/daemon-protocol';
|
|
3
3
|
import { logger } from '@libp2p/logger';
|
|
4
4
|
import drain from 'it-drain';
|
|
5
|
-
import { ErrorResponse, OkResponse } from
|
|
5
|
+
import { ErrorResponse, OkResponse } from "./responses.js";
|
|
6
6
|
const log = logger('libp2p:daemon-server:dht');
|
|
7
7
|
export class DHTOperations {
|
|
8
8
|
dht;
|
package/dist/src/index.js
CHANGED
|
@@ -10,9 +10,9 @@ import * as lp from 'it-length-prefixed';
|
|
|
10
10
|
import { CID } from 'multiformats/cid';
|
|
11
11
|
import * as Digest from 'multiformats/hashes/digest';
|
|
12
12
|
import { pEvent } from 'p-event';
|
|
13
|
-
import { DHTOperations } from
|
|
14
|
-
import { PubSubOperations } from
|
|
15
|
-
import { ErrorResponse, OkResponse } from
|
|
13
|
+
import { DHTOperations } from "./dht.js";
|
|
14
|
+
import { PubSubOperations } from "./pubsub.js";
|
|
15
|
+
import { ErrorResponse, OkResponse } from "./responses.js";
|
|
16
16
|
const LIMIT = 1 << 22; // 4MB
|
|
17
17
|
const log = logger('libp2p:daemon-server');
|
|
18
18
|
export class Server {
|
package/dist/src/pubsub.js
CHANGED
|
@@ -4,7 +4,7 @@ import { PSMessage } from '@libp2p/daemon-protocol';
|
|
|
4
4
|
import { logger } from '@libp2p/logger';
|
|
5
5
|
import { pushable } from 'it-pushable';
|
|
6
6
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string';
|
|
7
|
-
import { ErrorResponse, OkResponse } from
|
|
7
|
+
import { ErrorResponse, OkResponse } from "./responses.js";
|
|
8
8
|
const log = logger('libp2p:daemon-server:pubsub');
|
|
9
9
|
export class PubSubOperations {
|
|
10
10
|
pubsub;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/daemon-server",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.19-8ddbb9e81",
|
|
4
4
|
"description": "API server for libp2p-daemon instances",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/libp2p-daemon-server#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,15 +43,15 @@
|
|
|
42
43
|
"test:node": "aegir test -t node"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
|
-
"@libp2p/
|
|
46
|
-
"@libp2p/
|
|
47
|
-
"@libp2p/
|
|
48
|
-
"@libp2p/interface": "
|
|
49
|
-
"@libp2p/kad-dht": "
|
|
50
|
-
"@libp2p/logger": "
|
|
51
|
-
"@libp2p/peer-id": "
|
|
52
|
-
"@libp2p/tcp": "
|
|
53
|
-
"@libp2p/utils": "
|
|
46
|
+
"@libp2p/crypto": "5.1.17-8ddbb9e81",
|
|
47
|
+
"@libp2p/daemon-protocol": "8.0.7-8ddbb9e81",
|
|
48
|
+
"@libp2p/gossipsub": "15.0.19-8ddbb9e81",
|
|
49
|
+
"@libp2p/interface": "3.2.2-8ddbb9e81",
|
|
50
|
+
"@libp2p/kad-dht": "16.2.2-8ddbb9e81",
|
|
51
|
+
"@libp2p/logger": "6.2.6-8ddbb9e81",
|
|
52
|
+
"@libp2p/peer-id": "6.0.8-8ddbb9e81",
|
|
53
|
+
"@libp2p/tcp": "11.0.17-8ddbb9e81",
|
|
54
|
+
"@libp2p/utils": "7.0.17-8ddbb9e81",
|
|
54
55
|
"@multiformats/multiaddr": "^13.0.1",
|
|
55
56
|
"it-drain": "^3.0.10",
|
|
56
57
|
"it-length-prefixed": "^10.0.1",
|
package/src/dht.ts
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from '@libp2p/daemon-protocol'
|
|
6
6
|
import { logger } from '@libp2p/logger'
|
|
7
7
|
import drain from 'it-drain'
|
|
8
|
-
import { ErrorResponse, OkResponse } from './responses.
|
|
8
|
+
import { ErrorResponse, OkResponse } from './responses.ts'
|
|
9
9
|
import type { PeerId } from '@libp2p/interface'
|
|
10
10
|
import type { KadDHT } from '@libp2p/kad-dht'
|
|
11
11
|
import type { CID } from 'multiformats/cid'
|
package/src/index.ts
CHANGED
|
@@ -18,9 +18,9 @@ import * as lp from 'it-length-prefixed'
|
|
|
18
18
|
import { CID } from 'multiformats/cid'
|
|
19
19
|
import * as Digest from 'multiformats/hashes/digest'
|
|
20
20
|
import { pEvent } from 'p-event'
|
|
21
|
-
import { DHTOperations } from './dht.
|
|
22
|
-
import { PubSubOperations } from './pubsub.
|
|
23
|
-
import { ErrorResponse, OkResponse } from './responses.
|
|
21
|
+
import { DHTOperations } from './dht.ts'
|
|
22
|
+
import { PubSubOperations } from './pubsub.ts'
|
|
23
|
+
import { ErrorResponse, OkResponse } from './responses.ts'
|
|
24
24
|
import type { GossipSub } from '@libp2p/gossipsub'
|
|
25
25
|
import type { Libp2p, Connection, MultiaddrConnection, Stream, Listener, Transport } from '@libp2p/interface'
|
|
26
26
|
import type { KadDHT } from '@libp2p/kad-dht'
|
package/src/pubsub.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import { logger } from '@libp2p/logger'
|
|
8
8
|
import { pushable } from 'it-pushable'
|
|
9
9
|
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
|
|
10
|
-
import { ErrorResponse, OkResponse } from './responses.
|
|
10
|
+
import { ErrorResponse, OkResponse } from './responses.ts'
|
|
11
11
|
import type { GossipSub } from '@libp2p/gossipsub'
|
|
12
12
|
|
|
13
13
|
const log = logger('libp2p:daemon-server:pubsub')
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Server": "https://libp2p.github.io/js-libp2p/classes/_libp2p_daemon-server.Server.html",
|
|
3
|
-
".:Server": "https://libp2p.github.io/js-libp2p/classes/_libp2p_daemon-server.Server.html",
|
|
4
|
-
"DaemonInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-server.DaemonInit.html",
|
|
5
|
-
".:DaemonInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-server.DaemonInit.html",
|
|
6
|
-
"Libp2pServer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-server.Libp2pServer.html",
|
|
7
|
-
".:Libp2pServer": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-server.Libp2pServer.html",
|
|
8
|
-
"OpenStream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-server.OpenStream.html",
|
|
9
|
-
".:OpenStream": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_daemon-server.OpenStream.html",
|
|
10
|
-
"createServer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_daemon-server.createServer.html",
|
|
11
|
-
".:createServer": "https://libp2p.github.io/js-libp2p/functions/_libp2p_daemon-server.createServer.html"
|
|
12
|
-
}
|