Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 347a597

Browse files
authored
chore: update deps (#313)
Update deps
1 parent a63e9f6 commit 347a597

File tree

4 files changed

+9
-21
lines changed

4 files changed

+9
-21
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@
132132
"release": "aegir release"
133133
},
134134
"dependencies": {
135-
"@libp2p/crypto": "^0.22.9",
136-
"@libp2p/interfaces": "^1.3.20",
135+
"@libp2p/crypto": "^0.22.10",
136+
"@libp2p/interfaces": "^1.3.21",
137137
"@libp2p/logger": "^1.1.3",
138138
"@libp2p/peer-id": "^1.1.9",
139-
"@libp2p/record": "^1.0.2",
139+
"@libp2p/record": "^1.0.3",
140140
"@libp2p/topology": "^1.1.7",
141141
"@multiformats/multiaddr": "^10.1.5",
142142
"any-signal": "^3.0.0",

test/kad-dht.spec.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ describe('KadDHT', () => {
210210
tdht.spawn({
211211
// Stub verify record
212212
validators: {
213-
v: {
214-
func: sinon.stub().rejects(error)
215-
}
213+
v: sinon.stub().rejects(error)
216214
}
217215
})
218216
])
@@ -259,19 +257,15 @@ describe('KadDHT', () => {
259257
const [dhtA, dhtB] = await Promise.all([
260258
tdht.spawn({
261259
validators: {
262-
ipns: {
263-
func: sinon.stub().resolves()
264-
}
260+
ipns: sinon.stub().resolves()
265261
},
266262
selectors: {
267263
ipns: sinon.stub().returns(0)
268264
}
269265
}),
270266
tdht.spawn({
271267
validators: {
272-
ipns: {
273-
func: sinon.stub().resolves()
274-
}
268+
ipns: sinon.stub().resolves()
275269
},
276270
selectors: {
277271
ipns: sinon.stub().returns(0)

test/rpc/handlers/put-value.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ describe('rpc - handlers - PutValue', () => {
5959
new Date()
6060
)
6161
msg.record = record
62-
validators.val = {
63-
func: async () => {}
64-
}
62+
validators.val = async () => {}
6563

6664
const response = await handler.handle(sourcePeer, msg)
6765
expect(response).to.deep.equal(msg)

test/utils/test-dht.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,11 @@ export class TestDHT {
112112

113113
const opts: KadDHTInit = {
114114
validators: {
115-
v: {
116-
async func () {
115+
async v () {
117116

118-
}
119117
},
120-
v2: {
121-
async func () {
118+
async v2 () {
122119

123-
}
124120
}
125121
},
126122
selectors: {

0 commit comments

Comments
 (0)