Skip to content

Commit

Permalink
chore: fix out of date npms (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
camelmasa authored and daviddias committed Jun 29, 2018
1 parent 974c507 commit 0065b0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
"homepage": "https://github.com/libp2p/js-libp2p-keychain#readme",
"dependencies": {
"async": "^2.6.0",
"deepmerge": "^1.5.2",
"interface-datastore": "~0.4.2",
"libp2p-crypto": "~0.12.0",
"libp2p-crypto": "~0.13.0",
"lodash.merge": "^4.6.1",
"pull-stream": "^3.6.1",
"sanitize-filename": "^1.6.1"
},
"devDependencies": {
"aegir": "^12.4.0",
"aegir": "^13.0.7",
"chai": "^4.1.2",
"chai-string": "^1.4.0",
"datastore-fs": "~0.4.2",
Expand Down
5 changes: 3 additions & 2 deletions src/keychain.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'use strict'

const sanitize = require('sanitize-filename')
const deepmerge = require('deepmerge')
const deepmerge = require('lodash.merge')
const crypto = require('libp2p-crypto')
const DS = require('interface-datastore')
const pull = require('pull-stream')
Expand Down Expand Up @@ -104,7 +104,8 @@ class Keychain {
}
this.store = store

const opts = deepmerge(defaultOptions, options)
const opts = {}
deepmerge(opts, defaultOptions, options)

// Enforce NIST SP 800-132
if (!opts.passPhrase || opts.passPhrase.length < 20) {
Expand Down

0 comments on commit 0065b0a

Please sign in to comment.