From 94947bf9b8af3196836518bd91463efb04bd9148 Mon Sep 17 00:00:00 2001 From: Martin Heidegger Date: Fri, 1 Jun 2018 15:31:01 +0900 Subject: [PATCH 1/3] Fix: linting --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 4a748f8..8c152de 100644 --- a/index.js +++ b/index.js @@ -115,10 +115,10 @@ module.exports = function (opts) { 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)} From 57cae9b5b15f8c3ea0c2450a3ec088a21243fc47 Mon Sep 17 00:00:00 2001 From: Martin Heidegger Date: Fri, 1 Jun 2018 16:23:23 +0900 Subject: [PATCH 2/3] Updated ram --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 12a15ea..1082040 100644 --- a/package.json +++ b/package.json @@ -31,6 +31,6 @@ "minimist": "^1.2.0", "neat-log": "^1.1.0", "prettier-bytes": "^1.0.4", - "random-access-memory": "^2.4.0" + "random-access-memory": "^3.0.0" } } From 7aaeb16eeb72cb27d82d8399fab5e5f040199488 Mon Sep 17 00:00:00 2001 From: Martin Heidegger Date: Fri, 1 Jun 2018 16:23:41 +0900 Subject: [PATCH 3/3] Updated neat-log dependency --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 8c152de..1b8255c 100644 --- a/index.js +++ b/index.js @@ -112,7 +112,7 @@ 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 @@ -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 1082040..1f1dda1 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "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": "^3.0.0" }