Comparing version 6.17.1 to 6.17.2
const safetyCatch = require('safety-catch') | ||
const c = require('compact-encoding') | ||
const Signal = require('signal-promise') | ||
const { encodeUnslab } = require('./encode') | ||
const Sleeper = require('./sleeper') | ||
@@ -20,3 +21,3 @@ const m = require('./messages') | ||
this.suspended = false | ||
this.record = c.encode(m.peer, { publicKey: keyPair.publicKey, relayAddresses: [] }) | ||
this.record = encodeUnslab(m.peer, { publicKey: keyPair.publicKey, relayAddresses: [] }) | ||
this.online = new Signal() | ||
@@ -23,0 +24,0 @@ |
@@ -8,2 +8,3 @@ const c = require('compact-encoding') | ||
const { encodeUnslab } = require('./encode') | ||
const m = require('./messages') | ||
@@ -128,3 +129,3 @@ const { NS, ERROR } = require('./constants') | ||
const announceSelf = b4a.equals(TMP, req.target) | ||
const record = unslab(c.encode(m.peer, peer)) | ||
const record = encodeUnslab(m.peer, peer) | ||
@@ -201,4 +202,3 @@ if (announceSelf) { | ||
const entry = c.encode(m.mutableGetResponse, { seq, value, signature }) | ||
this.mutables.set(k, unslab(entry)) | ||
this.mutables.set(k, encodeUnslab(m.mutableGetResponse, { seq, value, signature })) | ||
req.reply(null) | ||
@@ -205,0 +205,0 @@ } |
{ | ||
"name": "hyperdht", | ||
"version": "6.17.1", | ||
"version": "6.17.2", | ||
"description": "The DHT powering Hyperswarm", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143444
27
3965