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

Commit f1478fc

Browse files
ready for next aegir
1 parent e9bfae0 commit f1478fc

File tree

5 files changed

+16
-19
lines changed

5 files changed

+16
-19
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,3 @@ node_modules
3131
coverage
3232

3333
dist
34-
lib

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ sudo: false
22
language: node_js
33
node_js:
44
- 4
5-
- 5
5+
- 6
6+
- stable
67

78
# Make sure we have new NPM.
89
before_install:

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ libp2p-swarm JavaScript implementation
88
[![Coverage Status](https://coveralls.io/repos/github/libp2p/js-libp2p-swarm/badge.svg?branch=master)](https://coveralls.io/github/libp2p/js-libp2p-swarm?branch=master)
99
[![Dependency Status](https://david-dm.org/libp2p/js-libp2p-swarm.svg?style=flat-square)](https://david-dm.org/libp2p/js-libp2p-swarm)
1010
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
11+
![](https://img.shields.io/badge/npm-%3E%3D3.0.0-orange.svg?style=flat-square)
12+
![](https://img.shields.io/badge/Node.js-%3E%3D4.0.0-orange.svg?style=flat-square)
13+
14+
[![Sauce Test Status](https://saucelabs.com/browser-matrix/js-libp2p-swarm.svg)](https://saucelabs.com/u/js-l
15+
ibp2p-swarm)
1116

1217
> libp2p swarm implementation in JavaScript.
1318

package.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
"name": "libp2p-swarm",
33
"version": "0.23.0",
44
"description": "libp2p swarm implementation in JavaScript",
5-
"main": "lib/index.js",
6-
"jsnext:main": "src/index.js",
7-
"scripts": {
5+
"main": "src/index.js",
6+
"scripts": {
87
"lint": "gulp lint",
98
"build": "gulp build",
10-
"test": "PHANTOM=off gulp test",
9+
"test": "gulp test",
1110
"test:node": "gulp test:node",
12-
"test:browser": "PHANTOM=off gulp test:browser",
13-
"release": "PHANTOM=off gulp release",
14-
"release-minor": "PHANTOM=off gulp release --type minor",
15-
"release-major": "PHANTOM=off gulp release --type major",
11+
"test:browser": "gulp test:browser",
12+
"release": "gulp release",
13+
"release-minor": "gulp release --type minor",
14+
"release-major": "gulp release --type major",
1615
"coverage": "gulp coverage",
1716
"coverage-publish": "aegir-coverage publish"
1817
},
@@ -34,7 +33,7 @@
3433
"test"
3534
],
3635
"engines": {
37-
"node": "^4.3.0"
36+
"node": ">=4.0.0"
3837
},
3938
"devDependencies": {
4039
"aegir": "^8.1.0",
@@ -54,7 +53,6 @@
5453
},
5554
"dependencies": {
5655
"async": "^2.0.1",
57-
"babel-runtime": "^6.11.6",
5856
"browserify-zlib": "github:ipfs/browserify-zlib",
5957
"debug": "^2.2.0",
6058
"interface-connection": "^0.2.1",

test/browser-02-swarm-with-muxing-plus-websockets.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ const PeerId = require('peer-id')
77
const PeerInfo = require('peer-info')
88
const WebSockets = require('libp2p-websockets')
99
const spdy = require('libp2p-spdy')
10-
const fs = require('fs')
11-
const path = require('path')
1210
const pull = require('pull-stream')
1311

1412
const Swarm = require('../src')
@@ -40,11 +38,7 @@ describe('high level API (swarm with spdy + websockets)', function () {
4038
})
4139

4240
it('create Dst peer info', (done) => {
43-
PeerId.createFromJSON(JSON.parse(
44-
fs.readFileSync(
45-
path.join(__dirname, './test-data/id-2.json')
46-
)
47-
), (err, id) => {
41+
PeerId.createFromJSON(require('./test-data/id-2.json'), (err, id) => {
4842
expect(err).to.not.exist
4943

5044
peerDst = new PeerInfo(id)

0 commit comments

Comments
 (0)