Skip to content

Commit

Permalink
deps: update @multiformats/multiaddr to 11.0.0 (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain authored Sep 21, 2022
1 parent 336d0b9 commit f7b34eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Addresses } from './pb/address-book.js'
import { Peer } from './pb/peer.js'
import { Envelope } from './pb/envelope.js'
import { PeerRecord } from './pb/peer-record.js'
import { Multiaddr } from 'multiaddr'
import { multiaddr } from '@multiformats/multiaddr'

/**
* @param {import('../../src/types').Backends} backends
Expand Down Expand Up @@ -59,7 +59,7 @@ async function storePeerUnderSingleDatastoreKey (backends, onProgress = () => {}
const addrs = Addresses.decode(value)

peers[peerId].addresses = addrs.addrs.sort((a, b) => {
return new Multiaddr(a.multiaddr).toString().localeCompare(new Multiaddr(b.multiaddr).toString())
return multiaddr(a.multiaddr).toString().localeCompare(multiaddr(b.multiaddr).toString())
})

if (addrs.certifiedRecord && addrs.certifiedRecord.raw) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-repo-migrations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@
},
"dependencies": {
"@ipld/dag-pb": "^2.1.0",
"@multiformats/multiaddr": "^11.0.0",
"cborg": "^1.3.4",
"datastore-core": "^8.0.1",
"debug": "^4.1.0",
"fnv1a": "^1.0.1",
"interface-blockstore": "^3.0.0",
"interface-datastore": "^7.0.0",
"it-length": "^1.0.1",
"multiaddr": "^10.0.1",
"multiformats": "^9.0.4",
"protobufjs": "^7.0.0",
"uint8arrays": "^3.0.0",
Expand Down

0 comments on commit f7b34eb

Please sign in to comment.