chore: update keywords and description (#370)

* chore: update keywords and description

chore: reorganize package.json fields

* test: bump timeouts for peer generation
This commit is contained in:
Jacob Heun 2019-06-12 14:18:34 +02:00 committed by GitHub
parent 9c2789bc15
commit 10811e9ced
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 9 deletions

View File

@ -1,7 +1,7 @@
{
"name": "libp2p",
"version": "0.25.4",
"description": "JavaScript base class for libp2p bundles",
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",
"leadMaintainer": "Jacob Heun <jacobheun@gmail.com>",
"main": "src/index.js",
"files": [
@ -23,20 +23,25 @@
"url": "https://github.com/libp2p/js-libp2p.git"
},
"keywords": [
"libp2p",
"network",
"p2p",
"peer",
"peer-to-peer",
"IPFS"
],
"engines": {
"node": ">=6.0.0",
"npm": ">=3.0.0"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/libp2p/js-libp2p/issues"
},
"homepage": "https://github.com/libp2p/js-libp2p",
"homepage": "https://libp2p.io",
"license": "MIT",
"browser": {
"./test/utils/bundle-nodejs": "./test/utils/bundle-browser"
},
"engines": {
"node": ">=10.0.0",
"npm": ">=6.0.0"
},
"dependencies": {
"async": "^2.6.2",
"debug": "^4.1.1",

View File

@ -109,7 +109,8 @@ describe('libp2p creation', () => {
})
})
it('createLibp2p should create a peerInfo instance', (done) => {
it('createLibp2p should create a peerInfo instance', function (done) {
this.timeout(10e3)
createLibp2p({
modules: {
transport: [ WS ]
@ -121,7 +122,8 @@ describe('libp2p creation', () => {
})
})
it('createLibp2p should allow for a provided peerInfo instance', (done) => {
it('createLibp2p should allow for a provided peerInfo instance', function (done) {
this.timeout(10e3)
PeerInfo.create((err, peerInfo) => {
expect(err).to.not.exist()
sinon.spy(PeerInfo, 'create')