File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 167
167
"dependencies" : {
168
168
"@chainsafe/is-ip" : " ^2.0.1" ,
169
169
"@chainsafe/netmask" : " ^2.0.0" ,
170
+ "@libp2p/interfaces" : " ^3.3.1" ,
170
171
"dns-over-http-resolver" : " ^2.1.0" ,
171
- "err-code" : " ^3.0.1" ,
172
172
"multiformats" : " ^11.0.0" ,
173
173
"uint8arrays" : " ^4.0.2" ,
174
174
"varint" : " ^6.0.0"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import { getProtocol, names } from './protocols-table.js'
17
17
import varint from 'varint'
18
18
import { CID } from 'multiformats/cid'
19
19
import { base58btc } from 'multiformats/bases/base58'
20
- import errCode from 'err-code '
20
+ import { CodeError } from '@libp2p/interfaces/errors '
21
21
import { toString as uint8ArrayToString } from 'uint8arrays/to-string'
22
22
import { equals as uint8ArrayEquals } from 'uint8arrays/equals'
23
23
@@ -716,7 +716,7 @@ class DefaultMultiaddr implements Multiaddr {
716
716
717
717
const resolver = resolvers . get ( resolvableProto . name )
718
718
if ( resolver == null ) {
719
- throw errCode ( new Error ( `no available resolver for ${ resolvableProto . name } ` ) , 'ERR_NO_AVAILABLE_RESOLVER' )
719
+ throw new CodeError ( `no available resolver for ${ resolvableProto . name } ` , 'ERR_NO_AVAILABLE_RESOLVER' )
720
720
}
721
721
722
722
const addresses = await resolver ( this , options )
You can’t perform that action at this time.
0 commit comments