mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-24 22:41:33 +00:00
chore: update oldie package.json
This commit is contained in:
0
examples/browser-echo/README.md
Normal file
0
examples/browser-echo/README.md
Normal file
0
examples/node-browser-chat/README.md
Normal file
0
examples/node-browser-chat/README.md
Normal file
0
examples/node-browser-echo/README.md
Normal file
0
examples/node-browser-echo/README.md
Normal file
0
examples/node-echo/README.md
Normal file
0
examples/node-echo/README.md
Normal file
33
package.json
33
package.json
@ -1,26 +1,27 @@
|
|||||||
{
|
{
|
||||||
"name": "libp2p",
|
"name": "libp2p",
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
"description": "Node.js implementation of libp2p",
|
"description": "JavaScript Skeleton for libp2p bundles",
|
||||||
"main": "lib/index.js",
|
"main": "src/index.js",
|
||||||
"jsnext:main": "src/index.js",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "dignified-lint",
|
"test": "aegir-test node",
|
||||||
"build": "dignified-build",
|
"lint": "aegir-lint",
|
||||||
"test": "dignified-test",
|
"release": "aegir-release node",
|
||||||
"test:node": "dignified-test node",
|
"release-minor": "aegir-release --type minor",
|
||||||
"test:browser": "dignified-test browser",
|
"release-major": "aegir-release --type major",
|
||||||
"release": "dignified-release"
|
"coverage": "aegir-coverage",
|
||||||
|
"coverage-publish": "aegir-coverage publish"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/diasdavid/js-libp2p.git"
|
"url": "https://github.com/libp2p/js-libp2p.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"IPFS"
|
"IPFS"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^4.0.0"
|
"node": ">=4.0.0",
|
||||||
|
"npm": ">=3.0.0"
|
||||||
},
|
},
|
||||||
"pre-commit": [
|
"pre-commit": [
|
||||||
"lint",
|
"lint",
|
||||||
@ -29,18 +30,12 @@
|
|||||||
"author": "David Dias <daviddias@ipfs.io>",
|
"author": "David Dias <daviddias@ipfs.io>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/diasdavid/js-libp2p/issues"
|
"url": "https://github.com/libp2p/js-libp2p/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/diasdavid/js-libp2p",
|
"homepage": "https://github.com/diasdavid/js-libp2p",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^3.5.0",
|
"chai": "^3.5.0",
|
||||||
"dignified.js": "^1.0.0",
|
"aegir": "^9.1.2",
|
||||||
"libp2p-spdy": "^0.1.0",
|
|
||||||
"libp2p-swarm": "^0.26.0",
|
|
||||||
"libp2p-tcp": "^0.8.0",
|
|
||||||
"multiaddr": "^2.0.3",
|
|
||||||
"peer-id": "^0.4.0",
|
|
||||||
"peer-info": "^0.7.1",
|
|
||||||
"pre-commit": "^1.1.1"
|
"pre-commit": "^1.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,18 +2,11 @@
|
|||||||
'use strict'
|
'use strict'
|
||||||
|
|
||||||
const expect = require('chai').expect
|
const expect = require('chai').expect
|
||||||
const Swarm = require('libp2p-swarm')
|
|
||||||
const Id = require('peer-id')
|
|
||||||
const Peer = require('peer-info')
|
|
||||||
|
|
||||||
const Node = require('../src')
|
const libp2p = require('../src')
|
||||||
|
|
||||||
describe('libp2p', () => {
|
describe('libp2p', () => {
|
||||||
it('can be instantiated', () => {
|
it('the skeleton is fine, now go build your own libp2p bundle', () => {
|
||||||
const peer = new Peer(Id.create(), [])
|
expect(libp2p).to.exist
|
||||||
const swarm = new Swarm(peer)
|
|
||||||
const node = new Node(swarm)
|
|
||||||
|
|
||||||
expect(node.swarm).to.be.eql(swarm)
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user