dht-rpc 6.6.1 → 6.6.3
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/index.js +0 -2
- package/lib/io.js +1 -1
- package/package.json +9 -9
package/index.js
CHANGED
|
@@ -45,8 +45,6 @@ class DHT extends EventEmitter {
|
|
|
45
45
|
this.destroyed = false
|
|
46
46
|
|
|
47
47
|
this._nat = new NatSampler()
|
|
48
|
-
this._port = opts.port || 0
|
|
49
|
-
this._host = opts.host || '0.0.0.0'
|
|
50
48
|
this._quickFirewall = opts.quickFirewall !== false
|
|
51
49
|
this._forcePersistent = opts.ephemeral === false
|
|
52
50
|
this._repinging = 0
|
package/lib/io.js
CHANGED
|
@@ -12,7 +12,7 @@ const TMP = b4a.alloc(32)
|
|
|
12
12
|
const EMPTY_ARRAY = []
|
|
13
13
|
|
|
14
14
|
module.exports = class IO {
|
|
15
|
-
constructor (table, udx, { maxWindow = 80, port = 0, host =
|
|
15
|
+
constructor (table, udx, { maxWindow = 80, port = 0, host = '0.0.0.0', anyPort = true, firewalled = true, onrequest, onresponse = noop, ontimeout = noop } = {}) {
|
|
16
16
|
this.table = table
|
|
17
17
|
this.udx = udx
|
|
18
18
|
this.inflight = []
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dht-rpc",
|
|
3
|
-
"version": "6.6.
|
|
3
|
+
"version": "6.6.3",
|
|
4
4
|
"description": "Make RPC calls over a Kademlia based DHT",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
"lib/*.js"
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"b4a": "^1.
|
|
12
|
-
"compact-encoding": "^2.
|
|
13
|
-
"compact-encoding-net": "^1.0
|
|
11
|
+
"b4a": "^1.6.1",
|
|
12
|
+
"compact-encoding": "^2.11.0",
|
|
13
|
+
"compact-encoding-net": "^1.2.0",
|
|
14
14
|
"events": "^3.3.0",
|
|
15
|
-
"fast-fifo": "^1.
|
|
16
|
-
"kademlia-routing-table": "^1.0.
|
|
15
|
+
"fast-fifo": "^1.1.0",
|
|
16
|
+
"kademlia-routing-table": "^1.0.1",
|
|
17
17
|
"nat-sampler": "^1.0.1",
|
|
18
|
-
"sodium-universal": "^
|
|
19
|
-
"streamx": "^2.
|
|
18
|
+
"sodium-universal": "^4.0.0",
|
|
19
|
+
"streamx": "^2.13.2",
|
|
20
20
|
"time-ordered-set": "^1.0.2",
|
|
21
|
-
"udx-native": "^1.
|
|
21
|
+
"udx-native": "^1.5.3"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"brittle": "^3.0.0",
|