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

Commit 36afc59

Browse files
committed
update deps
1 parent 19d8555 commit 36afc59

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"ipfs-block": "~0.6.1",
110110
"ipfs-block-service": "~0.13.0",
111111
"ipfs-multipart": "~0.1.0",
112-
"ipfs-repo": "~0.18.2",
112+
"ipfs-repo": "~0.18.3",
113113
"ipfs-unixfs": "~0.1.14",
114114
"ipfs-unixfs-engine": "~0.23.0",
115115
"ipld-resolver": "~0.14.1",

src/core/components/init-assets.js

+4-10
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,14 @@ module.exports = function addDefaultAssets (self, log, callback) {
1515

1616
pull(
1717
pull.values([initDocsPath]),
18-
pull.asyncMap((val, cb) => {
19-
glob(path.join(val, '/**/*'), cb)
20-
}),
18+
pull.asyncMap((val, cb) => glob(path.join(val, '/**/*'), cb)),
2119
pull.flatten(),
2220
pull.map((element) => {
2321
const addPath = element.substring(index + 1)
24-
if (fs.statSync(element).isDirectory()) {
25-
return
26-
}
2722

28-
return {
29-
path: addPath,
30-
content: file(element)
31-
}
23+
if (fs.statSync(element).isDirectory()) { return }
24+
25+
return { path: addPath, content: file(element) }
3226
}),
3327
// Filter out directories, which are undefined from above
3428
pull.filter(Boolean),

src/core/components/init.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = function init (self) {
4949
// Generate peer identity keypair + transform to desired format + add to config.
5050
opts.log(`generating ${opts.bits}-bit RSA keypair...`, false)
5151
self.log('generating peer id: %s bits', opts.bits)
52-
peerId.create({bits: opts.bits}, cb)
52+
peerId.create({ bits: opts.bits }, cb)
5353
},
5454
(keys, cb) => {
5555
self.log('identity generated')

0 commit comments

Comments
 (0)