Skip to content

Commit

Permalink
chore: update multiaddr (#16)
Browse files Browse the repository at this point in the history
* chore: update multiaddr

Pulls in new multiaddr version

* chore: update travis, test on nodes we care about and do not double-build
  • Loading branch information
achingbrain committed Apr 16, 2021
1 parent ae7098e commit 74b3412
Show file tree
Hide file tree
Showing 4 changed files with 6,439 additions and 1,163 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
language: node_js
branches:
only:
- master
- /^release\/.*$/
node_js:
- 10
- 12
- 'lts/*'
- 'node'
script:
- npm run lint
- npm run test
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const isIp = require('is-ip')
const Multiaddr = require('multiaddr')
const { Multiaddr } = require('multiaddr')

/**
* Convert a URI to a multiaddr
Expand Down Expand Up @@ -27,7 +27,7 @@ function multiaddrFromUri (uriStr, opts) {
.reduce((a, b) => a.concat(b))
.join('/')

return Multiaddr(multiaddrStr)
return new Multiaddr(multiaddrStr)
}

function parseUri (uriStr) {
Expand Down
Loading

0 comments on commit 74b3412

Please sign in to comment.