chore: update deps and fix linting

chore: make npm scripts cross platform friendly
This commit is contained in:
Jacob Heun 2018-11-09 13:39:44 +01:00
parent d9c868195a
commit e43827e224
4 changed files with 9084 additions and 6304 deletions

15337
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -7,14 +7,15 @@
"libp2p-tcp": false "libp2p-tcp": false
}, },
"scripts": { "scripts": {
"test": "exit(0)", "test": "node -e 'process.exit()'",
"test:node": "node -e 'process.exit()'",
"build": "aegir build -t node", "build": "aegir build -t node",
"lint": "aegir lint", "lint": "aegir lint",
"release": "aegir release -t node", "release": "aegir release -t node",
"release-minor": "aegir release -t node --type minor", "release-minor": "aegir release -t node --type minor",
"release-major": "aegir release -t node --type major", "release-major": "aegir release -t node --type major",
"coverage": "exit(0)", "coverage": "node -e 'process.exit()'",
"coverage-publish": "exit(0)" "coverage-publish": "node -e 'process.exit()'"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@ -32,18 +33,18 @@
}, },
"homepage": "https://github.com/libp2p/interface-stream-muxer", "homepage": "https://github.com/libp2p/interface-stream-muxer",
"dependencies": { "dependencies": {
"async": "^2.6.0", "async": "^2.6.1",
"chai": "^4.1.2", "chai": "^4.2.0",
"chai-checkmark": "^1.0.1", "chai-checkmark": "^1.0.1",
"detect-node": "^2.0.3", "detect-node": "^2.0.4",
"libp2p-tcp": "~0.11.1", "libp2p-tcp": "~0.13.0",
"multiaddr": "^3.0.1", "multiaddr": "^5.0.2",
"pull-generate": "^2.2.0", "pull-generate": "^2.2.0",
"pull-pair": "^1.1.0", "pull-pair": "^1.1.0",
"pull-stream": "^3.6.1" "pull-stream": "^3.6.9"
}, },
"devDependencies": { "devDependencies": {
"aegir": "^12.2.0" "aegir": "^17.0.1"
}, },
"contributors": [ "contributors": [
"David Dias <daviddias.p@gmail.com>", "David Dias <daviddias.p@gmail.com>",

View File

@ -54,7 +54,6 @@ module.exports = (common) => {
tcpListener.listen(mh, () => { tcpListener.listen(mh, () => {
const dialerConn = tcp.dial(mh, () => { const dialerConn = tcp.dial(mh, () => {
const dialerMuxer = muxer.dialer(dialerConn) const dialerMuxer = muxer.dialer(dialerConn)
const s1 = dialerMuxer.newStream((err) => { const s1 = dialerMuxer.newStream((err) => {
expect(err).to.not.exist.mark() expect(err).to.not.exist.mark()

View File

@ -80,6 +80,7 @@ function marker (n, done) {
i++ i++
if (err) { if (err) {
/* eslint-disable-next-line */
console.error('Failed after %s iterations', i) console.error('Failed after %s iterations', i)
return done(err) return done(err)
} }