Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Commit

Permalink
npm ignore, readme and vendor forge
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Apr 12, 2016
1 parent 140c4ed commit 7fb7b53
Show file tree
Hide file tree
Showing 5 changed files with 29,587 additions and 9 deletions.
28 changes: 28 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

test
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ var PeerInfo = require('peer-info')

## Browser: `<script>` Tag

Loading this module through a script tag will make the `PeerInfo` obj available
in the global namespace.
Loading this module through a script tag will make the `PeerInfo` obj available in the global namespace.

```html
<script src="https://npmcdn.com/peer-info/dist/index.min.js"></script>
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test:node": "dignified-test node",
"test:browser": "dignified-test browser",
"release": "dignified-release",
"coverage": "istanbul cover --print both -- _mocha tests/*.spec.js"
"coverage": "dignified-coverage"
},
"repository": {
"type": "git",
Expand All @@ -37,17 +37,16 @@
"buffer-loader": "0.0.1",
"chai": "^3.5.0",
"dignified.js": "^1.0.0",
"istanbul": "^0.4.2",
"multiaddr": "^1.1.1",
"peer-id": "^0.6.0",
"peer-id": "^0.6.5",
"pre-commit": "^1.1.2"
},
"dependencies": {},
"dignified": {
"webpack": {
"resolve": {
"alias": {
"node-forge": "../deps/forge.bundle.js"
"node-forge": "../vendor/forge.bundle.js"
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions test/index.spec.js → test/peer-info.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
'use strict'

const expect = require('chai').expect
const Id = require('peer-id')
const PeerId = require('peer-id')
const Multiaddr = require('multiaddr')
const PeerInfo = require('../src')

describe('peer-info', function () {
this.timeout(10000)
this.timeout(20000)

it('create with Id', (done) => {
const id = Id.create()
const id = PeerId.create()
const pi = new PeerInfo(id)
expect(pi).to.exist
expect(pi.id).to.exist
Expand Down
Loading

0 comments on commit 7fb7b53

Please sign in to comment.