Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
chore: use libp2p utils for ip port to multiaddr (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos authored and jacobheun committed Sep 24, 2019
1 parent 524acbe commit 7c977d3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 83 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"npm": ">=3.0.0"
},
"devDependencies": {
"aegir": "^20.0.0",
"aegir": "^20.3.1",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
"interface-transport": "^0.7.0",
Expand All @@ -44,7 +44,7 @@
"class-is": "^1.1.0",
"debug": "^4.1.1",
"err-code": "^2.0.0",
"ip-address": "^6.1.0",
"libp2p-utils": "~0.1.0",
"mafmt": "^7.0.0",
"multiaddr": "^7.1.0",
"stream-to-it": "^0.1.1"
Expand Down
30 changes: 0 additions & 30 deletions src/ip-port-to-multiaddr.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/socket-to-conn.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const abortable = require('abortable-iterator')
const log = require('debug')('libp2p:tcp:socket')
const toIterable = require('stream-to-it')
const toMultiaddr = require('./ip-port-to-multiaddr')
const toMultiaddr = require('libp2p-utils/src/ip-port-to-multiaddr')
const { CLOSE_TIMEOUT } = require('./constants')

// Convert a socket into a MultiaddrConnection
Expand Down
50 changes: 0 additions & 50 deletions test/ip-port-to-multiaddr.spec.js

This file was deleted.

0 comments on commit 7c977d3

Please sign in to comment.