File tree Expand file tree Collapse file tree 5 files changed +47
-44
lines changed Expand file tree Collapse file tree 5 files changed +47
-44
lines changed Original file line number Diff line number Diff line change 138
138
"release" : " aegir release"
139
139
},
140
140
"dependencies" : {
141
- "@libp2p/interface" : " ^2.2 .0" ,
142
- "@libp2p/logger" : " ^5.0.1 " ,
143
- "@libp2p/peer-id" : " ^5.0.1 " ,
144
- "@multiformats/multiaddr" : " ^12.3.1 " ,
141
+ "@libp2p/interface" : " ^2.9 .0" ,
142
+ "@libp2p/logger" : " ^5.1.15 " ,
143
+ "@libp2p/peer-id" : " ^5.1.2 " ,
144
+ "@multiformats/multiaddr" : " ^12.4.0 " ,
145
145
"any-signal" : " ^4.1.1" ,
146
- "browser-readablestream-to-it" : " ^2.0.7 " ,
147
- "ipns" : " ^10.0.0 " ,
148
- "it-first" : " ^3.0.6 " ,
149
- "it-map" : " ^3.1.1 " ,
150
- "it-ndjson" : " ^1.0.7 " ,
151
- "multiformats" : " ^13.3.0 " ,
146
+ "browser-readablestream-to-it" : " ^2.0.8 " ,
147
+ "ipns" : " ^10.0.2 " ,
148
+ "it-first" : " ^3.0.7 " ,
149
+ "it-map" : " ^3.1.2 " ,
150
+ "it-ndjson" : " ^1.1.2 " ,
151
+ "multiformats" : " ^13.3.2 " ,
152
152
"p-defer" : " ^4.0.1" ,
153
- "p-queue" : " ^8.0.1 " ,
153
+ "p-queue" : " ^8.1.0 " ,
154
154
"uint8arrays" : " ^5.1.0"
155
155
},
156
156
"devDependencies" : {
157
- "@libp2p/crypto" : " ^5.0 .1" ,
158
- "aegir" : " ^45.0 .1" ,
159
- "body-parser" : " ^1.20.3 " ,
160
- "it-all" : " ^3.0.6 " ,
157
+ "@libp2p/crypto" : " ^5.1 .1" ,
158
+ "aegir" : " ^45.2 .1" ,
159
+ "body-parser" : " ^2.2.0 " ,
160
+ "it-all" : " ^3.0.7 " ,
161
161
"wherearewe" : " ^2.0.1"
162
162
},
163
163
"sideEffects" : false
Original file line number Diff line number Diff line change 116
116
"test:node" : " aegir test -t node --cov"
117
117
},
118
118
"devDependencies" : {
119
- "@helia/delegated-routing-v1-http-api-client" : " ^4.0.0" ,
120
- "@helia/delegated-routing-v1-http-api-server" : " ^4.0.0" ,
121
- "@helia/ipns" : " ^8.0.0" ,
122
- "@libp2p/crypto" : " ^5.0.1" ,
123
- "@libp2p/identify" : " ^3.0.1" ,
124
- "@libp2p/interface" : " ^2.0.1" ,
125
- "@libp2p/kad-dht" : " ^14.0.1" ,
126
- "aegir" : " ^45.0.1" ,
127
- "fastify" : " ^5.0.0" ,
128
- "helia" : " ^5.1.0" ,
129
- "ipns" : " ^10.0.0" ,
130
- "it-first" : " ^3.0.6" ,
131
- "multiformats" : " ^13.3.0"
119
+ "@helia/delegated-routing-v1-http-api-client" : " ^4.2.2" ,
120
+ "@helia/delegated-routing-v1-http-api-server" : " ^4.0.4" ,
121
+ "@helia/ipns" : " ^8.2.0" ,
122
+ "@libp2p/crypto" : " ^5.1.1" ,
123
+ "@libp2p/identify" : " ^3.0.29" ,
124
+ "@libp2p/interface" : " ^2.9.0" ,
125
+ "@libp2p/kad-dht" : " ^15.0.2" ,
126
+ "@libp2p/ping" : " ^2.0.29" ,
127
+ "aegir" : " ^45.2.1" ,
128
+ "fastify" : " ^5.3.2" ,
129
+ "helia" : " ^5.3.0" ,
130
+ "ipns" : " ^10.0.2" ,
131
+ "it-first" : " ^3.0.7" ,
132
+ "multiformats" : " ^13.3.2"
132
133
},
133
134
"private" : true
134
135
}
Original file line number Diff line number Diff line change 1
1
import { identify } from '@libp2p/identify'
2
2
import { kadDHT , removePublicAddressesMapper , type KadDHT } from '@libp2p/kad-dht'
3
+ import { ping , type Ping } from '@libp2p/ping'
3
4
import { createHelia as createNode , type HeliaInit , type HeliaLibp2p } from 'helia'
4
5
import { ipnsSelector } from 'ipns/selector'
5
6
import { ipnsValidator } from 'ipns/validator'
6
7
import type { Libp2p } from '@libp2p/interface'
7
-
8
- export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < HeliaLibp2p < Libp2p < { dht : KadDHT } > > > {
8
+ export async function createHelia ( init ?: Partial < HeliaInit > ) : Promise < HeliaLibp2p < Libp2p < { dht : KadDHT , ping : Ping } > > > {
9
9
const helia = await createNode ( {
10
10
libp2p : {
11
11
peerDiscovery : [ ] ,
@@ -21,7 +21,8 @@ export async function createHelia (init?: Partial<HeliaInit>): Promise<HeliaLibp
21
21
ipns : ipnsSelector
22
22
}
23
23
} ) ,
24
- identify : identify ( )
24
+ identify : identify ( ) ,
25
+ ping : ping ( )
25
26
}
26
27
}
27
28
} )
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { createDelegatedRoutingV1HttpApiServer } from '@helia/delegated-routing-
5
5
import { ipns } from '@helia/ipns'
6
6
import { generateKeyPair } from '@libp2p/crypto/keys'
7
7
import { start , stop } from '@libp2p/interface'
8
+ import { type Ping } from '@libp2p/ping'
8
9
import { expect } from 'aegir/chai'
9
10
import { createIPNSRecord } from 'ipns'
10
11
import first from 'it-first'
@@ -19,7 +20,7 @@ import type { FastifyInstance } from 'fastify'
19
20
import type { HeliaLibp2p } from 'helia'
20
21
21
22
describe ( 'delegated-routing-v1-http-api interop' , ( ) => {
22
- let network : Array < HeliaLibp2p < Libp2p < { dht : KadDHT } > > >
23
+ let network : Array < HeliaLibp2p < Libp2p < { dht : KadDHT , ping : Ping } > > >
23
24
let server : FastifyInstance
24
25
let client : DelegatedRoutingV1HttpApiClient
25
26
Original file line number Diff line number Diff line change 154
154
"release" : " aegir release"
155
155
},
156
156
"dependencies" : {
157
- "@fastify/cors" : " ^10 .0.1" ,
158
- "@helia/interface" : " ^5.0.0 " ,
159
- "@libp2p/interface" : " ^2.0.1 " ,
160
- "@libp2p/peer-id" : " ^5.0.1 " ,
161
- "fastify" : " ^5.0.0 " ,
162
- "ipns" : " ^10.0.0 " ,
163
- "multiformats" : " ^13.3.0 " ,
157
+ "@fastify/cors" : " ^11 .0.1" ,
158
+ "@helia/interface" : " ^5.2.1 " ,
159
+ "@libp2p/interface" : " ^2.9.0 " ,
160
+ "@libp2p/peer-id" : " ^5.1.2 " ,
161
+ "fastify" : " ^5.3.2 " ,
162
+ "ipns" : " ^10.0.2 " ,
163
+ "multiformats" : " ^13.3.2 " ,
164
164
"raw-body" : " ^3.0.0"
165
165
},
166
166
"devDependencies" : {
167
- "@libp2p/crypto" : " ^5.0 .1" ,
168
- "@multiformats/multiaddr" : " ^12.3.1 " ,
169
- "@types/sinon" : " ^17.0.3 " ,
170
- "aegir" : " ^45.0 .1" ,
171
- "sinon" : " ^19 .0.2 " ,
167
+ "@libp2p/crypto" : " ^5.1 .1" ,
168
+ "@multiformats/multiaddr" : " ^12.4.0 " ,
169
+ "@types/sinon" : " ^17.0.4 " ,
170
+ "aegir" : " ^45.2 .1" ,
171
+ "sinon" : " ^20 .0.0 " ,
172
172
"sinon-ts" : " ^2.0.0"
173
173
}
174
174
}
You can’t perform that action at this time.
0 commit comments