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

Commit

Permalink
fix: bundle size (#73)
Browse files Browse the repository at this point in the history
* fix: reduce bundle size

* chore: ignore lock

* fix: add libp2p-crypto

* chore: update deps
  • Loading branch information
hugomrdias authored and jacobheun committed Jan 10, 2019
1 parent 1b8737d commit c0ae7e9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ test/test-data/go-ipfs-repo/LOG.old

# while testing npm5
package-lock.json
yarn.lock
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-ping",
"devDependencies": {
"aegir": "^18.0.2",
"aegir": "^18.0.3",
"async": "^2.6.1",
"chai": "^4.2.0",
"debug": "^4.1.1",
"dirty-chai": "^2.0.1",
"libp2p-switch": "~0.41.4",
"libp2p-tcp": "~0.13.0",
"multiaddr": "^6.0.2",
"multiaddr": "^6.0.0",
"peer-book": "~0.9.0",
"peer-id": "~0.12.1",
"peer-id": "~0.12.0",
"peer-info": "~0.15.0",
"run-parallel": "^1.1.9"
},
"dependencies": {
"libp2p-crypto": "~0.15.0",
"libp2p-crypto": "~0.16.0",
"pull-handshake": "^1.1.4",
"pull-stream": "^3.6.9"
},
Expand Down
2 changes: 1 addition & 1 deletion src/handler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const pull = require('pull-stream')
const pull = require('pull-stream/pull')
const handshake = require('pull-handshake')
const constants = require('./constants')
const PROTOCOL = constants.PROTOCOL
Expand Down
5 changes: 3 additions & 2 deletions src/ping.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
'use strict'

const EventEmitter = require('events').EventEmitter
const pull = require('pull-stream')
const pull = require('pull-stream/pull')
const empty = require('pull-stream/sources/empty')
const handshake = require('pull-handshake')
const constants = require('./constants')
const util = require('./util')
Expand Down Expand Up @@ -73,7 +74,7 @@ class Ping extends EventEmitter {
this._stopped = true

pull(
pull.empty(),
empty(),
this.shake.rest()
)
}
Expand Down

0 comments on commit c0ae7e9

Please sign in to comment.