mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-01 21:42:14 +00:00
chore: fix out of date npms (#21)
This commit is contained in:
parent
974c507069
commit
0065b0a49e
@ -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",
|
||||
|
@ -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')
|
||||
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user