Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit ca7677d

Browse files
committed
fix: use defaults-deep
1 parent 235e194 commit ca7677d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/components/init.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const peerId = require('peer-id')
44
const waterfall = require('async/waterfall')
55
const parallel = require('async/parallel')
66
const promisify = require('promisify-es6')
7-
const extend = require('deep-extend')
7+
const defaultsDeep = require('@nodeutils/defaults-deep')
88
const defaultConfig = require('../runtime/config-nodejs.js')
99
const Keychain = require('libp2p-keychain')
1010

@@ -52,7 +52,7 @@ module.exports = function init (self) {
5252
opts.bits = Number(opts.bits) || 2048
5353
opts.log = opts.log || function () {}
5454

55-
const config = extend(defaultConfig(), self._options.config)
55+
const config = defaultsDeep(self._options.config, defaultConfig())
5656
let privateKey
5757

5858
waterfall([

0 commit comments

Comments
 (0)