feat(deps): update aegir and libp2p-crypto (#67)

This commit is contained in:
Friedel Ziegelmayer 2017-09-07 15:50:44 +02:00 committed by David Dias
parent c945d6ad48
commit d7088d6650
5 changed files with 18 additions and 18 deletions

2
.gitignore vendored
View File

@ -32,6 +32,7 @@ build
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules node_modules
docs
lib lib
dist dist
test/test-data/go-ipfs-repo/LOCK test/test-data/go-ipfs-repo/LOCK
@ -40,3 +41,4 @@ test/test-data/go-ipfs-repo/LOG.old
# while testing npm5 # while testing npm5
package-lock.json package-lock.json
yarn.lock

View File

@ -13,8 +13,7 @@ matrix:
script: script:
- npm run lint - npm run lint
- npm run test - npm run test
- npm run coverage - npm run coverage -- --upload
- make test
before_script: before_script:
- export DISPLAY=:99.0 - export DISPLAY=:99.0

View File

@ -5,16 +5,15 @@
"main": "src/index.js", "main": "src/index.js",
"bin": "src/bin.js", "bin": "src/bin.js",
"scripts": { "scripts": {
"lint": "aegir-lint", "lint": "aegir lint",
"build": "aegir-build", "build": "aegir build",
"test": "aegir-test", "test": "aegir test",
"test:node": "aegir-test node", "test:node": "aegir test -t node",
"test:browser": "aegir-test browser", "test:browser": "aegir test -t browser -t webworker",
"release": "aegir-release", "release": "aegir release",
"release-minor": "aegir-release --type minor", "release-minor": "aegir release --type minor",
"release-major": "aegir-release --type major", "release-major": "aegir release --type major",
"coverage": "aegir-coverage", "coverage": "aegir coverage"
"coverage-publish": "aegir-coverage publish"
}, },
"keywords": [ "keywords": [
"IPFS" "IPFS"
@ -34,14 +33,14 @@
}, },
"homepage": "https://github.com/libp2p/js-peer-id", "homepage": "https://github.com/libp2p/js-peer-id",
"devDependencies": { "devDependencies": {
"aegir": "^11.0.2", "aegir": "^12.0.6",
"chai": "^4.1.2", "chai": "^4.1.2",
"dirty-chai": "^2.0.1", "dirty-chai": "^2.0.1",
"pre-commit": "^1.2.2" "pre-commit": "^1.2.2"
}, },
"dependencies": { "dependencies": {
"async": "^2.5.0", "async": "^2.5.0",
"libp2p-crypto": "~0.9.4", "libp2p-crypto": "~0.10.3",
"lodash": "^4.17.4", "lodash": "^4.17.4",
"multihashes": "~0.4.9" "multihashes": "~0.4.9"
}, },

View File

@ -8,7 +8,6 @@ const mh = require('multihashes')
const crypto = require('libp2p-crypto') const crypto = require('libp2p-crypto')
const assert = require('assert') const assert = require('assert')
const waterfall = require('async/waterfall') const waterfall = require('async/waterfall')
const Buffer = require('safe-buffer').Buffer
class PeerId { class PeerId {
constructor (id, privKey, pubKey) { constructor (id, privKey, pubKey) {

View File

@ -9,7 +9,6 @@ const expect = chai.expect
const crypto = require('libp2p-crypto') const crypto = require('libp2p-crypto')
const mh = require('multihashes') const mh = require('multihashes')
const parallel = require('async/parallel') const parallel = require('async/parallel')
const Buffer = require('safe-buffer').Buffer
const PeerId = require('../src') const PeerId = require('../src')
@ -103,7 +102,9 @@ describe('PeerId', () => {
}) })
}) })
it('Non-default # of bits', (done) => { it('Non-default # of bits', function (done) {
// rsa is slow atm
this.timeout(20000)
PeerId.create({ bits: 1024 }, (err, shortId) => { PeerId.create({ bits: 1024 }, (err, shortId) => {
expect(err).to.not.exist() expect(err).to.not.exist()
PeerId.create({ bits: 4096 }, (err, longId) => { PeerId.create({ bits: 4096 }, (err, longId) => {