dht-rpc 6.26.4 → 6.27.0

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.
Files changed (2) hide show
  1. package/lib/peer.js +2 -3
  2. package/package.json +2 -2
package/lib/peer.js CHANGED
@@ -1,12 +1,11 @@
1
1
  const sodium = require('sodium-universal')
2
2
  const c = require('compact-encoding')
3
- const net = require('compact-encoding-net')
4
3
  const b4a = require('b4a')
5
4
 
6
5
  const ipv4 = {
7
- ...net.ipv4Address,
6
+ ...c.ipv4Address,
8
7
  decode(state) {
9
- const ip = net.ipv4Address.decode(state)
8
+ const ip = c.ipv4Address.decode(state)
10
9
  return {
11
10
  id: null, // populated by the callee
12
11
  host: ip.host,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dht-rpc",
3
- "version": "6.26.4",
3
+ "version": "6.27.0",
4
4
  "description": "Make RPC calls over a Kademlia based DHT",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -17,7 +17,7 @@
17
17
  "adaptive-timeout": "^1.0.1",
18
18
  "b4a": "^1.6.1",
19
19
  "bare-events": "^2.2.0",
20
- "compact-encoding": "^2.11.0",
20
+ "compact-encoding": "^3.0.0",
21
21
  "compact-encoding-net": "^1.2.0",
22
22
  "fast-fifo": "^1.1.0",
23
23
  "kademlia-routing-table": "^1.0.1",