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

Fix/bundle size #73

Merged
merged 4 commits into from
Jan 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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