Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

Update dependencies #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ module.exports = function (opts) {
if (state.opts.key) return 'Connecting to network...'
return 'Reading dat history...'
}
return output`
return output(`
${state.log.join('\n')}
${state.offline
? state.exiting
? '\nNo sources found in network.\nLog may be outdated.'
: '...\n\nConnecting to network to update & verify log...'
: '\nLog synced with network'}
? state.exiting
? '\nNo sources found in network.\nLog may be outdated.'
: '...\n\nConnecting to network to update & verify log...'
: '\nLog synced with network'}

Archive has ${state.dat.archive.version} changes (puts: +${state.puts}, dels: -${state.dels})
Current Size: ${prettyBytes(state.dat.stats.get().byteLength)}
Expand All @@ -128,6 +128,6 @@ module.exports = function (opts) {
Blocks:
- Metadata ${state.dat.archive.metadata.length}
- Content ${state.dat.archive.content.length}
`
`)
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"dependencies": {
"dat-node": "^3.3.1",
"minimist": "^1.2.0",
"neat-log": "^1.1.0",
"neat-log": "^2.4.0",
"prettier-bytes": "^1.0.4",
"random-access-memory": "^2.4.0"
"random-access-memory": "^3.0.0"
}
}