From f945b378e2ed8f516c2b3e328e84ef2dfe1c1afc Mon Sep 17 00:00:00 2001 From: Manuel Wiedenmann Date: Thu, 18 Apr 2019 00:41:05 +0200 Subject: [PATCH] Add ipfs.config getters --- lib/utils/ipfs.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/utils/ipfs.js b/lib/utils/ipfs.js index 9b75462..f3b1017 100644 --- a/lib/utils/ipfs.js +++ b/lib/utils/ipfs.js @@ -11,6 +11,14 @@ class IPFS { this._config = config; } + get config() { + return this._config; + } + + get peerId() { + return this._ipfsAPI.id(); + } + catAndMerge(data, deserialize) { // if no hash details are found simply return the data; nothing to merge if (!data.hashSize || data.hashSize === 0) {