diff --git a/index.js b/index.js index 4a748f8..1b8255c 100644 --- a/index.js +++ b/index.js @@ -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)} @@ -128,6 +128,6 @@ module.exports = function (opts) { Blocks: - Metadata ${state.dat.archive.metadata.length} - Content ${state.dat.archive.content.length} - ` + `) } } diff --git a/package.json b/package.json index 12a15ea..1f1dda1 100644 --- a/package.json +++ b/package.json @@ -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" } }