From 846fc80bcce000b62996e1d3ee3cb46bd6dc3c25 Mon Sep 17 00:00:00 2001
From: cgeek <cem.moreau@gmail.com>
Date: Mon, 6 Mar 2017 12:42:23 +0100
Subject: [PATCH] [enh] Upgrade wotb module: allow to retrieve non-members

---
 app/lib/wot.js | 9 ++++++++-
 package.json   | 2 +-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/app/lib/wot.js b/app/lib/wot.js
index 5543c780f..1d06d9368 100644
--- a/app/lib/wot.js
+++ b/app/lib/wot.js
@@ -20,6 +20,7 @@ function WoTBWrapper(instance) {
   this.resetWoT = instance.resetWoT;
   this.clear = instance.clear;
   this.showWoT = instance.showWoT;
+  this.dumpWoT = instance.dumpWoT;
   this.showGraph = () =>
     instance.showGraph();
   this.getWoTSize = instance.getWoTSize;
@@ -30,8 +31,14 @@ function WoTBWrapper(instance) {
   this.getPaths = instance.getPaths;
   this.getSentries = instance.getSentries;
   this.getNonSentries = instance.getNonSentries;
+  this.getDisabled = instance.getDisabled;
 
-  this.setEnabled = (enabled, nodeID) => instance.setEnabled(enabled, nodeID);
+  this.setEnabled = (enabled, nodeID) => {
+    if (!enabled) {
+      logger.trace('Disable node %s', nodeID);
+    }
+    instance.setEnabled(enabled, nodeID)
+  };
 
   this.addNode = () => {
     let nodeNumber = instance.addNode();
diff --git a/package.json b/package.json
index 9fd055388..1420ad62f 100644
--- a/package.json
+++ b/package.json
@@ -67,7 +67,7 @@
     "unzip": "0.1.11",
     "unzip2": "0.2.5",
     "winston": "2.2.0",
-    "wotb": "0.5.1"
+    "wotb": "0.5.3"
   },
   "devDependencies": {
     "coveralls": "2.11.4",
-- 
GitLab